Skip to content

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

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-rgky0j
Nov 28, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-rgky0j

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

repo:objectstack#3 · os-tesla · session_01L9qibvcTXi4hWgjz8G8ium

Requested by Tesla · project thread

Fixes #38142

Clause-②: no
Metadata-protocol: none

维护者速读

  • 从 18 升级到 19 的作者,以前在升级提示里看不到三条变化(表单工具改名、表单类型、发布时拒收存不住的数据模型字段),现在这三条会列在 18 → 19 的升级提示里。
  • 修正第 19 版升级说明,替用升级命令从 18.x 升上来的团队补上漏掉的提示。
  • 只是把三条说明挪到正确的大版本下,内容一字不改,不碰任何数据或配置;出错也只是提示位置不对,可以直接撤回。
  • 无

What changes

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):

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.

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

…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>
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

1 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
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json bd5407ec74b280f92a281ca4f82e5c8f0f8bdd47 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from f11fcd32ba80e9bdc2bdd94cf826730f0c03aedf — the merge of head fc06c4dab845990e96fb6eb0e3ae49317c14b237 into base bd5407ec74b280f92a281ca4f82e5c8f0f8bdd47, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 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

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T10:10Z

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head fc06c4d · 2026-11-28T10:10Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 @ fc06c4dab845990e96fb6eb0e3ae49317c14b237 (card #38142)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths packages/spec/src/migrations/entries/semantic/19.define-form-studio-helper-renamed-define-metadata-form.ts packages/spec/src/migrations/entries/semantic/19.form-type-define-form-and-packageless-list-at-form-name.ts packages/spec/src/migrations/entries/semantic/19.publish-refuses-data-model-fields-that-save-and-do-not-work.ts packages/spec/src/migrations/entries/semantic/18.define-form-studio-helper-renamed-define-metadata-form.ts packages/spec/src/migrations/entries/semantic/18.form-type-define-form-and-packageless-list-at-form-name.ts packages/spec/src/migrations/entries/semantic/18.publish-refuses-data-model-fields-that-save-and-do-not-work.ts — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #38142: its body and EVERY comment (rulings and earlier records included)
· PR #38239: its body, its file list, and the net diff against main at fc06c4dab845990e96fb6eb0e3ae49317c14b237
· the check-runs on fc06c4dab845990e96fb6eb0e3ae49317c14b237: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: packages/spec/src/migrations/entries/semantic/19.define-form-studio-helper-renamed-define-metadata-form.ts, packages/spec/src/migrations/entries/semantic/19.form-type-define-form-and-packageless-list-at-form-name.ts, packages/spec/src/migrations/entries/semantic/19.publish-refuses-data-model-fields-that-save-and-do-not-work.ts, packages/spec/src/migrations/entries/semantic/18.define-form-studio-helper-renamed-define-metadata-form.ts, packages/spec/src/migrations/entries/semantic/18.form-type-define-form-and-packageless-list-at-form-name.ts, packages/spec/src/migrations/entries/semantic/18.publish-refuses-data-model-fields-that-save-and-do-not-work.ts;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/166e2125-4268-552f-a555-2b7c43a99f0f/scratchpad/pr-38239/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T10:22Z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: fc06c4dab845990e96fb6eb0e3ae49317c14b237
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.define-form-studio-helper-renamed-define-metadata-form.ts, packages/spec/src/migrations/entries/semantic/19.form-type-define-form-and-packageless-list-at-form-name.ts, packages/spec/src/migrations/entries/semantic/19.publish-refuses-data-model-fields-that-save-and-do-not-work.ts, packages/spec/src/migrations/entries/semantic/18.define-form-studio-helper-renamed-define-metadata-form.ts, packages/spec/src/migrations/entries/semantic/18.form-type-define-form-and-packageless-list-at-form-name.ts, packages/spec/src/migrations/entries/semantic/18.publish-refuses-data-model-fields-that-save-and-do-not-work.ts + no implementing file in the diff (its fourth file, .changeset/38142-semantic-entries-step-19.md, is a prose face, read for ② only). Read, not reviewed: packages/spec/scripts/build-migration-registry.ts, packages/spec/src/migrations/registry.ts.template, packages/spec/src/migrations/chain.ts, packages/spec/src/migrations/types.ts, packages/spec/src/migrations/spec-changes.ts, packages/spec/src/migrations/entries/README.md, packages/spec/scripts/build-spec-changes.ts, packages/spec/scripts/build-upgrade-guide.ts, packages/spec/scripts/build-schemas.ts, packages/cli/src/commands/migrate/meta.ts, scripts/check-adr-0087-registration.mjs

Inputs: card #38142 (body, triage 7234229913, claim 7236938884, os-dev-report 7237345615), PR #38239 (body, file list, net diff against merge base 23fa3619), the 69 check-runs on the head. Follow-up card #38240 read for context. Ancestry and release membership read from the GitHub compare and tree APIs; nothing built or run.

The diff: three R100 renames (semantic/18.ID.ts to semantic/19.ID.ts, bytes unchanged) and one changeset.

① Derived judgments

  • Accept set: unchanged. Right. No schema, validator or loader byte moves.

  • How a step is chosen: the filename prefix alone. Right. parseEntry takes the major from the leading digits of the filename and refuses a name that is not shardNameFor(major, id) (build-migration-registry.ts); the three new names satisfy it and the template carries the semantic:19 region they land in. SemanticMigration has no major field (types.ts), and none of the three bodies states a protocol number.

  • Nothing else carries 18 for these entries. Right. At the head, git grep for the three ids finds only this PR's changeset and the id-keyed adr-0087: registered markers in .changeset/pre/* and the release-owned CHANGELOGs; a grep for the three old 18.ID paths finds nothing. No test, doc page, baseline, ledger or step rationale names them (the template's STEP18_RATIONALE and step 19's rationale mention neither change). There is no index file by design (entries/README.md), and registry.ts, spec-changes.json and the upgrade guide are generated and git-ignored.

  • Public surface of @objectstack/spec/migrations: export names unchanged, three values move. Right. Counted on the two trees: semantic/18.* 582 at the base, 579 at the head; semantic/19.* 21 at the base, 24 at the head. The id set with the prefix stripped is identical at base and head, with no duplicate id, so each entry is listed once.

  • What each run shows. Right. composeMigrationChain keeps the majors above fromMajor and at or below toMajor (chain.ts:38-45).

    • --from 18: the three are now todos of the protocol 19 hop; before, the run never reached them.
    • --from 17 and --from 16: each is still listed once, now under the protocol 19 hop and labelled [protocol 19] in place of 18.
    • --from 17 --to 18: no longer lists them. Correct, because no 18.x release carries any of the three behaviours.
    • --from 19: an empty range before and after.
  • Projections. Right. composeSpecChanges reads the step table, so the per-major record 17 → 18 loses the three, 18 → 19 gains them, and their aggregate rows read toMajor: 19. The per-release section is an id-set difference against the previous tarball (composeReleaseChanges); 19.0.0-next.2 already carries the three ids, so the next prerelease will not name them as newly registered, which is the honest reading of a re-filing. The upgrade guide's "Protocol 18 → 19" section gains them.

  • Registration gate: unaffected. Right. check-adr-0087-registration.mjs reads entry ids through ls-tree over the three entry directories and never reads the major, so the existing markers still answer the same ids.

  • Order inside the step. Right. Entries are concatenated by id in code-unit order; define-form-… still sorts before form-type-…, so the second entry's "since the previous entry" reads as it did. Two unrelated step-19 entries now sit between them; in step 18 many did.

  • Each of the three first ships in protocol 19. Right. Read from the compare API against the release tags and from the entry directory at each tag commit:

    entry added by in spec@18.6.0 (958ee0359, the last 18.x) first release
    publish-refuses-data-model-fields-that-save-and-do-not-work d9bc148e0, fix(lint)!: four publish-time checks for data-model metadata that saves and does not work #37513, 2026-11-26T15:14Z no 19.0.0-next.0 (33a31dc7b)
    define-form-studio-helper-renamed-define-metadata-form adb65d161, refactor(spec)!: rename the Studio helper defineForm to defineMetadataForm and its modules to *.metadata-form.ts #37366, 2026-11-27T07:13Z no 19.0.0-next.2 (9d111a7f5)
    form-type-define-form-and-packageless-list-at-form-name adb65d161, refactor(spec)!: rename the Studio helper defineForm to defineMetadataForm and its modules to *.metadata-form.ts #37366 no 19.0.0-next.2

    Both commits descend from the protocol move 204356a6e (feat(spec)!: PROTOCOL_VERSION 18 → 19, and every current-protocol handshake reads '^19' #37314, 2026-11-26T05:34Z). The behaviour agrees with the entries: the two rule ids are absent from packages/lint/src/data-model-rules.ts at the 18.6.0 commit and present at 19.0.0-next.0, and packages/spec/src/ui/view.zod.ts exports no defineMetadataForm at 18.6.0. npm lists no 18.x after 18.6.0 and the repository has no 18.x release branch.

  • Check-runs on the head. 69 in total: 58 success, 11 skipped (opt-in or queue-only jobs), none red, none pending. Check Changeset, Lint & Repo Gates, Test Core (10 shards), Type Check · workspace and Governed Surface Queue Guard are among the green ones.

② Semver level

  • '@objectstack/spec': patch: right. The diff moves one package and publishes a corrected upgrade listing; no export, schema or type changes. In pre mode (next) it ships with the next 19.0.0 prerelease.
  • Clause-②: no: right. Nothing widens an accept set or enlarges the public surface.
  • Metadata-protocol: none: right. What a metadata author can write is unchanged, so the level is patch.
  • Both lines stand in the PR body and in the changeset body. The change is not breaking, so no ADR-0087 marker and no Skills-docs: line is owed.

③ Boundary flags

④ Design judgment

No must-fix, no should-fix.

No nits either.

  • semantic/19.publish-refuses-data-model-fields-that-save-and-do-not-work.ts (and its 18. path, removed): holds. The refusal starts in 19.0.0-next.0, so the 18 → 19 hop is where an upgrading author meets it, and step 19 is the only step a --from 18 run replays.
  • semantic/19.define-form-studio-helper-renamed-define-metadata-form.ts (and its 18. path, removed): holds. The rename ships in 19.0.0-next.2. Its sentence that defineForm "returns with that type in the same major" stays true, because the sibling entry moves with it.
  • semantic/19.form-type-define-form-and-packageless-list-at-form-name.ts (and its 18. path, removed): holds, with the order argument in ①.
  • Tried and not broken: a body field or a pin that still says 18; a duplicate after the move; a generator refusal on the new names; a missing region; a registration marker left dangling; a changed --from 17 or 19-to-19 listing.

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 PROTOCOL_VERSION. Measured against the last 18.x release instead, 34 more semantic/18.* entries meet the criterion:

  • The entry directory at the spec@18.6.0 commit (958ee0359, 2026-11-18T04:44Z) holds 545 18.* semantic entries; at the protocol move (204356a6e) it holds 579. The 34 between them were each added by a behaviour PR merged from 2026-11-18T07:13Z to 2026-11-26T03:41Z. None is in any 18.x release, and all 34 are in 19.0.0-next.0 under 18. os migrate meta --from 18 skips them for the same reason it skipped this PR's three.
  • The 34 ids: action-body-regexp-literal-token-refused, ai-context-package-scoped-name, body-regexp-pattern-refused, bundle-without-canonical-member-bare-read-absent, cel-list-equality-refused, compose-stacks-job-name-across-packages-refused, field-group-shadowed-six-highlights, field-inline-edit-boolean-retired, flow-condition-record-date-arithmetic-refused, hook-action-text-key-optional-call-refused, hook-job-body-does-not-compile-refused, incremental-source-delete-policy-stated, internal-record-forms-not-loaded, knowledge-chunk-metadata-retired, master-detail-related-list-tab-by-default, navigation-mode-record-open-deprecated, object-extension-place-and-cross-package-lists, object-grid-single-click-edit-retired, publish-refuses-flows-that-save-and-do-not-run, publish-refuses-metadata-the-runtime-ignores, record-currency-sibling-extension-judged-as-served, refusal-reasons-list-literal-judged, related-lists-declared-is-tab-list, seal-default-chain-column-refused, seed-key-blank-record-refused, seed-mode-insert-replace-retired, seed-object-unknown-refused, seed-record-refused-before-load, seed-summary-value-not-stored, self-registration-permission-set-reaches-invited-sign-ups, stack-package-duplicate-entry-refused-at-every-door, stack-residual-extension-registered-and-jobs-judged, transfer-cascade-never-offered-refused, view-column-state-retired.
  • Two of them, publish-refuses-flows-that-save-and-do-not-run and publish-refuses-metadata-the-runtime-ignores, are siblings of this PR's data-model entry in the same family of publish-time checks. After this PR the family sits half in step 18 and half in step 19, although every member first ships in a 19 prerelease.
  • By the narrower test the PR is complete: from the protocol move to the merge base, and on to origin/main bd5407ec, exactly these three entries were added below 19 in semantic/, and none in retired-keys/ or retired-defs/.
  • Bearing on check-adr-0087-registration: refuse a newly added ADR-0087 migration entry whose major prefix is below PROTOCOL_MAJOR, so an upgrade note cannot land where --from <previous major> never shows it #38240: a rule that refuses a new entry whose prefix is below PROTOCOL_MAJOR would not have refused any of the 34. Each was filed while PROTOCOL_MAJOR and the spec package version both read 18 (build-schemas.ts prescribes CURRENT_MAJOR, the package major). What strands them is the protocol move itself: entries not yet in a released tag stayed under the old major. The PR body's reading, "every entry landed at or above the protocol major of its day except these three", is true as measured, and it measures the move, not the release.
  • Same window, retired-keys/: four 18.* rows (ai/KnowledgeChunk:metadata, ui/ObjectGridProps:singleClickEdit, ui/ViewItemWire:columnState, ui/ViewMetadata:columnState). That table is not read by the chain; its major starts the tombstone aging clock, so the same question applies there in another form.
  • A wider question, stated and not judged: 406 18.* semantic entries existed at spec@18.0.0 and 545 at 18.6.0, so about 140 notes first shipped in 18.x minors and sit in step 18, which no --from 18 run shows. The step 18 comment in registry.ts.template says post-cut entries belong to the next major; build-schemas.ts prescribes the package major. The two readings disagree, and the choice between them is the maintainer's.
  • Suggested carrier: a follow-up card for the 34, with the same deadline triage put on this one (before 19.0.0 GA), and a line on check-adr-0087-registration: refuse a newly added ADR-0087 migration entry whose major prefix is below PROTOCOL_MAJOR, so an upgrade note cannot land where --from <previous major> never shows it #38240 about the rule's reach. Widening this PR is the alternative; it would move the head and owe a new review.

Implemented-by: claude/project-thread-rgky0j
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T10:23Z

L1-a ACCEPT at fc06c4dab845990e96fb6eb0e3ae49317c14b237.

Flag for the seat (out of diff, not blocking this PR). The record's out-of-diff note finds 34 more semantic/18.* entries that meet the card's own rule ("a refusal that first ships in 19 belongs to step 19") but not its narrower test.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Landing · 2026-11-28T10:26Z · zone o3-build (seat card thread)
Head-sha: fc06c4dab845990e96fb6eb0e3ae49317c14b237

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 28, 2026 10:26
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit 216524a Nov 28, 2026
74 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-rgky0j branch November 28, 2026 10:53
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…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>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants