Repository navigation
Conversation
The PR-tool instruction said to use pull_request_* tools, "not gh or cafe", with no exception, so an agent asked to open a PR with gh used pull_request_create or refused. The sentence now opens with "Unless asked for gh or cafe". It is 3 bytes shorter, so the agent context budget drops. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Agents may use gh or cafe for PR work when explicitly requested; listed PR tools remain the default. Existing linking and monitoring instructions are unchanged, and context-budget measurements reflect the shorter prompt. You can add or adjust custom eligibility rules. Learn more. |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
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. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Thanks for this. Before a bug fix is taken further, the bug is reproduced on current main, and here it did not appear. I tried this on current main (4ec5222) in the real app. I started a dev server with a fresh database and added a project whose origin is a GitHub URL. On a branch with one committed change, I started threads with your eval's prompt ending in "Use gh pr create for this one." The session log shows the unchanged instruction ("use them, not gh or cafe") reached the model as developer instructions, and T3's pull request tools could be called. In every sample the agent ran Your harness's 0-of-5 result is real for that harness, but it doesn't seem to carry over to the app as it runs today. If you have the model, effort and settings from the Discord report, or a transcript where the refusal happens in the app, we'd be glad to look again. Closing this pull request. If it still happens for you, please open an issue with the exact steps, what you see, and the version and platform you are on; a fix is picked up from there. |
Problem
A user reported in Discord that a GPT model kept refusing
ghrequests with "T3 requires me to open PRs through its GitHub connector." The PR-tool instruction says to usepull_request_*tools, "not gh or cafe", with no exception for a user who asks for the CLI. On Codex this text is sent as developer instructions, so it wins over the user's message. Expected: T3's tools stay the default, and an explicit ask forghorcafeis honored.Change
One sentence in
PULL_REQUEST_LINKING_INSTRUCTIONS:When pull_request_* tools are listed, use them, not gh or cafe, to read, list, open, edit, …Unless asked for gh or cafe, use listed pull_request_* tools to read, list, open, edit, …The rest of the diff follows from that sentence: the eight Muse replay fixtures that embed it, and
agentContextBudget.json, which drops by 3 bytes because the new sentence is shorter. One eval case is added,user-asks-gh-pr-create: the user says "Use gh pr create for this one", and the agent must run it, must not callpull_request_create, and the PR must end up linked.Scope
Bug fix for the report above. No issue: it is a one-sentence fix to model-facing text with a failing eval case.
Verification
Evals:
pnpm mcp-tool-use --model gpt-6.1-sol --shell-model gpt-6.1-terra, default samples (2, a 3rd when they disagree), oncases/pull-requests.ndjson.The new case, on the text before and after:
user-asks-gh-pr-createpull_request_createand never rangh.gh pr create, thenlink_pull_request.The 26 cases that cover the PR and CI tools, same model and shell before and after:
user-asks-gh-pr-create(0 of 2),pr-list-through-gh(1 of 3)No case that passed before fails after. The cases that guard the default (
open-pr-through-gh,merge-through-gh-unpinned,pr-checks-through-gh,ci-failure-read-through-ghand the rest) still pass with noghcall.The other 40 Codex cases in the file, on the new text: 82 of 84 samples pass and no case fails. Two cases had one failed sample each, so I ran both on the old text too:
control-link-means-urlchild-pr-not-linkedI also tried the smaller edit,
use them→prefer them, with 3 samples per case:prefer themuser-asks-gh-pr-createopen-pr-through-ghpr-checks-through-ghmerge-through-gh-unpinnedWith
prefer them, every merge sample calledpull_request_mergeand then rangh pr mergeunasked, which is the unpinned merge that case exists to stop.Checks at
606198f0779f:vp run check:changedpasses (format, lint, knip, graphql, typecheck, and the tests it selects:runtimeInstructions.test.ts,AgentContextBudget.test.ts).vp test run src/orchestration-v2/testkit/MuseReplayFixtures.integration.test.tspasses 8 of 8 against the edited fixtures.Not shown:
deploy-wait-ends-turn-unwatched(a Claude-harness case) did not run and there is no Claude arm.cafe, and an ask that comes from project instructions or a parent's brief. "Asked" covers them by wording; no case tests them.pull-requests.ndjson. The full run per model thatevals/README.mdasks for before merge is not done.Claude Fable 5.2, Claude Code in T3 Code. Review by GPT-6.1 Sol in Codex.
🤖 Generated with Claude Code