Repository navigation
feat(pair): pair_reset gives the executor a fresh context - #657
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
1a6c650 to
ea6142b
Compare
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
ea6142b to
2f7ef67
Compare
|
Deployment failed for project pylon-marketing with the following error: Learn More: https://vercel.com/pylon-code?upgradeToPro=build-rate-limit |
|
Merging with the Vercel preview check red: it failed with |
What
A new pair tool,
pair_reset, starts the executor over with an empty context: same model, same runtime mode, the lead's current branch and worktree, and the pair stays on. The executor's transcript is deleted; the files it changed are untouched.Why
One executor serves every brief of a pair, so its context only grows. The first executor used for real work ended a day at 126k of 128k tokens. Until now the only way out was to turn the pair off and on again from the UI.
How
PairExecutorBusyError);PairNotActiveErrorwithout an active pair; a no-op returningreset: falsefor an executor that never ran.server:mcp-pair-create:<executor>, and reusing it would replay that receipt as a success and create nothing.ThreadDeletionReactor.drainThrough. That reactor stops the old provider session afterthread.deleted; the new thread has the same id, so without the wait a brief sent straight after a reset could have its new session stopped. This was a lead correction after review, with a test that records the order: delete, reactor drained, create.pairordelegationcapability, like the other tools that drive an existing pair. The protocol tells the lead when to use it and that the next brief must stand on its own. Work-log label added.Verification
vp test runonapps/server/src/mcp,apps/server/src/orchestration,RuntimeInstructions.test.tsand the work-log presentation tests: 1133 passed. Six tests were written first and seen failing.t3and@t3tools/client-runtime: 0 errors. Lint, format andvp run knip:checkclean.How it was built
Third change made through pair mode on a real install: Claude lead, Antigravity executor, one shared worktree, four files protected (
checked 4, changed []). The executor's final message was a raw Antigravity task notification rather than the requested report, so the review was done fromgit diffalone.Part of #622.
Model: Claude Fable 5.1 (lead) with an Antigravity executor, paired in Pylon via the Claude Code harness.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.