Skip to content

fix(lint): resolve every tool the MCP door registers for a skill offered over MCP - #35458

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-3oddtv
Nov 19, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-3oddtv

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

repo:objectstack#1 · os-sales · session_01L6bhgW87F9aD1KvgBXFiWr

Fixes #35036

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 改了什么:ai-skill-tool-unresolved 现在把 MCP 门注册的全部 19 个工具都算作可解析(仅对会经 MCP 提供的技能);新增 spec 导出 MCP_DOOR_TOOL_NAMES,@objectstack/mcp 有测试把它与门实际注册的集合钉成相等。
  • 为什么改:绑定 run_action、aggregate_records 等门工具的技能在 os lint --strict 下被误报为"虚构工具";实测是 8 个(卡写 7 个,漏了 delete_records)。
  • 风险与回滚:只放宽一条建议级 lint 规则并新增一个常量导出,运行时行为不变;回滚即 revert 本 PR。
  • 先看:packages/lint/src/validate-ai-tool-references.ts(新的 MCP-only 判语分支)、packages/spec/src/system/constants/platform-tool-names.ts(新常量与维护契约)、packages/mcp/src/mcp-file-tools.test.ts(门注册集合的一致性钉子)。
  • 两分钟验证:pnpm --filter @objectstack/mcp exec vitest run src/mcp-file-tools.test.ts -t 'skill offered over MCP may bind' 预期 2 个用例通过。
  • 需要你做的:无,席位落地。

What changes

Per-tool judgment (the card's "should a skill bind it?"), measured on a built bridge carrying every optional member under a grant naming every scope: wireBridgeTools registers 19 tools; the lint universe at 3819afec resolved 11 of them for a skill offered over MCP and left 8 unresolved, not 7: aggregate_records, delete_record, delete_records, list_actions, run_action, resume_run, list_remote_tables, import_object. Every one is a callable tool the door serves, and a skill offered over MCP is offered exactly where its bound tools are listed (registerSkillPrompts), so none is fictional there and all eight resolve. The two delete tools keep their confirmation gate and the federation pair its metadata:write grant; none of that is the lint rule's business. For run_action the portable binding is action_NAME (the door serves that entry through run_action, the in-product agents call the action tool itself); that is guidance in os explain, not a finding, because binding run_action is not wrong over MCP.

  • @objectstack/spec/system: new export MCP_DOOR_TOOL_NAMES, the exact set wireBridgeTools registers on such a bridge (19 names, sorted). It overlaps PLATFORM_PROVIDED_TOOL_NAMES on 9 names (create_record, describe_object, get_record, list_datasets, list_objects, query_dataset, query_records, update_record, validate_expression) and joins no PLATFORM_TOOLS_BY_PACKAGE group, so each group stays the exact set one cloud package registers. MCP_FILE_TOOL_NAMES is unchanged and is a part of it.
  • @objectstack/lint: for a skill offered over MCP (mcpPrompt !== false, the standing seat ruling, unchanged) the rule resolves every name in MCP_DOOR_TOOL_NAMES. On a mcpPrompt: false skill a name (or trailing-wildcard family) only the door serves is still reported, now with its own verdict (N5 from comment 6965710210): Tool "run_action" resolves only for a skill offered over MCP, and this skill sets mcpPrompt: false, so the in-product agents it runs in have no such tool, and the fix line offers dropping mcpPrompt: false or removing the name.
  • os explain ai-skill-tool-unresolved names MCP_DOOR_TOOL_NAMES as the third source, the MCP-only verdict, and the action_NAME-over-run_action guidance.
  • @objectstack/mcp: a conformance pin beside the file-pair pin in mcp-file-tools.test.ts holds wireBridgeTools equal to MCP_DOOR_TOOL_NAMES and checks the lint verdicts in both mcpPrompt states, with a control bridge that registers fewer.
  • Prose only: the skill.zod.ts TSDoc on tools and mcpPrompt (no .describe() or shape change), the reference-integrity-suite.ts comment, the rule header. Generated: api-surface/system.json, export-origins/system.json.
  • Changeset: @objectstack/spec and @objectstack/lint patch, both declaration lines in it. ADR-0087: no entry, since nothing an author can write is widened or narrowed (skill.tools[] already accepts any string; only the advisory changes).

Branch: this harness lets a session push only to claude/project-thread-3oddtv, so the head is not named claude/issue-35036-*; the card is declared by the Fixes line above (Duplicate Fix Guard).

Tests

Package tests and type checks (head aee1072)
  • pnpm --filter @objectstack/lint test: Test Files 220 passed (220), Tests 9284 passed (9284)
  • pnpm --filter @objectstack/spec test: Test Files 856 passed (856), Tests 27369 passed, 1 todo
  • pnpm --filter @objectstack/mcp test: Test Files 77 passed (77), Tests 1406 passed (1406)
  • typecheck for lint, spec and mcp, each including check:test-typecheck (the test layers, the new mcp pin among them): all exit 0
Ablations (each committed first, mutated through scripts/ablation-replace.mjs, restored to the HEAD blob)
  1. Lint universe back to the file pair only (validate-ai-tool-references.ts): 2 failed, the two lint: ai-skill-tool-unresolved still flags seven tools the MCP door registers (aggregate_records, delete_record, list_actions, run_action, resume_run, list_remote_tables, import_object) — decide per tool and close the family (after #34948) #35036 cases. Restored, blob 71261d42 equals HEAD.
  2. MCP-only arm forced off (mcpOnly = false): 4 failed (the lint: ai-skill-tool-unresolved warns on read_file and create_upload_link, which the MCP door serves — PLATFORM_PROVIDED_TOOL_NAMES lacks them #34948 mcpPrompt: false case, the lint: ai-skill-tool-unresolved still flags seven tools the MCP door registers (aggregate_records, delete_record, list_actions, run_action, resume_run, list_remote_tables, import_object) — decide per tool and close the family (after #34948) #35036 verdict case, and both one-line coverage controls). Restored, blob equals HEAD.
  3. MCP_DOOR_TOOL_NAMES entry resume_run renamed in spec source, spec rebuilt, ablation-dist-preflight found the marker in 2 dist files: both new mcp pins failed. Restore leg: rebuilt, marker absent from all 608 dist files, working tree clean, both pins pass.

Acceptance notes

Verification

Derived gate families (dispatch-gates --commands at aee1072)

93 derived; 92 run with exit 0; 1 NOT MEASURED: pnpm check:dual-build-cjs-loads exits 3 (PREREQUISITE NOT MET: it reads every package's dist, and this worktree built only the affected closure); CI's Lint and Repo Gates runs it. check-plugin-teardown-shape --self-test first exited 3 on the shallow clone (its pinned fixture commit was absent) and exited 0 after fetching that commit. dispatch-gates --ran: 93 accounted for, 92 run, 1 NOT-MEASURED, 0 UNRUN. pnpm --filter @objectstack/spec check:generated: exit 0 after regenerating the two stale artifacts. overlap-check: clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgW87F9aD1KvgBXFiWr

ai-skill-tool-unresolved read only the door's file pair, so a skill bound to
run_action, aggregate_records or another served door tool failed os lint
--strict. The rule now reads the new spec export MCP_DOOR_TOOL_NAMES, held
equal to wireBridgeTools by @objectstack/mcp, and on a mcpPrompt: false skill
says a door-only name resolves over MCP only.

Claude-Session: https://claude.ai/code/session_01L6bhgW87F9aD1KvgBXFiWr
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation protocol:ai protocol:system tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 19, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgW87F9aD1KvgBXFiWr
os-dev-report

{
  "issue": 35036,
  "status": "done",
  "branch": "claude/project-thread-3oddtv",
  "pr": "https://github.com/objectstack-ai/objectstack/pull/35458",
  "session": "session_01L6bhgW87F9aD1KvgBXFiWr",
  "premise_still_valid": true,
  "summary": "Premise holds and is wider than the card: on a bridge carrying every optional member under every scope, wireBridgeTools registers 19 tools and the lint universe at 3819afec left 8 unresolved for an MCP-offered skill (the card's seven plus delete_records). Per-tool judgment: every one is a callable tool the door serves and a skill offered over MCP is offered only where they are listed, so all eight resolve; for run_action the portable binding action_NAME is os-explain guidance, not a finding. New spec export MCP_DOOR_TOOL_NAMES (19, sorted, overlaps the cloud registry on 9 names, joins no PLATFORM_TOOLS_BY_PACKAGE group; MCP_FILE_TOOL_NAMES unchanged and a subset), held equal to wireBridgeTools by a pin in packages/mcp/src/mcp-file-tools.test.ts; lint resolves it when mcpPrompt !== false (seat ruling unchanged), and on a mcpPrompt: false skill a door-only name or family gets its own verdict saying it resolves over MCP only (N5). Comment 6965597916 holds on main (f5b2e2d6); the #34167 case title is updated once more to 'the MCP door tools aside'.",
  "tests": "head aee1072e: pnpm --filter @objectstack/lint test: Test Files 220 passed (220), Tests 9284 passed; pnpm --filter @objectstack/spec test: Test Files 856 passed (856), Tests 27369 passed, 1 todo; pnpm --filter @objectstack/mcp test: Test Files 77 passed (77), Tests 1406 passed; typecheck lint/spec/mcp incl. check:test-typecheck: VERDICT command-exit 0. Ablations via scripts/ablation-replace.mjs after commit: (1) lint universe back to the file pair: 2 failed, restored blob 71261d42 == HEAD; (2) mcpOnly forced false: 4 failed, restored == HEAD; (3) MCP_DOOR_TOOL_NAMES resume_run renamed, spec rebuilt, ablation-dist-preflight marker in 2 dist files, both new mcp pins failed; restore leg rebuilt, marker absent from 608 dist files, tree clean, pins pass.",
  "gates": "dispatch-gates --commands at aee1072e: 93 derived, 92 :: exit 0, 1 NOT MEASURED (pnpm check:dual-build-cjs-loads :: exit 3, PREREQUISITE NOT MET, needs every package's dist; CI Lint & Repo Gates runs it). check-plugin-teardown-shape --self-test first exit 3 on the shallow clone, exit 0 after fetching its pinned fixture commit. --ran reconciliation: exit 0, 93 accounted, 92 run, 1 NOT-MEASURED, 0 UNRUN. spec check:generated :: exit 0 after --fix (api-surface, export-origins). overlap-check :: exit 0 (clean vs main and #35391/#35378). PR check-runs at report time: in_progress (Check Changeset, Governed Surface Queue Guard, Lint family, Type Check family, Spec property liveness); Test Core / Build Core not yet listed.",
  "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
  "mcp_calls": "0",
  "api_writes": "3 relay writes: pr_create (POST pulls + assignees leg POST issues/35458/assignees, one dispatch), this os-dev-report comment via post-stamped (POST issues/35458/comments)",
  "open_questions": [
    { "question": "skills/objectstack-ai/SKILL.md line 84 (published, governed) still names MCP_FILE_TOOL_NAMES as the fourth ladder source; after this PR it is incomplete. Who carries the wording?", "options": ["A a skills-only follow-up PR (Tier S, skills wording) naming MCP_DOOR_TOOL_NAMES", "B add it to this PR, which makes PR 35458 a governed-surface PR"], "recommendation": "A, because the claim's file surface excludes skills/** and B would change this PR's landing tier" }
  ],
  "security_findings": "none",
  "out_of_scope_findings": ["carrier: repo:objectstack#1 seat · noted, not filed: skills/objectstack-ai/SKILL.md:84 and the pending .changeset/35068-gated-action-field-lock.md sentence describe the ladder's fourth source as the file pair only (doc drift caused by this widening; see open_questions)"]
}

@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/lint, @objectstack/spec, touching 23 documentable anchor(s). ⚠️ 2 changed file(s) yielded no anchor (packages/spec/api-surface/system.json, packages/spec/export-origins/system.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

38 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 9fea31685408b8ae1c678f696cdada1d3dfb6d51.

⛔ 15 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 2 changed file(s) yielded no anchor (packages/spec/api-surface/system.json, packages/spec/export-origins/system.json) — pages documenting those are invisible to this run
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 9fea31685408b8ae1c678f696cdada1d3dfb6d51 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 7a941ac38b9694a7e081f8b0d6f6d49036ec6fac — the merge of head aee1072eda8120f49221145094127d1beb89198c into base 9fea31685408b8ae1c678f696cdada1d3dfb6d51, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 7a941ac38b9694a7e081f8b0d6f6d49036ec6fac && git checkout 7a941ac38b9694a7e081f8b0d6f6d49036ec6fac
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 9fea31685408b8ae1c678f696cdada1d3dfb6d51 aee1072eda8120f49221145094127d1beb89198c && git checkout -B drift-repro 9fea31685408b8ae1c678f696cdada1d3dfb6d51 && git merge --no-ff aee1072eda8120f49221145094127d1beb89198c

node scripts/docs-audit/affected-docs.mjs --json 9fea31685408b8ae1c678f696cdada1d3dfb6d51

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 9fea31685408b8ae1c678f696cdada1d3dfb6d51 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgW87F9aD1KvgBXFiWr

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: aee1072eda8120f49221145094127d1beb89198c
Local-runs: none
Scope: packages/spec/src/system/constants/platform-tool-names.ts, packages/spec/src/ai/skill.zod.ts + packages/lint/src/validate-ai-tool-references.ts, packages/lint/src/rule-explanations.ts, packages/lint/src/reference-integrity-suite.ts, packages/mcp/src/mcp-file-tools.test.ts
Security-touching: yes

Inputs read: card #35036 (body and its three comments), PR #35458 (body, file list, net diff against main at this head), the check-runs on this head. Cited code read in the head tree, not reviewed: packages/mcp/src/mcp-http-tools.ts (wireBridgeTools and the five register*Tools functions), packages/mcp/src/mcp-server-runtime.ts, packages/mcp/src/skill-prompts.ts. Security-touching: yes because the new MCP_DOOR_TOOL_NAMES docblock states which grant and which confirmation two tool groups sit behind; no hits path is under skills/**, so no security label follows from this line.

Check-runs at the time of reading: 17 success, 10 skipped, 19 in progress (the ten Test Core shards, Build Core, Build UI Deps, Live E2E UI, three Type Check jobs, three Lint jobs), none failed. This record judges the contract; it does not stand in for the runs still in progress.

① Derived judgments

  • Accept set of ai-skill-tool-unresolved, skill offered over MCP (mcpPrompt not false): eight more names resolve (aggregate_records, delete_record, delete_records, list_actions, run_action, resume_run, list_remote_tables, import_object). Right. Counted at the registration sites in mcp-http-tools.ts: 10 object tools, 2 file, 3 action, 2 federation, 2 dataset = 19, the 19 names in the list; 9 of them are already in PLATFORM_PROVIDED_TOOL_NAMES, the 2 file names resolved since fix(lint): resolve the MCP door's file tools read_file and create_upload_link in ai-skill-tool-unresolved #35034, which leaves 8. The card said seven; delete_records is the eighth and is registered (DELETE_RECORDS_TOOL).
  • Accept set, skill kept out of MCP (mcpPrompt: false): unchanged. The same names are reported as before; only the message and hint differ (N5 from comment 6965710210). Right.
  • Nothing that resolved before is reported: right. withMcpDoorTools is a superset of the old withMcpFileTools (MCP_FILE_TOOL_NAMES is inside the new list, pinned in the spec test), and shared is untouched.
  • Wildcards: a trailing-wildcard entry now resolves over MCP when a door name starts with its prefix (run_*, resume_*, import_*), and gets the MCP-only verdict on a mcpPrompt: false skill. Right, and consistent with bindingEntryServed in skill-prompts.ts, which serves a wildcard by any served name it matches.
  • Consequence the diff implies and does not hide: a skill with mcpPrompt absent runs in the in-product agents as well as over MCP, and now lints clean while binding a name the in-product turn drops (eight more such names than before). This is the standing seat ruling carried in offeredOverMcp (mcpPrompt !== false is the whole condition), applied to the wider set the card asked for; the spec prose says an in-product turn runs without those tools. Right under the ruling; not re-opened here.
  • Public surface: one new export, MCP_DOOR_TOOL_NAMES from @objectstack/spec/system, with api-surface/system.json and export-origins/system.json regenerated to match. MCP_FILE_TOOL_NAMES, PLATFORM_TOOLS_BY_PACKAGE and PLATFORM_PROVIDED_TOOL_NAMES are unchanged, so the MCP bridge's annotation read of the cloud registry answers as before. Right.
  • skill.zod.ts: TSDoc on tools and mcpPrompt only. No .describe() string, no shape, no accepted value changes, so no generated schema output moves. Metadata-protocol: none is right.

② Semver level

.changeset/35036-mcp-door-tool-names.md declares @objectstack/spec patch and @objectstack/lint patch, with Clause-②: yes (widening) and Metadata-protocol: none, both line-initial and matching the PR body. Correct under AGENTS.md: the kind is none (nothing a metadata author can write changes), so the level is patch, and a widening non-protocol change ships patch. This matches how #35034 shipped MCP_FILE_TOOL_NAMES. @objectstack/mcp changes in one test file only and publishes nothing, so it needs no entry. No ADR-0087 marker is owed: nothing is removed, renamed or narrowed.

Clause-②: yes (widening). Agreed.

③ Boundary flags

  • Open question, skills/objectstack-ai/SKILL.md line 84 still names only MCP_FILE_TOOL_NAMES as the fourth source: answered. After this PR that line is incomplete but not false: the file pair still resolves for a skill MCP can offer, and the skill teaches nothing that this PR makes wrong. Leaving a governed skills/** path out of a domain:spec card is the right call. Follow-up card skills(objectstack-ai): name the MCP door tool set (MCP_DOOR_TOOL_NAMES) as the fourth tool source once #35036 lands #35460 (domain:skills, after fix(lint): resolve every tool the MCP door registers for a skill offered over MCP #35458 merges) carries it. Not a blocker.
  • Flag, packages/lint/src/reference-integrity-suite.ts touched outside the claimed file surface: accepted. It is one comment line that names the constant the rule reads; left as it was it would cite MCP_FILE_TOOL_NAMES for a rule that no longer imports it. No code in that file changes. I put the file in Scope and read the line: it agrees with the validator.
  • Flag, .changeset/35068-gated-action-field-lock.md also names only the file pair: accepted as left. That changeset belongs to another change and describes the SKILL.md sentence as that change wrote it, which is still what SKILL.md says. It is corrected, if at all, with skills(objectstack-ai): name the MCP door tool set (MCP_DOOR_TOOL_NAMES) as the fourth tool source once #35036 lands #35460, not here.
  • Card said seven tools, PR closes eight: accepted; see ①.
  • Branch name is not claude/issue-35036-*: the Fixes #35036 line declares the card and the PR-body guards check-run is green.
  • SQL push-down: not applicable. The diff adds no query, no id materialisation and no in-app join.

④ Design judgment

No must-fix, no should-fix.

packages/spec/src/system/constants/platform-tool-names.ts — holds. Each sentence of the new docblock checked against the head tree: wireBridgeTools is the one composition both transports call (bridgeDataTools and the per-request server in mcp-server-runtime.ts); the 19 names equal the registration sites; the federation pair registers only under a grant that names metadata:write; the delete pair is gated on a confirmed call; the 9 shared names are in the cloud registry and the list joins no PLATFORM_TOOLS_BY_PACKAGE group; an action_ binding is served over MCP through run_action (TOOL_FAMILY_DOORS in skill-prompts.ts). First consumer is the lint rule, which reads the list exactly as described. Tried to break it with a door name inside a materialised family (none; pinned), a name collision that would change a cloud group (none), and a pattern that flips verdicts for the cloud registry (delete_* and aggregate_* already resolve from cloud names, so no existing verdict moves).

packages/spec/src/ai/skill.zod.ts — holds. Both paragraphs agree with the rule and with projectSkillPrompt (mcpPrompt: false is never projected). The tools field's .describe() on main already says an MCP server offers the skill only when it serves every tool named, which is the premise the widening rests on.

packages/lint/src/validate-ai-tool-references.ts — agrees with the contract. mcpOnly is computed only for a ref that failed the skill's own universe, so it can only re-word an existing finding, never add or remove one. It cannot collide with the unexposed-action arm: that arm needs an action_ name and no door name starts with action_. Near-miss suggestions on a mcpPrompt: false skill are still drawn from shared, so the rule does not suggest a door-only name it would then report.

packages/lint/src/rule-explanations.ts — agrees. Four sources in the order the rule reads them; the MCP-only verdict and the action_NAME over run_action guidance both match the code.

packages/lint/src/reference-integrity-suite.ts — the one comment line agrees with the rule.

packages/mcp/src/mcp-file-tools.test.ts (conformance pin) — holds the list equal to what wireBridgeTools returns, sorted, and runs the lint rule in both mcpPrompt states, with a control bridge that registers fewer. It does what the card's last sentence asks for every tool behind a member or scope the pin already carries.

Nits (none affects correctness or the accept set):

  • N1 (nit) — the pin's reach is narrower than the docblock's sentence "a tool added to or renamed at the door fails there until this list follows it". everyMemberBridge() and everyScope are written out by hand, so a future tool behind a NEW optional bridge member or a NEW scope registers on no bridge the pin builds, and the pin stays green while the list is short. That is how the last several door tools arrived (aggregate, resumeRun, the dataset members, the file members). The failure direction is the safe one (an advisory warning on a real tool, the bug this card fixes), and fix(lint): resolve the MCP door's file tools read_file and create_upload_link in ai-skill-tool-unresolved #35034 accepted the same construction for the file pair, so this is not a should-fix. Follow-up worth a card: build the pin's bridge so that every member answers as a function (a catch-all), or have the pin fail when wireBridgeTools reads a member the fixture does not carry.
  • N2 (nit) — "every tool the MCP door registers" is wider than the list. The HTTP door also registers the host's authoring family (registerAuthoringTools) and the tools bridged from the AI registry; those are cloud-registry names and resolve from PLATFORM_PROVIDED_TOOL_NAMES, so no verdict is wrong. The docblock's next clause (wireBridgeTools) says what is meant; the short form in skill.zod.ts, the rule header and os explain would read more exactly as "every tool the door registers natively".
  • N3 (nit) — skill.zod.ts: the re-wrapped tools paragraph leaves one over-long line ("... ADR-0011). The first of those is the OPTIONAL"). Cosmetic.
  • N4 (nit) — the MCP-only hint offers dropping mcpPrompt: false or removing the name; for run_action the portable fix (action_NAME) is only in os explain. Acceptable under the one-remedy-line rule the file states ([maintainer] validate: the field-no-consumers warning is one 856-character line, printed by validate, build and dev alike — one-line verdict + rule: id + a pointer to the full reasoning (os explain, which today takes only schema names) #22161).

Implemented-by: claude/project-thread-3oddtv
Reviewed-by: session_01L6bhgW87F9aD1KvgBXFiWr

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgW87F9aD1KvgBXFiWr

The brief the card thread handed its isolated contract reviewer for the record above (contract-review.md: posted beside the record for the seat to read before adopting it). The reviewer read the head check-runs while 19 were still in progress; none had failed.

Contract review brief — PR #35458 @ aee1072eda8120f49221145094127d1beb89198c (card #35036)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35036: its body and EVERY comment (rulings and earlier records included)
· PR #35458: its body, its file list, and the net diff against main at aee1072eda8120f49221145094127d1beb89198c
· the check-runs on aee1072eda8120f49221145094127d1beb89198c: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: packages/spec/src/system/constants/platform-tool-names.ts, packages/spec/src/ai/skill.zod.ts;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

Security — if a hits path is under skills/** or ui/skills/** and the change teaches security, auth or permission
behaviour the path name doesn't show, the record says so and the seat adopting the record adds the security label.
The record says so on its Security-touching: line, and the arm lands on no alone: write no ONLY when no changed
hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/f5fb6d05-b87a-51b2-a14e-fa364bfd7434/scratchpad/pr-35458/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 用户能看到什么变化:技能绑定 run_action、aggregate_records 等 MCP 门工具时,os lint --strict 不再误报“虚构工具”;对写了 mcpPrompt: false 的技能,警告改为说明“这个名字只在 MCP 上可用”。
  • 为什么做:门实际注册 19 个工具,lint 只认其中 11 个,误报了 8 个。
  • 出错会怎样:只影响一条建议级 lint 规则的判定和措辞,运行时不变。
  • 要你做什么:不需要你做任何事,区域审完自己落地。

席位核对 — ACCEPT (L1-a) · repo:objectstack#1 · head aee1072eda8120f49221145094127d1beb89198c · 2026-11-19T10:49Z

  • 形态 — draft, base main, 3 commits, 11 files, +333/−65. Merge-base 3819afec. check-governed-merges.mjs --pr 35458: NOT governed, 398 lines ≤ 3000. Body: attribution pair, signature, Fixes #35036; no closing keyword sits beside another open card (#35460, #35391, #35378 are not next to one). Fixes is right: the card asks to decide per door tool, then list them in a pinned spec set beside MCP_FILE_TOOL_NAMES or re-word the verdict, and pin the door's registry equal to the lint universe. The PR does both arms (all eight resolve over MCP; mcpPrompt: false gets its own verdict) and adds the equality pin.
  • Code read — withMcpDoorTools ⊇ old withMcpFileTools (file pair inside the new list, pinned), shared untouched ⇒ nothing that resolved before is reported. mcpOnly is computed only after resolves(ref, universe) failed, so it re-words an existing finding and never adds or drops one; no door name starts with action_, so it cannot shadow the unexposed-action arm (pinned: no door name inside a materialised family). TSDoc facts checked in the head tree: wireBridgeTools is called by both transports (mcp-server-runtime.ts:2185, :2881); federation pair gated on MCP_OAUTH_SCOPE_METADATA_WRITE (mcp-http-tools.ts:3266); delete pair behind AI_ACTION_CONFIRMATION_MEMBER; validate_expression is a door meta tool (:1728).
  • Pins — mcp-file-tools.test.ts: wireBridgeTools on an every-member bridge under every scope sort()-equals MCP_DOOR_TOOL_NAMES, with a fewer-members control; lint verdicts read in both mcpPrompt states off the live registration. Lint: the eight resolve, a run_actions look-alike control still reports, resume_* resolves; on mcpPrompt: false exact message/hint strings, family verdict, and the fictional-name control. Coverage controls of both one-line censuses extended to the new arm. Ablations 2 / 4 / 2 red, each restored to the HEAD blob (os-dev-report 7006127433), the third through a spec dist rebuild with the marker checked absent after restore.
  • Changeset — @objectstack/spec + @objectstack/lint patch (both published), Clause-②: yes (widening), Metadata-protocol: none, read sentence by sentence: the five door tool groups; "the lint rule knew only the two file tools" and the eight names; the bridge/grant wording of the new export; "resolves every name in it" for mcpPrompt not false; overlap with PLATFORM_PROVIDED_TOOL_NAMES, no PLATFORM_TOOLS_BY_PACKAGE group joined, MCP_FILE_TOOL_NAMES unchanged; the mcpPrompt: false verdict and fix line verbatim against the code; the os explain additions — all match. "a tool added to or renamed at the door fails there" holds for tools behind a member or scope the pin carries (see 接受的偏差).
  • 门禁 — 69 check-runs on this head: 58 success, 11 skipped, 0 failure; Lint & Repo Gates and TypeScript Type Check success.
  • L2 — CONTRACT_REVIEW_TIER PASS 7006268623 on this exact head, nits only (N1–N4), brief 7006289659. Its Scope: covers the reviewFace hits I derived from the PR file list (skill.zod.ts, platform-tool-names.ts) plus the implementing files. Adopting the record (brief and independence pair) is the seat's step; L1 does not replace it.
  • 接受的偏差 — (1) N1: the docblock/changeset "a tool added to or renamed at the door fails there" does not cover a future tool behind a NEW bridge member or scope; safe-direction drift, same construction fix(lint): resolve the MCP door's file tools read_file and create_upload_link in ai-skill-tool-unresolved #35034 shipped, dropped by the seat's ruling — accepted, not a false statement about any tool that exists today. (2) N2–N4 prose nits left by the seat's ruling. (3) Two touches beyond the claim's file list: the reference-integrity-suite.ts comment and the mcpPrompt TSDoc in skill.zod.ts; both are sentences this PR would otherwise leave citing the old source, named in the body, no code — the "made false this round ⇒ fix" duty, not an adjacent-defect widening. (4) Branch is not claude/issue-35036-* (harness-assigned); the PR-body guard is green.
  • 范围外去向 — skills/objectstack-ai/SKILL.md:84 (still names only MCP_FILE_TOOL_NAMES) → skills(objectstack-ai): name the MCP door tool set (MCP_DOOR_TOOL_NAMES) as the fourth tool source once #35036 lands #35460, open, filed by the seat. Nothing security-shaped found in this read; the record's Security-touching: yes is about the docblock naming grant and confirmation gates, which match the code.
  • 落地条款 — not governed: b1-A lands this head after this ACCEPT. A new push needs a fresh L1 only if it changes more than a main merge.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgW87F9aD1KvgBXFiWr

Landing — PR #35458 · head aee1072eda8120f49221145094127d1beb89198c · 2026-11-19T10:51Z

Probe Reading
Check-runs on head 69: 58 success, 11 skipped, 0 failure; mergeable_state clean
K (PRBASE 9fea3168 from Test Core's Affected-set diff base .. origin/main 6d833b50) 7 (< 15); no incoming path touches this diff's files, skills/** or locales/en.ts
git merge-tree head vs origin/main clean (os-regen paths api-surface/system.json, export-origins/system.json untouched on main since PRBASE)
check-governed-merges.mjs --pr 35458 NOT governed, 0 of 11 paths; 398 lines
Records on this head L1 ACCEPT 7006938582 (L1-a); L2 CONTRACT_REVIEW_TIER PASS 7006268623, brief 7006289659

Status: ready + auto-merge through the queue; #35036 closes on merge (Fixes). Out of scope: filed #35460. N1 dropped — safe-side drift, same construction accepted on #35034; N2–N4 prose nits left.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

L2 adoption · 2026-11-19T10:52Z · the seat checked the card thread's isolated CONTRACT_REVIEW_TIER record 7006268623 (brief 7006289659) and adopts it for head aee1072e: Head-sha equals the PR head; Scope: lists the two reviewFace hits (packages/spec/src/system/constants/platform-tool-names.ts, packages/spec/src/ai/skill.zod.ts) plus the lint and mcp files that implement them, so it is not narrower than hits; the brief was drafted from record-recognisers.mjs --brief-template and fed the diff, not the drafter's conclusions. Verdict PASS, no must-fix / should-fix. N1 dropped (safe-direction drift, same as the accepted #35034 shape); N2–N4 prose nits ride the next push. ACCEPT 7006938582 stands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:ai protocol:system size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants