4.0 KiB
4.0 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec | ||
|---|---|---|---|---|---|---|---|---|
| 03-review-blocker-remediation | Review blocker remediation | done | 3 |
|
plan.md | ../../specs/integrations/requirements/github-authentication.md |
Task 03: Review Blocker Remediation
Acceptance
- Docker and Sprites preparation publish an absolute Kandev-owned credential-helper executable before a prepare-script clone can invoke the managed indexed Git configuration.
- A running
agentctlpublishes its own absolute executable for agent, terminal, and task-command child processes; Git helper execution never depends on ambientPATHor the later-created CLI shim directory. - Executor inheritance removes the current executable-variable helper plus both prior managed helper forms without disturbing unrelated indexed Git configuration.
- An inherited
BASH_ENVpath containing$VARor${VAR}references is resolved from the effective child environment before the generated startup fragment sources it.
Verification
RED first:
cd apps/backend && rtk go test ./internal/agent/runtime/lifecycle ./internal/agentctl/server/config -run 'Test.*(ManagedGitCredentialHelperBeforeAgentctl|ParameterizedBashEnv)' -count=1
GREEN and focused regression checks:
cd apps/backend && rtk go test ./cmd/agentctl ./internal/agentctl/server/config ./internal/agentctl/server/process ./internal/agent/runtime/lifecycle ./internal/orchestrator/executor ./internal/githubauth -run 'Test.*(GitHub|ManagedGit|BashEnv|ShellExec|ContainerConfig|SpriteEnv)' -count=1
Files likely touched
apps/backend/internal/githubauth/environment.goapps/backend/cmd/agentctl/main.goapps/backend/internal/agent/runtime/lifecycle/container.goapps/backend/internal/agent/runtime/lifecycle/container_config_test.goapps/backend/internal/agent/runtime/lifecycle/executor_sprites_helpers.goapps/backend/internal/agent/runtime/lifecycle/executor_sprites_clone_auth_test.goapps/backend/internal/agentctl/server/config/config.goapps/backend/internal/agentctl/server/config/config_test.goapps/backend/internal/orchestrator/executor/executor_credentials.goapps/backend/internal/orchestrator/executor/executor_credentials_test.go- this task file,
plan.md, and the linked spec
Dependencies
Tasks 01 and 02 establish the helper and login-shell contracts being corrected.
Parallelism
Sequential. Both regressions alter the shared managed GitHub environment contract and its tests.
Output contract
Report both RED failure reasons, the final helper executable lifetime, inherited-hook expansion behavior, exact targeted test results, secret/runtime-only boundaries, and synchronized task/plan status.
Results
- RED: the lifecycle/config command failed in three intended tests because Docker and Sprites did
not publish a pre-start helper executable and the parent
BASH_ENVremained literal. The real Git regression failed with/agentctl: not found; the agentctl startup regression observed an empty helper-executable variable. - GREEN:
rtk go test ./cmd/agentctl ./internal/agentctl/server/config ./internal/agentctl/server/process ./internal/agent/runtime/lifecycle ./internal/orchestrator/executor ./internal/githubauth -run 'Test.*(GitHub|ManagedGit|BashEnv|ShellExec|ContainerConfig|SpriteEnv)' -count=1passed 73 tests. - Full affected packages: the same six packages without
-runpassed 2,000 tests. - Docker and Sprites bind
/usr/local/bin/agentctlonly for broker-enabled preparation. Agentctl replaces that boundary value with its absoluteos.Executablepath for children. The helper remains fail-closed, and no lease, token, scope, or credential value is written to a file or process argument. - Parent Bash hooks now resolve simple
$VARand${VAR}path references from the effective child environment withouteval; unsupported shell expressions remain literal rather than being executed by Kandev's composition logic.