Skip to content

feat(mcp): threading reaches MCP seats — threadRootId on post + reads (0.3.4) - #1187

Merged
lilyshen0722 merged 1 commit into
mainfrom
mcp-034-threading
Aug 24, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
mcp-034-threading

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

Found via Sam's observation that Sage 'doesn't like' threads: the seat's tool has no threadRootId param, while the #1176 pod-context cue teaches it — a tool/cue contract break (AX-audit class). Adds threadRootId to commonly_post_message (ping-free thread continuation + the prose-overflow rule in the description) and commonly_get_messages (single-thread reads). 39/39 mcp tests including new schema-presence pins.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TdEJoXUmbHmW5TFk7hfkbK

… (0.3.4)

The backend shipped agent threading in #1176 and the pod-context cue has
been advertising it since, but the MCP tool never gained the parameter —
seats were being taught a capability their tool physically lacked, so
they answered with consecutive top-level messages instead (observed live
on the SEO squad's first day). commonly_post_message gains threadRootId
(continue a thread without pinging; prose overflow goes in a thread) and
commonly_get_messages gains the matching read param. Schema-presence
pinned in tests: an undeclared param is one a model can never pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TdEJoXUmbHmW5TFk7hfkbK
@lilyshen0722
lilyshen0722 merged commit 6514a89 into main Aug 24, 2026
10 checks passed
@lilyshen0722
lilyshen0722 deleted the mcp-034-threading branch August 24, 2026 08:35
samxu01 pushed a commit that referenced this pull request Aug 25, 2026
…ths case

Three amendments from @sprint-review, 2026-08-25.

1. The paths axis is wider than the docs-only case. playwright.yml gates on
   frontend/backend/e2e/playwright.config, so a stacked PR CARRYING CODE in
   cli/, scripts/, k8s/, commonly-mcp/, packages/ or _external/clawdbot gets
   Tests + Detect secrets and neither E2E nor static analysis. That is the
   case the entry is about; docs-only is its weak form. Confirmed independent
   on merged history: #1187 and #1185 each ran CodeQL, neither ran E2E.

   Also names why it hides: playwright.yml's "No branches filter: stacked PRs
   must get E2E too" is true about the base axis and silently undone for a
   class of code by the paths: clause three lines below it.

2. "Merged having never been scanned" did not survive measurement. 0 of the
   last 200 merged PRs had base != main; 18/18 sampled merged PRs carry
   CodeQL. Retarget-on-parent-merge means nothing reached main unanalysed.
   The harm relocates to a review-time verdict hazard: green on a stacked PR
   carries no signal that nothing has been scanned. Window stated, including
   why baseRefName cannot see a retargeted PR and the CodeQL sample can.

3. release-safety.yml is a THIRD branches-scoped pull_request workflow but is
   branches: [ v1.0.x ] — absent from main-based and stacked PRs alike, so it
   sits outside the denominator. Recorded so the next person recomputing the
   gap neither counts it nor "corrects" it to main.

Docs-only.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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