You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 945334e
Browse filesBrowse the repository at this point in the historyBrowse files
fix(spec): 34 upgrade entries, 3 conversions and 4 retired-key rows that first ship in 19 move to protocol 19 (#38627)
<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9CGtGeksBgFXURAQ8CAJhT8)_Fixes#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` (#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 #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
#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
#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 #38550.** Both PRs insert a line into
`MAJOR_19_CONVERSIONS`'s imports and list directly after
`permissionViewAllFieldsBesideRecordBypass` (this one
`viewColumnStateRemoved`, #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 #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>
fix(spec): 34 more upgrade-guide entries that first ship in protocol 19 are listed under 19, so `os migrate meta --from 18` shows them and runs their conversions
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
Thirty-four ADR-0087 semantic entries were filed under protocol major 18 although none of them shipped in an 18.x release: each landed after `@objectstack/spec` 18.6.0 and first shipped in 19.0.0-next.0. The migration chain from 18 runs only the steps above 18, so an 18.x app upgraded with `os migrate meta --from 18` was never shown these notes. They now sit in the protocol 19 step, with ids and text unchanged, and the 18 → 19 upgrade lists them.
11
+
12
+
Three of those retirements also carry a D2 conversion from the same window, and they move with their entries: `object-grid-single-click-edit-removed` (an `object-grid` component's `singleClickEdit`), `view-column-state-removed` (a view's `columnState`) and `field-inline-edit-boolean-removed` (a relationship field's boolean `inlineEdit`). Filed under 18, `os migrate meta --from 18` did not apply them, so an 18.x source that still wrote one of those keys came out of the migration with it and was then refused at parse. Under 19 the 18 → 19 migration deletes them. Stored rows already replayed them and are unaffected, and so are built artifacts that declare a protocol range below 19. A built artifact whose range is a bare `^19` and that still carries one of the three keys was refused at ingestion, because the artifact door replays a retired conversion for a `19.0.0` floor only when its step is 19; it is now converted on ingestion instead. The conversions run in the same order as before. The three keys' parse refusals now point at `os migrate meta --from 18` (was `--from 17`), the replay that applies them, and `KnowledgeChunk.metadata`'s tombstone now says it was removed in 19.0.0 (was 18). The four retired-key rows from the same window (`ai/KnowledgeChunk:metadata`, `ui/ObjectGridProps:singleClickEdit`, `ui/ViewItemWire:columnState`, `ui/ViewMetadata:columnState`) move to major 19 too, so those tombstones age from the major that first carries them, and the upgrade text for the four retirements moves from the protocol 18 section to the protocol 19 one. No schema, export or stored row changes. Nothing to migrate.
Copy file name to clipboardExpand all lines: content/docs/references/ai/knowledge-document.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ const result = KnowledgeChunkSchema.parse(data);
44
44
|**index**|`integer`| ✅ ||
45
45
|**content**|`string`| ✅ ||
46
46
|**headingPath**|`string[]`| optional | Headings the chunk sits under, outermost first (markdown strategy) |
47
-
|**metadata**|`never`| optional |[REMOVED]`KnowledgeChunk.metadata` was removed in @objectstack/spec18 (ADR-0049, ADR-0161 K8) — nothing ever wrote or read it: the knowledge service cuts the passages and sets no per-passage metadata, and no adapter consulted one. Delete the key. A passage takes its document's `metadata` (`KnowledgeDocument.metadata`), which is what adapters filter on. |
47
+
|**metadata**|`never`| optional |[REMOVED]`KnowledgeChunk.metadata` was removed in @objectstack/spec19.0.0 (ADR-0049, ADR-0161 K8) — nothing ever wrote or read it: the knowledge service cuts the passages and sets no per-passage metadata, and no adapter consulted one. Delete the key. A passage takes its document's `metadata` (`KnowledgeDocument.metadata`), which is what adapters filter on. |
48
48
49
49
50
50
---
@@ -75,7 +75,7 @@ const result = KnowledgeChunkSchema.parse(data);
75
75
|**index**|`integer`| ✅ ||
76
76
|**content**|`string`| ✅ ||
77
77
|**headingPath**|`string[]`| optional | Headings the chunk sits under, outermost first (markdown strategy) |
78
-
|**metadata**|`never`| optional |[REMOVED]`KnowledgeChunk.metadata` was removed in @objectstack/spec18 (ADR-0049, ADR-0161 K8) — nothing ever wrote or read it: the knowledge service cuts the passages and sets no per-passage metadata, and no adapter consulted one. Delete the key. A passage takes its document's `metadata` (`KnowledgeDocument.metadata`), which is what adapters filter on. |
78
+
|**metadata**|`never`| optional |[REMOVED]`KnowledgeChunk.metadata` was removed in @objectstack/spec19.0.0 (ADR-0049, ADR-0161 K8) — nothing ever wrote or read it: the knowledge service cuts the passages and sets no per-passage metadata, and no adapter consulted one. Delete the key. A passage takes its document's `metadata` (`KnowledgeDocument.metadata`), which is what adapters filter on. |
|**singleClickEdit**|`never`| optional |[REMOVED]`object-grid` property `singleClickEdit` was removed in @objectstack/spec 19.0.0 (ADR-0049) — a grid that renders editable now selects a cell on a click and opens its editor on double-click, Enter, F2 or typing, so a single-click entry no longer exists for this key to switch. Delete the key; `editable` (with the viewer's write verdict) decides whether the grid edits. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
850
+
|**singleClickEdit**|`never`| optional |[REMOVED]`object-grid` property `singleClickEdit` was removed in @objectstack/spec 19.0.0 (ADR-0049) — a grid that renders editable now selects a cell on a click and opens its editor on double-click, Enter, F2 or typing, so a single-click entry no longer exists for this key to switch. Delete the key; `editable` (with the viewer's write verdict) decides whether the grid edits. Run `os migrate meta --from 18` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
851
851
|**keyboardNavigation**|`boolean`| optional | Arrow-key cell navigation on the WAI-ARIA grid pattern: the grid's data cells become one Tab stop that the arrow keys, Home / End and Ctrl+Home / Ctrl+End move between. Always on when the grid renders editable — `editable` set and the viewer allowed to edit — because that grid selects a cell first and moves the selection with these keys; a grid that renders read-only keeps every cell its own Tab stop unless this is `true`|
852
852
|**resizable**|`boolean`| optional | Allow column resize (the renderer default is on) |
853
853
|**resizableColumns**|`never`| optional |[REMOVED]`object-grid` property `resizableColumns` was removed in @objectstack/spec 17.7.0 (ADR-0049) — it was the legacy second spelling of `resizable`, read only when `resizable` was absent, so one switch had two spellings and a grid authoring both silently ignored this one. Use `resizable`. Rename the key; the value (a boolean) is unchanged. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
Copy file name to clipboardExpand all lines: content/docs/references/ui/view.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2689,7 +2689,7 @@ This schema accepts one of the following structures:
2689
2689
|**isPinned**|`boolean`| optional | Console round-trip: the view is pinned in the object's view switcher. Written by the console's pin toggle through the `view` metadata API and read back to draw the pinned group. Stored on the view's row, which has no per-user scope. Not authored. |
2690
2690
|**sortOrder**|`integer`| optional | Console round-trip: the view's position among the object's saved views in the switcher, 0-based and counted over saved views only (a code-defined view carries none). Written by the console's drag-reorder and read back to order the tabs. Not authored: `order` is the authored default position. |
2691
2691
|**visibility**|`Enum<'private' \| 'team' \| 'organization' \| 'public'>`| optional | Console round-trip: the group the switcher files this view's tab under (private, team, organization or public). Display grouping only, NOT access control: nothing restricts who can list or open the view by this value. No console control sets it; the console carries a stored value forward when it re-saves the row. Not authored. |
2692
-
|**columnState**|`never`| optional |[REMOVED]`view.columnState` was removed in @objectstack/spec 19.0.0 (ADR-0049 enforce-or-remove) — it held one column order and set of widths on a shared view row; nothing writes it any more, and a stored layout is no longer applied, so every reader sees the view's own column order and widths. The console keeps column widths in each reader's browser and saves a column order into the view itself. Delete the key. To ship a column order, list `columns` in that order (or set `fieldOrder`); to ship a width, set `width` on the column. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
2692
+
|**columnState**|`never`| optional |[REMOVED]`view.columnState` was removed in @objectstack/spec 19.0.0 (ADR-0049 enforce-or-remove) — it held one column order and set of widths on a shared view row; nothing writes it any more, and a stored layout is no longer applied, so every reader sees the view's own column order and widths. The console keeps column widths in each reader's browser and saves a column order into the view itself. Delete the key. To ship a column order, list `columns` in that order (or set `fieldOrder`); to ship a width, set `width` on the column. Run `os migrate meta --from 18` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
2693
2693
|**options**|`never`| optional | Refused: a view item record carries no top-level `options` bag. Its per-kind blocks live under `config` (`config.kanban`, `config.timeline`, …); the legacy `options.KIND` bag belongs to the flattened list overlay only. |
@@ -2789,7 +2789,7 @@ This schema accepts one of the following structures:
2789
2789
|**isPinned**|`boolean`| optional | Console round-trip: the view is pinned in the object's view switcher. Written by the console's pin toggle through the `view` metadata API and read back to draw the pinned group. Stored on the view's row, which has no per-user scope. Not authored. |
2790
2790
|**sortOrder**|`integer`| optional | Console round-trip: the view's position among the object's saved views in the switcher, 0-based and counted over saved views only (a code-defined view carries none). Written by the console's drag-reorder and read back to order the tabs. Not authored: `order` is the authored default position. |
2791
2791
|**visibility**|`Enum<'private' \| 'team' \| 'organization' \| 'public'>`| optional | Console round-trip: the group the switcher files this view's tab under (private, team, organization or public). Display grouping only, NOT access control: nothing restricts who can list or open the view by this value. No console control sets it; the console carries a stored value forward when it re-saves the row. Not authored. |
2792
-
|**columnState**|`never`| optional |[REMOVED]`view.columnState` was removed in @objectstack/spec 19.0.0 (ADR-0049 enforce-or-remove) — it held one column order and set of widths on a shared view row; nothing writes it any more, and a stored layout is no longer applied, so every reader sees the view's own column order and widths. The console keeps column widths in each reader's browser and saves a column order into the view itself. Delete the key. To ship a column order, list `columns` in that order (or set `fieldOrder`); to ship a width, set `width` on the column. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
2792
+
|**columnState**|`never`| optional |[REMOVED]`view.columnState` was removed in @objectstack/spec 19.0.0 (ADR-0049 enforce-or-remove) — it held one column order and set of widths on a shared view row; nothing writes it any more, and a stored layout is no longer applied, so every reader sees the view's own column order and widths. The console keeps column widths in each reader's browser and saves a column order into the view itself. Delete the key. To ship a column order, list `columns` in that order (or set `fieldOrder`); to ship a width, set `width` on the column. Run `os migrate meta --from 18` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
2793
2793
|**options**|`never`| optional | Refused: a view item record carries no top-level `options` bag. Its per-kind blocks live under `config` (`config.kanban`, `config.timeline`, …); the legacy `options.KIND` bag belongs to the flattened list overlay only. |
* A stored `view` row's `columnState` leaves the wire surface (protocol 18,
9
+
* A stored `view` row's `columnState` leaves the wire surface (protocol 19,
10
10
* #36403 — ADR-0049 enforce-or-remove; the spec half of #35955, where the
11
11
* maintainer ruled column widths browser-only and the server-side per-user
12
12
* list preference layer retired, 2026-11-21).
@@ -28,7 +28,7 @@ import { type Dict, isDict, stripKeys } from '../shared.js';
28
28
* exists because a STORED row can carry it: the write door accepted and persisted
29
29
* it until this release, and every read of a stored `view` row replays the chain
30
30
* through `applyConversionsToStoredItem` as `{ views: [row] }` before it is served
31
-
* or badged. It also lets `os migrate meta --from 17` list the edits for sources.
31
+
* or badged. It also lets `os migrate meta --from 18` list the edits for sources.
32
32
*
33
33
* **One family, both spellings.** Unlike the `owner` / `hidden` pair, which
34
34
* retired from the two doors in two cards and so carries two entries, this key
@@ -74,7 +74,7 @@ import { type Dict, isDict, stripKeys } from '../shared.js';
74
74
*/
75
75
constviewColumnStateRemoved: MetadataConversion={
76
76
id: 'view-column-state-removed',
77
-
toMajor: 18,
77
+
toMajor: 19,
78
78
retiredFromLoadPath: true,
79
79
retiredAfter: '18.6.0',
80
80
surface: 'view.columnState — on a view item record ({ name, object, viewKind, config }) and on a flattened view overlay ({ name, object, viewKind, …, no config })',
0 commit comments