Repository navigation
fix(spec): three upgrade-guide entries that first ship in protocol 19 move from step 18 to step 19, so os migrate meta --from 18 shows them - #38239
Conversation
…l 19 under step 19 Three ADR-0087 semantic entries were filed under 18.* after PROTOCOL_VERSION moved to 19, so composeMigrationChain(18) skipped them. Rename to 19.*; ids and bodies unchanged. Claude-Session: https://claude.ai/code/session_01L9qibvcTXi4hWgjz8G8ium Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. 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 f11fcd32ba80e9bdc2bdd94cf826730f0c03aedf && git checkout f11fcd32ba80e9bdc2bdd94cf826730f0c03aedf
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin bd5407ec74b280f92a281ca4f82e5c8f0f8bdd47 fc06c4dab845990e96fb6eb0e3ae49317c14b237 && git checkout -B drift-repro bd5407ec74b280f92a281ca4f82e5c8f0f8bdd47 && git merge --no-ff fc06c4dab845990e96fb6eb0e3ae49317c14b237
node scripts/docs-audit/affected-docs.mjs --json bd5407ec74b280f92a281ca4f82e5c8f0f8bdd47 |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head fc06c4d · 2026-11-28T10:10Z |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 The brief the contract reviewer above was handed, filled, for the seat to read before it adopts the record: Contract review brief — PR #38239 @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: Inputs: card #38142 (body, triage 7234229913, claim 7236938884, os-dev-report 7237345615), PR #38239 (body, file list, net diff against merge base The diff: three ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. No nits either.
Out-of-diff note for the seat (not a finding on this head; the three renames are right as they stand). The card's own criterion is "a refusal that first ships in 19 belongs to step 19". Its candidate list was drawn from a narrower test: entries added after the commit that moved
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a ACCEPT at
Flag for the seat (out of diff, not blocking this PR). The record's out-of-diff note finds 34 more
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Landing · 2026-11-28T10:26Z · zone
|
…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>
…hat first ship in 19 move to protocol 19 (objectstack-ai#38627) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9CGtGeksBgFXURAQ8CAJhT8)_ Fixes objectstack-ai#38256 Clause-②: no Metadata-protocol: none ## 维护者速读 - 从 18 升级到 19 的团队用升级命令时,以前看不到 34 条变化说明,其中三项旧写法也不会被自动删掉;现在这些说明都列在 18 → 19 的升级提示里,三项旧写法会被自动删除。 - 修正第 19 版的升级说明,替用升级命令从 18.x 升上来的团队补上漏掉的提示和自动修改。 - 只是把说明和自动修改挪到正确的大版本下,说明内容不改,三项自动修改的先后顺序也不变;出错只影响升级提示与自动修改落在哪个版本,可以直接撤回。 - 无 ## What changes - **The set, re-derived on `origin/main` (Ask 1).** `semantic/18.*` entries present at the protocol move `204356a6e` (objectstack-ai#37314) and absent at `@objectstack/spec@18.6.0` (`958ee0359`): 579 − 545 = 34, the same 34 ids the card lists. Each is in no `@objectstack/spec@18.*` tag (all 12 read: 0 hits each) and in `19.0.0-next.0` (34 of 34). - **34 semantic entries move to step 19 (Ask 2).** `entries/semantic/18.ID.ts` becomes `19.ID.ts`, R100, ids and bytes unchanged. `gen:migration-registry` files an entry by its file name's major, and `composeMigrationChain(fromMajor)` keeps only the steps above `fromMajor`, so under 18 the 18 → 19 upgrade never listed them. - **Three of the 34 move as whole families, not entries alone.** `object-grid-single-click-edit-retired`, `view-column-state-retired` and `field-inline-edit-boolean-retired` are each the D3 record of a D2 conversion from the same window (`object-grid-single-click-edit-removed`, `view-column-state-removed`, `field-inline-edit-boolean-removed`: absent at 18.6.0, first shipped in 19.0.0-next.0). Ruling B in `migrations.test.ts` and each family's pin hold the D3 entry in its conversion's own step, and under 18 `os migrate meta --from 18` did not run those conversions either. So, per the seat's amended claim: - the three conversions move to `src/conversions/entries/19/`, `toMajor: 19`, `retiredAfter` unchanged (`18.6.0` is still the last stable release that accepted the old shape); - `src/conversions/registry.ts`: they leave `MAJOR_18_CONVERSIONS` and join `MAJOR_19_CONVERSIONS` at `order` 0.1 / 0.1 / 0.2. They were the last three of major 18 (orders 83, 83, 84), so `ALL_CONVERSIONS` runs in exactly the same sequence as before; only the step each is reported under changes. Read off the built registry: major 18's tail is now `manifest-packaging-manifest-deps-removed`, `form-view-drawer-keys-removed`, `view-personal-declarations-removed`, and major 19 starts `object-grid-single-click-edit-removed`, `view-column-state-removed`, `field-inline-edit-boolean-removed`; - each conversion's docblock says protocol 19 and `--from 18`, and the two schema comments that name a moved conversion (`src/ui/component.zod.ts` above `singleClickEdit`, `src/data/field.zod.ts` above the boolean `inlineEdit` refusal) say protocol 19. - **Four retired-key rows move to 19 (Ask 3).** `ai/KnowledgeChunk:metadata`, `ui/ObjectGridProps:singleClickEdit`, `ui/ViewItemWire:columnState`, `ui/ViewMetadata:columnState`: each is in no 18.x tag and in 19.0.0-next.0, so the card's criterion holds. The aging reading: `build-schemas.ts` check (c) proof 1 allows deleting a tombstone once `CURRENT_MAJOR - registeredAt >= 1`. At 18 these rows were deletable now, at major 19, before any stable release ever carried them; at 19 they become deletable at 20, the same as every other retirement that first ships on the 19 line. Proof 2 (the `@objectstack/spec@18.0.0` dating tag) does not date them, since none was `[RETIRED]` there. So the move corrects a verdict rather than changing one wrongly. One row's comment named the 18.x line as its reason and now says why it is under 19. - **Step 18 rationale → step 19 rationale.** The `STEP18_RATIONALE` fragments of the four moved retirements (`object-grid-single-click-edit-retired`, `view-column-state-retired`, `field-inline-edit-boolean-retired`, `knowledge-chunk-metadata-retired`) leave step 18 and their text, unchanged, joins step 19's rationale, before the form view `modalSize` sentence (placed there so it does not share the tail line objectstack-ai#38550 edits). - **Refusal text the moves made false.** `retired-key-removal-version.pin.test.ts` derives a prescription's `os migrate meta --from N` from the conversion's `toMajor`, so the `singleClickEdit`, boolean `inlineEdit` and `columnState` refusals now say `--from 18`. `KnowledgeChunk.metadata`'s tombstone said "removed in @objectstack/spec 18"; it now says 19.0.0, as its three siblings already did. That pin did not catch it because it derives the version only for retirements with a D2 conversion, and this one has none. Reference pages regenerated (`content/docs/references/ai/knowledge-document.mdx`, `ui/component.mdx`, `ui/view.mdx`). - **A sibling entry's wording.** `19.ui-form-view-modal-size-retired` (not one of the 34) called `internal-record-forms-not-loaded` "the protocol-18 semantic entry"; it now says protocol-19, since that entry moves to step 19 here and the sentence prints under the 18 → 19 hop (contract review, S1). The boolean `inlineEdit` prescription's docblock says protocol 19 too. - **Built artifacts declaring a bare `^19`.** The artifact door replays a retired conversion for a `19.0.0` floor only when its step is 19 (`converted-major-step`, `packages/metadata-core/src/artifact-forward-conversion.ts`). Such an artifact that still carried one of the three keys was refused before; it is now converted at ingestion. Artifacts declaring a floor below 19 replayed them already. The changeset says so. - **Order-dependent wording.** None of the 34 says "since the previous entry" or similar. Where an entry names another (for example `18.action-body-does-not-compile-refused` names `body-regexp-pattern-refused`, now under 19), it names the id, not a position, so it still reads right. - One `@objectstack/spec` patch changeset (Ask 4). The id-keyed `adr-0087: registered` markers in `.changeset/pre/*` and the released CHANGELOGs, which say "step 18" for these families, stay as published (AGENTS.md: release-owned). ## Tests Forced test changes, each because the family it pins moved to 19: - `src/data/field-inline-edit-boolean.pin.test.ts`: the conversion's `toMajor` and the step it is wired into read 19; the prescription regex reads `--from 18`. - `src/ui/object-grid-single-click-edit.pin.test.ts`: the same, plus `RETIRED_KEYS_BY_MAJOR[19]`. - `src/ui/view-column-state-retirement.test.ts`: the retired-key rows, the conversion and the D3 entry are read from major 19; the prescription regex reads `--from 18`. No other test changes. The chain pins (`migrations.test.ts`, `semantic-relevance.test.ts`, `step18-rationale-merge.test.ts`, `conversions-major18-merge.test.ts`) read the generated lists and pass unchanged. <details><summary>Readings (head 367d09d, base origin/main ee9fd3d)</summary> Built registry (`dist/migrations`): | | step 18 semantic | step 19 semantic | conversions 18 / 19 | retired keys 18 / 19 | `composeMigrationChain(18)` lists the 34 + the 3 of objectstack-ai#38239 | `composeMigrationChain(17, 18)` lists any | |:--|:--|:--|:--|:--|:--|:--| | before (main) | 579 | 34 | 98 / 8 | 282 / 9 | the 3 only | the 34 | | after | 545 | 68 | 95 / 11 | 278 / 13 | all 37 | none | The semantic id set over every step: 690 ids, 690 unique, before and after. Local runs: - `pnpm --filter @objectstack/spec build` under `os-verify-lock`: command-exit 0. - `pnpm --filter @objectstack/spec test` under `os-verify-lock` at 367d09d (`build` and `check:generated` clean there): `Test Files 913 passed (913)`, `Tests 28893 passed | 1 todo (28894)`. - `pnpm --filter @objectstack/spec typecheck`: command-exit 0. - `pnpm --filter @objectstack/spec check:generated --fix`: regenerated the three reference pages it proved stale. - Derived gates (`dispatch-gates.mjs --commands`) at 367d09d: 122 derived, 122 run, each exit 0; `--ran` reconciles 0 NOT-MEASURED (after `turbo run build --filter=./packages/**` and `git fetch --unshallow`, without which nine exit 3 on unmet prerequisites). - `overlap-check.mjs` before every push: clean with origin/main and with objectstack-ai#38594 (which edits `18.publish-refuses-flows-that-save-and-do-not-run.ts`; `git merge-tree` against its head applies that edit to the renamed `19.` file). One overlap, see Acceptance notes. </details> ## Acceptance notes - **Textual overlap with objectstack-ai#38550.** Both PRs insert a line into `MAJOR_19_CONVERSIONS`'s imports and list directly after `permissionViewAllFieldsBesideRecordBypass` (this one `viewColumnStateRemoved`, objectstack-ai#38550 `viewBulkActionsToActionSelection`), so whichever lands second merges main and resolves it mechanically: both lines kept, in identifier order (`viewBulk…` before `viewColumn…`). `registry.ts.template` merges clean with objectstack-ai#38550. The seat chose to open this PR rather than wait. - Released prereleases (`19.0.0-next.0` to `next.2`) carry these entries, rows and conversions under 18 and stay as published; the fix ships with the next prerelease. ## Verification Read first (by risk): 1. `packages/spec/src/conversions/registry.ts`: the three entries' new `order` values and the docblock that says why. 2. `packages/spec/src/migrations/registry.ts.template`: the four fragments moved from `STEP18_RATIONALE` into step 19's rationale. 3. The renames: `git diff --stat -M origin/main...HEAD` shows R100 for the 34 semantic entries and the three columnState / KnowledgeChunk rows. Two-minute check: in `packages/spec`, run `pnpm gen:migration-registry`, then `grep -n "object-grid-single-click-edit-retired" src/migrations/registry.ts`. On this branch the id sits inside the `semantic:19` region; on main it sits inside `semantic:18`. <!-- signed: repo:objectstack#3 · os-steve · session_01ADHkmQcqpJwkeqnruAv4md --> --------- Co-authored-by: Claude <noreply@anthropic.com>
repo:objectstack#3 · os-tesla · session_01L9qibvcTXi4hWgjz8G8ium
Requested by Tesla · project thread
Fixes #38142
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
semantic/18.ID.tsbecomessemantic/19.ID.tsfordefine-form-studio-helper-renamed-define-metadata-form,form-type-define-form-and-packageless-list-at-form-name(both from refactor(spec)!: rename the Studio helper defineForm to defineMetadataForm and its modules to *.metadata-form.ts #37366) andpublish-refuses-data-model-fields-that-save-and-do-not-work(from fix(lint)!: four publish-time checks for data-model metadata that saves and does not work #37513). The ids and the file contents are unchanged (pure renames, 100% similarity).gen:migration-registryfiles an entry by its filename's major, andcomposeMigrationChain(fromMajor)keeps only the steps abovefromMajor(packages/spec/src/migrations/chain.ts:42). All three were added afterPROTOCOL_VERSIONmoved to 19 (204356a6e, feat(spec)!: PROTOCOL_VERSION 18 → 19, and every current-protocol handshake reads '^19' #37314). None is in@objectstack/spec@18.6.0, the last 18.x release; fix(lint)!: four publish-time checks for data-model metadata that saves and does not work #37513 first shipped in19.0.0-next.0, refactor(spec)!: rename the Studio helper defineForm to defineMetadataForm and its modules to *.metadata-form.ts #37366 in19.0.0-next.2(tag ancestry). Filed under 18, they were skipped by exactly the 18 → 19 upgrade they describe.form-type-…still followsdefine-form-…in id order, so its "since the previous entry" sentence still reads right.adr-0087: registeredmarkers in.changeset/pre/*and the released CHANGELOGs stay valid and are not edited.@objectstack/specpatch changeset. The registry,spec-changes.jsonand 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.Readings (head fc06c4d, base origin/main 23fa361)
Generated registry and
composeMigrationChain(18):--from 18lists the threeapplyMetaMigrations(stack, 18)on a minimal stack: before,todos=21, all three NOT LISTED; after,todos=24, all three aretodos.Local runs at fc06c4d:
pnpm exec turbo run build --filter='./packages/**' --filter='@objectstack/dogfood^...'underos-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).dispatch-gates.mjs --commands): 83 run, each exit 0;--ranreconciles 83 derived, 83 run, 0 NOT MEASURED (a derived zero: every line records its exit code).overlap-check.mjsbefore the first push: merges cleanly with origin/main, 0 open PR heads overlap.Acceptance notes
check-adr-0087-registrationread the major? Not built here (claim). The measured answer: in the window the per-entry files exist (f293d454b, 2026-08-10, to origin/main23fa3619), every entry added landed at or above the protocol major of its day, except these three.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.204356a6e, the 18 → 19 bump): 345 under 18, 0 below. The bump commit itself added one entry under 19.PROTOCOL_MAJORor above it" would have fired on exactly these three in about 1,150 additions, and on no backfill. "Equal toPROTOCOL_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.semantic/18.*entries were added betweenspec@18.6.0(958ee0359) and the move, ship in no 18.x release, and are skipped by--from 18the same way; each was filed whilePROTOCOL_MAJORread 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.19.0.0-next.0andnext.2carry these entries under 18, soos migrate meta --from 18on 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):
git diff --stat -M origin/main...HEADshowsR100for each.Two-minute check: in
packages/spec,pnpm gen:migration-registryand thengrep -n "publish-refuses-data-model-fields-that-save-and-do-not-work" src/migrations/registry.ts. On this branch the id sits inside thesemantic:19region; on main it sits insidesemantic:18.Generated by Claude Code