Repository navigation
fix(cli): os migrate meta --from 18 names the 18.x its own-field-row answer describes - #39403
Conversation
…answer describes The protocol-18 answer of the own field rows beside Modify All is 18.3.0's to 18.6.0's (core 18.0.0 to 18.2.0 ship no superuserFieldVote; 18.3.0 to 18.5.0 ship it without declaresOwnReadMask). The list header and row line name those releases, and the step-19 semantic entry, printed in every run that crosses into 19, carries the note for a source last run on 18.0.0 to 18.5.0. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYAcXpQMmT3KPQGzfJ
…escribes Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYAcXpQMmT3KPQGzfJ
📓 Docs Drift CheckThis PR changes 2 package(s): 1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 194 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 5723226e53d1788fe7cdc81bfa9f28513db0b33b && git checkout 5723226e53d1788fe7cdc81bfa9f28513db0b33b
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 9674b7f67675c0d03d8abdfce55da3914e1385d6 ecc86859f701c48c1b4cbc6b36d2602686e0a1b4 && git checkout -B drift-repro 9674b7f67675c0d03d8abdfce55da3914e1385d6 && git merge --no-ff ecc86859f701c48c1b4cbc6b36d2602686e0a1b4
node scripts/docs-audit/affected-docs.mjs --json 9674b7f67675c0d03d8abdfce55da3914e1385d6
|
…narrow the changeset to --from Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYAcXpQMmT3KPQGzfJ
|
repo:objectstack@os-bill · os-bill · session_01Utp6CYAcXpQMmT3KPQGzfJ Contract reviewServed-tier: Round 1 is on
The change is text only. It edits a printed list header, a row label, the ① Derived judgmentsRelease facts, measured from the published
What follows from these facts:
Reachability: the step-19 entry has no Public surface: unchanged. No export, type, key or locale moves. ② Semver level
Who it reaches: a developer running
③ Boundary flags
④ Design judgment
Findings:
No must-fix. S1 is open for a follow-up card. N1 and N2 are nits. Check-runs on this head at read time.
CI has not converged. This verdict holds on the in-progress runs reading Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd 席位核对ACCEPT and landing · 2026-12-03T21:47Z · head
|
Requested by Bill · project thread
Fixes #39176
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
os migrate meta --from 18cannot tell which 18.x a source last ran on (--fromnames a major). The own-field-row list printed a "protocol 18" answer that is the one 18.3.0 to 18.6.0 give, and the step-19 semantic entry described only that span. Measured on the published@objectstack/coretarballs:superuserFieldVoteis absent from 17.7.0 to 18.2.0 and present from 18.3.0;declaresOwnReadMaskships only in 18.6.0.This takes the card's second shape (the text names the 18.x it describes, and a short note covers the earlier ones; precedent: "Upgrading from 18.5.0 or earlier" in
content/docs/upgrading.mdx). No contract changes: no type, key or exported symbol moves.packages/cli/src/utils/own-field-row-narrowing.ts: the list header says its protocol-18 answer is 18.3.0 to 18.6.0's and points at the View All and Modify All manual change; each row readsprotocol 18: read and edit on 18.3.0 to 18.6.0 (…).packages/spec/src/migrations/entries/semantic/19.permission-view-all-modify-all-cast-no-field-vote.ts: the SOURCE paragraph carries the note, printed in every run that crosses into 19 whether the list is empty or not. From 18.3.0 to 18.5.0, View All also read a field over the set's ownreadable: falserow, so beside View All without Modify All that row now hides its field and is not listed. Before 18.3.0, neither bit cast a field vote, so a listed row already answered as it does on 19. The STORED paragraph says the same note holds for a deployment last run on an earlier 18.x. The "Until 19" sentence reads "From 18.3.0 until 19". The acceptance criteria's "Beside View All that restores every read" names 18.6.0 and the 18.3.0 to 18.5.0 row.packages/spec/src/conversions/own-field-rows-beside-modify-all.ts: module header and theOwnFieldRowProtocol18Outcomedocblock say which releases the answer describes ("Which 18.x the answer describes")..changeset/39176-own-field-row-18x-note.md: patch,@objectstack/specand@objectstack/cli.packages/cli/test/migrate-meta-own-field-row-38924.test.ts: the fixture run now asserts the header's release span, the row'sread and edit on 18.3.0 to 18.6.0, and both lines of the earlier-18.x note.The review follow-ups on the same files (#39177) are not in this PR.
Tests
Measurement before the fix (built CLI, head 850d240)
contact, own'contact.salary': { readable: false }): the list printedprotocol 18: read and edit. On core 18.2.0 the set never readsalary(no field vote).salaryover its own row, and on 19 the row binds, so that read is lost silently.After the fix (head 0e3ecec; pin added at ecc8685)
protocol 18: read and edit on 18.3.0 to 18.6.0 (…), and the manual change carries the before-18.3.0 note.from 18.3.0 to 18.5.0 View All also read a field over the set's own readable: false row … that row now hides its field and is not listed: delete it where the set's holders should still read the field.pnpm --filter @objectstack/cli exec vitest run test/migrate-meta-own-field-row-38924.test.ts test/migrate-meta-engine-guidance.test.ts src/commands/migrate/meta.stored-view-all-fields.test.ts: 3 files, 10 tests passed.pnpm --filter @objectstack/spec exec vitest run src/conversions src/migrations: 35 files, 1136 passed, 2 todo.pnpm --filter @objectstack/metadata-protocol exec vitest run src/stored-own-field-rows: 2 passed.test/migrate-meta-own-field-row-38924.test.ts4 passed. Ablation: with the row's text reverted toread and edit (Modify All …)on disk, the case went red (expected … to contain 'protocol 18: read and edit on 18.3.0 …'); restored.pnpm --filter @objectstack/spec run typecheckandpnpm --filter @objectstack/cli run typecheck: exit 0.Derived gates (head 0e3ecec)
node scripts/pm/dispatch-gates.mjs --commands: 88 commands derived, 88 run (--ranreconciliation: 88 derived, 88 run, 0 unrun); 84 exit 0. Four did not measure, all for prerequisites outside this diff:node scripts/check-plugin-teardown-shape.mjs --self-test: shallow clone, the fixture commit is unreachable;pnpm check:dual-build-cjs-loads: needs a whole-workspace build (packages/qa/scenarios/distabsent);pnpm check:i18n-coverage:examples/app-showcaseneeds@objectstack/service-printbuilt;pnpm check:query-options-erasure: self-test passed; the repo-wide lint pass ran past the 150 s local cap.CI runs all four.
Acceptance notes
--storedreview line (packages/metadata-protocol/src/stored-own-field-rows.ts) still prints "protocol 18 read and edit". The step-19 entry's STORED paragraph carries the note for it. The file is outside the card's landing points, so it is left alone here.Verification
Read first: the SOURCE paragraph of the step-19 semantic entry (the note), then
printOwnFieldRowNarrowing.Two-minute check:
pnpm --filter @objectstack/cli exec vitest run test/migrate-meta-own-field-row-38924.test.ts. Expected: 4 passed, including the release span and both earlier-18.x note lines.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CYAcXpQMmT3KPQGzfJ