Skip to content

fix(workers): extend the /goal Stop-hook deadlock fix to orchestrator + tdd - #9

Merged
waitdeadai merged 1 commit into
mainfrom
fix/worker-stophook-deadlock
Jun 2, 2026
Merged

fix(workers): extend the /goal Stop-hook deadlock fix to orchestrator + tdd#9
waitdeadai merged 1 commit into
mainfrom
fix/worker-stophook-deadlock

Conversation

@waitdeadai

Copy link
Copy Markdown
Owner

Follow-up to PR #6. The no-vibes Stop hook blocking a prose worker's FINISHED closeout (→ max-turns) isn't unique to runGoal. Exposure audit: orchestrator.ts + tdd.ts are prose-emitting autonomous workers loading settings-file hooks with no override — same class. Fix: settingSources:[] on both (structured-output workers verify/mutation-verify/ssc are unaffected). typecheck + tests green.

🤖 Generated with Claude Code

…ator + tdd drivers

PR #6 fixed runGoal, but the same bug threatens every prose-emitting autonomous
worker: the user-facing no-vibes Stop hook blocks their FINISHED/EVIDENCE closeout,
so they run to the turn cap and never terminate. Exposure audit of baseSdkOptions
callers found two more: orchestrator.ts (packet worker — prose EVIDENCE/STATUS) and
tdd.ts (prose FINAL TDD BLOCK), both loading settings-file hooks with no
settingSources override — same class as runGoal. Structured-output workers (verify,
mutation-verify, ssc) emit JSON, don't trip no-vibes, and are left unchanged.

Fix: settingSources:[] on the orchestrator + tdd worker spawns (matching runGoal).
Worker enforcement is the separate blind verify, not the tone hooks. typecheck +
tests green (runtime 277).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@waitdeadai
waitdeadai merged commit 5ad95a8 into main Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants