Repository navigation
docs(skills): objectstack-ai names the save refusal of a knowledge_source whose adapter is not mounted - #38224
Conversation
…urce whose adapter is not mounted Pins the remedy branches of the refusal text and the package-duplicate door's answer for it, and qualifies the migration entry's replacement. Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 1 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · d9c8872 · 2026-11-28T08:21Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Read: card #38158 (body and its four comments: triage 7234584218, unlock 7235360799, claim 7235622964, dev report 7236512132), PR #38224 (body, six files, net diff of the head against merge base The rest of the diff is the lane seat's ACCEPT at ① Derived judgments
② Semver levelClause-②: no The line is carried on the PR body and in the changeset, and it matches the diff: nothing is narrowed, nothing an author could write before is refused now, and the refusal the text describes shipped with PR #38060. The changeset names The l1-face flag (
So neither package's tarball changes by a byte, and neither owes a changeset entry. ③ Boundary flags
④ Design judgment
Tried to break it: with no adapter mounted the runtime prints only the mount remedy, and the row still reads "name a mounted one, or mount the store". That is vacuous there and not wrong, since the second remedy holds. A malformed Migration entry N1 (nit) — one host shape is still outside the parenthesis: several adapters mounted, and a deployment adapter marked that is not itself mounted. There the save of a source with no
N2 (nit) — the trailing comment on the row still reads "-18 (was 6824), then -5 A2′ (was 6806)", history two raises old. It predates this PR and has no effect on the gate. PR #38156 and the shared row. PR #38156 (open, head So if PR #38156 lands first, this PR must merge No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): REWORK (main merge and re-pin only) at head Review summaryThe content is accepted. The at-tier record is 7236869716, a PASS with its tier verified. It reads
Why this head cannot land. PR #38156 merged at 08:39Z. It edits the same What to do. Merge Nits, optional.
|
…nt on main Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · 087e962 · 2026-11-28T09:05Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Delta round on record 7236869716, which read head The remainder of the diff (two test files, the changeset) stays the lane seat's ACCEPT at ① Derived judgments
② Semver levelClause-②: no Unchanged. The changeset is byte-identical to the one already read ( ③ Boundary flags
④ Design judgmentThe re-pinned row equals the measurement on this head. Blob sizes read from git: The note's arithmetic is true. Every figure in the rewritten note checks against the tree: The PR body's figures are true. Lines 489 and 489 (the merged change added one line to the file); bytes 27648 and 27858; tokens 6906 and 6958 on priced bytes 27621 and 27831; all PR #38156 does not collide with this PR's row text. On
The two observations recorded as N1 and N2 in record 7236869716 are unchanged on this head and remain as left there: accepted deviations or follow-up cards, not owed by this PR. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT (delta) at head Review summary
Next: GOVERNED Tier H ( |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · 92cc3cd · 2026-11-28T09:43Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Second delta round, on records 7236869716 (head Check-runs when this record was written: 70 in all, 25 The remainder of the diff (two test files, the changeset) stays the lane seat's ACCEPT at ① Derived judgments
② Semver levelClause-②: no Unchanged. The changeset is byte-identical ( ③ Boundary flags
④ Design judgmentWhat The row still equals the measurement on the merged tree. Blob sizes read from git: The PR body's new figures are true.
The two observations recorded as N1 and N2 in record 7236869716 are unchanged on this head and remain as left there. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT (delta, merge only) at head Review summary
Next: GOVERNED Tier H ( |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · f75d35a · 2026-11-28T10:08Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Third delta round, on records 7236869716 (head Check-runs when this record was written: 50 in all, 11 The remainder of the diff (two test files, the changeset) stays the lane seat's ACCEPT at ① Derived judgments
② Semver levelClause-②: no Unchanged. The changeset is byte-identical ( ③ Boundary flags
④ Design judgment
This PR's row still equals the measurement. Blob sizes read from git: The PR body's new figures are true.
The clause-by-clause readings in record 7236869716 stand as written. The two observations recorded as N1 and N2 there are unchanged on this head and remain as left. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT (delta, merge only) at head Review summary
Next: GOVERNED Tier H ( |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · f2f00af · 2026-11-28T10:39Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Fourth delta round, on records 7236869716 (head Check-runs when this record was written: 40 in all, 8 The remainder of the diff (two test files, the changeset) stays the lane seat's ACCEPT at ① Derived judgments
② Semver levelClause-②: no Unchanged. The changeset is byte-identical ( ③ Boundary flags
④ Design judgment
Why the bundle figure is unchanged. The bundle total is the sum of the per-file counts, and a count is a function of the priced byte length alone. The only ratcheted file This PR's row still equals the measurement. Blob sizes read from git: The PR body's figures and head names are true. Lines 489 and 489; bytes 27648 and 27858; tokens 6906 and 6958 on priced bytes 27621 and 27831; all One
The other five commits (kanban, two test-timing changes, a changelog note, and the data-hooks skill reference above) touch no path any earlier judgment rests on. The two observations recorded as N1 and N2 in record 7236869716 are unchanged on this head and remain as left. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT (delta, merge only), with two landing conditions at head Review summary
Landing conditions:
Next: GOVERNED Tier H ( |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record · 2026-11-28T11:12Z · PR #38224 (Fixes #38158) · head 维护者速读
Seat opinion: land. 席位核对 — ACCEPT · repo:objectstack#1 · head
|
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 46142212931 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Queue ejection diagnosis · 2026-11-28T12:32Z · PR #38224 · head
|
Resolve the objectstack-ai ratchet row against main's 7148 (PR #38292): re-measured on the merged tree, 28827 bytes, priced 28800, ceil = 7200; this PR's +52 rides the same ruling (record 6513306068, letter B). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Fifth delta round, on record 7238076579 (head Check-runs when this record was written: 52 in all, 15 The remainder of the diff (two test files, the changeset) stays the lane seat's ACCEPT at ① Derived judgments
② Semver levelClause-②: no Unchanged. The changeset is byte-identical ( ③ Boundary flags
④ Design judgmentThe re-measured arithmetic is true. Blob sizes read from git: The PR body's figures are true. Lines 505 and 505; bytes 28617 and 28827; tokens 7148 and 7200 on priced bytes 28590 and 28800; all The raise path still holds with
6513306068 is a ruling of record in the sense of seat ruling 7238709377, and it covers this row. That ruling asks for a
So the authority here is the recorded ruling comment, cited by id in the body and the note. It is not a relay, not this card's body, and not the approval. The seat ruling was written for the line ratchet of two other PRs; applied to this token row it is satisfied, not strained. No per-card ruling is owed for the +52. The #38292 and #38237 touch nothing this PR's tests exercise. #38292 ( Two other commits in the range do reach those files, and neither undercuts a judgment:
N1 of record 7236869716 is unchanged on this head and remains as left there. N2 of that record no longer applies: the stale trailing comment on the row is gone, dropped by No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT (delta, conflicted merge), with one landing condition at head Review summary
Landing condition: all-green at this head, For the seat: this is a non-clean merge. Approval request 7238409610 names head Next: GOVERNED Tier H ( |
|
triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t Triage answer to
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record · 2026-11-28T14:00Z · PR #38224 (Fixes #38158) · head 维护者速读
Seat opinion: land. 席位核对 — ACCEPT · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Approval request · 2026-11-28T14:01Z · governed @os-zhuang: same change as your APPROVED on
Every check is green or expected-skip. An APPROVED review on this head lets seat repo:objectstack#1 land it; nothing else is asked. |
…iles become routers (objectstack-ai#38347) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuUejT99q3PMj1DD6eNBk5Kd)_ Part of objectstack-ai#34770 Clause-②: no Metadata-protocol: none Supersedes draft PR objectstack-ai#36158: the same change, resumed from `claude/issue-34770-skill-router-budget@937e2f1` on a new branch after seat 4's lane went vacant, with `main` merged in and the three eval cases of ruling 7176941587 Q1 B added. objectstack-ai#36158 can be closed with a pointer here; nothing on its branch is missing from this one. `Part of`, not `Fixes`: rulings 7128031203 and 7168461386 keep the first line at `Part of objectstack-ai#34770` until the catalog-size line of the card's Done-when is met, and this PR does not meet it (the catalog descriptions are not touched here). ## 维护者速读 - 用户能看到什么变化:用户无感。发给 AI 的两份技能说明(数据建模、自动化)的入口文件从约 27 KB、28 KB 缩到 9 KB、10.7 KB:入口只留开工前四项检查、会悄悄出错的坑、和「写什么去读哪个文件」的路由表,其余原文搬进同包的参考文件,教的内容不变。 - 为什么做:入口文件每次都整份装进 AI 的上下文,越长越贵、越容易漏读;缩成路由后,AI 只在需要时才读细节。 - 出错会怎样:只动教 AI 的文字和三道评测题的判分词,没有产品行为变化。风险是 AI 少读一段后答错;为此前后各跑了一轮评测,逐题对照(见 Tests)。可整笔撤回。 - 要你做的:座位复核后请审批人批准(`skills/**` 属 Tier H)。本 PR 合并后,云端仓库要按 #36934 把十一处托管章节的指向跟着改。 ## Rulings this executes - **7128031203** (①A ②A ④A): land as is, the hosted repoint is cloud's (#36934); a before and an after eval round, parity = the after round's failing set is the before round's or a subset, a flipped case is re-run once and the second reading counts; a ceiling row raised because text MOVED is accepted at the measured bytes with zero headroom when the sum of ceilings does not rise. - **7168461386** (A): six flow-shape facts go back into the automation entry, and that one row rises by exactly the bytes restored. - **7176941587** (Q1 B, Q2 A, Q3 A): three eval cases are relaxed first, then both rounds are run; the 187 bytes of entry wording stay; `triggers#6` is the eval seat's and is not touched here. ## What changes **Two entry files become routers.** `skills/objectstack-data/SKILL.md` 26,860 → 8,983 bytes (472 → 167 lines), `skills/objectstack-automation/SKILL.md` 28,206 → 10,703 bytes (480 → 215 lines). Each keeps four first checks, the traps that parse and then fail at run time, and a table that says which file to open for what is being written. No rule's teaching changes; the text moved, and the changeset lists section by section where it went and which anchors no longer exist in the entry files. **Eight files receive the moved text**: `objectstack-data/references/examples-objects.md`, `rules/field-types.md`, `rules/relationships.md`, `rules/security.md`, `rules/validation.md`; `objectstack-automation/references/examples-flows.md`, `references/integration-recipes.md`, and a re-pointed link in `references/state-machines-and-approvals.md`. **One correction** (unchanged from objectstack-ai#36158): the multi-value lookup note showed a `{record.tags.0}` token "in flow values", which a flow value slot refuses; it now shows the CEL spelling `record.tags[0]`. **New in this round, over `937e2f14`:** 1. **`main` merged** (through `600197a6ae`; a merge commit, not a rebase). Two things `main` changed in the entry files while objectstack-ai#36158 was open were mapped onto the relocated text instead of being lost with the old sections: - objectstack-ai#37551's option-label wording. The automation entry's item 4 of § Valid-but-silently-wrong keeps the rule and both outcomes (refused at publish where the options are inline, else no row matches or the run fails); `references/examples-flows.md` carries `main`'s sentence verbatim. - objectstack-ai#37551's `actionLayout` sentence of § Object Extension Model, now in `references/examples-objects.md`, verbatim. - A scan of every line `main` removed from the two entry files found no stale copy left in a receiving file. 2. **Three eval cases accept the spellings the bundles teach** (ruling 7176941587 Q1 B): - `objectstack-automation/evals/flows-triggers-approvals.json` case 1: `must_not_contain` `values:` → `values: {` (the key form a node carries; a prose heading also spells the bare word). - `objectstack-data/evals/hooks-security-seeds-datasources.json` case 7: `hooks: {` leaves `must_contain` for one any-of group `hooks: {` / `"hooks": {` / `.refusals.CREDIT_LIMIT` (the nested literal, its JSON spelling, or the dotted key `references/data-hooks.md` teaches). - `objectstack-data/evals/objects-fields-relationships.json` case 10: `type: 'boolean'` leaves `must_contain` for one any-of group `type: 'boolean'` / `Field.boolean(`. 3. **Ratchet rows re-measured on the merged tree**, since objectstack-ai#37747 made a row equal its measurement exactly (see Verification). 4. **The changeset** follows the merged tree's sizes and names the three eval cases. 5. **Three nits of contract review 7240993637** (head `edcd7df4ad`, one commit over the reviewed `3b62b5e9b0`): - `skills/objectstack-project/SKILL.md` line 187 pointed at objectstack-data, "Schema evolution", a heading the router moved. It now names `rules/field-types.md` § Changing a field that has data. That file sat at its ceiling, so the longer pointer is paid in the same file by five function-word cuts that lose no fact; its row stays 2990. - `scripts/check-skills-token-ratchet.mjs` loses one formula comment line the merge left in the `rules/security.md` history block. - The changeset says what the `Skill Boundaries` table listed (the neighbouring skills) and names the re-pointed objectstack-project line. ## Acceptance notes Decided by the thread (small, no shipped behaviour): - `"hooks": {` is a third member of case 7's any-of group. The ruling names the dotted key; the JSON spelling of the same nested literal is the form a `.json` translation file carries, and refusing it would fail a correct answer on quote marks. - `references/state-machines-and-approvals.md` measured 2 tokens over `main`'s row after the merge (the re-pointed link is 9 bytes longer). It is paid inside the file ("In a packaged flow, see below" → "A packaged flow: below") instead of raising a row no ruling covers. - The before round ran on `main` `600197a6ae` plus only the three eval-case edits (skill text byte-identical to `main`), so both rounds grade with the same token lists. Without that the three relaxed cases would differ between the rounds for a reason that is not the router. Not done, and why: - **objectstack-ai#36718's flow-shape harness is NOT re-run** (a merge condition of ruling 7128031203). It was scratch in the vacated container and is not in the repository. It was run to 0 on `937e2f14` (report 7170977110); this round adds no flow example over that head, only the two sentences above, both `main`'s own words. NOT MEASURED on this head. - The catalog-size line of Done-when: outside this PR, hence `Part of`. - `triggers#6` (ruling Q3 A): the eval seat's. ## Tests Skill evals, the command line of objectstack-ai#37235 unchanged for both rounds, run in the thread's cloud container (subscription login, no API key): ``` pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-data,objectstack-automation --repeats 1 --model <as objectstack-ai#37235> --effort medium --concurrency 4 ``` | round | tree | turns | with-skill | objectstack-automation | objectstack-data | no-skill | trigger cases | |:--|:--|--:|--:|--:|--:|--:|--:| | before | `main` `600197a6ae` + the three eval-case edits (`304a4c5375`, local only) | 206/206 | 75/96 | 24/29 | 51/67 | 2/96 | 14/14 | | after, first reading | head `3b62b5e9b0` | 206/206 | 77/96 | 23/29 | 54/67 | 2/96 | 13/14 | | after, with the second readings | head `3b62b5e9b0` | +7 | **80/96** | 24/29 | 56/67 | | 14/14 | **Parity under ruling 7128031203 ②A holds: the after round's failing set is a strict subset of the before round's.** - **Failed in both rounds (16):** automation `flows-triggers-approvals` objectstack-ai#5, objectstack-ai#11, objectstack-ai#14, objectstack-ai#16, `integrations-declared` objectstack-ai#1; data `hooks-security-seeds-datasources` objectstack-ai#3, objectstack-ai#6, objectstack-ai#8, objectstack-ai#16, objectstack-ai#19, objectstack-ai#34, objectstack-ai#38; data `objects-fields-relationships` objectstack-ai#2, objectstack-ai#8, objectstack-ai#22, objectstack-ai#24. - **Failed before, pass after (5):** data `hooks-security-seeds-datasources` objectstack-ai#5, objectstack-ai#14, objectstack-ai#15, objectstack-ai#24; `objects-fields-relationships` objectstack-ai#10. - **Passed before, failed on the after round's first reading (4), each re-run once as the rule says, and each passed its second reading:** automation `flows-triggers-approvals` objectstack-ai#7 (the first answer carried the forbidden `current_user.positions`), data `hooks-security-seeds-datasources` objectstack-ai#25 (missed `default datasource`), `objects-fields-relationships` objectstack-ai#11 (missed `type: 'select'`), and trigger case `objectstack-data/triggers#6` (the bundle was read when it should have been left alone; the case of ruling Q3 A, which this PR does not change). Re-run with the same flags plus `--case` for those four keys: 7 of 7 turns, all four pass. - The three relaxed cases: `flows-triggers-approvals` objectstack-ai#1 and `hooks-security-seeds-datasources` objectstack-ai#7 pass in both rounds; `objects-fields-relationships` objectstack-ai#10 failed before on `label: '是否完成'`, not on the relaxed token, and passes after. One repetition per case is the round the card and objectstack-ai#37235 fix; at that depth a single case moves between readings for no reason of the text (four did here, in the unfavourable direction, and reverted). The five that moved the favourable way were not re-read: the rule re-reads a flip that would break parity, and a gain is not claimed from one reading. Read the result as "not lower", not as "five cases better". Both rounds were read on `3b62b5e9b0`. The commit after it (`edcd7df4ad`) changes no file of the two evaluated bundles (one line of objectstack-project, a script comment, the changeset), so the rounds were not run again. Records (round.json, every turn's record, both summaries): `skill-evals-before-304a4c53.tgz`, `skill-evals-after-3b62b5e9.tgz`, `skill-evals-after-reread-3b62b5e9.tgz` in the project's shared files, folder `34770/`. No unit test changes: the diff is skill text, three eval fixtures, ratchet rows and a changeset. The one test that names the ratchet script, `packages/spec/scripts/platform-catalog.test.ts`, ran apart from the gate list (see Verification). ## Verification Eleven skill files, measured on the head `edcd7df4ad` against `main` (`ceil((utf8 bytes − the SKILL.md version stamp line) / 4)`, the ratchet's own arithmetic): | file | lines | bytes | ratchet row | |:--|--:|--:|--:| | `objectstack-data/SKILL.md` | 472 → 167 | 26,860 → 8,983 | 6709 → 2239 | | `objectstack-data/references/examples-objects.md` | 192 → 305 | 6,892 → 14,441 | 1723 → 3611 | | `objectstack-data/rules/field-types.md` | 273 → 318 | 14,160 → 16,799 | 3540 → 4200 | | `objectstack-data/rules/relationships.md` | 384 → 393 | 16,714 → 17,274 | 4179 → 4319 | | `objectstack-data/rules/security.md` | 349 → 388 | 17,335 → 19,290 | 4334 → 4823 | | `objectstack-data/rules/validation.md` | 329 → 392 | 11,031 → 13,861 | 2758 → 3466 | | `objectstack-automation/SKILL.md` | 480 → 215 | 28,206 → 10,703 | 7045 → 2669 | | `objectstack-automation/references/examples-flows.md` | 145 → 432 | 6,170 → 25,729 | 1543 → 6433 | | `objectstack-automation/references/integration-recipes.md` | 186 → 212 | 10,379 → 12,222 | 2595 → 3056 | | `objectstack-automation/references/state-machines-and-approvals.md` | 388 → 388 | 23,706 → 23,708 | 5927 → 5927 | | **ten files of the move** | 3,198 → 3,210 | 161,453 → 163,010 | 40,353 → 40,743 | | `objectstack-project/SKILL.md` (the re-pointed line) | 214 → 214 | 11,985 → 11,987 | 2990 → 2990 | - **What an AI loads first**: the two entry files together 55,066 → 19,686 bytes (13,754 → 4,908 tokens), 64% smaller. - **Whole pack**: authored (ratcheted) 200,068 → 200,458 tokens (+390); bundle total 304,380 → 304,770. The pack does not shrink: the text moved inside it. - **Ruling ④A accounting**: every raised row equals its measured bytes, zero headroom (the gate is exact since objectstack-ai#37747, so a row above or below its file is red). Of the +390, +430 is the automation entry's own row (the pure router measured 2239; ruling 7168461386 A restores six flow-shape facts and ruling 7176941587 Q2 A keeps 187 bytes, 2239 → 2670, then 2669 after the merge). Set that authorised row aside and the moves sum to −40: the sum of ceilings does not rise. <details><summary>Gates run locally on the head</summary> Derived with `node scripts/pm/dispatch-gates.mjs --commands` on `3b62b5e9b0`, each command run and its exit code recorded, then reconciled with `--ran`: **69 derived, 68 run (each exit 0), 1 NOT-MEASURED, 0 unrun.** On head `edcd7df4ad` (the three nits) the 16 gates that read the changed files were run again, each exit 0: the fourteen skill gates (`check-skills-token-ratchet` and its self-test, `check:skill-docs`, `check:skill-refs`, `check:skill-served-sections`, `check:skill-links`, `check:skill-identifier-liveness`, `check:skill-compatibility`, `check:skill-frame-sync`, `check:doc-authoring`, `check:nul-bytes`, `check:pm-skill-id-lint`, `check:skill-examples`, `check:doc-formula-expressions`) and the two changeset gates. The other gates were not re-run on it. A trial merge with `origin/main` `c6a1328dfe` (which moved the ratchet script and `skills/objectstack-ai/SKILL.md` meanwhile) has no conflict and the ratchet is green on the merged tree (200,510 / 200,510); the trial was discarded and `main` is not merged again. - NOT MEASURED: `pnpm check:dual-build-cjs-loads` exited 3 (prerequisite not met: it needs every package's `dist`, a whole `pnpm build`). Long builds go to GitHub under this project's standing rule, so CI is the reading for it; the diff touches no package source. - `pnpm check:skill-examples` needed `pnpm --filter '@objectstack/client-react...' --filter '@objectstack/lint...' build` first; then exit 0, 351 prose examples type-check across 3 surfaces. - Outside the derived list, run apart: `pnpm --filter @objectstack/spec exec vitest run scripts/platform-catalog.test.ts` (the one test that names the ratchet script), 21 of 21. - `node scripts/pm/overlap-check.mjs` before the first push: clean against `origin/main` and the two open PRs that share a file (objectstack-ai#38224, objectstack-ai#38192). Exit 0, all 68: `node scripts/check-adr-0087-registration.mjs --base origin/main` · `node scripts/check-adr-0087-registration.mjs --self-test` · `node scripts/check-changeset-no-major.mjs --base origin/main` · `node scripts/check-closing-keyword-parity.mjs` · `node scripts/check-closing-keyword-parity.mjs --self-test` · `node scripts/check-comment-mask-corpus.mjs` · `node scripts/check-declaration-mirrors.mjs` · `node scripts/check-declaration-mirrors.mjs --self-test` · `node scripts/check-doc-route-spelling.mjs --advisory` · `node scripts/check-doc-route-spelling.mjs --self-test` · `node scripts/check-dts-emitted.mjs --self-test` · `node scripts/check-empty-changeset.mjs --base origin/main` · `node scripts/check-empty-changeset.mjs --self-test` · `node scripts/check-self-test-wired.mjs` · `node scripts/check-self-test-wired.mjs --self-test` · `node scripts/check-self-test-workflow-commands.mjs` · `node scripts/check-self-test-workflow-commands.mjs --self-test` · `node scripts/check-skills-token-ratchet.mjs` · `node scripts/check-skills-token-ratchet.mjs --self-test` · `node scripts/check-whole-set-label-write.mjs` · `node scripts/check-whole-set-label-write.mjs --self-test` · `node scripts/ci/assert-turbo-remote-cache.mjs --self-test` · `node scripts/ci/plan-test-core-shards.mjs --self-test` · `node scripts/ci/prune-turbo-cache.mjs --self-test` · `node scripts/ci/snapshot-next.mjs --self-test` · `node scripts/pm/bare-root-worklist.mjs --self-test` · `node scripts/pm/check-governed-queue-guard.mjs --self-test` · `node scripts/pm/release-rehearsal-clone.mjs --self-test` · `node scripts/release-pending-publish.mjs --self-test` · `--filter @objectstack/lint run check:doc-formula-expressions` · `--filter @objectstack/spec run check:skill-docs` · `--filter @objectstack/spec run check:skill-refs` · `--filter @objectstack/spec run check:skill-served-sections` · `check:adr-anchors` · `check:agent-test-spelling` · `check:bash32-floor` · `check:changeset-gate-self-tests` · `check:ci-filter-parity` · `check:cli-command-ids` · `check:closed-ceremony-text` · `check:corpus-claim-drift` · `check:cross-package-test-inputs` · `check:doc-authoring` · `check:driver-memory-census` · `check:dts-closure` · `check:entry-guard` · `check:gitlink-declared` · `check:lean-entry-closure` · `check:merge-driver` · `check:nul-bytes` · `check:parse-guard` · `check:pm-dispatch-gates` · `check:pm-expected-skips` · `check:pm-governed-merges` · `check:pm-skill-id-lint` · `check:pnpm-filter-targets` · `check:pnpm-flag-spellings` · `check:published-files` · `check:ratchet-remedy-authority` · `check:refd-timer-probe` · `check:role-word` · `check:scripts-symbol-anchors` · `check:skill-compatibility` · `check:skill-frame-sync` · `check:skill-identifier-liveness` · `check:skill-links` · `check:sourcemap-no-sources-content` · `check:watch-hint-literal` </details> **Writer**: all `skills/**` text was written by the card thread itself, a session at `CONTRACT_REVIEW_TIER` per the claim (7240213191). Every assistant turn of the session's transcript was served at the tier (210 of 210 when counted against the constant in `scripts/pm/dispatch-gates.mjs`); `verify-review-tier.mjs` itself refuses the transcript because the session once ran a read-only sub-agent to read the rulebook, so that count is the thread's reading, not the script's PASS. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgUTzGxLiCQYi8Wvn3K)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgUTzGxLiCQYi8Wvn3K <!-- signed: repo:objectstack#2 · os-sales · session_01L6bhgUTzGxLiCQYi8Wvn3K --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Fixes #38158
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-ai/SKILL.md§ Knowledge Sources, theadapterrow. It named the refusal of an omitted adapter only. It now also says that a run-time save naming an adapter the deployment does not mount is refused (400 VALIDATION_ERROR, nothing written), naming the source, the adapter and the mounted ones, with the two remedies that always hold: name a mounted one, or mount the store and save again. Worded fromunmountedAdapterSaveTextinpackages/services/service-knowledge/src/knowledge-service.ts.knowledge-source-admission.test.ts: the "leaveadapterout" remedy is offered with one adapter mounted and with the deployment's adapter mounted; it is withheld with two mounted and none marked, with a deployment adapter that is not itself mounted, and with none mounted. A control asserts what the clause promises: the omitted adapter is admitted where the remedy is offered and refused where it is withheld.packages-knowledge-source-gate.test.ts: the package-duplicate door answers this refusal400witherror.codeVALIDATION_ERRORand the save's own sentence, and copies nothing.knowledge-source-unmounted-adapter-refused-at-save: itsreplacementnow qualifies "noadapterat all": on a host that mounts several adapters and marks none the deployment's, a source with noadapteris itself refused, so name one there.scripts/check-skills-token-ratchet.mjs: theskills/objectstack-ai/SKILL.mdrow moves 7148 to 7200, pinned at the measurement taken on this head, which carriesmain333e6f3 (with PR docs(skills): objectstack-ai teaches knowledge sources over business objects #38292, which moved the same row 6906 to 7148).@objectstack/skillspatch and@objectstack/specpatch (the entry's text ships in the upgrade guide). The two test files publish nothing, so@objectstack/service-knowledgeand@objectstack/runtimetake none.Skill size readings
Raise path: the standing ruling 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B). Paid down first, in the same file: the row's "Optional" (its "Omitted:" clause already says the key may be left out).
main333e6f3)skills/objectstack-ai/SKILL.md, linesskills/objectstack-ai/SKILL.md, bytesskills/objectstack-ai/SKILL.md, tokens (priced bytes, stamp line excluded: 28590 to 28800)skills/*/SKILL.md, linesThe row moves +52, the measured remainder only:
ceil(28800 / 4) = 7200. The merge ofmain333e6f3 conflicted on this row only; it was resolved by keepingmain's 7148 note and adding this PR's note above the re-measured row.Why
PR #38060 added the save refusal and the migration entry. Its contract review left three follow-ups: the published skill did not teach the refusal, the remedy branches of the refusal text and the duplicate door's answer had no pin, and the entry's
replacementoffered a remedy that is itself refused on one kind of host.Tests
Read first, by risk:
skills/objectstack-ai/SKILL.md, theadapterrow: published text; check it againstunmountedAdapterSaveText.packages/spec/src/migrations/entries/semantic/19.knowledge-source-unmounted-adapter-refused-at-save.ts,replacement: shipped upgrade-guide text.scripts/check-skills-token-ratchet.mjs, the new note above the row: the arithmetic.Two-minute check:
pnpm --filter @objectstack/service-knowledge exec vitest run src/__tests__/knowledge-source-admission.test.ts -t 'offers leaving'prints 1 passed.The two edited test files,
check-skills-token-ratchet(gate and self-test) andcheck:skill-docswere re-run on head92cc3cd391(the first head, the row re-pin, and merges ofmainup to bd5407e). Headsf75d35a017andf2f00af325add clean merges ofmain(98bd8de, which lowers theobjectstack-uirow, then f19350b), and heade3e2fab53fmergesmain333e6f3 with the one ratchet-row conflict resolved as above. The second carries #38208 (898b056), which editspackages/runtime/src/domains/packages-knowledge-source-gate.test.ts(also edited here, in other hunks; git merged them without a hand) andpackages/runtime/src/domains/packages.tsandpackages/metadata-core/src/knowledge-source-save-admission.ts, which this PR's duplicate-door pin exercises. Onf2f00af325ande3e2fab53fonly the ratchet gate and its self-test were re-run locally (exit 0); the edited tests on the merged tree are read from this head'sTest Core. The ablation, the 121-family gate list and the package-wide runs below were read on the first headd9c88726c4, before those merges.Edited test files
Ablation: the pins go red when the branch or the mapping is reverted
Each mutation was applied with
scripts/ablation-replace.mjs(anchor hit once, restore verified as blob equal to HEAD and an emptygit diff HEAD). Both subjects are imported fromsrc, so nodistleg applies.placeable = true(always offer the remedy)adapterout"placeable = false(never offer it)adapterout"placeable = deployment !== undefined OR mounted.length === 1(drop the "deployment's adapter is mounted" test)adapterout"packages.ts: the duplicate door answers a fixed403in place ofrefused.statusAcceptance notes
adapterout"): it is conditional, and the row's own "Omitted:" clause already states where an omitted adapter is placed and where it is refused.VALIDATION_ERRORcode on its answer is derived from the400, not copied from the refusal's owncode. The two agree for every refusal the predicate answers today. Noted, not filed.Verification
node scripts/pm/dispatch-gates.mjs --commands, 121 families) run ond9c88726c4: 119 exit 0. Among themcheck-skills-token-ratchet("61 authored bundle file(s) within their ceilings"),check:skill-docs,check:skill-refs,check:skill-links,check:skill-identifier-liveness,check:spec-changes,check:upgrade-guide,check:doc-authoring,check:nul-bytes,check:cross-package-test-inputs.check:dual-build-cjs-loads(exit 3, "PREREQUISITE NOT MET", it needs every package built) and the CLI filetest/migrate-meta-engine-guidance.test.ts(its global setup could not load the unbuilt CLI closure). CI reads both.d9c88726c4,VERDICT command-exit 0:pnpm --filter @objectstack/service-knowledge test(Test Files 19 passed, Tests 683 passed),typecheckof@objectstack/service-knowledge,@objectstack/runtimeand@objectstack/spec, and the spec migration suites (vitest run src/migrations: Test Files 5 passed, Tests 207 passed).test:repowas not run. CI'sTest Corecarries those.Human Minimum
packages/specholds no runtime logic.pnpm lintis CI's reading.main, one pull request.packages/spectouched:check:generatedfamilies ran green; nothing to regenerate.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code