User request / architecture change
Architecture change doc: agynio/architecture → changes/2026-04-24-home-workspace-env.md.
- Agents Orchestrator should not inject or reserve
HOME / WORKSPACE_DIR.
- Agent-specific fallbacks live in
agynd.
Specification
1) Codex HOME fallback
If HOME is empty for the Codex subprocess environment, set HOME=/tmp before spawning (Codex resolves ~/.codex against HOME and needs a writable path).
- This fallback is Codex-specific.
2) Init scripts workdir fallback
Run init scripts with working directory:
WORKSPACE_DIR when that variable is defined, otherwise
/tmp
(Implementation hint: internal/config/config.go currently defaults WORKSPACE_DIR to /workspace when unset; this should become /tmp so init scripts run in /tmp by default.)
Acceptance criteria
go test ./... passes.
- When
WORKSPACE_DIR is unset, init scripts run in /tmp.
- When
HOME is unset, Codex still starts (via HOME=/tmp fallback).
User request / architecture change
Architecture change doc:
agynio/architecture→changes/2026-04-24-home-workspace-env.md.HOME/WORKSPACE_DIR.agynd.Specification
1) Codex HOME fallback
If
HOMEis empty for the Codex subprocess environment, setHOME=/tmpbefore spawning (Codex resolves~/.codexagainstHOMEand needs a writable path).2) Init scripts workdir fallback
Run init scripts with working directory:
WORKSPACE_DIRwhen that variable is defined, otherwise/tmp(Implementation hint:
internal/config/config.gocurrently defaultsWORKSPACE_DIRto/workspacewhen unset; this should become/tmpso init scripts run in/tmpby default.)Acceptance criteria
go test ./...passes.WORKSPACE_DIRis unset, init scripts run in/tmp.HOMEis unset, Codex still starts (viaHOME=/tmpfallback).