Repository navigation
docs(spec): tidy prose and fixture copies after the form's subforms retirement - #39194
Conversation
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZEr4GH7Lm6aJcpZW5
…oth held to one derivation (N4) Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZEr4GH7Lm6aJcpZW5
…tion text Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZEr4GH7Lm6aJcpZW5
📓 Docs Drift Check4 anchor(s) derived from 2 changed package(s); no hand-written page names any of them. What this run could not see
Coarse fallback — 183 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 54f7fa05c4dfd2f7c889d7c89bc2989b95e1ad24 && git checkout 54f7fa05c4dfd2f7c889d7c89bc2989b95e1ad24
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 53ca7319a1817e223547844f8f62e0688a72fe3d d08d5cda4f5438d7159c14eecb43399495b71d49 && git checkout -B drift-repro 53ca7319a1817e223547844f8f62e0688a72fe3d && git merge --no-ff d08d5cda4f5438d7159c14eecb43399495b71d49
node scripts/docs-audit/affected-docs.mjs --json 53ca7319a1817e223547844f8f62e0688a72fe3d |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CZEr4GH7Lm6aJcpZW5 Contract reviewServed-tier: Isolated review: I did not write this diff and had no recommendation from the dispatching zone. Inputs read: card #39067 (body and its five comments: scope additions 7338105984 and 7339661035, the split 7360248732, the claim 7360336398, the dev report 7361566191), the ruling record 7303122859 on #38140, the two contract-review records on #39061 that the card's items come from (7337248486 and 7338973103), PR #39194 (body, 13 files, three commits, the net diff against Check-runs on this head when read (70 runs): 19 success (Check Changeset, Governed Surface Queue Guard, Spec property liveness, PR-body guards, Lint · ESLint, Lint · PM dispatch-gates, Lint · scoped · query-options erasure, Lint · scoped · tooling self-tests, Type Check · source gates, Build Docs, Build UI Deps, Dogfood Regression Gate, Check Documentation Links, Check PR Size, Flag docs affected by code changes, Auto Label, Plan Test Core shards, Plan Test UI shards, filter), 12 skipped (opt-in or queue-only), 0 failed, 39 in progress: Build Core, Test Core 1/12 to 12/12, Test UI 1/16 to 16/16, Type Check (consumer gates, workspace, debt ledger, UI), Lint (repo and tooling gates; docs and code guards; CI, release and engine gates; slot lookup and corpus), Build and E2E UI, Live E2E UI. This record judges the contract. The pending runs are the landing check's to read, and a red one is not covered here. In particular the new pins, ① Derived judgments
② Semver level
Clause-②: no. The PR body, the changeset and the claim agree, and the diff publishes no accept-set or surface change in either direction. ③ Boundary flags
④ Design judgmentNo must-fix. One should-fix: S1. S1 (should-fix) — N2 is not complete. Per
Implementing files in the diff:
Nits (no effect on correctness or the contract):
Implemented-by: VERDICT: PASS |
…tep-18 rationale, two ui comments Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZEr4GH7Lm6aJcpZW5
|
repo:objectstack@os-bill · os-bill · session_01Utp6CZEr4GH7Lm6aJcpZW5 Contract reviewServed-tier: Delta round, by the reviewer of record 7361747951 (head 4a29815). Since that head the branch took one commit, d08d5cd, with no merge of Check-runs on this head when read (75 runs): 27 success (Check Changeset, Governed Surface Queue Guard, Spec property liveness, PR-body guards twice, Lint and Repo Gates, Lint · ESLint, Lint · repo and tooling gates, Lint · docs and code guards, Lint · CI, release and engine gates, Lint · PM dispatch-gates, the three scoped Lint lanes, Type Check · source gates, Type Check · debt ledger, Build Docs, Build UI Deps, Live E2E UI, Dogfood Regression Gate, Check Documentation Links, Check PR Size, Flag docs affected by code changes, Auto Label, Plan Test Core shards, Plan Test UI shards, filter), 13 skipped (opt-in or queue-only), 0 failed, 35 in progress: Build Core, Test Core 1/12 to 12/12, Test UI 1/16 to 16/16, Type Check (consumer gates, workspace, UI), Lint UI, Build and E2E UI, and a second Check Changeset run. This record judges the contract. The pending runs are the landing check's to read, and a red one is not covered here. ① Derived judgments
② Semver levelUnchanged and still right: Clause-②: no. ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. S1: closed. What closed it, read at this head:
The rest of the delta:
Attempt to break the delta: a reader who takes the new Nits (no effect on correctness or the contract):
Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CZEr4GH7Lm6aJcpZW5 席位核对L1 verdict: ACCEPT · zone forms-38140 of seat
|
|
repo:objectstack@os-bill · os-bill · session_01Utp6CZEr4GH7Lm6aJcpZW5 Landing: ACCEPT → PR #39194 comment 7362549986 on head |
Fixes #39067
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Items N1–N4 of the card (P1–P3 moved to #39181). Spec prose that restates the retirement ruling (record 7303122859, option 「退役这个配置」); it never reopens the retirement.
N1, the protocol-18
ui-form-view-type-layout-onlyentry. Itsreplacementsent readers tosubformsfor child records entered with the parent. It now names a field group on the parent object whoserelatedListnames the child (a lookup child's FK declaresrelatedList: 'primary'), and keeps theobject-master-detail-formpage block.N3, the lookup-child remedy. The
form.subformstombstone prescription (FORM_VIEW_SUBFORMS_RETIREDinpackages/spec/src/ui/view.zod.ts) and the protocol-19 D3 entryui-form-view-subforms-retirednow say that a field group places only a body table: a lookup child's FK declaresrelatedList: 'primary'(a master_detail FK that declares norelatedListneeds nothing), or the stack refuses the group. That is the remedy the stack's refusal gives (fieldGroupBodyTableRefusalinpackages/spec/src/data/related-list-body-table.ts: "Set relatedList: 'primary' on that FK"). The prescription text lives inview.zod.ts, not in the two retired-keys files the claim names (those hold only the registry key), so that is where it changed. The generatedcontent/docs/references/ui/view.mdxwas regenerated (check:generated --fix, onlycheck:docswas stale).N2, stale
subforms[].columnscomments. Every hit ofgrep -rn "subforms\[\]\.columns" packages --include=*.tsat the base, with a verdict. Rows marked (round 2) come from the contract review: two N2 files that do not spell that string, and the two ui comments, which the claim amendment brought into surface.packages/spec/src/ui/component.zod.ts(import comment,record:related_listcolumns, master-detail entry docblock ×3)MASTER_DETAIL_DETAIL_HISTORYdocblock is past tense and correct, so it is left as it is. Round 2 rewraps two overlong comment lines (R5).packages/spec/src/conversions/entries/shared.tspackages/spec/src/conversions/entries/18/form-view-subform-columns-canonicalized.tssubforms"). Its publishedsurfaceandsummarydescribe what the entry did at 18, so they are correct as history and not edited. Round 2 (R2): theretiredFromLoadPathparagraph now says that the parse refusedfieldat 18 and refuses the whole key from 19, which agrees with the sentence above it.packages/spec/src/data/inline-grid-columns.tsheader (round 2)subforms[]entry with nocolumns(FormViewSchema.subforms)" as a present-tense carrier. It now names the carriers that exist: a relationship field'sinlineColumns, and an entry of the ReactObjectFormblock'ssubformsprop. One sentence records that the form view's entry was a carrier until protocol 19.packages/spec/src/contracts/automation-service.tsline 490, "child grids (subforms)" (round 2)subformsthere is the objectuiObjectFormprop the host fills, not the retired form key. A light rewording that drops the key name would read better, but #38876's open PR #39144 edits this file, so it is left until that PR lands (Acceptance note).ui/packages/plugin-view/src/ObjectView.tsxaround line 2886 (round 2)form.subformsis the objectuiobject-viewnode's own, not a spec form view's key, which protocol 19 retired.ui/packages/plugin-form/src/deriveMasterDetail.tslines 357–367 (round 2)defineStackjudges "a form view'ssubforms[].columns" and that the spec'sFormViewSchemaholds each column to the schema. Both are now past tense, and the paragraph names what reaches the function today: the block's own prop, or the list the host derives from the parent's field groups.packages/spec/src/stack.zod.tssemantic/18.inline-grid-column-identity-only-currency-scale-refused.ts,semantic/18.ui-object-master-detail-form-details-closed.ts,semantic/18.form-view-subform-columns-closed.tssubformsnow. Not edited.packages/spec/src/inline-grid-column-carriers.test.tspackages/spec/src/migrations/registry.tspackages/lint/src/validate-field-consumers.test.tsN4, the superseded-fixture rows. The two metadata-core copies were byte-identical (53 lines each). Both now import one test-support module,
packages/metadata-core/src/artifact-forward-conversion.test-support.ts. Neitherindex.tsnortesting.tsimports it, so it is not in the published build. The spec copy (SUPERSEDED_FIXTURESinpackages/spec/src/conversions/conversions.test.ts) stays, because sharing it across packages would need a new published export of@objectstack/spec. Instead, the spec table and the metadata-core table are each pinned to one derivation from the registry: a fixture's row lists exactly the later-major entries that change what they are handed, in registry order, applied to the fixture'safter. If a fixture change moves that list, both suites go red and name the row.Tests
form-view-drawer-keys-retirement.test.ts: the stack's field-group refusal for a lookup side card namesrelatedList: 'primary', and so do the tombstone's parse message and the D3 entry'sreplacement.conversions.test.ts(all conversions) and inartifact-forward-conversion.test.ts/-package-body.test.ts(step 18): each row equals the derivation.git checkout HEAD --, porcelain clean): (1) prescriptionrelatedList: 'primary'changed torelatedList: truemade the new spec pin red (1 failed, 80 passed). (2)'form-view-subforms-removed'dropped from the shared metadata-core row made 3 tests red, including the derivation pin.Test runs (head 4a29815)
Acceptance notes
ui/packages/types/src/zod/objectql.zod.tslines 94 and 1086 cite the spec at 17.6.0, a versioned statement that is correct as history. Theui/packages/typestests aboutObjectFormSchema.subforms[].columnscover the live block prop. (The two stale ui comments moved into the N2 table in round 2.)packages/spec/src/contracts/automation-service.tsline 490 could drop the key name "(subforms)" in favour of "child grids placed by the object's field groups". Not edited here because fix(automation)!: a triggered flow whose fan-out or earlier branch reaches a subflow or map whose child can suspend is not armed #39144 edits that file.packages/spec/liveness/form.jsonnames the replacement in thesubformsrow note without the lookup clause. That is a ledger note, not author-facing text, so it is left as it is.Verification
Read first:
packages/spec/src/ui/view.zod.ts(the prescription string, the shipped text),packages/metadata-core/src/artifact-forward-conversion.test-support.ts(derivedRetiringIds),packages/spec/src/conversions/conversions.test.ts(the new derivation pin).Two-minute check:
pnpm --filter @objectstack/spec exec vitest run src/ui/form-view-drawer-keys-retirement.test.ts src/conversions/conversions.test.ts. Expect all tests to pass, including "names the lookup child'srelatedList: 'primary'".Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CZEr4GH7Lm6aJcpZW5