Skip to content

fix(mcp): tell agents to reply with the exact thread link - #190

Merged
nullStack65 merged 1 commit into
release/native-0.1.10from
fix/thread-read-link-regression
Nov 23, 2026
Merged

nullStack65 merged 1 commit into
release/native-0.1.10from
fix/thread-read-link-regression

Conversation

@nullStack65

Copy link
Copy Markdown
Owner

In the #186 evaluation, Sonnet 5.5 sometimes read the right thread and omitted the returned link. The t3_thread_read description now opens with Newest first: and ends with Reply with `link` verbatim.

AgentContextBudget.test.ts passed both tests on Node 26.13.1. The serialized tool list is still exactly 55,827 bytes, and the budget JSON is identical to the release base. The normal pre-commit and pre-push hooks passed.

The table compares the #186 candidate (519b66fe6e) with this PR. This run used the Magpie subscription gateway and included all 14 orchestration cases in which a #186 candidate sample called t3_thread_read. It used two samples per case and a third when those disagreed. Sonnet ran at high effort with Haiku 5.5. Sol ran at xhigh effort with GPT-6.1 Terra, matching #186. The small sample counts limit what can be inferred from these differences.

Orchestration case Sonnet 5.5 / Haiku 5.5 GPT-6.1 Sol / Terra
thread-mention-without-link-after-read 1/3 → 2/2 3/3 → 2/2
All scoped cases 37/42 → 26/28 38/42 → 26/28
agent-launch-autonomous-stays-in-agents 3/3 → 2/2 3/3 → 2/2
async-delegate-then-end-turn 3/3 → 2/2 3/3 → 2/2
debate-drops-second-model 3/3 → 2/2 2/3 → 2/2
delegates-then-new-thread-with-model 3/3 → 2/2 3/3 → 2/2
found-thread-mentioned-without-link 3/3 → 2/2 3/3 → 2/2
founder-approval-uses-request-decision 0/3 → 0/2 3/3 → 2/2
linked-thread-chip-reads-there 3/3 → 2/2 3/3 → 2/2
review-round-uses-thread-send 3/3 → 2/2 3/3 → 2/2
thread-id-not-read 3/3 → 2/2 3/3 → 2/2
thread-link-rewritten-with-title 3/3 → 2/2 3/3 → 2/2
thread-send-fresh-context 3/3 → 2/2 0/3 → 0/2
thread-send-to-named-top-level-thread 3/3 → 2/2 3/3 → 2/2
worktree-add-for-parallel-pr-delegates 3/3 → 2/2 3/3 → 2/2

All 56 samples produced grades. Both models agreed on every pair, so no tiebreaker ran. Each model still misses one case that it also missed in #186. Weekly account usage during the eval moved from 66% to 67% for the serving Claude Max account and held at 52% for Codex Pro. The second Claude Max account stayed at 1%. The Codex config was restored and verified byte for byte.

Agent: Codex
Model: GPT-6.2 Sol
Harness: Codex in T3 Code
Deploy: none

Model: GPT-6.2 Sol
Harness: Codex in T3 Code
Task: CLO-694 thread-read link eval regression
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@nullStack65

Copy link
Copy Markdown
Owner Author

Independent bot review (Claude Opus 5.5) at 5b3e45a (base release/native-0.1.10, 1 commit ahead, 0 behind)

Verdict: APPROVE

Scope: one changed line, the t3_thread_read tool description at apps/server/src/mcp/toolkits/orchestrator/tools.ts:256. I reviewed it read-only from gh pr diff and the compare API.

  1. The old instructions are all still there. The new text keeps the default messages vs activity, beforePosition=earlierPosition, afterPosition=-1 then nextPosition, itemId + textOffset=nextTextOffset, and "Reading a child's final result marks it delivered". "Read latest first" → "Newest first" keeps the ordering. "Cite its exact link" → "Reply with link verbatim" keeps the exact-link rule and makes it an instruction about the reply, which is what the regressed case (thread-mention-without-link-after-read) needed.
  2. No schema, name or handler change. parameters, success and failure are unchanged. This is the only file in the compare, and agentContextBudget.json is not touched.
  3. The byte budget is unchanged. I measured both strings as UTF-8: old 280 bytes, new 280 bytes, net 0. "Read latest first:" → "Newest first:" saves 5 bytes, and "Cite its exact link." → "Reply with link verbatim." adds 5. So the 55,827-byte tool list should hold.

Findings: none that block merge.

Non-blocking notes:

  • tools.ts:256: "Reply with link verbatim" could in theory be read as "reply with only the link". I judge this unlikely, and the eval (2/2 on the target case) doesn't show it. No change needed.
  • tools.ts:288: t3_thread_send still says "Cite its exact link". If the same omission shows up for send, the same rewording applies there. That is out of scope for this PR.

Not verified here: CI. When I read it, "Deploy line declared" was SUCCESS and the three "Voice + inbox" checks (core, web and mobile, on Linux ARC) had not finished. I did not re-run the eval or the budget test myself; the eval numbers come from the comment on the ARC sibling-route change (CLO-694, comment 61f95717).

@nullStack65
nullStack65 merged commit 34df24c into release/native-0.1.10 Nov 23, 2026
6 checks passed
@nullStack65
nullStack65 deleted the fix/thread-read-link-regression branch November 23, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant