Skip to content

Add Manager/Worker orchestration design decision entry#42

Open
gering wants to merge 1 commit into
mainfrom
task/design-manager-worker-orchestration
Open

Add Manager/Worker orchestration design decision entry#42
gering wants to merge 1 commit into
mainfrom
task/design-manager-worker-orchestration

Conversation

@gering

@gering gering commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Design/spike output for evolving work-system into a coordinated Manager/Worker model (user direction 2026-07-15).
  • Deliverable to main: one decision knowledge entry (an ADR). The 7 spawned implementation tasks live in the local, untracked backlog (tasks/*.md by convention) — not in this PR.
  • Gate verified live (herdr 0.7.0): agent_status IS pollable for agent-start tabs (idle|working|blocked|done), hook-integration-based; agent read returns clean TUI text — resolving the previously-UNVERIFIED agent-status flag.

Changes

  • +.claude/knowledge/architecture/manager-worker-orchestration.md — the decision record: the Manager/Worker/Lane model (identity = worktree path), the cross-agent constraint (workers may be claude/codex/grok; only claude+codex are hook-integrated → git/PR is the one uniform bus, contract is agent-agnostic, claude-first), the .mailbox/ protocol (outbox+inbox single-writer, offset-drain, Claude Code hook push, herdr idle-wake as the only residual push), milestone-defined worker autonomy, the deterministic merge sequencer, and roadmap-as-derived-view co-equal with the GitHub board.
  • ~.claude/knowledge/_index.md — index the new entry.

Readiness

  • ✅ Structure check (scripts/check-structure.py) — 0 errors
  • ➖ Version / Changelog / Build / Lint — N/A (knowledge-only, no plugin bump, declarative repo)
  • ✅ Knowledge — this PR is the knowledge entry
  • ✅ Rebased onto latest main (da19bee)

Test plan

  • python3 scripts/check-structure.py stays green
  • Entry reads coherently and cross-links resolve (skill-composition, idempotent-scaffolding, herdr-kickoff-automation, herdr-tab-glyphs)

🤖 Generated with Claude Code

Design/spike output for the coordinated Manager/Worker model:

- Gate verdict (verified live, herdr 0.7.0): agent_status is pollable for
  agent-start tabs (idle|working|blocked|done), hook-integration-based;
  agent read returns clean TUI text. Resolves the previously-UNVERIFIED
  agent-status flag.
- Cross-agent constraint: workers may be claude/codex/grok; only claude+codex
  are hook-integrated (status + session UUID), grok is TUI-scrape-only. git/PR
  state is the one uniform bus; the contract is agent-agnostic.
- The .mailbox/ protocol: outbox+inbox (single-writer, single-sequencer),
  offset-drain, Claude Code hook push (Stop/SessionStart/Notification),
  herdr idle-wake as the only residual push.
- Milestone-defined worker autonomy, deterministic merge sequencer,
  roadmap-as-derived-view co-equal with the GH board.

Spawns 7 implementation task files (local backlog): add-lane-registry,
add-lane-mailbox, add-manager-watch-loop, extend-worker-autonomy,
add-merge-sequencer, add-roadmap-skill, add-mailbox-statusline.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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