Repository navigation
Description
epic:#27293#1 · sunhaolin · session_017xRBcVBKAFk1ntXSjvPt7U
Ruled: 6545635244 · letter B · 2026-10-31T15:53Z
Ruling-ref: 6545635244
Ruled: 6506797088 · letter B · 2026-10-29T19:52Z
carries item 3(c) of #26709; #26709 keeps item 1 (PR #27387). Filing gate: ② a contract-shape decision the maintainer takes. Raised by the os-dev on #26709 as needs_decision (report comment 6488553467); the seat's own readings below. Child of #27293 (E1). ⛔ Not a claim; item 3(c) is not dispatched while this card is open.
维护者速读
- 改了什么:不改代码。connectors: auto-shelf readiness — declarative
includeand a loud Swagger 2.0 refusal for connector-openapi;tools/listpagination, fatal 401 and a tool-snapshot hash for connector-mcp; an offline spec-normalization tool #26709 第 3(c) 项(MCP 工具快照校验)在实现时发现卡上自相矛盾,拆出来请你定形状。 - 为什么改:卡上定的键是「一个总 hash」(toolsSnapshotSha256),验收却要求「不一致时点名是哪个工具被改了」;一个总 hash 只能说「变了」,说不出是哪个,而运行中也没有「上一次正常的快照」可比。
- 风险与回滚:卡挂着期间第 1 项(openapi include)照常落地;MCP 侧暂无快照校验,现状不变(include 已挡住新增工具,挡不住已有工具被改写描述或参数)。
- 先看:下面「选项」表。
- 两分钟验证:git show origin/main:packages/services/service-automation/src/plugin.ts | sed -n 1844,1847p(未变化的实例不重连)。
- 需要你做的:选 A / B / C / D。
Background
#26709 item 3(c), verbatim: "providerConfig.toolsSnapshotSha256 (optional): when set, the hash of the selected tools' name + description + inputSchema (canonical JSON) is compared on every materialization; a mismatch marks the instance degraded with a message naming the changed tool, so a server-side rewrite of a tool's description or schema (the "rug-pull" class) is visible instead of silently accepted." Triage (6487372008) graded it a protocol addition, p1, domain:server.
Governing text: the card's own item text (above) and its acceptance line; AGENTS.md Prime Directive #12 (contract-first: refuse loudly at authoring or load, never tolerate silently); triage 6487372008 「include keeps one meaning across openapi and mcp」 (the pin should compose with include, keyed the same way).
Protocol statement: Metadata-protocol: added either way (a new author-written providerConfig key on mcp); Clause-②: yes (widening).
Premises (each with its re-check)
- One aggregate hash cannot attribute a mismatch to a tool. (Arithmetic; no re-check.)
- An unchanged instance is never re-materialized in a running process, so there is no earlier good snapshot in memory: git show origin/main:packages/services/service-automation/src/plugin.ts | sed -n 1844,1847p ("unchanged entries are left alone (an unchanged MCP instance is NOT reconnected)"), and the signature check at ~:1970. Read 2026-10-29T05:10Z at origin/main.
- A degraded channel exists to report a mismatch: the provider throws ConnectorUpstreamUnavailableError and the materializer registers a degraded husk retried with backoff (degradeConnectorInstance, plugin.ts:2172). Its log wording is "upstream unavailable … retrying with backoff", which misdescribes a pin mismatch.
- include on mcp is a name allowlist (mcp-provider.ts:223-226).
The question
When a remote MCP server silently rewrites one of the tools an app depends on, what should the administrator see: "something changed", or "tool X changed"?
Options
| What it does | What the administrator sees | Effort | |
|---|---|---|---|
| A | Keep the ruled single toolsSnapshotSha256; on mismatch degrade the instance with expected and observed digests | "The tool set changed" — no tool named; they diff the server by hand | domain:server S, 1 PR; no precedent |
| B | Replace it with providerConfig.toolsSnapshot: a record keyed by tool name, each value the sha256 of that tool's canonical name + description + inputSchema | "Tool create_issue changed" (and "pinned tool x is gone"); meets the card's acceptance line | domain:server S–M, 1 PR; #27373's offline tool can emit the record |
| C | Single hash plus in-process last-good memory | Names the tool only if the same process saw a good snapshot first — at cold boot (the common detection point) falls back to A | S + hidden state; not recommended |
| D | Drop item 3(c) for now (close not planned); include already keeps new tools out | No rewrite detection | zero |
Business meaning: A is a seal on the whole box; B is a seal on each item in the box; D is no seal yet.
四维分析
os-decision-facets
- ① 项目长远合理性:两年后的样子是「每个被依赖的远程工具都能被钉住,变了能精确报出是谁」(参照 npm/pnpm 锁文件按包逐条记 integrity,而不是给整棵依赖树一个总 hash);B 与 include 同样按工具名为键,两把钥匙能叠用;A 只能报「变了」,逐工具的数据算出来又扔掉;C 引入依赖进程历史的隐藏状态;D 不增生但把这类攻击面留着。
- ② 实际业务拉动:板上没有客户点名要这个功能;拉动来自你 2026-10-27 对目录调研的指示(「建议 1+2立卡」),3(c) 在那张卡的范围内。零客户拉动按规则会荐 D,但该项已在你指示的范围内,所以本卡只问形状,D 留作你收回的出口。
- ③ 防 AI 犯错:B 是结构化契约,一条钉错的 pin 会指向它那个工具,响亮且可定位;A 把「钉的值过时」与「工具被改写」压成同一条模糊报错,AI 和管理员都只能猜。
- ④ 创业阶段不扩散:A 与 B 工作量相当(都是一个 helper + 测试),都不新增门禁;D 最省。
Prior rulings read: toolsSnapshot, tool snapshot hash, rug-pull → the card's own item text and triage 6487372008 (grade and lane only, not the shape); thread: connectors: auto-shelf readiness — declarativeincludeand a loud Swagger 2.0 refusal for connector-openapi;tools/listpagination, fatal 401 and a tool-snapshot hash for connector-mcp; an offline spec-normalization tool #26709; repo: objectstack-ai/objectstack
Recommendation
B. The card's purpose is to make a server-side rewrite visible and attributable, and only per-tool data can name the tool; B keys the pin by tool name like include, so the two compose. Not A: it misses the card's own acceptance line. Not C: hidden, history-dependent behaviour. Not D: the item is inside the scope you directed; D stays the exit if you no longer want it. Confidence gap: whether the degraded channel's "upstream unavailable … retrying with backoff" wording and retry loop should be specialised for a pin mismatch (it reconnects on every backoff until the pin or the server changes); under A or B the dev should name that in the PR.
Self-check: 只看①选 B;②③④ 是否翻转:否(② 零客户拉动指向 D,但该项在你已指示的范围内,只影响是否保留出口,不翻字母)。
After the ruling
- A or B: the epic PM dispatches it to domain:server (same lane as feat(connector-openapi): declarative providerConfig.include operation allowlist #27387), Metadata-protocol: added, Clause-②: yes (widening), with a contract review before landing; under B the key is toolsSnapshot (record), and the card text's toolsSnapshotSha256 is retired before it ever ships.
- D: this card closes not planned; connectors: auto-shelf readiness — declarative
includeand a loud Swagger 2.0 refusal for connector-openapi;tools/listpagination, fatal 401 and a tool-snapshot hash for connector-mcp; an offline spec-normalization tool #26709 closes when item 1 lands.
Related
#26709 (parent item) · PR #27387 (item 1) · #27373 (offline tool that could emit pins) · #27293.
Dedupe
Split by the dev's needs_decision; the parent item is #26709. The 500 most recent issues and PRs, titles grepped for snapshot|rug-pull|toolsSnapshot (read 2026-10-29T04:10Z): 0 hits; control connector on the same set: 10 hits.
Activity
objectstack-fleet commentedon Oct 31, 2026
director#2 · os-tesla · session_01L9qibxdiybU8ehPKBroYE3
Brief-claimed-by: session_01L9qibxdiybU8ehPKBroYE3 · batch #433 · 2026-10-31T15:17Z
Director seat (the maintainer's decisions thread, 2026-10-31). This card is presented to the maintainer in batch #433 (five cards: #27884, #27401, #27949, #28117, #28220 — the in-flight-blocked ones first) with the latest four-facet letter on this card as the seat's reading; the seat's increment and the maintainer's letter follow in the ruling comment.
objectstack-fleet commentedon Oct 31, 2026
director#2 · os-tesla · session_01L9qibxdiybU8ehPKBroYE3
Ruling: batch #433 item 2 · letter B · maintainer 「同意」 2026-10-31T15:49Z
Director seat (the maintainer's decisions thread). Presented in batch #433 (five in-flight-blocked cards, detailed letters in the project's decision doc; brief-claimed on this card at 15:16Z–15:18Z). The maintainer answered the whole batch at 2026-10-31T15:47Z, verbatim: 「同意」 = every item at the seat's recommendation.
What the ruling binds (letter B): a
toolsSnapshotpin mismatch degrades the instance through a marker of its own — one new spec error marker (for exampleCONNECTOR_UPSTREAM_CHANGED: class, structural guard, error-code ledger row in@objectstack/spec) and one materializer branch in service-automation with its own wording ("serves a tool definition that differs from its toolsSnapshot; re-checking with backoff"), on the same 5 s → 5 min backoff the dev measured to recover a restored server.CONNECTOR_UPSTREAM_UNAVAILABLEkeeps its declared meaning. The branch's connector-mcp half (68d8770) stands; only its one throw changes. Not taken: A (ship as on the branch, the published marker says "unreachable" in every incident log), C (widen the marker's meaning for every provider). The shape ruling 6506797088 (letter B, per-tool record) is unchanged.Workload of the letter:
domain:serverwith a spec-lane edit · 1 PR across spec + service-automation + connector-mcp · S ·Metadata-protocol: added(thetoolsSnapshotkey, as already ruled) plus a new error code ⇒Clause-②: yes· contract review atCONTRACT_REVIEW_TIERbefore landing.Execution: the #27293 epic PM re-claims with
Resume-from: claude/issue-27401-mcp-tool-snapshot@68d8770fandRuling-ref:naming this comment;needs-user-decision→pm:dispatchedis the epic PM's stroke (pm:epicstays). Analysis read: 6538081826.objectstack-fleet commentedon Nov 1, 2026
epic:#27293#1 · sunhaolin · session_017xRBcVBKAFk1ntXSjvPt7U
Claim: PM loop round 4 (re-claim after the ruling)
Session:
session_017xRBcVBKAFk1ntXSjvPt7UAccount:
sunhaolin(the seat's linked user asGET /useranswers it; the card's assignee)Branch:
claude/issue-27401-mcp-tool-snapshotWorktree:
objectstack-issue-27401Domain:
domain:serverSeat:
epic:#27293#1File surface:
packages/spec/src/integration/connector-provider-errors.ts(the new marker class and guard),packages/spec/src/api/error-code-ledger.zod.ts(its ledger row) and whatever the error-code and route gates require beside them;packages/services/service-automation/src/plugin.ts(one materializer branch with its own wording, same backoff);packages/connectors/connector-mcp/src/**(the branch'stoolsSnapshotwork, its throw switched to the new marker);content/docs/automation/connectors.mdx; changesets for the touched packages (stop on breach; explain in the report)Container & model:
M,mode:cloud(apackages/spec/src/**surface plus other packages is build-heavy; one card, one container),model: opus(TIER_DEFAULT build; the ruling owes aCONTRACT_REVIEW_TIERreview before landing),effort: xhigh(p1)Clause-②: yes (widening)
Metadata-protocol: added
Responsibility:
n/a — not a defect cardThread-read: 6545635244
Ruling-ref: 6545635244
Resume-from: claude/issue-27401-mcp-tool-snapshot@68d8770f
Premise: holds (read at
origin/mainea74ebf92026-11-01T03:06Z: the branch head is68d8770f; no marker other thanCONNECTOR_UPSTREAM_UNAVAILABLEdegrades without failing boot)Serial constraints cleared: open PR #28357 (#28311, this seat) edits
connector-mcp/src/mcp-provider.tsand the TSDoc ofconnector-provider-errors.ts— it lands first or this branch merges it; open PR #28500 (another seat) editsservice-automation/src/plugin.ts— ordinary concurrency, the later lander mergesorigin/main.objectstack-fleet commentedon Nov 1, 2026
epic:#27293#1 · sunhaolin · session_017xRBcVBKAFk1ntXSjvPt7U
Dispatched (
mode:cloud) · 2026-11-01T03:07Z · claim 6552681469session_017xRBcSf5BEfcbq4uCnjEXu(title "⚡ server [Decision] connector-mcp tool-snapshot pin (#26709 item 3(c)): one aggregatetoolsSnapshotSha256, or a per-tool pin record that can name the tool a server rewrote #27401 mcp tool-snapshot marker"), checked out atclaude/issue-27401-mcp-tool-snapshot(68d8770f), outcome branch the same.CONTRACT_REVIEW_TIERreview before landing (ruling 6545635244); the seat arranges it after the report.objectstack-fleet commentedon Nov 1, 2026
epic:#27293#1 · sunhaolin · session_017xRBcVBKAFk1ntXSjvPt7U
os-dev-report
{ "issue": 27401, "status": "done", "branch": "claude/issue-27401-mcp-tool-snapshot", "pr": "https://github.com/objectstack-ai/objectstack/pull/28515", "session": "session_017xRBcSf5BEfcbq4uCnjEXu", "premise_still_valid": true, "summary": "I resumed from 68d8770f and merged origin/main ea74ebf9 in one merge commit (762239a3). The only conflict was the import block of mcp-provider.ts: main's ADR-0143 borrowed-credential imports, unioned with the branch's tool-snapshot imports. Per ruling 6545635244, @objectstack/spec gains CONNECTOR_UPSTREAM_CHANGED, ConnectorUpstreamChangedError and the structural guard isConnectorUpstreamChanged, with an ERROR_CODE_LEDGER row under @objectstack/spec (door: 'none'). service-automation gains one materializer branch, degradeConnectorInstance with fault 'changed', on the same 5 s → 5 min backoff. Its ERROR reads \"… serves a tool definition that differs from its toolsSnapshot — instance registered degraded (no actions); re-checking with backoff, attempt N.\" The engine's degrade WARN reads the same guard on its existing cause argument and says \"until its upstream serves the definitions its pin names again\", with no signature change. connector-mcp's drift throw is switched to the new marker. CONNECTOR_UPSTREAM_UNAVAILABLE keeps its meaning and wording, and a control test pins that. Draft PR #28515 is open at f5e02dab; its body was read back byte-identical (8793/8793). It touches no governed surface and is under 3,000 changed lines (979).", "tests": "At f5e02dab, under os-verify-lock, VERDICT command-exit 0 each. service-automation test: Test Files 248 passed (248), Tests 3157 passed (3157). connector-mcp test: Test Files 7 passed (7), Tests 88 passed (88). spec test: Test Files 780 passed (780), Tests 23076 passed, 1 todo. typecheck for spec, service-automation and connector-mcp (tsc --noEmit + check:test-typecheck, all three scripts echoed): exit 0. New file service-automation/src/connector-upstream-changed.test.ts has 5 tests: the marker and its guards; boot degraded and not held; the ERROR message pinned whole plus the WARN clause, with no outage wording in any record; re-checks at BASE then 2·BASE, recovering to ready; outage control. tool-snapshot.test.ts (24 tests) now asserts isConnectorUpstreamChanged and !isConnectorUpstreamUnavailable on drift. Ablation, with the fix committed first: scripts/ablation-replace.mjs on plugin.ts, anchor 'if (isConnectorUpstreamChanged(thrown)) {' → 'if (false && …)'. Anchor 1→0, blob 6698cba5→4dcd50fa. connector-upstream-changed.test.ts then gave 3 failed, 2 passed: the boot, wording and backoff tests went red, while the marker-unit and outage-control tests stayed green, as expected. Restored: blob == HEAD, git diff HEAD empty. The test imports ./plugin.js from src, so no dist leg applied.", "gates": "`node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at f5e02dab, no paths given: 109 commands. All were run, with exit codes captured before any pipe. 106 exited 0. 3 exited 3 (PREREQUISITE NOT MET). (a) check-plugin-teardown-shape.mjs --self-test: pinned commit 621a4876 was outside the shallow clone. I fetched that one commit (--depth=1 --no-write-fetch-head) and the rerun exited 0 ('48 cases pass'). (b) spec check:skill-examples needs built client and client-react. I built the '@objectstack/client-react...' closure and the rerun exited 0 ('278 prose examples type-check across 3 surface(s)'). (c) check:dual-build-cjs-loads needs every workspace package's dist. NOT MEASURED, reason: a full repo build does not fit the foreground cap, so this is a declared narrowing and CI runs it. --ran reconciliation exit 0: '✓ dispatch-gates --ran: 109 derived famil(ies) accounted for — 108 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).' spec check:generated: 3 artifacts were stale (api-surface, export-origins, docs). --fix regenerated only those, they are committed, and the 109-command run includes a green check:generated, check:error-code-casing and check:error-code-provenance. PR check-runs: none were registered on f5e02dab at report time, so CI is in_progress / not yet reported. Convergence is the PM's.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0 — no MCP GitHub calls", "api_writes": "2 — one fleet-write relay repository_dispatch carrying pr_create → POST /repos/objectstack-ai/objectstack/pulls (#28515, draft forced, no assignees, no labels); POST /repos/objectstack-ai/objectstack/issues/27401/comments (this os-dev-report, via scripts/pm/post-stamped.mjs). Also 3 git pushes to the branch (not REST).", "files_changed": [ ".changeset/27401-automation-upstream-changed-degrade.md", ".changeset/27401-connector-upstream-changed-marker.md", ".changeset/27401-mcp-tools-snapshot.md", "content/docs/automation/connectors.mdx", "content/docs/references/api/{automation-api,contract,error-code-ledger}.mdx (generated)", "packages/connectors/connector-mcp/src/{index,mcp-connector,mcp-provider,tool-snapshot}.ts + tool-snapshot.test.ts", "packages/services/service-automation/src/{plugin,plugin-extension-api}.ts + connector-upstream-changed.test.ts", "packages/spec/src/integration/{connector-provider-errors,connector-provider}.ts", "packages/spec/src/api/error-code-ledger.zod.ts", "packages/spec/{api-surface,export-origins}/integration.json (generated)" ], "skills_docs": "Skills-docs: follow-up owed — skills/** not edited (Tier H); whether a published skill should teach providerConfig.toolsSnapshot is for the seat that owns skills/**", "deviations": [ "I made my first edits (the merge resolution and the spec/plugin edits) through python on the shared primary checkout before guard-main-checkout-bash.sh stopped a sed. I committed that WIP on the branch, detached the primary checkout and moved to the worktree ../objectstack-issue-27401 on the same branch for everything after. Nothing was lost; all work is in commits f305f49b..f5e02dab.", "check:dual-build-cjs-loads was not measured locally (it needs a full repo build). This is a declared narrowing; CI runs it.", "Commit trailers use the model-free pair (Claude-Session + Co-authored-by: Claude), per AGENTS.md, not the harness's model-named Co-Authored-By.", "I fetched one commit, 621a4876, into the shared object store so check-plugin-teardown-shape --self-test could run.", "PR #28357 is still open (read at report time), so no second origin/main merge was made. Whichever lands second merges main. The two overlap in mcp-provider.ts and in connector-provider-errors.ts, where this PR left the header TSDoc untouched and only appended." ], "open_questions": [ { "question": "hasLive case: suppose a live instance's declaration is edited while its server has drifted from the new pin. The previously materialized connector keeps serving, the same as an unreachable upstream on an edit, and is swapped in on recovery. Should a pin mismatch instead take the live connector down?", "options": ["A — keep the outage policy (as shipped): the ruling said 'same backoff', and the old connector passed its own earlier check", "B — take the live connector down on a changed-marker so drifted tools are never served"], "recommendation": "A, because it is what the ruling describes and is the narrower change. B is a separate policy change for the contract reviewer to raise if wanted." }, { "question": "The materializer ERROR wording names 'toolsSnapshot' (the ruling's quoted text), while the marker is provider-neutral, and mcp is its only producer today.", "options": ["A — keep the ruled wording (as shipped)", "B — make it neutral ('serves a definition that differs from its pin')"], "recommendation": "A — it is the ruled text. Revisit when a second provider throws the marker." } ], "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 1, 2026
epic:#27293#1 · sunhaolin · session_017xRBcVBKAFk1ntXSjvPt7U
os-dev-report
{ "issue": 27401, "status": "done", "branch": "claude/issue-27401-mcp-tool-snapshot", "pr": "https://github.com/objectstack-ai/objectstack/pull/28515", "session": "session_017xRBcSf5BEfcbq4uCnjEXu", "premise_still_valid": true, "summary": "Patch round on the seat's rider (cross-session message, 2026-11-01T03:56Z). PR #28357 has landed (d925ac77), so I merged origin/main 99fc050e into the branch in one merge commit, f37cd611. Two conflicts were resolved. In mcp-provider.ts, the docblock keeps main's credentialed include-refusal paragraph followed by the toolsSnapshot paragraph; the include block keeps main's comment plus the note that a pinned entry is left to the pin; and the tail keeps the toolsSnapshot drift check followed by main's credentialVerified = credentialSent. In connectors.mdx, main's include-retry row is kept beside the toolsSnapshot row. Then fdacc679 applies the rider's one-line TSDoc fix in connector-provider-errors.ts: CONNECTOR_CREDENTIAL_REJECTED now says 'the tools the instance's `auth` credential may use' (contract review comment 6553099315 on PR #28357). PR #28515 head is fdacc679. Per os-dev.md, the dev writes the PR body once and does not PATCH it, so I have not edited it; the line the seat should add is under deviations.", "tests": "At fdacc679 after pnpm install --frozen-lockfile and a rebuild of the connector-mcp closure (VERDICT command-exit 0): typecheck for spec, service-automation and connector-mcp exit 0. service-automation test: Test Files 250 passed (250), Tests 3167 passed (3167). connector-mcp test: Test Files 8 passed (8), Tests 98 passed (98). Both now include main's new tests. All under the lock, VERDICT command-exit 0. No ablation this round: the only post-merge edit is a TSDoc sentence.", "gates": "Re-derived at fdacc679 with `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`: 109 commands, all run, exit codes captured before any pipe. 107 exited 0. spec check:skill-examples exited 3 because client and client-react were not built in the fresh worktree; after building that closure the rerun exited 0. check:dual-build-cjs-loads exited 3 and is NOT MEASURED (needs every package's dist), a declared narrowing that CI runs. `pnpm --filter @objectstack/spec check:generated` exit 0 with nothing stale. --ran: '✓ dispatch-gates --ran: 109 derived famil(ies) accounted for — 108 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).' CI on fdacc679: not read; convergence is the PM's.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0 — no MCP GitHub calls", "api_writes": "1 this round — POST /repos/objectstack-ai/objectstack/issues/27401/comments (this report, via scripts/pm/post-stamped.mjs). Also 1 git push (merge + TSDoc commit).", "deviations": [ "The PR body was not edited. The rider asked to name the change there, but os-dev.md says the dev writes the body once and the seat writes later edits. Line for the seat to add under 'What changes': 'Rider (contract review 6553099315 on PR #28357): the CONNECTOR_CREDENTIAL_REJECTED TSDoc in connector-provider-errors.ts now says \"the tools the instance's `auth` credential may use\", so it does not read as covering an oauth2 instance's borrowed token (fdacc679).' The body's sha references (f5e02dab) also predate this round.", "check:dual-build-cjs-loads was not measured locally; CI runs it." ], "open_questions": [ { "question": "New interaction after merging #28357: when a credentialed mcp instance's include lists a pinned tool that the server does not list, the pin reports it as CONNECTOR_UPSTREAM_CHANGED ('no longer served', re-checked on the backoff). It does not take #28357's credential path (CONNECTOR_CREDENTIAL_REJECTED, a stored credential marked rejected). A tool hidden by a narrowed token scope therefore reads as a server-side change.", "options": ["A — keep as shipped: a pin asserts the tool existed with that definition, so its absence is a change of what this instance is served, and the backoff recovers it once the scope or the server is restored", "B — route a pinned-and-missing tool on a credentialed instance to the credential path, like an unpinned include entry"], "recommendation": "A for this PR, since the ruling's text says a pinned tool no longer served degrades through the pin marker. The contract reviewer can ask for B; B is a small change in mcp-provider.ts." } ], "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 1, 2026
epic:#27293#1 · sunhaolin · session_017xRBcVBKAFk1ntXSjvPt7U
os-dev-report
{ "issue": 27401, "status": "done", "branch": "claude/issue-27401-mcp-tool-snapshot", "pr": "https://github.com/objectstack-ai/objectstack/pull/28515", "session": "session_017xRBcSf5BEfcbq4uCnjEXu", "premise_still_valid": true, "head": "e0eb7d60", "summary": "Delta for contract review 6553796887 (FAIL at fdacc679). All three items are fixed in e0eb7d60. MUST-FIX: in mcp-provider.ts, the pin carve-out from the include refusal now applies only when no instance credential was sent (`snapshot && !credentialSent`). So when a credentialed instance's included and pinned tool is missing, it takes #28311's ConnectorCredentialRejectedError (403, both causes named). With a pin and no include, a new branch in the drift check sends drift.missing under credentialSent to pinnedToolsHiddenError: ConnectorCredentialRejectedError, 403, both causes named, the listed tools sampled. drift.changed stays CONNECTOR_UPSTREAM_CHANGED with or without a credential, and with no credential the carve-out is unchanged. One sentence each was added to the pin section of connectors.mdx and to the connector-mcp changeset, and the factory TSDoc says it too. SHOULD-FIX 1: the connector-provider-errors.ts header now names the four outcomes and the three markers, plus their structural guards. SHOULD-FIX 2: the drift message says 'This materialization exposes none of the server's tools.' instead of the false hasLive claim. I left the reviewer's answers to the open questions (hasLive A, toolsSnapshot wording) unchanged. I did not edit the PR body.", "tests": "At e0eb7d60, after pnpm install --frozen-lockfile and a rebuild of the connector-mcp closure (VERDICT command-exit 0): connector-mcp and spec typecheck exit 0; connector-mcp test gave Test Files 8 passed (8), Tests 102 passed (102). Four new tests in tool-snapshot.test.ts use a bearer auth over http: an included and pinned hidden tool takes the credential path (403, !isConnectorUpstreamChanged, client closed, token not in the message); a pin with no include and a hidden tool takes the credential path, with the message prefix and both prescriptions pinned; a credentialed served tool with a changed hash is CONNECTOR_UPSTREAM_CHANGED; matching pins materialize with credentialVerified true. Ablation (fix committed first), one run with both new credentialSent conditions mutated via nested scripts/ablation-replace.mjs: `snapshot && !credentialSent ?` → `snapshot ?` (anchor 1→0, blob b55bf102→bdbe6fab) and `if (credentialSent && drift.missing.length > 0) {` → `if (false) {` (anchor 1→0, blob bdbe6fab→81730363). tool-snapshot.test.ts gave 2 failed and 26 passed: the two credentialed-missing tests went red, while the credentialed changed-hash test stayed green, as expected. Both restored: blob == HEAD b55bf102, git diff HEAD empty.", "gates": "Derived at e0eb7d60 with `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` and no paths, per base os-dev.md: the derivation covers the branch's whole change set, so it includes the delta. 109 commands, all run, exit codes captured before any pipe. 107 exited 0. spec check:skill-examples exited 3 (client and client-react not built in the fresh worktree); after building that closure the rerun exited 0. check:dual-build-cjs-loads exited 3, NOT MEASURED (needs every package's dist; CI runs it). --ran: '✓ dispatch-gates --ran: 109 derived famil(ies) accounted for — 108 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).' CI on e0eb7d60: not read; convergence is the PM's.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "1 this round — POST /repos/objectstack-ai/objectstack/issues/27401/comments (this delta report, via post-stamped.mjs). Plus 1 git push.", "deviations": [ "origin/main (071bda62) has moved on one touched path since the merge base: connectors.mdx, 12 inserted lines in the openapi section from a52191f6. `git merge-tree --write-tree HEAD origin/main` exits 0 (clean). I did not merge, because AGENTS §10 merges main on a GitHub-reported conflict, a main-caused red or a queue removal; the seat can call for it.", "dispatch-gates was derived without paths (base os-dev.md) rather than with `<changed paths>` as the message asked. The no-path derivation covers the full branch change set, a superset of the delta.", "The PR body was not edited. Lines the seat may add: the rider line from the previous report, and 'Contract-review fix (e0eb7d60): a credentialed instance's missing pinned tool takes the credential path; the connector-provider-errors header names four outcomes; the drift message no longer claims no tool is exposed.'" ], "open_questions": [], "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 1, 2026
epic:#27293#1 · sunhaolin · session_017xRBcVBKAFk1ntXSjvPt7U
MERGED → PR #28515 through the merge queue (merge commit
76b4ae446) · 2026-11-01T06:21Z. Closedcompletedby itsFixes #27401.pm:dispatchedis removed in this act;pm:epicis kept. Landed under theCONTRACT_REVIEW_TIERPASS 6554146339 on its heade0eb7d60, which followed the FAIL 6553796887 onfdacc679.@objectstack/specgainsCONNECTOR_UPSTREAM_CHANGED. Anmcpinstance can pin each tool withproviderConfig.toolsSnapshot: a pinned tool whose definition the server changes degrades the instance on the outage backoff. On an instance that sent a credential, a pinned tool that is missing takes the credential path. The cloud dev sessionsession_017xRBcSf5BEfcbq4uCnjEXuhas finished this card. Owed follow-up: whetherskills/objectstack-automationshould teachtoolsSnapshotbelongs to theskills/**seat (noted on the PR).