Repository navigation
The manager agent: design (S-223, proposed) - #34
Draft
OpenReplicant wants to merge 9 commits into
Draft
OpenReplicant wants to merge 9 commits into
OpenReplicant wants to merge 9 commits into
Conversation
… that hands work to workers and never does it itself docs/manager-agent.md: the portfolio in the environment module with a files-only mirror, the lean manager on Haiku with no built-in tools, workers behind gated actuators with one report contract, a supervisor that watches runners and resumes usage-limit stops, decisions through #32's review lane and an inbox, a judge for "done", the desktop view, failure modes and guards, trial PM-1 with its falsifier, the build order and the owner's questions. Builds on #32's design, not its code. scripts/trials/manager/watch.py is the supervisor's watch half with no database. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh
… to S-222, then S-223 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh
…nnet 5.5 as manager, local fast on routing only), with 43 replayable scenarios, per-arm metrics, a falsifier for "Haiku is reliable enough", and what public benchmarks can check (S-223) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh
…eplay, tests, and Haiku 5.5's first run (43 scenarios, one run) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh
…), export of the harness for Kaggle, tests with a mock server Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh
…xed split, GEPA on train and dev, a held-out verdict (refused) The cell (catalog/component-manager-prompt.yaml): change is manager.md alone, routing accuracy primary, did-the-work-itself = 0 and delegation recall as constraints, tokens and latency observed. PM-1a's scorer is frozen by hash. The 43 scenarios are split 20/10/13 with a fixed seed; the held-out 13 sit outside the repository. GEPA 0.1.4 (Haiku task, Sonnet reflection, subscription only): 100 Haiku runs, 8 reflections. The best candidate scored 10/10 on dev, 69.2% against the baseline's 71.8% on held-out (3 paired runs): refused, manager.md unchanged. The feedback loop is designed in docs/manager-agent.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh
…aphrases, 24 incidents, 107 variations) with source, label confidence and reason; review table; split_v2.py for after the owner confirms; tests Not active: labels are the owner's to confirm, and the frozen v1 files are untouched. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh
…−11.6 against Haiku, [−27.9, +4.7]) at 15× the latency, LFM3 20.9%; neither replaces Haiku Co-Authored-By: Claude Opus 5.5 <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.
A design for a manager agent: a main agent that knows every project, hands work to worker agents, never does the work itself, and stays free to answer. It builds on #32's design (the environment as a kernel module,
proposedecided in the kernel's review lane, the channel and router as MCP servers), not its code. Nothing is built except one trial script.What is here
docs/manager-agent.md, the design:env.project,env.workerandenv.decisionlive in the environment module, with a files-only mirror as Backstage entities. Who may write what is enforced by logins and the portfolio server.--tools '', so no Bash, edits or Agent tool), fed by the channel. A hook caps each turn at 8 tool calls. The document explains why it uses Haiku rather than the localfastmodel, and how its routing choices can be replayed againstfastlater.pm.start(free) andpm.start_gated(propose). The server picks the gate from the project's class. Runners:local(claude --bgin a worktree) first, then a container (claude -p), Kaggle and scheduled runs. Workers report through one tool,pm_report, with refs and a summary of at most 300 words, never a transcript.desktop/view-manager/with projects, workers and an inbox (ASCII wireframe). Spend comes from the gateway's meter.DECISIONS.md: S-223, proposed. The re-cut, step 2: the environment as a kernel module, its proposals in the review lane; the channel and router as MCP servers on it (S-219 to S-221) #32 uses S-219 to S-221 and Preview release v0.1.0-preview.1: pinned images, fresh-install fixes, README (S-222) #33 uses S-222, so this takes the next free number.docs/plan.mdanddocs/parts.md.scripts/trials/manager/watch.py: the supervisor's watch half, using only the standard library and no database. It readsclaude agents --json --all, readsclaude logsfor failed or stopped sessions to find usage-limit stops, and prints the signals it would publish.Checked
claude --help(2.1.332).watch.py --onceran on this machine and printed onepm.worker.finishedfor the one background session. It also showed that background subagents don't appear inclaude agents --json. That is why today's two usage-limit stops weren't visible, and why the design requires workers to be background sessions.scripts/check.shandscripts/test.shwere not run: they need the stack and its containers, and this session doesn't start any. The change is documentation plus one trial script, checked withpy_compile.For the owner
The open questions are in section 10:
own, and whether Kaggle runs free within its quota.🤖 Generated with Claude Code
https://claude.ai/code/session_01KhsqyyPmp7iKCkTFcXs6sh