This repository was archived by the owner on Oct 1, 2026. It is now read-only.
Repository navigation
#116: Prism runtime on T3 only; models and limits from the T3 snapshot - #119
Merged
Merged
Conversation
Every stage (dispatch, resume, worker, correction and recovery turns, planner questions, terminal report) runs through T3 threads, and submit requires --planner-t3-thread (#110). Deleted: runner/harnesses.py, runner/supervisor.py, runner/kits.py, runner/direction.py, worker-kits/, the model-routing skill and its generated references, the Codex CLI dispatch and resume, the owned OpenCode server, the Grok CLI worker, the four harness planner callbacks and their busy checks, the CLI terminal-report senders, core's child invocation machinery, policy role kits, session permissions and per-harness silence windows. adapters.py keeps only the dispatcher prompt, envelope parsing and redaction. Kept and fixed on the T3 path: a capped fallback dispatch route is reserved before its thread starts, and an exhausted escalation asks the planner in its thread on the next step instead of waiting for recover. Tests: suites that only exercised the deleted path are removed; the behavior that remains is ported onto an in-memory T3 fake (tests/fakes.py, tests/test_t3_only.py). scripts/test.py isolates the suite from the user's T3 server. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
GET /api/prism/snapshot (toolboxmd/chromeria#19) decides eligible routes, Prism (role, lane) orders and usage-window limits; error marks expire at their reset and exhaustion rests the whole pool. Routes are T3 selections (instance, model, effort); Go cost tables, probes, readings, prose reset parsing and host-only routes are gone. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before the first dispatch the task's proof runs once on the base commit (in place when the workspace is clean at base, else in a scratch worktree that is removed); a red base blocks as baseline_proof_failed before any thread starts. A capacity signal on the correction route moves laterally into the job's lane. The dispatcher's evidence carries the job branch's commits since base and any open branch PR. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
RUNNER.md, README.md and GLOSSARY.md describe only the T3 path, the Prism snapshot rules, the baseline proof and the correction fallback; the 0.35.0 changelog entry lists what changed and what was removed. Stale direct-path comments are gone. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This was referenced Sep 25, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Closes #116 (stream B of spec #115). Closes #110. Supersedes the remaining #111 fixes (1, 2, 3 and 6 by deletion or the snapshot; 4 and 5 implemented here).
What changed
submitrequires--planner-t3-thread; dispatch, resume, worker, correction and recovery turns, planner questions and the terminal report all run through T3.--planner-harness/--planner-model/--planner-effortare recorded as evidence only.GET /api/prism/snapshot, contract from Prism in Chromeria: MCP toolkit, spawn_thread(role), role settings schema, provider snapshot endpoint chromeria#19feat/19-prism-toolkit,runner/t3snapshot.py), read before each controller step and cached for 30 s:t3:<instance>:<model>@<effort>.resetsAt, or until a later read when the window has noresetsAt. 80 % degrades.next(epoch ms),resetsAt,retry_after, else one assumed 5 h window. Prose is never parsed. Exhaustion rests the whole pool, so a Go limit never moves laterally within Go. A success clears assumed marks on its pool.base_commitbefore the first dispatch. It runs in place when the workspace is clean at base, else in a scratch worktree that is removed afterwards. A red base blocks asbaseline_proof_failedbefore any thread starts;"baseline_proof": falseopts out.recover.luna-go/maxroute before starting its thread.skills/model-routingand its generated reference are gone. The plugin manifests now carry just the runtime; usage guidance lives in the Prism tool descriptions.router-80-release-t3is terminal (cancelled), so the release hold is lifted.Deleted
Runner code went from 21 688 to 10 031 lines; tests from 22 631 to 6 596. The diff is 71 files, +2 983 / −31 817.
runner/harnesses.py(2 624),runner/supervisor.py(1 251),runner/kits.py(925),runner/direction.py(438),worker-kits/grok/ensure.py(182),skills/model-routing/*(128).adapters.py−1 220 (keeps only the dispatcher prompt, envelope parsing and redaction),core.py−2 755 (child invocation machinery, probes, readings),controller.py−2 386 (CLI dispatch and resume, harness callbacks, busy checks, CLI terminal senders),policy.pyrewritten (Go cost tables, tiers, host-only routes, kits, reset-prose parsing).tests/fakes.py,tests/test_t3_only.py): terminal reports, capacity moves, the ladder to the planner, report redaction and diffs, and cross-job capacity.Proof
python3 scripts/test.py: 249 tests OK.python3 -m compileall -q runner scripts tests: OK.python -m runner.policy validate: OK.scripts/test.pynow points the suite at a/tmpT3 home and a closed port, so it can never reach the user's T3.tests/test_t3snapshot.py(fake HTTP server plus fake client): model or instance off, lane lists, the 100 % / 80 % / passed-reset / no-reset windows, 404 unknown, Zen freenextexpiring, Go limit resting the pool and moving to Grok Build, success clearing an assumed mark.tests/test_issue116.py: baseline proof fail/pass/restart/scratch/skip on real Git repos, correction fallback, branch evidence.Not done here
🤖 Generated with Claude Code