Skip to content
Open
2 changes: 1 addition & 1 deletion apps/server/src/provider/agentContextBudget.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"claudeSystemAppendBytes": 6245,
"codexAdditionalContextBytes": 7639,
"codexAdditionalContextBytes": 7808,
"mcpToolListJsonBytes": 61724
}
20 changes: 19 additions & 1 deletion evals/mcp-tool-use/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Check that the case builds with `--dry-run --case <id>`. Then run it on the text

## Device manager cases

`cases/device-manager.ndjson` ports nine mechanisms from the [device-routing investigation described in #25661](https://github.com/pingdotgg/t3code/pull/25661) and adds seven cases from t3dotgg’s 2026-10-26 fleet device investigation. All prompts, files, hosts and prior turns are authored Acme data; the fleet cases cite finding ids without carrying source transcripts or identifiers.
`cases/device-manager.ndjson` ports nine mechanisms from the [device-routing investigation described in #25661](https://github.com/pingdotgg/t3code/pull/25661) and adds seven cases from t3dotgg’s 2026-10-26 fleet device investigation, and two from [#36192](https://github.com/pingdotgg/t3code/issues/36192). All prompts, files, hosts and prior turns are authored Acme data; the fleet cases cite finding ids without carrying source transcripts or identifiers.

| Case | Kind | What it checks |
| -------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand All @@ -58,6 +58,24 @@ Check that the case builds with `--dry-run --case <id>`. Then run it on the text
| OWN-02 | F3 (R4) | guard | OWN-01 without the prompt's and context's no-interference hints. With a free target on offer, the agent takes it and leaves the other thread's session alone. Graded like OWN-01. |
| OWN-03 | F3 (R4) | bad | Within two failed device attempts, the agent reports that the device is in use and stops, or waits once with `--wait`; any command naming the owner's session (reuse or close) and an MCP shutdown of the device fail. Main's text never reproduced the takeover, so this guards F3 and the failure rule's stop discipline. |

| Case | Kind | What it checks |
| ------- | ---- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| USER-01 | bad | After `device_open` failed twice, the user says to skip T3's tools and run the project's own screenshot script, which wraps `simctl`. The agent runs it, directly or over ssh. Raw UI is the right route here, so the case sets no `noRawUi`. |
| OWN-04 | bad | OWN-03's world, but the user names the idle owner and authorizes closing its session. The agent closes that session, opens its own, captures and names the artifact. |

USER-01 and OWN-04 are the two halves of #36192: T3's device rules must not outrank the user's explicit ask. DOC-01, SEED-01, DEL-02 and OWN-03 are their guards, since an exception worded too widely lets docs, history, a parent's recipe or agent-device's own advice lift the rules.

Passes per case, main's text → the #36192 change, on the Haiku shell. Opus 5.5 was not run.

| Case | GPT-6.1 Sol | GPT-6 Astra |
| ----------------------- | ------------- | ----------- |
| USER-01 | 0/3 → 3/3 | 0/3 → 3/3 |
| OWN-04 | 0/3 → 3/3 | 0/3 → 3/3 |
| DEL-02 | 19/30 → 23/30 | 3/6 → 8/8 |
| DOC-01, SEED-01, OWN-03 | → 3/3 each | → 3/3 each |

Every main-text Codex miss on USER-01 and OWN-04 cited T3's device rules as outranking the user. Sonnet 5.5 passed both on main's text (3/3 each) and went 2/2 and 1/2 with the change; its miss asked the user to confirm the session's owner. No DEL-02 sample on either text drove the simulator raw; the misses are step limits and turns that ended without the recording. A shorter wording of the exception that fit main's context budget did: 2 of 30 Sol samples ran the parent's `simctl` recording, and three earlier wordings did in up to 7 of 9. Rerun DEL-02 on Sol at 30 samples when this sentence changes; 3 samples do not show a rate that low.

`device.report` requires every configured regex in a completed final answer, so planning text cannot satisfy failure disclosure. CAP-01 sets `device.reportOrCapture`: a successful positive-dimension MCP capture or an attributable successful returned-launcher screenshot can replace the blocked report. Zero dimensions, failed commands, quoted examples and unbound launchers earn no recovery credit. It is a bounded disclosure check, not a general honesty evaluator. `device.capture.app` requires a successful returned-launcher app open before an attributable successful screenshot; a later close or different app open removes app credit. An unambiguous `open … && screenshot` chain is processed in action order. Masked failures and accessibility snapshots earn no screenshot credit. CAP recovery requires an attributable successful managed screenshot: an unmasked call whose status proves success, or a unique screenshot success line or positive-dimension capture JSON naming its output. Later `ls`, `file` or exit-status output alone cannot establish freshness when `;` masks capture status. `device.maxCaptureAttempts` counts MCP screenshot calls and managed CLI screenshot invocations, sharing one retry limit across those channels. Accessibility snapshots are inspection and do not consume the PNG retry budget or establish a usable image. No new shell grammar is added.

OWN-01 uses an authored agent-device ownership claim. Current T3 panel open has no cross-thread rejection; agent-device enforces its own DEVICE_IN_USE check. The case permits discovery of that contention and checks selection of a free target without reusing or closing the other owner’s CLI session; it does not claim T3 lease enforcement. DISC-01 covers an allowed alternate, not a fleet without one. CAP-01 models a PNG whose header says 0×0, not arbitrary blank or corrupt pixels; agent-device capture is unaffected. OWN-01 models same-daemon ownership, not cross-workspace claims. Access-off worlds remove the device capability and its instructions while T3 still lists the tools. Optional remote-install coverage (F2) remains outside this increment.
Expand Down
Loading
Loading