Repository navigation
fix(lint)!: four publish-time checks for data-model metadata that saves and does not work - #37513
Conversation
…es and does not work Two errors refuse the publish and fail os validate: a summary whose child has no field pointing back to the parent (rollup/child-without-parent-reference), and a reference on a field type that reads none (field/reference-on-non-reference-type). Two warnings refuse nothing: a lookup named like a count or total (field/count-named-lookup), and a lookup child drawn as a body table on a record a locking approval holds (approval-detail-editable-while-pending). A formula reading an unconfigured summary stays covered by field/summary-without-operations, pinned here. Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 2 package(s): 6 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 5 release-owned page(s) also name something this change touched. These are read-only:
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): 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 c17d8f09197884df29c31bca9bec6f2cecc7db9b && git checkout c17d8f09197884df29c31bca9bec6f2cecc7db9b
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 1af67b26cdf5c6850a4cff8b44a94cf46b7a2502 ad43f0b457457c90866eb2d7418d373ffb9fdfe3 && git checkout -B drift-repro 1af67b26cdf5c6850a4cff8b44a94cf46b7a2502 && git merge --no-ff ad43f0b457457c90866eb2d7418d373ffb9fdfe3
node scripts/docs-audit/affected-docs.mjs --json 1af67b26cdf5c6850a4cff8b44a94cf46b7a2502
|
…ack to its parent The own-currency roll-up is meant to be refused by the mixed-currency door alone. Its child carried no field referencing the roll-up's object, so the new rollup/child-without-parent-reference check refused the source save first. Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK Contract-review-claim: session_01Q4EjjQkY5yXZrN9BEA3rEK · head 77ac3ce · 2026-11-26T11:03Z |
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK Contract reviewServed-tier: Face: the file list holds one published-schema path (the ADR-0087 entry, the first path on the Scope line), and the PR body and the changeset declare ① Derived judgmentsEach check was read against the code it cites at this head. Both refusals are true of the engine. One of them ships ahead of the platform's own designer (M1) and states a consequence that is wrong for part of its set (S1).
② Semver level
③ Boundary flags
④ Design judgmentAgainst card #35143, Data model family only. M1 (must-fix) — the console's own field designer writes the shape
S1 (should-fix) — the record-picker sentence is wrong for
S2 (should-fix) — the relation arm throws where the engine's scan catches, and the throw takes the aggregand refusals with it.
Nits, none with an effect on correctness or the contract:
Card lines, not PR defects, for the seat to record on #35143: D2 is covered by Open: must-fix M1, should-fix S1, should-fix S2. Implemented-by: VERDICT: FAIL |
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK L1 review — PR #37513 at VERDICT: REVISE Read by an agent that did not write the code. Mechanical face: Rework, in order
PR shape and card relation: ok
Scope and changeset
Tests and gates
Premise
|
…t; the relation arm reads past an unreadable carrier The field/reference-on-non-reference-type message adds the record-picker clause only for types the inline editor routes to its reference branch (text, number, date and the like), not for select, boolean, the file-backed types, markdown or textarea. pointsBackTo treats a non-string reference as not pointing back, as the engine's foreign-key scan does, so one unreadable sibling no longer throws the whole roll-up entry and its aggregand refusals. The changeset's Skills-docs line names follow-up #37529. Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK Co-authored-by: Claude <noreply@anthropic.com>
… type that reads none, and reads a stored one away changeType drops reference when the next type is none of lookup, master_detail, tree, user and summary, as it drops the picklist binding, option kinds, referenceNameVisible and deleteBehavior. The designer's read door strips a reference from a field whose declared type reads none, so a draft an earlier build wrote that way saves without it on the next edit and the new publish refusal no longer strands it. Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK Co-authored-by: Claude <noreply@anthropic.com>
…es at module top Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK Contract-review-claim: session_01Q4EjjQkY5yXZrN9BEA3rEK · head ad43f0b · 2026-11-26T13:35Z |
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK Contract reviewServed-tier: Delta round by the reviewer of record 7190867118 (FAIL at Face: the file list (22 paths) holds one published-schema path (the ADR-0087 entry, the first path on the Scope line), and the PR body and the changeset declare ① Derived judgmentsEach check was read against the code it cites at this head. Both refusals are true of the engine, the platform's own designer no longer writes the refused shape, and the published sentences now hold.
② Semver level
③ Boundary flags
④ Design judgmentAgainst card #35143, Data model family only. Findings of record 7190867118, re-judged at this head: M1 (must-fix): CLOSED.
S1 (should-fix): CLOSED.
S2 (should-fix): CLOSED.
Nits, none with an effect on correctness or the contract:
Card lines for #35143 are already on the card in 7190889569. Open: none at must-fix or should-fix. Nits N1, N4, N6, N7, N8 and N9 are recorded for a follow-up card. Implemented-by: VERDICT: PASS |
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK 席位核对L1 delta — PR #37513 at VERDICT: ACCEPT Read by an agent that did not write the code. Mechanical face: The five rework items
Sentences read (changeset and docs faces, sentence by sentence)
For the seat at ACCEPT, none of it moves the head
PR shape and card relation: ok
Scope and changeset
Tests and gates
|
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK Contract reviewServed-tier: Delta round by the reviewer of record 7190867118 (FAIL at Face: the file list (22 paths) holds one published-schema path (the ADR-0087 entry, the first path on the Scope line), and the PR body and the changeset declare ① Derived judgmentsEach check was read against the code it cites at this head. Both refusals are true of the engine, the platform's own designer no longer writes the refused shape, and the published sentences now hold.
② Semver level
③ Boundary flags
④ Design judgmentAgainst card #35143, Data model family only. Findings of record 7190867118, re-judged at this head: M1 (must-fix): closed.
S1 (should-fix): closed.
S2 (should-fix): closed.
Nits, none with an effect on correctness or the contract:
Card lines for #35143 are already on the card in 7190889569. No must-fix, no should-fix. Nits N1, N4, N6, N7, N8 and N9 are recorded for follow-up card #37577. Implemented-by: VERDICT: PASS |
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK 维护者速读
席位意见:两级审核在这个 head 上都通过(L1 ACCEPT 7193959285,契约审核 PASS 7194461560,上一轮 FAIL 的 M1/S1/S2 均已关闭),CI 全绿;剩余小问题立卡 #37577。建议批准。 席位核对 — ACCEPT · repo:objectstack#6 · head
|
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK Review requested: this narrowing PR lands by an authorized approval. Seat record above (ACCEPT at head |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 45837486482 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK Queue failure triage — run 45837486482Read: unrelated, load/timing class. The one failing test is Next step: one re-queue of the same head Stamped 2026-11-26T14:49Z |
…sh checks (objectstack-ai#37707) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu3zQ2AqeghSGpv6Q7VEPDyQ)_ Fixes objectstack-ai#37529 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:照技能文档让 AI 助手建数据模型的人,以后助手会提前知道三条发布检查:汇总字段的子对象必须有指回父对象的关联字段;关联目标只能写在关联类字段上;审批锁只锁主从明细行,用查找关系画进记录正文的明细表在审批期间仍然可改。以前文档没写,助手会写出发布时被拒的内容。 - 为什么做:属于「发布前拦住存得进去却不起作用的数据模型」这批工作的配套文档;检查已经上线,技能文档要跟上。 - 出错会怎样:只改技能文字和评测用例,不动产品。三个文件余量都只有几个词,新增的句子靠同一文件里把说法写短换来,没有删掉事实;写错直接撤回即可。 - 要你做什么:无。 ## What changes One sentence per rule, each worded from the code on `main` at `fbcfdfbb58` (the lint rules PR objectstack-ai#37513 landed), not from the card's paraphrase: - `skills/objectstack-data/rules/relationships.md` (Roll-up Summaries): a roll-up is refused at publish when `relationshipField` is omitted and the child has no `lookup` / `master_detail` referencing the parent, or when `relationshipField` names no field of the child (`rollup/child-without-parent-reference`). Both arms are in the rule (`summaryRollupFindings`, severity `error`). - `skills/objectstack-data/rules/field-types.md` (Relational): only `lookup`, `master_detail`, `user` and `tree` read `reference`; on any other type but `summary`, publish refuses it (`field/reference-on-non-reference-type`, severity `error`). The card says `summary` reads it; the code says the four types read it and `summary` is exempt from the refusal, so the sentence says that. - `skills/objectstack-automation/references/state-machines-and-approvals.md` (Approval Best Practices, item 2): `lockRecord` locks the record and its `master_detail` child rows only; a `lookup` child shown in the record's details (`relatedList: 'primary'`, or a parent field group, as the data skill names it) stays editable, reported as the warning `approval-detail-editable-while-pending`. It is taught as a warning, not a refusal. - Evals: data case 12 (roll-up counts) now says the child has no field pointing at the parent (`project`, named in the prompt) and expects `reference: 'project'`; a new data case 29 asks about `reference` on a `text` field and requires the rule id `field/reference-on-non-reference-type`; automation case 3 (budget approval) now carries a lookup body table and expects `master_detail`. - One `@objectstack/skills` patch changeset. ### Token ratchet: no ceiling moved Every addition is paid for by shorter wording in the same file (`node scripts/check-skills-token-ratchet.mjs`, exit 0 at `4695c42cc6`). | File | Lines before / after | Bytes before / after | Tokens before / after | Ceiling | Headroom before / after | |:--|:--|:--|:--|:--|:--| | `skills/objectstack-data/rules/relationships.md` | 389 / 391 | 16765 / 16801 | 4192 / 4201 | 4203 | 11 / 2 | | `skills/objectstack-data/rules/field-types.md` | 270 / 273 | 14156 / 14160 | 3539 / 3540 | 3541 | 2 / 1 | | `skills/objectstack-automation/references/state-machines-and-approvals.md` | 386 / 388 | 23732 / 23741 | 5933 / 5936 | 5936 | 3 / 0 | | `skills/objectstack-data/evals/objects-fields-relationships.json` (not ratcheted) | 506 / 521 | 35675 / 36736 | 8919 / 9184 | none | n/a | | `skills/objectstack-automation/evals/flows-triggers-approvals.json` (not ratcheted) | 450 / 451 | 28588 / 29048 | 7147 / 7262 | none | n/a | Whole bundle: ratcheted (authored) 199619 to 199632 tokens against a 204473 total ceiling; shipped tree 299752 to 300145 tokens; all `SKILL.md` files together 4961 lines before and after; whole `skills/` tree 23255 to 23276 lines. ## Tests - Skill evals: NOT MEASURED, reason: no model runner in this container. The three touched cases are graded by nothing here. - Eval tokens: checked by hand. `node ui/scripts/check-skill-eval-tokens.mjs` exits 0 but walks `skills/objectui` only, so it says nothing about these fixtures (contract review 7204561928). On `4695c42cc6` every `must_contain` token of each data case is in its own reference answer and no `must_not_contain` token is (29 cases, 0 violations). - `pnpm --filter @objectstack/spec run check:skill-examples`: exit 0, "352 prose examples type-check across 3 surface(s)". - `node ui/scripts/check-skill-examples.mjs`: exit 0, "Every marked skill example holds up against the built types." The two example gates were read at `ad8cf055c2`; the delta at `4695c42cc6` changes no code example. At `4695c42cc6`: token ratchet exit 0, `pnpm check:skill-links` exit 0, `check:skill-identifier-liveness` exit 0, `check:skill-frame-sync` exit 0; `check:doc-authoring` NOT MEASURED locally (exit 3, no `typescript` in the worktree), CI's. ## Acceptance notes - Wording shortened to pay for the new sentences, no fact removed. relationships.md: "Supported via `summary`" becomes "Via `summary`" (two table cells); the recompute sentence drops "so it's consistent". field-types.md: nine table cells and two prose phrases lose filler words ("built-in format validation" to "format validated", "Video files" to "Video", and the like). state-machines-and-approvals.md: a code comment, the send-back opening sentence and two lead-ins are shorter. - One nuance went: best practice 2 no longer says "unless you have a strong reason to allow edits while pending". It still says to keep the lock and why. - After the review delta (7204561928 S1, N1 to N3): the roll-up sentence says the refusal applies only when `relationshipField` is omitted; the approval sentence uses the data skill's words for the table; data case 29 requires the rule id; case 12's prompt names `project`. Paid down in the same files: best practice 1 is shorter, and the `lockRecord` config row reads "Lock the record while pending" (best practice 2 says what the lock covers). state-machines-and-approvals.md now sits at zero headroom, relationships.md at 2. - Draft PR objectstack-ai#36158 edits the same three files. `node scripts/pm/overlap-check.mjs` reports it merges cleanly against this branch (exit 0); the claim on the card cleared it. - The dispatch asked to extend existing eval cases where one fits. Cases 12 and 3 are extended, so their prompts changed; the `reference` rule fit no existing case and got a new one. ## Verification <details><summary>Derived gates at ad8cf05: 49 derived, 48 run, 1 NOT MEASURED</summary> `node scripts/pm/dispatch-gates.mjs --ran`: "49 derived famil(ies) accounted for — 48 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)", exit 0. - NOT MEASURED: `pnpm check:dual-build-cjs-loads`, exit 3, reason: it reads every package's built output and only the closures the skill gates need were built here. CI builds the whole tree. - Exit 0, among the 48: `node scripts/check-skills-token-ratchet.mjs` and its `--self-test`, `pnpm check:skill-links`, `pnpm check:skill-identifier-liveness`, `pnpm check:skill-compatibility`, `pnpm check:skill-frame-sync`, `pnpm --filter @objectstack/spec run check:skill-refs`, `pnpm --filter @objectstack/spec run check:skill-served-sections`, `pnpm --filter @objectstack/lint run check:doc-formula-expressions`, `pnpm check:doc-authoring`, `pnpm check:nul-bytes`, `pnpm check:published-files`, `node scripts/check-empty-changeset.mjs --base origin/main`, `node scripts/check-changeset-no-major.mjs --base origin/main`, `node scripts/check-adr-0087-registration.mjs --base origin/main`. </details> Read first, by risk: 1. `skills/objectstack-data/rules/field-types.md`, the new sentence under the Relational table: it says `summary` is exempt, which differs from the card's wording. 2. `skills/objectstack-automation/references/state-machines-and-approvals.md`, best practice 2: the rewritten item and the dropped clause. 3. `skills/objectstack-data/evals/objects-fields-relationships.json`, case 12: an existing prompt gained a sentence. Two-minute check: run `node scripts/check-skills-token-ratchet.mjs` and expect exit 0 with the three files at headroom 2, 1 and 0. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96 <!-- signed: repo:objectstack#2 · os-sales · session_01L6bhgVUz5oS8fMgmncxU96 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
… move from step 18 to step 19, so `os migrate meta --from 18` shows them (objectstack-ai#38239) repo:objectstack#3 · os-tesla · session_01L9qibvcTXi4hWgjz8G8ium <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoT8rr3zveNwye1npfS2EynC)_ Fixes objectstack-ai#38142 Clause-②: no Metadata-protocol: none ## 维护者速读 - 从 18 升级到 19 的作者,以前在升级提示里看不到三条变化(表单工具改名、表单类型、发布时拒收存不住的数据模型字段),现在这三条会列在 18 → 19 的升级提示里。 - 修正第 19 版升级说明,替用升级命令从 18.x 升上来的团队补上漏掉的提示。 - 只是把三条说明挪到正确的大版本下,内容一字不改,不碰任何数据或配置;出错也只是提示位置不对,可以直接撤回。 - 无 ## What changes - Three ADR-0087 semantic entries move from protocol major 18 to 19: `semantic/18.ID.ts` becomes `semantic/19.ID.ts` for `define-form-studio-helper-renamed-define-metadata-form`, `form-type-define-form-and-packageless-list-at-form-name` (both from objectstack-ai#37366) and `publish-refuses-data-model-fields-that-save-and-do-not-work` (from objectstack-ai#37513). The ids and the file contents are unchanged (pure renames, 100% similarity). - Why 19: `gen:migration-registry` files an entry by its filename's major, and `composeMigrationChain(fromMajor)` keeps only the steps above `fromMajor` (`packages/spec/src/migrations/chain.ts:42`). All three were added after `PROTOCOL_VERSION` moved to 19 (`204356a6e`, objectstack-ai#37314). None is in `@objectstack/spec@18.6.0`, the last 18.x release; objectstack-ai#37513 first shipped in `19.0.0-next.0`, objectstack-ai#37366 in `19.0.0-next.2` (tag ancestry). Filed under 18, they were skipped by exactly the 18 → 19 upgrade they describe. - `form-type-…` still follows `define-form-…` in id order, so its "since the previous entry" sentence still reads right. - The id-keyed `adr-0087: registered` markers in `.changeset/pre/*` and the released CHANGELOGs stay valid and are not edited. - One `@objectstack/spec` patch changeset. The registry, `spec-changes.json` and the upgrade guide are generated and not committed, so nothing else changes in the diff. ## Tests No test file changes: the pins that read the chain (`semantic-relevance.test.ts`, `migrations.test.ts`) read the generated step lists, not counts or ids for these entries. The before/after readings below are probes against the generated registry, kept in the project, not in this PR. <details><summary>Readings (head fc06c4d, base origin/main 23fa361)</summary> Generated registry and `composeMigrationChain(18)`: | | step 18 semantic | step 19 semantic | chain `--from 18` lists the three | |:--|:--|:--|:--| | before (main) | 582, holds all three | 21, holds none | MISSING ×3 | | after (this branch) | 579 | 24, holds all three | LISTED ×3 | `applyMetaMigrations(stack, 18)` on a minimal stack: before, `todos=21`, all three NOT LISTED; after, `todos=24`, all three are `todos`. Local runs at fc06c4d: - `pnpm exec turbo run build --filter='./packages/**' --filter='@objectstack/dogfood^...'` under `os-verify-lock`: command-exit 0. - `pnpm --filter @objectstack/spec typecheck`: command-exit 0. - `pnpm --filter @objectstack/spec test`: `Test Files 911 passed (911)`, `Tests 28851 passed | 1 todo (28852)`. - Derived gates (`dispatch-gates.mjs --commands`): 83 run, each exit 0; `--ran` reconciles 83 derived, 83 run, 0 NOT MEASURED (a derived zero: every line records its exit code). - `overlap-check.mjs` before the first push: merges cleanly with origin/main, 0 open PR heads overlap. </details> ## Acceptance notes - **Should `check-adr-0087-registration` read the major?** Not built here (claim). The measured answer: in the window the per-entry files exist (`f293d454b`, 2026-08-10, to origin/main `23fa3619`), every entry added landed at or above the protocol major of its day, except these three. - Protocol 17 (to `4e9fe9ff6`, the 17 → 18 bump): 50 added under 17 and 717 under 18 (the next major, filed before the bump), 0 below 17. The one explicit backfill in the window (`5823d593db`, "backfill nine ADR-0087 ledger entries missing from the v17 stock") landed under 17, equal to the protocol major then. - Protocol 18 (to `204356a6e`, the 18 → 19 bump): 345 under 18, 0 below. The bump commit itself added one entry under 19. - Protocol 19 (since): 33 under 19, 3 under 18. Those 3 are this card's, renamed here. - So a rule "a newly added entry's major is equal to `PROTOCOL_MAJOR` or above it" would have fired on exactly these three in about 1,150 additions, and on no backfill. "Equal to `PROTOCOL_MAJOR`" would have been wrong: it refuses the 717 entries filed ahead of the 17 → 18 bump. The gate already reads the paths of the entries a diff adds, so the check would close a blind spot of an existing gate rather than add a new one. A later backfill below the current major would still need a named exemption. Whether to file the card is the seat's decision. - Reach, corrected by the contract review (comment 7237861973): that reading measures the protocol move, not the release. 34 more `semantic/18.*` entries were added between `spec@18.6.0` (`958ee0359`) and the move, ship in no 18.x release, and are skipped by `--from 18` the same way; each was filed while `PROTOCOL_MAJOR` read 18, so the at-or-above rule would not have refused them. They are outside this PR's claim; the carrier is the seat's. - Releases already out: `19.0.0-next.0` and `next.2` carry these entries under 18, so `os migrate meta --from 18` on those prereleases still skips them. The fix ships with the next prerelease. No released text is edited (AGENTS.md: CHANGELOGs are release-owned). ## Verification Read first (by risk): 1. The three renames: `git diff --stat -M origin/main...HEAD` shows `R100` for each. 2. The changeset. Two-minute check: in `packages/spec`, `pnpm gen:migration-registry` and then `grep -n "publish-refuses-data-model-fields-that-save-and-do-not-work" src/migrations/registry.ts`. On this branch the id sits inside the `semantic:19` region; on main it sits inside `semantic:18`. --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibvcTXi4hWgjz8G8ium)_ Co-authored-by: Claude <noreply@anthropic.com>
…MAJOR (objectstack-ai#38436) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XHogQ9ogKPxHhiFfT2UQgJi)_ Fixes objectstack-ai#38240 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感;只有往平台升级说明里新增条目的开发者会碰到:条目编号低于当前协议大版本时,合并前的门禁直接拒绝,并告诉他改成哪个文件名。 - 为什么做:属于升级说明(ADR-0087 迁移账本)的守卫;此前已有三条 19 版的升级说明被误放在 18 下,按「从 18 升级」运行时永远看不到(已另行改正)。 - 出错会怎样:最坏是误拒一条合法的补登记说明;作者在变更说明里加一行补登记声明即可通过,门禁本身可直接撤回,不影响任何已发布内容。 - 要你做什么:无。 **Round 2** (contract review 7249162118, head `323f21d860`): S1 fixed (the refusal's printed backfill line carries `MINOR`, `PATCH` and `WHY` placeholders and the reason must name a release of the entry's own major in digits, so the line pasted unedited stays red, EM-R6); S2 fixed (the `ledgerAdded` conjunct applies only on a merge base from before the per-entry split, so an id the template already carries no longer hides a new entry, EM-R7); N1 fixed (`retired-keys/` and `retired-defs/` refusals give the tombstone aging cost read by `build-schemas.ts`). Also: EM-G7 (the L1-a nit), EM-R8 (a case at major 20), and EM-U2 no longer spells a spec version in prose (the `check:future-spec-major` red). Battery EM now has 50 cases; `origin/main` merged. _Where the sections below still describe round 1 (the `ledgerAdded` condition on every base, a 40-character-only backfill reason, 31 EM cases, test readings at `9982079f87`), the Round 2 line above supersedes them: delta contract review 7250195970 (PASS) and delta L1-a 7250194256 (ACCEPT) read head `323f21d860`._ ## What changes `scripts/check-adr-0087-registration.mjs` gains a second rule, judged on every diff (with or without a breaking changeset): - **Added entries.** For each of the three entry directories (`semantic/`, `retired-keys/`, `retired-defs/`), an entry file at HEAD is *added* when its key (the filename minus its `MAJOR.` prefix) is absent from the merge base's listing of the same directory. A `semantic/` entry must also be in `ledgerAdded`, the id set the R4 `registered` check already reads, so the two never disagree about what a PR registered. - **Refusal.** An added entry whose prefix is below `PROTOCOL_MAJOR` is refused. The message names the file, its prefix, the current `PROTOCOL_MAJOR` and where it was read, gives the `git mv` to `PROTOCOL_MAJOR.KEY.ts`, and says the one case that may sit lower is a backfill, with the exact line to write. - **Backfill escape.** The gate had no existing escape for this (its only text input is changeset bodies, and its one marker is the breaking-change disposition, of which a changeset may carry exactly one). So a minimal declaration form: an HTML-comment line in a changeset the PR adds, whose keyword is `adr-0087-backfill` plus a colon, followed by the entry path and the release that shipped the change (40 characters minimum, the same floor as a `not-required` reason). It is not an `adr-0087` disposition (that pattern needs the colon directly after `adr-0087`), and each one is printed and annotated as an exemption on every run. - **`PROTOCOL_MAJOR` source.** Read at HEAD from `packages/spec/src/kernel/protocol-version.ts` (`PROTOCOL_SOURCE`, imported from `scripts/sync-template-versions.mjs`) and evaluated by that module's `loadProtocolMajor`, the same reader the version lane uses. Nothing is hard-coded and no second copy is parsed. The reader is async and `scan()` is not, so it runs in a child `node` process, only when the diff adds an entry. A major that cannot be read is a red. - **Self-test.** New battery `EM (objectstack-ai#38240)`, 31 cases, roster floor 60 to 61. The GR7 transition fixture now carries the protocol module, because its `beta` entry counts as added and is judged against it. ## The rule's reach Covers: - An entry the PR adds, in any of the three entry directories, whose prefix is below `PROTOCOL_MAJOR` at HEAD. That covers the three `semantic/18.*` entries objectstack-ai#38142 moved to 19. - CI's `Check Changeset` job checks out the PR's merge commit. So a branch cut before a protocol move is judged against the major on `main` once its CI runs after the move. Does not cover: - **Entries stranded by the protocol move itself.** The 34 `semantic/18.*` entries objectstack-ai#38256 carries were each filed while `PROTOCOL_MAJOR` read 18. They were at the major of their day, so this rule would not have refused any of them. Catching that shape takes a check at the protocol move (no unreleased entry left below the new major), not a check on added entries. That check is not built here. - **A move to a lower major.** A file renamed from `19.X.ts` to `18.X.ts` keeps its key, so it is not *added* (the card's R100 pin) and is not judged. - **A PR carrying `skip-changeset`.** The real scan runs in `Check Changeset`, which that label skips wholesale. Adding an entry publishes from `@objectstack/spec`, so such a PR owes a changeset anyway. - **A merge base from before the per-entry split.** The key alone decides added-ness in `retired-keys/` and `retired-defs/` (they have no `id:` line for `ledgerAdded` to see). From such a base, all of their files would read as added: a red, never a silent pass, and no open branch is that old. ## History reading From objectstack-ai#38239's Acceptance notes: since the per-entry files exist (`f293d454b`, 2026-08-10), about **1,150** entries were added and **3** landed below the protocol major of their day, all three in objectstack-ai#38142. No backfill was among them: the one explicit backfill (`5823d593db`) landed at the major of its day. A rule of "equal to `PROTOCOL_MAJOR`" would have refused the 717 entries filed ahead of the 17 to 18 bump. Re-measured for this PR from a blobless clone of `main`, first-parent `f293d454b..f42bcc1`, all three entry directories. An entry counts as added when its key appears as `A` and not as `D` in the same commit, so a move between majors is not an add. Major of the day is read by position against the two bump commits `4e9fe9ff6` (17 to 18) and `204356a6e` (18 to 19). | directory | added | above the major of the day | equal | below | |:--|--:|--:|--:|--:| | `semantic/` | 643 | 330 | 310 | 3 | | `retired-keys/` | 305 | 218 | 87 | 0 | | `retired-defs/` | 210 | 169 | 41 | 0 | | **total** | **1,158** | **717** | **438** | **3** | The three below: `publish-refuses-data-model-fields-that-save-and-do-not-work`, `define-form-studio-helper-renamed-define-metadata-form` and `form-type-define-form-and-packageless-list-at-form-name`, each `18.*` under protocol 19. ## Tests All readings are at head `9982079f87`, unless a line names another tree. - **Red before.** The `EM-R1` fixture (an added `semantic/18.*` while `PROTOCOL_VERSION` is `19.0.0`) run through `scan()` from `main`'s gate (`f42bcc18c6`) and from this branch's gate: main's is green, this branch's is red. The same battery run against this branch's gate with the refusal loop switched off: 15 failures, all in `EM-R1`, `EM-G5`, `EM-R3`, `EM-R4` and `EM-R5`. Nothing else in the self-test moved. - **Green after.** `node scripts/check-adr-0087-registration.mjs --self-test` printed `991 assertions` and exited 0. The battery floor holds, including `EM (objectstack-ai#38240)` at 31. - **Replayed on real history.** `scan()` over `d9bc148e0` (objectstack-ai#37513, the commit that filed `publish-refuses-data-model-fields-that-save-and-do-not-work` under 18 while protocol was 19) is red, naming that file. Over `216524a286` (objectstack-ai#38239, three `R100` renames 18 to 19) it is green, with 0 entries counted as added. The CLI over `f42bcc18c6..origin/main` (`5df10eccaa`, three new `19.*` entries) prints `3 migration entries added, each at or above PROTOCOL_MAJOR 19.` <details><summary>Red before: main's scan() against this branch's, on the EM-R1 fixture</summary> ```text main f42bcc1: GREEN -- EM-R1 expected RED, got green (0 problem(s)) branch: RED (1 problem(s)) packages/spec/src/migrations/entries/semantic/18.late-note.ts: adds a migration entry under protocol major 18, below the current PROTOCOL_MAJOR 19 --- ablated gate (refusal loop off) --self-test: ✗ check-adr-0087-registration --self-test -- 15 failure(s) • EM-R1 an added semantic/18.* under PROTOCOL_MAJOR 19 is refused: expected RED, got green • EM-G5: the backfill is reported with where it was declared -- got [] • EM-R3 a backfill line with a short reason is refused: expected RED, got green • EM-R4 a backfill line naming another entry does not excuse this one: expected RED, got green • EM-R5 an added retired-keys/18.* under PROTOCOL_MAJOR 19 is refused: expected RED, got green (and ten message-match lines under those cases) ``` </details> <details><summary>Green after, and the replay on the commit that filed a 19 note under 18</summary> ```text ✓ check-adr-0087-registration --self-test: 991 assertions over real temp git repos (real scan()/assertInputs() path) replay d9bc148 (the commit that filed a 19 note under 18): protocolMajor 19 · added ["semantic/18.publish-refuses-data-model-fields-that-save-and-do-not-work.ts"] · 1 problem(s) packages/spec/src/migrations/entries/semantic/18.publish-refuses-data-model-fields-that-save-and-do-not-work.ts adds a migration entry under protocol major 18, below the current PROTOCOL_MAJOR 19 (evaluated from packages/spec/src/kernel/protocol-version.ts at d9bc148). The filename prefix alone decides which upgrade step lists an entry, and `os migrate meta --from N` replays only the steps above N. An entry filed below the current major is never shown to a project upgrading from 18, the readers it was written for. fix: file it under the current major -- git mv packages/spec/src/migrations/entries/semantic/18.publish-refuses-data-model-fields-that-save-and-do-not-work.ts packages/spec/src/migrations/entries/semantic/19.publish-refuses-data-model-fields-that-save-and-do-not-work.ts The one case that may sit lower is a BACKFILL: ... (the last line prints the exact backfill declaration for this path) replay 216524a (PR objectstack-ai#38239, three R100 renames 18 -> 19): added 0 · 0 problem(s) $ node scripts/check-adr-0087-registration.mjs --base f42bcc1 --head origin/main ✓ check-adr-0087-registration: 1 declared-breaking changeset(s), each carrying an ADR-0087 disposition. ✓ check-adr-0087-registration: 3 migration entries added, each at or above PROTOCOL_MAJOR 19. ``` </details> <details><summary>Derived gate families: 34 derived, 34 run, all exit 0</summary> Derived with `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at `9982079f87`. Each command ran under `os-verify-lock.sh`, and its exit code was captured before any pipe. - 33 commands in one runner: `VERDICT command-exit 0`. Every one exited 0: `check-adr-0087-registration` (`--base origin/main` and `--self-test`), `check-closing-keyword-parity` (both halves), `check-comment-mask-corpus`, `check-declaration-mirrors` (both), `check-self-test-wired` (both), `check-self-test-workflow-commands` (both), `check-whole-set-label-write` (both), `ci/plan-test-core-shards --self-test`, `pm/bare-root-worklist --self-test`, and the pnpm families `adr-anchors`, `agent-test-spelling`, `bash32-floor`, `changeset-gate-self-tests`, `ci-filter-parity`, `cli-command-ids`, `cross-package-test-inputs`, `driver-memory-census`, `entry-guard`, `gitlink-declared`, `nul-bytes`, `parse-guard`, `pnpm-filter-targets`, `pnpm-flag-spellings`, `ratchet-remedy-authority`, `refd-timer-probe`, `scripts-symbol-anchors` and `watch-hint-literal`. - `pnpm check:pm-dispatch-gates`: `VERDICT command-exit 0`, `dispatch-gates self-test (fast tier): 2459 cases pass`. - `dispatch-gates --ran`: `34 derived famil(ies) accounted for — 34 run, 0 NOT-MEASURED`. </details> ## Acceptance notes - **No changeset.** The diff is one file under `scripts/` and publishes nothing, so the PR carries `skip-changeset`. That label skips the real scan in `Check Changeset`. The gate's `--self-test` half still runs, unconditionally, in `Lint & Repo Gates` (`check:changeset-gate-self-tests`). - **Why a new declaration form for backfills.** The gate's only text input is changeset bodies. Its one marker is the breaking-change disposition, which a changeset may carry exactly once, and a backfill is not a breaking change. Reading the PR body instead would need the workflow to pass it in, which is a governed `.github/workflows/**` edit. The form is one line per entry, checked against the exact added path, with the same 40-character reason floor as `not-required`. A line that names no refused entry excuses nothing and is not itself an error. - **`PROTOCOL_MAJOR` runs in a child process.** `loadProtocolMajor` is async (it imports the type-stripped module) and `scan()` is synchronous and called synchronously across the whole self-test. So the reader is called in a child `node`, only when an entry is added. The reader file itself is untouched. Cost: one short spawn on a PR that adds an entry, nothing on any other. - **Seat routing on the scope (A).** The seat (repo:objectstack#5) read the card's ":570 entry dirs" as plural and ruled scope A: all three entry directories, decided by key, with `semantic/` also required in the R4 set. A stays within *added* entries, so it does not widen past the reach note 7237892858. The narrower B (`semantic/` only, exactly the R4 id set) was not taken. - **The R4 set and renames.** `ledgerAdded` (the R4 set) is an id set read from `id:` lines. Renames do not count in it, because an id survives a move. But it carries no file paths, and it cannot see `retired-keys/` or `retired-defs/`, whose entries declare `export const entry = '...'` and no `id:`. The card's directory scope and its ~1,150 reading both span all three directories, so added-ness is decided by the key in each directory, and `semantic/` additionally requires the id to be in `ledgerAdded`. EM-G3 (semantic) and EM-G6 (retired-keys) pin that a rename, here a downward one so a counting rule would red, is not counted. - **Predicate 4 untouched.** Nothing in `verifyTypeSurfaceOnly` or the prescription exemption moved (maintainer ruling 2026-08-30 on objectstack-ai#13080). - **Not merged with `main`.** Since the branch point, `main` gained 8 commits. None touches this file, `sync-template-versions.mjs` or the protocol module (`overlap-check`: merges cleanly). The three entries `main` added are the CLI reading above. - **Follow-up filed: objectstack-ai#38467.** As the reach note suggests, a second check could run at the protocol move: no entry absent from every released tag may stay below the new major. That shape is the one that stranded the 34. objectstack-ai#38467 carries that check, a downward rename, a PR not re-judged after a protocol move, the `build-schemas.ts` remedy major, the README/ADR prose and `--list` (L2 N2, N3), and the delta L2 nits N1 (`retired-defs/` cost text) and N5 (capitalised placeholder words). ## Verification Read first (by risk): 1. `scan()`'s new tail block (the refusal and its backfill match) and `addedMigrationEntries`, the added-ness definition the rule stands on. 2. `protocolMajorAt`, the child process that evaluates `PROTOCOL_MAJOR` with `loadProtocolMajor`. 3. The `EM` battery, especially EM-G3 and EM-G6 (renames are not added) and EM-R2 (an unreadable major is red). Two-minute check: `node scripts/check-adr-0087-registration.mjs --self-test` prints the success line with no failures. Then run the gate on this branch with `node scripts/check-adr-0087-registration.mjs`. Its last line should read `this PR adds no migration entry.` --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn)_ <!-- signed: repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…g, 56 changesets added) and state what npm publishes (objectstack-ai#38645) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9St4eUWHFcCKuRUrCZPperJ)_ Fixes objectstack-ai#38189 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:v19 发布页的 breaking 清单补上 11 月 26 日之后合进来的 56 条改动(其中 30 条还在 main 上、下一次预发布才带上,页上逐条标明),计数和页头的发布状态也改成现在 npm 上的真实情况。 - 为什么做:升级到 19 的人把这页当完整清单用;原清单只数到 19.0.0-next.0 的输入,之后 next.1、next.2 和 main 上的 breaking 改动大多没列。 - 出错会怎样:只改一个文档页,不影响任何代码或发布;某条写错了,读者会被误导,但直接撤回这个改动即可恢复原页。 - 要你做的:无。 ## What changes `content/docs/releases/v19/index.mdx` only. - **Header.** The publication sentence now states what npm answers: `latest` is 18.6.0, `next` is `19.0.0-next.2`; the line's versions on npm are `19.0.0-next.0` (2026-11-26) and `19.0.0-next.2` (2026-11-28). `19.0.0-next.1` was versioned on `main` (30a8047) and is not on npm, so its changes first ship in `next.2`. - **How this list was built.** Re-measured at `6eb23c87` (origin/main at start, 2026-11-29) with the method the page states: `classifyReleaseBullet` over every changeset on `main` — the 1,185 in `.changeset/pre/` (consumed by the next.0, next.1 and next.2 version passes) and the 219 still pending. 159 breaking from 155 PRs: 98 to act on, 61 registered. - **56 new lines' worth of changesets**, each sorted by the classifier into 需手动处理 (27) or 自动迁移 (29), placed under the page's existing topic headings, with three new ones: 需手动处理 → Knowledge; 自动迁移 → Knowledge sources, Sharing and permissions. The 30 still pending carry "— on `main`". - **自动迁移 intro** and **Coming from 18.x step 3**: the registered split restated in changesets (31 on the protocol-19 step, 30 on the protocol-18 step, of 61). - **Callout**: no longer says no prerelease was published. ## Tests The classifier run (script in the dev's scratchpad; it imports `classifyReleaseBullet` from `scripts/release-github-releases.mjs` and feeds each changeset body as a CHANGELOG bullet, `- ` on the first line and two-space indent on the rest), at `b03fd5f5`'s parent tree `6eb23c87` (the diff touches no changeset): <details><summary>Raw counts</summary> ``` ALL 1404 {"manual":98,"migrated":61,"other":830,"added":403,"semantic":12} OLD (in a46efa8 set) 950 {"migrated":31,"manual":71,"other":563,"added":278,"semantic":7} NEW (after a46efa8) 454 {"manual":27,"other":267,"added":125,"migrated":30,"semantic":5} NEW next.0 45 {"other":27,"added":13,"migrated":1,"semantic":2,"manual":2} NEW next.1 138 {"manual":9,"other":80,"migrated":12,"added":36,"semantic":1} NEW next.2 52 {"added":11,"other":38,"manual":3} NEW pending 219 {"added":65,"other":122,"migrated":17,"manual":13,"semantic":2} missing-from-tree of a46 set: none ``` The same function over the 950 files as they stood at `a46efa8c` (`git show a46efa8:.changeset/FILE`): `{"migrated":31,"manual":71,"other":563,"added":278,"semantic":7}`, and 0 of the 950 changed section between `a46efa8c` and `6eb23c87` — the page's first count reproduces exactly. </details> <details><summary>The 57 breaking changesets added after a46efa8 (pass · section · PR · file)</summary> ``` next.0 manual 37477 37004-retire-knowledge-ragflow.md next.0 manual 37491 36964-flow-option-label-filters.md next.0 migrated 37437 35827-data-table-staged-edit-retired.md (already on the page) next.1 manual 37605 31908-p4c-sealed-expiry.md next.1 manual 37640 37604-platform-record-followups.md next.1 manual 37668 37104-knowledge-settings-readers.md next.1 manual 37720 37682-i18n-retire-build-chat-keys.md next.1 manual 37720 37682-retire-build-chat-frontend.md next.1 manual 37818 37608-disabled-holder-publish-rollback-refused.md next.1 manual 37883 37575-first-render-grid-shell-passes.md next.1 manual 37900 36689-mcp-stdio-disabled-package-every-caller.md next.1 manual 37902 37678-knowledge-turso-settings-group.md next.1 migrated 37366 37086-define-metadata-form-rename.md next.1 migrated 37366 37086-form-metadata-type.md next.1 migrated 37371 36055-view-all-stops-voting-on-fields.md next.1 migrated 37513 35143-data-model-publish-checks.md next.1 migrated 37584 37499-disabled-holder-unbound-row-bare-write-refused.md next.1 migrated 37600 36595-related-list-key-under-arrangement.md next.1 migrated 37676 37304-knowledge-source-governed-type.md next.1 migrated 37783 37712-agent-model-provider-retired.md next.1 migrated 37807 35143-seeds-actions-checks.md next.1 migrated 37840 36377-flow-bare-ordering-record-date-arithmetic.md next.1 migrated 37870 37613-book-audience-one-gate.md next.1 migrated 37910 37717-lookup-depends-on-param-computed-field.md next.2 manual 37948 37851-disabled-holder-own-row-publish-rollback-refused.md next.2 manual 38028 managed-email-password-held-off.md next.2 manual 38042 36679-secret-rewrap-confirmation-exit.md pending manual 37896 runtime-object-less-action-no-record.md pending manual 37963 37467-knowledge-title-arm-retired.md pending manual 37982 37907-knowledge-turso-test-connection.md pending manual 38038 38019-knowledge-source-review-follow-ups.md pending manual 38085 37622-related-list-keys-agree-under-arrangement.md pending manual 38180 auth-switches-read-declaration.md pending manual 38209 35879-served-schema-platform-stamped-keys.md pending manual 38268 sec2-wf9p-f12.md pending manual 38269 37752-app-list-edit-with-ai-removed.md pending manual 38310 38041-knowledge-source-closure-system-object.md pending manual 38431 36987-auth-updateuser-returns-void.md pending manual 38452 38377-retire-split-algorithm-version.md pending manual 38580 36057-scenarios-delete-agent-confirmation-names.md pending migrated 37924 37856-ask-ai-action-type-retired.md pending migrated 37929 36495-action-locations-acted-on.md pending migrated 37971 37307-knowledge-source-references.md pending migrated 38001 automation-variable-keys-reserved-segments.md pending migrated 38013 37983-knowledge-source-save-needs-the-service.md pending migrated 38060 37961-knowledge-source-unmounted-adapter-refused-at-save.md pending migrated 38096 34562-record-structural-lint.md pending migrated 38107 35143-views-dashboards-checks.md pending migrated 38145 37214-chart-series-measure-format-refused.md pending migrated 38168 36544-form-view-modal-size-retired.md pending migrated 38216 33912-share-unknown-recipient-ledger.md pending migrated 38216 33912-share-unknown-recipient.md pending migrated 38273 33806-pending-confirmation-service-one-seam.md pending migrated 38299 35924-publish-reparses-object-draft.md pending migrated 38398 37753-build-progress-frame-retired.md pending migrated 38470 38369-knowledge-held-without-embedder-or-store.md pending migrated 38545 38150-adopt-orphans-door-retired.md ``` PR = the `(#N)` of the commit that added the changeset (`git log --diff-filter=A`). The pass is the version commit that moved the file into `.changeset/pre/`: next.0 33a31dc, next.1 30a8047, next.2 9d111a7 (`packages/spec/package.json` reads `19.0.0-next.0/1/2` at each). </details> <details><summary>Page cross-checks</summary> - Every one of the 155 PRs behind a breaking changeset is linked on the page (0 missing), and the page links no PR outside that set. - Each of the 30 pending changesets sits on a line carrying "— on `main`", and no published one does. - `!`-titled first-parent commits since 18.6.0 (958ee03) to `6eb23c87`: 135 (87 to `a46efa8c`, as the page said); all 135 are in the list. - Registered markers resolved to their entry files (`packages/spec/src/migrations/entries/*/N.*`, `packages/spec/src/conversions/entries/N/`, and metadata-core's forward conversion for `permission-view-all-fields-beside-record-bypass`): the 30 registered changesets added after `a46efa8c` name 39 ids, all on step 19; the 31 before it name 33 ids, 32 on step 18 and `protocol-18-range-refused` on step 19. </details> ## Acceptance notes - **Pending changesets are in the list.** The card's done-when covers every changeset between `a46efa8c` and the measurement sha; 30 of those are still in `.changeset/` and ship in the next cut, so their lines are marked "on `main`" and the intro says so. - **`19.0.0-next.1` is not on npm.** `npm view PKG versions` for `@objectstack/spec`, `core`, `cli`, `runtime` and `@object-ui/i18n` lists `19.0.0-next.0` and `19.0.0-next.2` only. The header states that fact and no more. - **The registered split is now counted in changesets, not entries.** The old page said 41 registered entries, 39 on protocol 18. Counting the ids in the registered markers gives 33 at `a46efa8c` (32 on step 18), so the 41/39 could not be reproduced from any stated method. The rewritten intro and step 3 count changesets (31 on step 19, 30 on step 18, of 61), which match the bullets one to one. - **Followed the classifier where a title has no `!`:** objectstack-ai#37605, objectstack-ai#37883, objectstack-ai#37963, objectstack-ai#38209 and objectstack-ai#38269 are breaking by their banner or their `(narrowing)` arm; objectstack-ai#38209's Clause-② reads "no (narrowing …)", which the classifier counts as breaking although the body says nothing a client sends is refused. Listed as classified; no changeset changed. - **objectstack-ai#37513** merged before the next.0 cut but its changeset was consumed by next.1 (its body says the next.0 CHANGELOG missed it). - **One line, several changesets**: objectstack-ai#37720, objectstack-ai#37366 and objectstack-ai#38216 each carry two changesets; objectstack-ai#37818 with objectstack-ai#37948, objectstack-ai#38038 with objectstack-ai#38310 and objectstack-ai#38013 with objectstack-ai#38060 share a line. The existing 102 lines were not rewritten. - **Counts on a release page**: each is anchored to a named measurement sha, the snapshot the card asks for; it is not a count kept in sync with the tree. - **objectstack-ai#37437** (closed card objectstack-ai#37922's bullet) is not added twice. - **Check Changeset** will be red: this docs-only PR publishes nothing from any package, the `skip-changeset` case, and the dispatch opens it without labels, so that label is the seat's to apply. ## Verification Read first, by risk: the method paragraph and header (`index.mdx` lines 6-47), the 自动迁移 intro, then the new 需手动处理 → Knowledge block. Two-minute check: `git show 6eb23c8:.changeset/pre/37851-disabled-holder-own-row-publish-rollback-refused.md | head -12` shows the `fix(metadata-protocol)!` summary and the BREAKING banner behind the objectstack-ai#37948 line; `npm view @objectstack/spec dist-tags` prints `{ latest: '18.6.0', next: '19.0.0-next.2' }`. <details><summary>Local gate readings at b03fd5f</summary> ``` dispatch-gates --commands at b03fd5f: 52 commands (1 path changed) first pass: 47 exit 0; 5 exit 3/1 = PREREQUISITE NOT MET (lint, spec, client-react unbuilt), re-run after building the closures under os-verify-lock (VERDICT command-exit 0 both): pnpm --filter '@objectstack/lint...' build ; pnpm --filter '@objectstack/client-react...' build final: 52 of 52 :: exit 0 ✓ dispatch-gates --ran: 52 derived famil(ies) accounted for — 52 run, 0 NOT-MEASURED (a DERIVED zero — all 52 recorded an exit code and none of them is 3). check-release-page-status: OK — 3 GA major(s) in scope (v16, v17, v18) ``` </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ADHkmRar3Kkg6SpwVgaaVE <!-- signed: repo:objectstack#3 · os-steve · session_01ADHkmRar3Kkg6SpwVgaaVE --> Co-authored-by: Claude <noreply@anthropic.com>
Part of #35143
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #37529
维护者速读
What changes
The Data model family of the card's second batch of publish-time checks, five lines, each verified on
origin/mainfirst.field/count-named-lookupfield/summary-without-operationsrefuses the summary itselfrollup/child-without-parent-reference, added to the existinglintSummaryRollupsreferenceon a type that reads nonefield/reference-on-non-reference-typeapproval-detail-editable-while-pending, added to the existingvalidateApprovalApproversbuildSummaryIndex). It readssummaryOperations.relationshipFieldwhen that is set. Otherwise it looks for the firstmaster_detail/lookupon the child that references the parent. When the index finds no foreign key, the summary is skipped with nothing logged, so the field reads 0 or empty while every child write reports success.owner_id,created_byandupdated_byback tosys_user, plus the tenancy lookups).referencesits on any type outsideREFERENCE_VALUE_TYPESplussummary.summaryis exempt because the hosted blueprint readssummary+reference.referenceto the record picker, except the textual fallback types. For text, number and date fields the message therefore names the record-id write; a select and the other types the inline editor routes first are told only that the key links nothing.lintFieldReferenceShapes, which runs on both theobjectand theobject_extensiondoor. D1 is a warning, so it comes back as a 2xx advisory.lockRecordnot set tofalsemakes the rule look at the flow's start object. If that object has a non-multiplelookupchild drawn as a body table (relatedList: 'primary', read throughisBodyTableRelationship), the rule warns once per flow. The approval lock coversmaster_detailchildren only.publish-refuses-data-model-fields-that-save-and-do-not-workin@objectstack/spec. It is a notice only, because each fix is a choice only the author can make.Tests
data-model-rules.field-reference-shapes.test.ts(new) covers D4 and D1:objectand onobject_extension, and returns D1 as an advisory.data-model-rules.summary-rollup.test.tscovers D3:relationshipFieldthat names no field of the child;master_detail, withlookup, with arelationshipFieldthat names a real child field, when the child is absent, forsys_uservia the injected column, and for a foreign key added by an extension on the CLI;validate-functional-completeness.test.tscovers D2: a bare summary that a formula reads is refused at the gate asfield/summary-without-operations.validate-approval-approvers.test.tscovers D5:master_detailchild, a non-body lookup andlockRecord: false;lintFieldReferenceShapesis added to the exactrulesRunlists in three runtime-gate test files.Acceptance notes
Clause-②: notogether withMetadata-protocol: narrowed. The changeset gate refusesnarrowedwithout the(narrowing)arm. Two of the checks refuse a publish that used to be accepted, so the change narrows. This PR therefore carriesClause-②: no (narrowing)and a!title, the same as the Flows precedent.summaryOperationsis already refused as itself, so the formula that reads it cannot publish either. That is recorded and pinned.summary, because the hosted blueprint readssummary+reference.formulaandautonumberstill fire, but their message drops the record-picker clause because they have no editor.os validate --strictexit 1, as any warning does. D1 rides the object door as a gating-rule warning, so it comes back as an advisory, not a refusal.lintDataModel). R8 countsrefOf(def), and the keysoptionsFrom/dataSource, as select option sources. Neither key exists in the spec. This is a carrier note and is not filed.authoring-rules.tsmerges cleanly.Verification
Two-minute check:
pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/data-model-rules.field-reference-shapes.test.ts src/data-model-rules.summary-rollup.test.ts. Expect every case to pass.Read first, by risk:
packages/lint/src/data-model-rules.ts, the D3 relation arm insummaryRollupFindings. It must agree with the engine's foreign-key choice, or it refuses roll-ups that compute.packages/lint/src/authoring-rules.ts: the new entry's doors (object,object_extension) and the served-fields map passed to the roll-up check.packages/lint/src/validate-approval-approvers.ts: the body-table reading for D5.Readings at final head ad43f0b: lint 237/237 files, 9682 tests (at 2740a17); app-shell narrowed set 221/221 files, 2429 tests (at 48d632c) plus the retype pin file at ad43f0b; dogfood battery 487 passed, 3 skipped files, 4129 passed, 68 skipped tests; CI 63 success, 11 skipped, 0 failed (after the body edit re-ran four jobs).
Follow-ups from the contract review nits: #37577.
Also in this PR: 77ac3ce gives the objectql duplicatePackage roll-up fixture's child a foreign key back to its parent (the new rollup/child-without-parent-reference refusal turned that stale fixture red); 48d632c and ad43f0b make the console field designer drop reference on a retype to a type that reads none and strip a stored one at its read door (contract review M1, under the seat's scope line 7190889569), with its own @object-ui/app-shell patch changeset.
Earlier local readings (head b26f2c1, tree identical to the readings' tree 4e2ea58)
@objectstack/lintfull suite, under the lock: Test Files 237 passed (237), Tests 9680 passed (9680), VERDICT command-exit 0.os validateon app-crm, app-multi-package, app-showcase, app-starter and app-todo: each "Validation passed", with zero findings from the four new checks.dispatch-gates.mjs --commands), the full dogfood battery and the CI check-runs are read in the os-dev-report comment on the card.Generated by Claude Code