Skip to content

fix(mcp): render the /mcp/skill data loop from the published objectstack-ask skill - #34881

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-34686-skill-single-source
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-34686-skill-single-source

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #34686

This is the second half of the card: the data-loop text of GET /mcp/skill is now rendered from the published ask-data skill (skills/objectstack-ask/SKILL.md, landed by #34685 as 581c9165), and a test pins the two equal. The first half (the HTTP initialize instructions) landed as #34790 (c513d62a).

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:/mcp/skill 页面里"问数"那段流程不再手写,改为由脚本从已发布的 objectstack-ask 技能正文生成进 packages/mcp/src/ask-skill.generated.ts,页面在新小节 "Answering a business question" 下原样输出;两个数据集工具条目只留签名和返回内容一句话。
  • 为什么改:手写版已经和技能文字分叉(例如 membersWithheld 的说法、松散词要先反问、两个词各命中一个指标要都算)。卡片要求单一来源,并用测试钉住两者相等。
  • 风险与回滚:只影响带数据集工具且凭据有 data:read(或无 scope)的页面,其他宿主和凭据的页面逐字节不变。全量宿主页面从 16,623 增至 20,272 字节。回滚就是 revert 本 PR。范围外文件:turbo.json 加两行测试输入(门禁强制);修复轮 1 在 scripts/pm/dispatch-gates.data.mjs 加一行分类(修 CI 的 PM dispatch-gates 自测)。
  • 先看:packages/mcp/src/skill-md.ts(datasetToolsTaught 门与 renderAskSection 插入位置)、scripts/gen-mcp-ask-skill.mjs(截取规则:技能 H1 标题之后的全部正文)、packages/mcp/src/skill-single-source-34686.test.ts。
  • 两分钟验证:pnpm --filter @objectstack/mcp exec vitest run --maxWorkers=2 src/skill-single-source-34686.test.ts,预期 3 个测试全绿;改技能里任意一个词再跑,预期 2 个转红。
  • 需要你做的:无,席位落地。

What changes

  • Mechanism (measured, then chosen). A generated module committed in the package, held equal to the skill by a test:
    • scripts/gen-mcp-ask-skill.mjs writes packages/mcp/src/ask-skill.generated.ts (ASK_SKILL_DATA_LOOP, one string) from skills/objectstack-ask/SKILL.md. --check exits 1 when the module is stale or missing, and writes nothing.
    • Why not a read of the skill at run time: @objectstack/mcp ships only dist, README and CHANGELOG (files[]), so skills/** is not on disk in an installed package; and @objectstack/skills exports only ./package.json, so a runtime dependency on it would mean a filesystem read of another package's build output on every host. Not chosen.
    • Why not a bundler inline (an esbuild text loader importing the .md): turbo hashes @objectstack/mcp#build from the package directory plus the root scripts turbo.json lists (build.inputs is $TURBO_DEFAULT$ plus those), and skills/** is not among them. A skill-only edit would replay a cached dist carrying the old text. It would also need a tsup config change, a *.md module declaration for tsc, and a vitest loader. Not chosen.
    • A module under src/ is hashed with the package, ships in its dist (measured: the section heading and the skill's sentence "One near form is not a match either" are in dist/index.js and dist/index.cjs after pnpm --filter @objectstack/mcp build), and the pin test goes red on any difference.
  • Which part of the skill is the data loop. The skill's body after its title: every line after its one H1 (# Answering a business question over an ObjectStack environment), with blank lines at either end dropped. That is the intro paragraph and steps 1 to 6 (lift the words, decide by the matches with the step 2 table, compute, fall back, when the data cannot answer, writing the answer). The frontmatter and the title stay with the skill. The served page gives the text its own heading, ## Answering a business question (ASK_SECTION_HEADING), and copies the rest byte for byte, the skill's ## step headings included.
  • What stays served-page prose. The two entries in the page's tool list, list_datasets({ terms? }) and query_dataset({ datasetName, selection }), keep a one-sentence description of what each answer carries and point to the section. Every rule (selection, membersWithheld, fallback, data that cannot answer) now comes only from the skill.
  • Gate unchanged. datasetToolsTaught is the condition renderDatasetToolLines held inline: datasetTools === true AND (no scopes OR scopes include data:read). Both the tool entries and the section render only under it. The section is placed after every other block of the tool list (file, dataset, federation, authoring, data-only) and before ## Conventions & gotchas, so a render that does not teach the pair is byte-identical to before. The route packages/runtime/src/domains/mcp.ts is unchanged.
  • Comment fix in packages/mcp/src/mcp-server-runtime.ts: the DATASET_SELECTION_RULE doc comment pointed at DATASET_TOOL_LINES as holding "the same thing". It now points at ASK_SKILL_DATA_LOOP and states where the skill goes further. No code change there.
  • Changeset .changeset/34686-skill-single-source.md: @objectstack/mcp patch, Clause-②: no, Metadata-protocol: none.

Old served text vs new (every divergence found)

Old = DATASET_TOOL_LINES at 7752cac7 (packages/mcp/src/skill-md.ts:265-292). New = the skill, as now served.

  1. membersWithheld. Old: "some measures exist that you may not read: say so rather than saying the metric does not exist." New: "Say that it has members (measures or groupings) you may not read; the metric asked for may be among them. Do not say the metric does not exist."
  2. Row 1, one match per word. Old: "One measure match: answer with query_dataset." New: "Each word for a thing measured matches exactly one measure: compute. Two words with one measure each ("营收和赢单率") are two metrics, not a choice: compute both, with one query_dataset per dataset."
  3. Row 2, several matches. Old: "Several matches (two datasets or two members): ask the user …; do not pick." That read as asking whenever the answer held more than one match. New: "One word matches several measures, in one dataset or in two: ask …". Several matches across different words are row 1 (compute both).
  4. Loose-form row (new). Old: no match always fell back. New: "Nothing matches, and the word is a loose form of several listed measures: ask the user which one they mean … Do not pick one, and compute nothing yet", plus the paragraph defining a loose form ("revenue" against Won Revenue, Annual Revenue and Planned Revenue).
  5. "One near form is not a match either: it selects nothing" (new), on the fallback row.
  6. Dimension-only row. Old: "A dimension match alone … is not an answer: you still need a measure match, or ask." New: "That is a grouping ("by stage"), not a number. You still need a measure match; without one, ask which number is meant." Same meaning.
  7. Terms. New: pass the words "as the user wrote them and in the user's language. Do not translate or reword a term". Old said only "the business words of the question".
  8. Asking. New: "the reply is the question alone: no figure, and no tool call until the user answers"; partial: true / warning on the catalogue are explained. Old had neither.
  9. query_dataset. Old named measures, dimensions, runtimeFilter. New adds dateGranularity, order, limit, and truncated / warning handling. Provenance and description use are the same.
  10. Fallback. Old: "fall back to query_records / aggregate_records and say the answer is not from a governed metric." New (step 4): list_objects then describe_object, filter an option field by its value, use aggregate_records and never add up pages of query_records, open with one line saying it is not from a governed metric (非指标口径) naming the object and fields, and add one line naming a listed dataset on that object (ADR-0149 D3 rule 4's recommended practice; the old page did not carry it).
  11. When the data cannot answer. Old: "… Never fill the gap with an assumed value, nor draw a conclusion from one ("under a typical term, none would…"). Any figure you add comes from a tool answer; cite it." New (step 5): "Never fill the gap with an assumed value, and never draw a conclusion from one." The quoted example is gone, and "Any figure … cite it" becomes step 6's "Every figure comes from a tool answer in this conversation."
  12. Writing the answer (new, step 6): the user's language, labels rather than machine names or raw option values, the filter and time window stated in words.
  13. Intro (new): "Never skip step 1: a governed metric … outranks a number you work out yourself." The skill's line "No list_datasets among your tools: … Go to step 4" is served too. On this page it never applies, because the section renders only where list_datasets is registered. It is kept so the copy stays exact.

/mcp/skill size, bytes (UTF-8)

In-process renderSkillMarkdown with mcpUrl: 'http://localhost:3000/api/v1/mcp', no grantedScopes (what the public route passes for every caller, admin included):

Host carries Before (7752cac7) After (e8dd0048)
file tools + new-record upload links + dataset tools 16,623 20,272
file tools + dataset tools 15,943 19,592
dataset tools only 14,859 18,508
file tools + new-record upload links, no dataset tools 14,707 14,707
file tools, no dataset tools 14,027 14,027
none 12,943 12,943

The first row is the card's examples/app-crm reading. The card measured 16,625 with a five-digit port, which adds one byte to each of the URL's two occurrences. After, with grants: data:read 19,031; data:write 14,184; metadata:write 12,943 (no dataset text in the last two).

Tests

  • New packages/mcp/src/skill-single-source-34686.test.ts, 3 tests. It reads skills/objectstack-ask/SKILL.md and takes its data loop by the generator's rule. (1) ASK_SKILL_DATA_LOOP equals it. (2) The section renderSkillMarkdown serves under ASK_SECTION_HEADING equals it, for four renders: unscoped, a full host with a URL, data:read, and data:read + metadata:write with an authoring tool. (3) The gate still drops it: data:write, metadata:write, an empty grant, no datasetTools, and datasetTools: false with data:read each render no section, no step heading and no list_datasets. The failure text says to run node scripts/gen-mcp-ask-skill.mjs.
  • packages/mcp/src/mcp-dataset-tools.test.ts, two tests rewritten. "renders the rule…" asserted the old prose ('Choosing between a metric and an object query', 'nor draw a conclusion from one', 'Any figure you add comes from a tool answer; cite it.'). Those words are now the skill's, and the new file pins the whole section byte-equal to it. The two tests now assert the section heading is present, sits after **query_dataset( and before the conventions, and is absent without the pair. The third test (the data:read gate on list_datasets) is unchanged.
  • The Console mirror pin (skill-md.test.ts, renderObjectStackSkill(options) === renderSkillMarkdown(options)) and the native-surface drift guard (skill-md-surface-guard.test.ts) pass unchanged. The mirror renders no dataset text, so the Console copy (ui/apps/console/src/pages/developer/objectstack-skill.ts) needs no edit.
Test runs (head e8dd004 unless stated)
  • pnpm --filter @objectstack/mcp test (under the shared verify lock): Test Files 70 passed (70), Tests 1244 passed (1244), VERDICT command-exit 0.
  • pnpm --filter @objectstack/mcp typecheck at 29cd2d0e (the second commit touches only turbo.json and the registry): tsc --noEmit exit 0, then check:test-typecheck: OK — @objectstack/mcp's test layer compiles under packages/mcp/tsconfig.test.json; 6 file(s) / 53 error(s) / 8 pinned signature(s) held (debt unchanged), VERDICT command-exit 0.
  • node scripts/gen-mcp-ask-skill.mjs --check: packages/mcp/src/ask-skill.generated.ts is current with skills/objectstack-ask/SKILL.md., exit 0. Before the module existed, the same command printed is missing … Run: node scripts/gen-mcp-ask-skill.mjs and exited 1.
  • pnpm --filter @objectstack/mcp build: check-dts-emitted: @objectstack/mcp - 2/2 declared declaration file(s) present.
Ablation (one-shot, scripts/ablation-replace.mjs, at 29cd2d0)

One word of the skill, in the worktree only: anchor outranks a number you work out yourself was replaced by outranks a number you compute yourself. Output: anchor x1 -> x0, replace x0 -> x1, blob 482410fbd632 -> 7e726754f3fa. Then × the generated module equals the skill's data loop, × the served section equals the skill's data loop, for every grant that is taught the dataset pair, Tests 2 failed | 1 passed (3). Restore: ok restored: blob == HEAD (482410fbd632) and git diff HEAD is empty. git hash-object of the file and HEAD:skills/objectstack-ask/SKILL.md were both 482410fbd632e8e09f9e1d88017906f35d58fc4a afterwards. No dist/ is involved: the test imports the module from source and reads the skill from disk.

Outside the claimed surface

The claim's PR2 surface is packages/mcp/src/skill-md.ts, new modules and tests in packages/mcp/src/, packages/runtime/src/domains/mcp.ts (not touched), scripts/cross-package-test-inputs.mjs and .changeset/. Outside it:

  • scripts/gen-mcp-ask-skill.mjs: new, the generator. No package.json script was added. A gen: script would enter the generator ledger that git-merge-regen.mjs reconciles; the pin test already fails in CI on drift.
  • turbo.json: two lines added to @objectstack/mcp#test inputs ($TURBO_ROOT$/skills/objectstack-ask/SKILL.md, $TURBO_ROOT$/scripts/gen-mcp-ask-skill.mjs). check:cross-package-test-inputs requires every glob declared in the registry to be mirrored there. Without them it is red: turbo.json "@objectstack/mcp#test" inputs are missing the declared glob(s): $TURBO_ROOT$/skills/objectstack-ask/SKILL.md. The generator is declared because the test names it in its failure text, and the gate flagged it as named in packages/mcp/src/skill-single-source-34686.test.ts.
  • packages/mcp/src/mcp-server-runtime.ts: doc comment only, see What changes.
  • packages/mcp/src/mcp-dataset-tools.test.ts: an existing test file, see Tests.
  • scripts/pm/dispatch-gates.data.mjs: one GOVERNED_READ_FLOOR row and its doc paragraph (fix round 1, below).

Acceptance notes

  • DATASET_SELECTION_RULE vs the skill. This is the initialize rule from feat(mcp): initialize instructions carry the governed-metric selection rule and the skills install line #34790, at packages/mcp/src/mcp-server-runtime.ts:1813-1818 on this head. Not changed here. It says "Several matches: ask the user which one they mean" and "No match: fall back to query_records / aggregate_records". The skill (skills/objectstack-ask/SKILL.md:48, :51) computes two metrics when two words each match one measure, and asks before falling back when a word with no match is a loose form of several listed measures. The list_datasets tool description (packages/services/service-analytics/src/dataset-tools.ts:85-96) carries the same text as the rule, and ADR-0149 D3's amendment names service-analytics: list_datasets fills candidates with near members (name, label, synonym) on a zero-match, only from what the caller may read #34763 as the carrier for the tool descriptions' question-before-fallback branch. Changing only the instructions here would make them disagree with the tool description instead. This is left to the seat (see the report).
  • The section serves the skill's line "No list_datasets among your tools … Go to step 4" on a page that only renders where list_datasets is registered. It is inert there and kept for exactness.
  • The skill's step headings are served as ##, siblings of the page's own ## sections. They are not demoted, because a transform would make the copy no longer the skill's bytes.

Verification

  • Gates: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 84 families at 29cd2d0e and 85 at e8dd0048 (+ pnpm check:turbo-task-graph for turbo.json). All were run locally. Reconciliation --ran with exit codes: 85 derived famil(ies) accounted for — 84 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).
    • pnpm check:cross-package-test-inputs was red at 29cd2d0e (the two findings quoted above). After the turbo.json and registry commit: OK: 32 package(s) read outside themselves, all declared, and turbo.json hashes every declared glob.
    • pnpm check:ci-filter-parity and pnpm check:turbo-task-graph were re-run after that commit: both OK.
    • NOT MEASURED: check:dual-build-cjs-loads, reason: PREREQUISITE NOT MET — this gate reads built output, and some package has no dist/ (48 unbuilt packages outside this diff's closure). It runs in CI's Lint & Repo Gates.
  • node scripts/pm/check-governed-merges.mjs --branch claude/issue-34686-skill-single-source: 0 of 9 path(s) hit the register … NOT governed, 465 changed lines.
  • node scripts/pm/overlap-check.mjs on e8dd0048: origin/main: merges cleanly, VERDICT clean exit 0.
  • Lint of the changed files (pnpm exec eslint --no-inline-config on the seven code files): exit 0. The repo-wide lint is CI's.

Fix round 1

CI on e8dd0048 was red on Lint · PM dispatch-gates (and so on Lint & Repo Gates) with one self-test case: every structural read of a GOVERNED file under scripts/ is classified in GOVERNED_READ_FLOOR — unpinned: scripts/gen-mcp-ask-skill.mjs::skills/objectstack-ask/SKILL.md, 1 of 2217 case(s) failed. Reproduced locally with pnpm check:pm-dispatch-gates: the same single failure.

  • Fix (4a78d86b): one row in GOVERNED_READ_FLOOR (scripts/pm/dispatch-gates.data.mjs), { script: 'scripts/gen-mcp-ask-skill.mjs', file: 'skills/objectstack-ask/SKILL.md', declared: false }, with an "eighth row" doc paragraph. declared is false because the floor reads it off a self-test-reads line, and the generator has no self-test; it spells the skill path in its module body, the shape of the check-skill-top-level-keys.mjs row. The case each pinned row's DECLARED flag still reads off the file passes, so the flag is the live one.
  • No gate family runs the generator, so the census case every governed read in the census is DERIVED for the file it reads has no family to place it under (it passes: none underived). Nothing new was declared. A change to skills/objectstack-ask/SKILL.md alone derives 27 families (for example check:skill-docs, check:cross-package-test-inputs, check-skills-token-ratchet.mjs), and none of them is gen-mcp-ask-skill.mjs --check. What re-runs on such a change is the @objectstack/mcp test suite (Test Core), through the turbo.json input and the cross-package-test-inputs row added earlier in this PR, and its skill-single-source-34686.test.ts fails on drift and names the generator.
  • After the fix: pnpm check:pm-dispatch-gates exit 0, ✓ dispatch-gates self-test (fast tier): 2217 cases pass; 9 slow section(s) deferred.
  • check-governed-merges --branch: 0 of 10 path(s) hit the register … NOT governed, 482 changed lines. The branch merges cleanly with origin/main (fc5913e1), so it was not merged. overlap-check on 4a78d86b: VERDICT clean exit 0 (it shares dispatch-gates.data.mjs with fix(dispatch-gates): a migration-entry change derives the cli guidance test that reads every entry #34893 and feat(scenarios): skill-evals runs the published skills' eval cases on a with-skill and a no-skill arm #34841, and both merge cleanly). A first run had answered exit 3 (files of #34837 unreadable) and the re-run answered clean.
Gates for this round

The 63 families derived for scripts/pm/dispatch-gates.data.mjs were run locally on 4a78d86b: 62 exit 0, and pnpm check:i18n-coverage exit 3 (PREREQUISITE NOT MET: unbuilt dist/), so it is NOT MEASURED here. --ran over the whole branch: 115 derived, 62 run, 1 NOT-MEASURED, 52 UNRUN. The 52 unrun are derived from this PR's earlier files, which this round did not change. On e8dd0048 every check-run but the two above was success or skipped.


Generated by Claude Code

…ack-ask skill

The served page's dataset procedure was hand-written and had drifted from
skills/objectstack-ask/SKILL.md. scripts/gen-mcp-ask-skill.mjs now writes
packages/mcp/src/ask-skill.generated.ts from the skill's body, renderSkillMarkdown
serves it under "Answering a business question" behind the unchanged dataset
gate, and skill-single-source-34686.test.ts pins both equal to the skill.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
…nputs

The pin reads skills/objectstack-ask/SKILL.md and names the generator in its
failure text; check:cross-package-test-inputs requires both declared and
mirrored into the @objectstack/mcp#test turbo inputs.

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

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

7 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. ⚠️ 1 changed file(s) yielded no anchor (packages/mcp/src/mcp-server-runtime.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/mcp/src/mcp-server-runtime.ts) — 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 — 12 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 e05445e4f5c5ca2dad6aabbb9226a3dc564e55d7 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from fe932dc92d80d4d4f6efaefbb4ed28697e4ecd2b — the merge of head 1042a83e9e3edb280c82f4ae1995e2abc57bdabf into base e05445e4f5c5ca2dad6aabbb9226a3dc564e55d7, 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 fe932dc92d80d4d4f6efaefbb4ed28697e4ecd2b && git checkout fe932dc92d80d4d4f6efaefbb4ed28697e4ecd2b
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin e05445e4f5c5ca2dad6aabbb9226a3dc564e55d7 1042a83e9e3edb280c82f4ae1995e2abc57bdabf && git checkout -B drift-repro e05445e4f5c5ca2dad6aabbb9226a3dc564e55d7 && git merge --no-ff 1042a83e9e3edb280c82f4ae1995e2abc57bdabf

node scripts/docs-audit/affected-docs.mjs --json e05445e4f5c5ca2dad6aabbb9226a3dc564e55d7

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

…LOOR

scripts/gen-mcp-ask-skill.mjs reads skills/objectstack-ask/SKILL.md, a
governed path, so the dispatch-gates census finds a new structural read
and the floor must classify it. The generator has no self-test and spells
the path in its module body, so the row is declared: false, the shape of
the check-skill-top-level-keys row.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfWpJ96QY9T7d8DvFg

L1: ACCEPT · 2026-11-17T16:12Z

Head-sha: 4a78d86
Reviewer: seat 3 L1-c, for card #34686 (claim 6944687739, amendments 6951344053 and amendment 2; os-dev reports 6951261245 and 6952835713).

席位核对

PR shape. Draft, base main, Fixes #34686. No other issue sits next to a closing verb.

Scope vs claim. 10 paths. Each is inside the claim as amended, or is listed under the body's "Outside the claimed surface" with the reason a gate required it:

  • scripts/gen-mcp-ask-skill.mjs (with --check) and its output packages/mcp/src/ask-skill.generated.ts;
  • packages/mcp/src/skill-md.ts;
  • the new pin skill-single-source-34686.test.ts and the updated mcp-dataset-tools.test.ts;
  • turbo.json and scripts/cross-package-test-inputs.mjs (the SKILL.md and generator become test inputs);
  • one GOVERNED_READ_FLOOR row (scripts/gen-mcp-ask-skill.mjs reads skills/objectstack-ask/SKILL.md, declared: false);
  • one changeset.

packages/runtime/src/domains/mcp.ts (the route) is untouched, and mcp-server-runtime.ts changes by a doc comment only.

Declaration. Clause-②: no / Metadata-protocol: none in the body and the changeset, and they agree. @objectstack/mcp at patch is the level none takes. The served skill text changes, but no published schema or export does.

Governed / size. check-governed-merges --pr 34881: NOT governed, 482 lines.

Check-runs at 4a78d86. 72 runs, every one success or skipped: Lint & Repo Gates, TypeScript Type Check, Test Core and all 10 shards, Check Changeset, PR-body guards, Governed Surface Queue Guard.

Single source. The generator copies the SKILL.md body after the H1 into ASK_SKILL_DATA_LOOP as a joined line array, and --check refuses drift. skill-md.ts renders it under ## Answering a business question only when datasetToolsTaught(options) holds (dataset tools on, and either data:read or no scope list), placed after the data-only block and before ## Conventions & gotchas. DATASET_TOOL_LINES is slimmed to what the skill does not already say. The pin asserts both the generated module and the served section equal the skill body, so an edit to SKILL.md without a regenerate goes red in the MCP suite. The turbo and cross-package inputs make sure that suite re-runs when only SKILL.md changes.

Console mirror. ui/apps/console/.../objectstack-skill.ts carries no dataset lines, so its default render is unaffected. Nothing to sync there.

Must-fix

None.

Should-fix

None.

Notes

Next: o3-E lands. No seat L2 is owed. A later push owes an L1-c delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfR33NbV51QQU6R6bm

Landing · 2026-11-17T16:15Z

Probe Reading
Governed check-governed-merges.mjs --pr 34881: NOT governed, 0 of 10 paths hit the register, 482 changed lines
Head 1042a83e9e3edb280c82f4ae1995e2abc57bdabf: a clean merge of origin/main onto 4a78d86b (K was 18), with no conflict and no change to this PR's own files. gen-mcp-ask-skill.mjs --check is current on the merged tree
Review L1-c ACCEPT 6953713747 at 4a78d86b. The seat reads no L2 face. Claim 6944687739, plus amendments 6951344053 and 2 (scripts/pm/dispatch-gates.data.mjs)
Checks All 72 check-runs on 4a78d86b succeeded or were skipped. Auto-merge waits for the merged head's required checks
Overlap overlap-check VERDICT clean exit 0 (#34904 merges cleanly)

State: ready + auto-merge armed. Fixes #34686 (PR1 #34790 landed as c513d62a).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 16:16
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit c6ecd1f Nov 17, 2026
110 of 114 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-34686-skill-single-source branch November 17, 2026 17:42
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 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

Development

Successfully merging this pull request may close these issues.

mcp: the open door's initialize instructions carry the ask-data selection rule and the skills install line; /mcp/skill renders from the published skill

2 participants