- Change default base branch from origin/integration to main - Add --noFetch flag to skip git fetch (for offline/sandbox use) - Add try/except with rollback on spawn failure - Improve error message for missing review-gate - Add Codex auth.json symlink to use-skills.sh - Include worker orchestration AAR from 2026-01-13 Addresses pain points from worker-orchestration-aar-2026-01-13.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2.4 KiB
2.4 KiB
Worker Orchestration AAR (2026-01-13)
Goal
Parallelize three bd issues using worker spawn and background worker agents.
Scope
- Issues:
talu-gsga,talu-jid5,talu-w8oq - Base branch:
main - Worker model:
sonnet-4.5
Environment
- Repo:
/home/dan/proj/talu - Network: restricted sandbox (fetch requires escalation)
- Tools:
worker,bd,git
What Happened
- Ran
worker spawnusing positional args; command failed due to CLI syntax. - Retried with
-tand-dflags;workerattemptedgit fetchand failed due to network restriction. - Retried with
-f main; fetch still attempted and failed. - Partial worktrees and branches were created without worker registry entries.
- Manually removed worktrees and deleted branches.
- Re-ran
worker spawnwith network escalation; workers created successfully. review-gatewas not found, so review integration was disabled.- Rendered worker prompts and launched background workers.
What Went Well
- After network access,
worker spawncreated worktrees/branches reliably. - Prompt rendering and background worker launch were straightforward.
Pain Points
worker spawnalways attemptsgit fetch, even when--fromBranchis local.- Default base branch is
origin/integration, which is not present in this repo. - Spawn failures left behind branches and worktrees without worker registry state.
- Missing
review-gateproduces warnings without guidance on setup. - Network access requirements are easy to miss during first-time use.
Impact
- Time lost to retries and cleanup before workers could start.
- Non-obvious failure modes and manual recovery steps.
Observed Errors
spawn does not expect non-option arguments at "talu-gsga"fatal: not a valid object name: 'origin/integration'ssh: connect to host 192.168.1.108 port 2222: failureWARN: enableReview: failed for <id>: review-gate not found
Recommendations
- Allow
worker spawnto skipgit fetchwhen the base branch is local. - Make the default base branch configurable or auto-detect a local main branch.
- Roll back branch/worktree on spawn failure to avoid manual cleanup.
- Improve error messaging to distinguish network vs branch-not-found.
- Provide setup guidance when
review-gateis missing.
Questions for Worker Team
- Can
worker spawnbe configured to avoid network fetches? - Is there a way to set a global default base branch (e.g.,
main)?