Repository navigation
fix(cli): os migrate meta --from 18 names the own field rows beside Modify All that protocol 19 narrows - #39160
Conversation
…y All that protocol 19 narrows The migration text no longer claims every field read is kept beside Modify All, and os migrate meta --from 18 and --stored name each own field row the viewAllFields addition does not keep. Claude-Session: https://claude.ai/code/session_01QSeKYko9cFNzePK9vaCkYe Co-authored-by: Claude <noreply@anthropic.com>
… and the stored review list Claude-Session: https://claude.ai/code/session_01QSeKYko9cFNzePK9vaCkYe Co-authored-by: Claude <noreply@anthropic.com>
…; add the changeset Claude-Session: https://claude.ai/code/session_01QSeKYko9cFNzePK9vaCkYe Co-authored-by: Claude <noreply@anthropic.com>
…r on the root entry The stored-row reader is runtime code; the migrations entry pins the whole guidance registry into whatever imports it. Claude-Session: https://claude.ai/code/session_01QSeKYko9cFNzePK9vaCkYe Co-authored-by: Claude <noreply@anthropic.com>
…-row pin Claude-Session: https://claude.ai/code/session_01QSeKYko9cFNzePK9vaCkYe Co-authored-by: Claude <noreply@anthropic.com>
…n-row-beside-bypass # Conflicts: # packages/cli/src/commands/migrate/meta.ts
…w that it counts rows served invalid Claude-Session: https://claude.ai/code/session_01QSeKYko9cFNzePK9vaCkYe Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 3 package(s): 22 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 7 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. 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 35261e7ee365a4809d2b9ffc748b2dbd9c399e5c && git checkout 35261e7ee365a4809d2b9ffc748b2dbd9c399e5c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 0c6f679d70a4a343c3c8cb0120380c1eeeec7da3 e659f7cf0dfd8967b4d5a24996e940a8f19d57bc && git checkout -B drift-repro 0c6f679d70a4a343c3c8cb0120380c1eeeec7da3 && git merge --no-ff e659f7cf0dfd8967b4d5a24996e940a8f19d57bc
node scripts/docs-audit/affected-docs.mjs --json 0c6f679d70a4a343c3c8cb0120380c1eeeec7da3
|
…call site The semantic entry's naming sentence no longer spells the bare --from command (the house-sentence pin judges every such literal), and the own-row walker's call site is classified as reading package bodies, measured on an assembled stack in the per-card test. Claude-Session: https://claude.ai/code/session_01QSeKYko9cFNzePK9vaCkYe Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Contract-review-claim: session_01QSeKYnrQ7UMtHofKQVjcH2 · head 60ea167 · 2026-12-02T19:19Z First full record at |
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Rendered 2026-12-02T19:43Z by an isolated reviewer subagent of the seat, on claim 7356020927. Inputs: card #38924 with every comment (claim 7346881638, report 7354308308 read as claims), PR #39160 body, file list (15 files, +719/−11) and net diff against Contract reviewServed-tier: Read, never reviewed (outside the diff): Check-runs on the head: 60 success, 13 skipped, 0 failed. Success includes Security: the changed hunks teach permission semantics, so the line above reads yes. No runtime permission decision changes. No file under ① Derived judgmentsNo accept set changes: no Zod schema, no authorable key, no semantic-entry shape. Three public-surface additions, all additive:
N1 (nit) — ② Semver level
③ Boundary flagsDev report deviations:
Open questions:
SQL push-down (AGENTS.md, Prime Directive 5): no finding. The diff adds no query, no id materialisation and no in-app join. Both readers work on bodies already in memory: the normalized source stack, and the stored body the existing pass has loaded. Author: the PR's Out of scope, noted by the report: the "keeps every read" comment in ④ Design judgmentThe predicate (
S1 (should-fix) — a row-conditioned lock is answered N2 (nit) — a field row keyed N3 (nit) — "protocol 18" here is 18.6.0. Read at the tags: Not settled read-only, named so it is not lost: the predicate reads an omitted
The conversion entry's The step-19 semantic entry. Is the corrected wording true against #34365 and the 18 own-row rule? The two sentences the card is about, yes.
S3 (should-fix) — "The same command, with or without N4 (nit) — leftovers of the corrected claim in the two entry files' comments: the conversion entry's docblock, line 31 ("keeps every read they cast", qualified only further down), and the semantic entry's trailing comment ("every
N5 (nit) — the stored line reuses the source Break attempts:
No must-fix. Three should-fix open on this head: S1, S2, S3. Nits: N1 to N5. S2 is closed on the prose faces alone; S1 and S3 move Implemented-by: VERDICT: PASS |
…tcome, and the step-19 text names only the rows it lists A row with a when and no editable: true locks only the rows the condition matches, so it is read-only-where-when-matches; every choice now leads to the one row shape the list never names. The step-19 sentence says the list covers the entries the run writes viewAllFields beside. Wildcard field keys are not listed, the stored line's choice no longer names viewAllFields, the element type of ownFieldRows is exported, and the changeset declares the widening. Claude-Session: https://claude.ai/code/session_01QSeKYko9cFNzePK9vaCkYe Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Contract-review-claim: session_01QSeKYnrQ7UMtHofKQVjcH2 · head e659f7c · 2026-12-02T20:37Z Delta record after 7356653135 (PASS with S1–S3 open). The same reviewer reads it at |
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Delta read, rendered 2026-12-02T20:43Z by the reviewer of record 7356653135 (an isolated reviewer subagent of the seat), on claim 7358066355. Inputs: the fix-round report 7358028382 on card #38924 (read as claims), the delta Contract reviewServed-tier:
Security: the changed hunks still teach permission semantics, so the line reads yes. No runtime permission decision changes: the delta touches no file under ① Derived judgments
② Semver levelS2 is closed in the tree. The changeset reads The PR body still reads ③ Boundary flags
The six PR-body corrections (
One omission the six do not cover: the body's "File surface, past the claim" list still ends at (4) and should gain the ④ Design judgmentS1 — closed. Does every printed choice converge? Yes. Probe on the head, following each printed choice by its own words:
The set of followed rows lists nothing. The loop of the first record (lock, then conditional edit, then no Ablation, my own: with S3 — closed. The step-19 sentence now names "each own field row beside a Modify All bit it writes Nits of the first record, as applied.
Break attempts re-run on this head (probe): New in this round. No must-fix and no should-fix. Nits:
Carried, unchanged, none blocking: N3 (follow-up candidate, carrier none) and the unparsed-stored-body note of the first record, which the report repeats without tracing. S1 and S3 are closed. S2 is closed in the tree and closes on the PR with the seat's correction 1. Nits only remain, so this is the final round for the published face; a head that changes only the prose faces (the changeset, the PR body) stays under this record. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 L1 ACCEPT · PR #39160 (#38924) · head 席位核对ACCEPT · repo:objectstack@os-justin · head
|
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Landing · PR #39160 · 2026-12-02T20:52Z · ACCEPT 7358445875 at head |
Fixes #38924
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
origin/mainffda6dab9ethroughos migrate meta --from 18over the card's fixture: the claim prints in thewhy:of the protocol-19 semantic notice, from the entry'sreason("addsviewAllFields: truebeside every such bit (...), so their field reads are kept"). The conversion'ssummarycarries a twin ("the bit keeps every field read they cast"). Both now say the bit keeps the field reads the bits cast except a field the set's ownreadable: falserow hides beside Modify All, and that it keeps no edit Modify All cast. Thereasonalso says the dry run and the--storedlist name each such row. The rest of the text is unchanged. No committed output mirrors it: the migrationsregistry.tsis gitignored and regenerated by the build, and the docs pagecontent/docs/permissions/field-level-security.mdxdoes not repeat the claim.os migrate meta --from 18prints a group after the edits (②c) naming each own field row beside Modify All that protocol 19 narrows: set,at,objectsentry, field row, the protocol-18 answer (read and edit), the protocol-19 answer (hidden/read-only/read-only-where-when-matches/edit-only-where-when-matches), each with a choice that leads to a row the list never names, and the choice (change the row to keep the 18 answer, or accept the narrowing).--jsoncarries the same list under ONE new key,ownFieldRowNarrowing, present only when non-empty. No key is renamed or removed. The list covers the entries the run itself writesviewAllFields: truebeside; a source that already carries the bit lists nothing, and the step-19 text says so.viewAllFieldsReviewentry ofos migrate meta --storedcarriesownFieldRows(present only when there is a row), and the human list prints one line per row under its entry.ownFieldRowsBesideModifyAlllives inpackages/spec/src/conversions/and is exported from the@objectstack/specroot. It runs the conversionpermission-view-all-fields-beside-record-bypassitself to pick the entries, so its population is exactly the entries the chain rewrites and the--storedlist names, narrowed to Modify All. A rowOBJECT.FIELDbelongs to the set's own entry forOBJECT, otherwise to its'*'entry, as in the field merge. View All alone is never listed: on 18 a set's own row already beat its own View All, and View All never voted an edit.@objectstack/specroot exportsownFieldRowsBesideModifyAlland three types; the--jsonkeyownFieldRowNarrowing; the optional memberownFieldRowsonStoredViewAllFieldsReview, whose element typeStoredOwnFieldRowis exported from@objectstack/metadata-protocol.packages/cli/src/utils/own-field-row-narrowing.ts;meta.tsgets hook lines only. The stored side is a new module,packages/metadata-protocol/src/stored-own-field-rows.ts;stored-migration.tsgets five hook lines: the import, the optional interface member, the return type, the return spread and the formatter line.Tests
packages/cli/test/migrate-meta-own-field-row-38924.test.tsruns in process throughMigrateMeta.run(unit tier):contact, own'contact.salary': { readable: false }) is named with its row,protocol 19: hiddenand the choice, and "so their field reads are kept" is absent.--jsonkey-set equality: the control's keys equal the pre-change replay keys exactly; the fixture's are those plusownFieldRowNarrowingin one place.packages[0].manifest.permissions[0]), and a run that does not cross into 19 names nothing.packages/spec/src/conversions/own-field-rows-beside-modify-all.test.tscovers:read-only-where-when-matches); each choice converges (the followed rows list nothing); a*.FIELDrow is not listed;editable: trueand nowhennot listed;'*'lookup, where an explicit entry beats the wildcard;viewAllFieldseither way not listed;packages/metadata-protocol/src/stored-own-field-rows.test.ts:collectViewAllFieldsReviewcarriesownFieldRowson the Modify All entry only, and the formatter prints each row under its entry.Acceptance notes
HEADand a cleangit status.ownFieldRowNarrowingSites(...)call inmeta.tswas replaced by an empty list → 2 failed / 1 passed. The naming and--jsoncases went red; the control stayed green.ablation-dist-preflightshowed the marker inpackages/spec/dist→ 1 failed / 2 passed (the wording case). The restore leg rebuilt spec; the marker is absent from all 610 built files and the 3 cases pass.packages/spec/src/conversions/(plus one export block inconversions/index.ts), not inpackages/spec/src/migrations/. Importing@objectstack/spec/migrationsfrommetadata-protocol(runtime code) pulled the whole migrations registry into its import closure:check-temporal-live-filterwent red on that, and the spec root note says that entry is kept off runtime paths for this reason.meta.tsandstored-migration.ts.packages/spec/api-surface/root.jsonandpackages/spec/export-origins/root.jsonwere regenerated bycheck:generated --fixfor the new root export.packages/metadata-protocol/src/index.ts(review nit N1): it exports the typeStoredOwnFieldRow, declared under Widened above.packages/cli/test/normalized-call-sites.test.ts. That pin requires every new(normalizedcall site in a command to be classified, and CI'sTest Core (2/12)went red until it was. The row isreads: 'packages', measured by the assembled-stack case above.126d7649), both fixed in60ea167c.spectest:repohouse-sentence pin judges every plain-quoted literal that spellsos migrate meta --from N. My new sentence spelled it and was not the house sentence. It now says "The same command, with or without--write, names each own field row…", after the sentence that already names the command.viewAllFields(either value) is not named, matching the conversion and the--storedlist predicate. That entry still narrows beside Modify All on 19. Raised as an open question in the report, not widened here.#39136(storedrunStored) and#39131merged while this branch was open.origin/mainwas merged before this PR opened; the only conflicts were two adjacent additions inmeta.ts, and both sides were kept.packages/core/src/security/effective-object-permissions.tshas a code comment with the same "keeps every read" phrasing. It is outside this card's file surface and is not printed anywhere; noted, not changed.Verification
Two-minute check: in a folder with an
objectstack.config.tsholding the card's fixture set, runos migrate meta --from 18. Expected: a group1 own field row(s) beside Modify All that protocol 19 narrows, namingpermission set 'hr_manager' (permissions[0]), objects entry 'contact', field row 'contact.salary'withprotocol 19: hidden, no read and no edit. Thewhy:of the protocol-19 permission notice no longer says "so their field reads are kept". With--json, the payload hasownFieldRowNarrowing.Read first, by risk:
packages/spec/src/conversions/own-field-rows-beside-modify-all.ts:narrowedOutcomeand the covering-entry lookup. This is the 18 vs 19 model the whole list rests on.packages/metadata-protocol/src/stored-migration.ts: the five hook lines in a file#39136just changed.reasonhunk: the corrected promise.Local gates and CI, head 60ea167
node scripts/pm/dispatch-gates.mjs --ran: 101 derived, 100 run with exit 0, 1 NOT MEASURED. The one isnode scripts/check-plugin-teardown-shape.mjs --self-test, exit 3, PREREQUISITE NOT MET: its fixture is pinned to a commit this shallow clone cannot reach. CI runs it.pnpm --filter @objectstack/spec test: 923 files, 29157 passed.pnpm --filter @objectstack/spec test:repo: 95 files, 1633 passed.test/normalized-call-sites.test.tsand the per-card test: 2 files, 17 passed.pnpm --filter @objectstack/metadata-protocol test: 383 passed, 9 skipped.migrate metatest files: 23 files, 175 passed, 1 skipped.spec,metadata-protocolandcli.eslint --no-inline-configover the 11 changed source and test files: exit 0. The repo-widepnpm lintrun is CI's.pnpm --filter @objectstack/spec check:generated: all 14 artifacts up to date.--project unit) did not finish inside the 10-minute foreground window. CI'sTest Coreruns it.e659f7cf), targeted runs only: spec own-row test and the house-sentence pin, 2 files / 24 passed; metadata-protocol stored-own-field-rows and protocol.stored-migration, 2 files / 57 passed; cli per-card test, normalized-call-sites and meta.stored-view-all-fields, 3 files / 20 passed; typecheck exit 0 for spec, metadata-protocol and cli. The counts above are from60ea167c.e659f7cf: 60 success, 13 skipped, 0 failed.60ea167c: 60 success, 13 skipped, 0 failed. Success includesLint & Repo Gates,TypeScript Type Check,Test Core(12/12 shards),Build Core,Governed Surface Queue Guard,Type Check UI,Test UI(16/16),Build & E2E UI,Live E2E UI,Dogfood Regression GateandCheck Changeset.Temporal Conformance (live PG + MySQL)is skipped on PRs; it first runs in the merge queue.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code