2.2 KiB
2.2 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec |
|---|---|---|---|---|---|---|
| 01-runtime-terminal-environment | Runtime terminal environment propagation | done | 1 | plan.md | ../../specs/integrations/requirements/github-authentication.md |
Task 01: Runtime Terminal Environment Propagation
Acceptance
- The lifecycle retains a defensive, runtime-only copy of each execution's resolved environment and makes it available only to authorised task execution surfaces.
- Local/worktree user-shell terminals and passthrough-agent PTYs receive the same managed Git
broker, indexed configuration, and shimmed
PATHas their execution's agent subprocess. - Executor-inheritance mode and unauthorised terminal access do not gain managed broker values.
Verification
cd apps/backend && rtk go test ./internal/agent/runtime/lifecycle ./internal/gateway/websocket -run 'Test(ExecutionEnvironment|StartUserShellProcess|Passthrough).*ManagedGit' -count=1
Files likely touched
apps/backend/internal/agent/runtime/lifecycle/types.goapps/backend/internal/agent/runtime/lifecycle/manager_launch.goapps/backend/internal/agent/runtime/lifecycle/manager_execution.goapps/backend/internal/agent/runtime/lifecycle/manager_passthrough.goapps/backend/internal/agent/runtime/lifecycle/manager_launch_test.goapps/backend/internal/agent/runtime/lifecycle/manager_passthrough_test.goapps/backend/internal/gateway/websocket/terminal_handler.goapps/backend/internal/gateway/websocket/terminal_handler_test.go
Dependencies
None.
Parallelism
Sequential. This task establishes the runtime-only environment ownership used by later process launch paths.
Inputs
- Spec:
docs/specs/integrations/requirements/github-authentication.md— What, Failure Modes, Scenarios. - Plan: Runtime environment section.
- Existing patterns:
buildEnvForExecution,ExecutorProfileEnvForSession, andStartUserShell.
Output contract
Report the environment ownership boundary, files changed, focused test output, and any finding that requires plan/spec revision. Focused lifecycle and gateway tests pass, including the race-enabled regression set; agentctl process tests are covered by Task 02.