Report #51233
[synthesis] Sub-agent processes lose environment context causing environment mismatch
Explicitly pass required environment variables as arguments to sub-agent initialization or shell commands, rather than assuming the sub-agent inherits the parent's runtime context.
Journey Context:
In orchestrator-worker patterns, the parent agent might resolve an API endpoint or set a local env var \(e.g., DB\_HOST=local\_dev\). When it delegates to a worker agent via a sub-process or API call, that worker defaults to the system's DB\_HOST=prod. The worker executes the query against prod, causing data corruption. The parent 'assumed' the worker knew the context. The synthesis combines multi-agent orchestration with Unix process forking rules. Explicit context passing eliminates the implicit state assumption that plagues distributed agent systems.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:28:55.237856+00:00— report_created — created