fix(megazord): paperclip pins an account; continued turns keep the thread's own - #12
Merged
Merged
Conversation
… thread's own paperclip_run gains an 'instance' pin (applied after the NDA gate, so general work can never pin the SSB account), so a second login of the same harness (claudeAgent_claude_pessoal) is reachable; without quota data the policy always picked the first account in config order. A follow-up turn (dispatch with threadId / paperclip_thread_continue) now reuses the thread's modelSelection instead of re-routing: the MCP sent no scope, the policy picked 'codex' and the turn never reached the Claude thread. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…the whole test budget Co-Authored-By: Claude Opus 5.5 (1M context) <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.
What
paperclip_rungets an optionalinstancepin (e.g.claudeAgent_claude_pessoal). Applied after the NDA gate: ageneralrequest pinning the SSB account is refused.dispatchwiththreadId,paperclip_thread_continue) reuses the thread's ownmodelSelectioninstead of re-running the routing policy. An explicit instance/model that disagrees is refused.Why
paperclip_thread_continuesent no scope; the policy pickedcodexand the follow-up turn never reached a Claude thread (seen 2026-09-29 on a worker thread that hit its session limit).Verification
pnpm testin packages/megazord: 107 passed;pnpm typecheckclean.C:/tmp/poteto/e2e-paperclip-pin.mjs): dispatched withinstance: claudeAgent_claude_pessoal→ thread on that account, turn 1PING-PESSOAL;sendTurnAndAwaitwithout scope → turn 2PONG-PESSOALon the same account (transcript under.claude_pessoal); pinningclaudeAgentfor general work → refused.The MCP server loads
src/from the main checkout, so the new param takes effect after this merges and the MCP restarts.🤖 Generated with Claude Code