Day 1: wire dispatcher + sub-agent stubs + trace hook#3
Merged
Conversation
Day-1 gate: CLI runs end-to-end against stubs. Planner + three workers (rails/ios/android) + reviewer + judge each emit realistic events into tmp/trace/<agent>.log, so scripts/demo-tmux.sh lights up during a dry run. Workers execute in parallel (Promise.all) to match the demo beat-3 visual. Smoke test covers the full dispatch pipeline end to end. Stubs return mock results; no Claude API or filesystem writes yet. Planner/workers/reviewer/judge will each be replaced with real implementations across Days 2-4 per docs-private/PLAN.md. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/agents/types.tsmodel the domain spec, rename pairs, worker/reviewer/judge results, and the 6AgentNames.src/trace.tsappends timestamped lines totmp/trace/<agent>.log—scripts/demo-tmux.shpanes light up during a run.planner,workers/{rails,ios,android},reviewer,judge) emit realistic events and return mock results.src/dispatch.ts) wires the pipeline:planner→Promise.all(rails, ios, android)→reviewer→judge. Parallel worker execution matches the demo beat-3 visual.src/index.ts) invokesdispatch(spec)and prints a summary when the run completes.Closes Day-1 gate in
docs-private/PLAN.md— "CLI dispatches; planner/workers/reviewer/judge files exist as typed stubs; per-sub-agent trace hook written; scripts/demo-tmux.sh lights up during a dry-run."Test plan
npm run ci— build + typecheck:tests + tests all pass (5/5, ~3.5s)npm run dev -- "a walk-in clinic queue..."— pipeline runs end-to-end, prints PASS, populatestmp/trace/{planner,rails,ios,android,reviewer,judge}.logwith 3-5 events eachscripts/demo-tmux.sh clinic-queue+tmux attach -t demo) shows events streaming into the four worker/reviewer panes during a run — confirmed via screenshot during rehearsal