Repository navigation
fix(lint): resolve every tool the MCP door registers for a skill offered over MCP - #35458
Conversation
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>
…hares Claude-Session: https://claude.ai/code/session_01L6bhgW87F9aD1KvgBXFiWr Co-authored-by: Claude <noreply@anthropic.com>
…eset Claude-Session: https://claude.ai/code/session_01L6bhgW87F9aD1KvgBXFiWr Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgW87F9aD1KvgBXFiWr {
"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)"]
} |
📓 Docs Drift CheckThis PR changes 2 package(s): 38 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 15 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # 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
|
|
repo:objectstack#1 · os-sales · session_01L6bhgW87F9aD1KvgBXFiWr Contract reviewServed-tier: Inputs read: card #35036 (body and its three comments), PR #35458 (body, file list, net diff against Check-runs at the time of reading: 17 success, 10 skipped, 19 in progress (the ten ① Derived judgments
② Semver level
Clause-②: yes (widening). Agreed. ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Nits (none affects correctness or the accept set):
Implemented-by: VERDICT: PASS |
|
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 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgW87F9aD1KvgBXFiWr Landing — PR #35458 · head
|
| 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.
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob L2 adoption · 2026-11-19T10:52Z · the seat checked the card thread's isolated |
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)。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:
wireBridgeToolsregisters 19 tools; the lint universe at3819afecresolved 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 itsmetadata:writegrant; none of that is the lint rule's business. Forrun_actionthe portable binding isaction_NAME(the door serves that entry throughrun_action, the in-product agents call the action tool itself); that is guidance inos explain, not a finding, because bindingrun_actionis not wrong over MCP.@objectstack/spec/system: new exportMCP_DOOR_TOOL_NAMES, the exact setwireBridgeToolsregisters on such a bridge (19 names, sorted). It overlapsPLATFORM_PROVIDED_TOOL_NAMESon 9 names (create_record,describe_object,get_record,list_datasets,list_objects,query_dataset,query_records,update_record,validate_expression) and joins noPLATFORM_TOOLS_BY_PACKAGEgroup, so each group stays the exact set one cloud package registers.MCP_FILE_TOOL_NAMESis 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 inMCP_DOOR_TOOL_NAMES. On amcpPrompt: falseskill 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 droppingmcpPrompt: falseor removing the name.os explain ai-skill-tool-unresolvednamesMCP_DOOR_TOOL_NAMESas the third source, the MCP-only verdict, and theaction_NAME-over-run_actionguidance.@objectstack/mcp: a conformance pin beside the file-pair pin inmcp-file-tools.test.tsholdswireBridgeToolsequal toMCP_DOOR_TOOL_NAMESand checks the lint verdicts in bothmcpPromptstates, with a control bridge that registers fewer.skill.zod.tsTSDoc ontoolsandmcpPrompt(no.describe()or shape change), thereference-integrity-suite.tscomment, the rule header. Generated:api-surface/system.json,export-origins/system.json.@objectstack/specand@objectstack/lintpatch, 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 namedclaude/issue-35036-*; the card is declared by theFixesline 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 todopnpm --filter @objectstack/mcp test: Test Files 77 passed (77), Tests 1406 passed (1406)typecheckfor lint, spec and mcp, each includingcheck:test-typecheck(the test layers, the new mcp pin among them): all exit 0Ablations (each committed first, mutated through scripts/ablation-replace.mjs, restored to the HEAD blob)
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.mcpOnly = false): 4 failed (the lint:ai-skill-tool-unresolvedwarns onread_fileandcreate_upload_link, which the MCP door serves — PLATFORM_PROVIDED_TOOL_NAMES lacks them #34948mcpPrompt: falsecase, 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.MCP_DOOR_TOOL_NAMESentryresume_runrenamed in spec source, spec rebuilt,ablation-dist-preflightfound 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
f5b2e2d6; this PR retitles that case once more, from "the MCP file tools aside" to "the MCP door tools aside", since the exception is now the door's whole set.skills/objectstack-ai/SKILL.md(published, governed) still namesMCP_FILE_TOOL_NAMESas the fourth ladder source; after this PR that line is incomplete. It is outside this card's file surface and a governed path, so it is left for a skills-only follow-up and named in the report. The pending.changeset/35068-gated-action-field-lock.mddescribes that same SKILL.md sentence and is left untouched.origin/mainmoved to9fea3168after the branch was cut; none of the incoming commits touches a file this PR changes, andoverlap-checkreports clean against main and the two open PRs sharingrule-explanations.ts(feat(spec): {current_iso_week} defaults a week-keyed filter to the current ISO week #35391, feat(lint): warn when a text field named like a currency, country or time zone code declares no valueDomain #35378), somainis not merged in.Verification
Derived gate families (dispatch-gates --commands at aee1072)
93 derived; 92 run with exit 0; 1 NOT MEASURED:
pnpm check:dual-build-cjs-loadsexits 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-testfirst 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