Skip to content

Day 1: wire dispatcher + sub-agent stubs + trace hook#3

Merged
dadachi merged 2 commits intomainfrom
feat/day1-dispatcher-stubs
Apr 21, 2026
Merged

Day 1: wire dispatcher + sub-agent stubs + trace hook#3
dadachi merged 2 commits intomainfrom
feat/day1-dispatcher-stubs

Conversation

@dadachi
Copy link
Copy Markdown
Contributor

@dadachi dadachi commented Apr 21, 2026

Summary

  • Types in src/agents/types.ts model the domain spec, rename pairs, worker/reviewer/judge results, and the 6 AgentNames.
  • Per-sub-agent trace hook in src/trace.ts appends timestamped lines to tmp/trace/<agent>.logscripts/demo-tmux.sh panes light up during a run.
  • 6 sub-agent stubs (planner, workers/{rails,ios,android}, reviewer, judge) emit realistic events and return mock results.
  • Dispatcher (src/dispatch.ts) wires the pipeline: plannerPromise.all(rails, ios, android)reviewerjudge. Parallel worker execution matches the demo beat-3 visual.
  • CLI (src/index.ts) invokes dispatch(spec) and prints a summary when the run completes.
  • Smoke test extended to cover the full dispatch pipeline end-to-end.

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, populates tmp/trace/{planner,rails,ios,android,reviewer,judge}.log with 3-5 events each
  • Verified 2×2 tmux layout (scripts/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

dadachi and others added 2 commits April 21, 2026 10:31
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>
@dadachi dadachi merged commit 4e94cb6 into main Apr 21, 2026
1 check passed
@dadachi dadachi deleted the feat/day1-dispatcher-stubs branch April 21, 2026 02:02
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.

1 participant