Repository navigation
fix(console): remove Studio form-view leftovers, package-less scope references and nav resolver staleness - #39783
Conversation
… references and nav resolver staleness The view inspector, view-config panel and variant model edit list views only (a `view` holds lists only since protocol 19); dead form-view arms, the record-form named-form chrome arm, toInlineFormType and their dead strings go. The unset `emptyListHint` host member and stale package-less scope comments go. The sidebar icon and colour resolvers keep the first answer per object, as the label resolver does, and the three resolver types document that contract. Claude-Session: https://claude.ai/code/session_01Utp6CbHNxjZcHJuqartB Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cwiNRyb9B38wT2fjYj Co-authored-by: Claude <noreply@anthropic.com>
…mments and a stale liveness note reference Claude-Session: https://claude.ai/code/session_016WV4cwiNRyb9B38wT2fjYj Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cwiNRyb9B38wT2fjYj Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. What this run could not see
Coarse fallback — 185 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 f5d1ff6ce53f40f28bee8a593e1ee6d5d7ff49b6 && git checkout f5d1ff6ce53f40f28bee8a593e1ee6d5d7ff49b6
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin eecae948ad3930b1824bfa141182d589f8157c00 2418c09d384e585c3d24a8f6eda97a8a24f18595 && git checkout -B drift-repro eecae948ad3930b1824bfa141182d589f8157c00 && git merge --no-ff 2418c09d384e585c3d24a8f6eda97a8a24f18595
node scripts/docs-audit/affected-docs.mjs --json eecae948ad3930b1824bfa141182d589f8157c00 |
…at collection in four inspector tests ADR-0159 line 83 anchored the docblock of an interface this branch removes. It now anchors RecordFormModalLayout in the same file, whose docblock has said the same thing since the record forms stopped loading a form view, and quotes that docblock. Four inspector test files reach a lazy import of @objectstack/lint from the source under test; each now loads it at module top so no case pays the first load inside its clock (check:test-source-alias). Claude-Session: https://claude.ai/code/session_016WV4cwiNRyb9B38wT2fjYj Co-authored-by: Claude <noreply@anthropic.com>
The file pinned the editor's refusal of an object-required field inside a predicate-gated section of a form view. This branch removes that refusal with the view inspector's form branch, since a view holds lists only, so the two refusal cases can no longer hold and the two controls pass with nothing to control. The neutral Save title they shared stays pinned by ResourceEditPage.celGate.test.tsx and ResourceEditPage.defaultGate.test.tsx. Claude-Session: https://claude.ai/code/session_016WV4cwiNRyb9B38wT2fjYj Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cwiNRyb9B38wT2fjYj Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czzaKz49WLAvKtdyiY 席位核对L1 verdict (L1-b): ACCEPT at head Face: #39003 (seven items):
#38785: #38859: the three resolver types' TSDoc states that answers are fixed for the resolver's identity and that it may keep them for its lifetime, never across a metadata version. The label doc no longer says "nothing is stored". The icon and colour resolvers did read live state, so they now go through the generic Deleted tests: the four deleted files pinned only the removed form-view branch and Save gate. The body names Governed sentences. ADR-0113 now says "Studio fences no section case at authoring, so a required field in a gated section is answered by this contract at the record save". That is true once #6900's fence is gone, and it records the loss of that fence as fact. ADR-0159 line 83 now cites Changeset: Landing: governed, Tier H. It needs the at-tier contract-review PASS on this head, then the seat record and Generated by Claude Code |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czzaKz49WLAvKtdyiY Contract reviewServed-tier: Inputs read: card #39003 (body and all 13 comments), PR #39783 (body, 41-file list, net diff ① Derived judgments
② Semver levelClause-②: no, on the PR body and the changeset, and it matches the diff: no published schema shape moves, no export leaves a package entry. The changeset bumps ③ Boundary flags
④ Design judgmentM1 (must-fix) —
N1 (nit) — the same line still says the lint rule
N2 (nit) — the comment kept at the top of Implementing files: Card #39003 as a whole: items 1, 3, 4, 5, 6 and 7 are delivered by the diff. Item 2 is delivered by its first arm only; its second arm is the open question in M1. Implemented-by: VERDICT: FAIL Generated by Claude Code |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7 2026-12-05T13:40Z · Ruling 7438797280 confirms that this PR stays with this seat through to landing.
|
…e the fence's state The paragraph is back to its text on main. A dated note under it records only facts: the author-time fence lived in the view inspector, has been unreachable since a view holds lists only, its code is removed on this branch, and a form item has no such check. The open question is named as carried by a follow-up card. The comment on the protocol-19 entry for internal record forms no longer says such a form still parses and installs. Claude-Session: https://claude.ai/code/session_016WV4cwiNRyb9B38wT2fjYj Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cwiNRyb9B38wT2fjYj Fix round 6 — 2026-12-06T01:51Z · head
|
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czzaKz49WLAvKtdyiY Contract reviewServed-tier: Delta review over record 7431562202 (FAIL at ① Derived judgments
② Semver levelClause-②: no, unchanged on the PR body and the changeset. The fix round adds ADR prose and a code comment; the changeset is as reviewed and still matches what the diff publishes. ③ Boundary flags
④ Design judgmentM1: closed. Route (b) of record 7431562202 is carried out as written. The paragraph is restored to its text on N2: closed. The comment no longer says an internal form still parses and installs. N1: unchanged, still a nit. ADR-0159 line 83 and D7 name
No must-fix, no should-fix. Card #39003 as a whole: items 1, 3, 4, 5, 6 and 7 are delivered by the diff; item 2's second arm is now carried by #39852, so Implemented-by: VERDICT: PASS Generated by Claude Code |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czzaKz49WLAvKtdyiY 席位核对L1 delta review of PR #39783 at head Verdict: ACCEPT.
Nit carried forward (N1): ADR-0159 line 83 and D7 name Generated by Claude Code |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7 速读 · PR #39783 (Fixes #39003) · head
席位核对 — ACCEPT · repo:objectstack@os-elon-musk · head
|
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7 维护者速读
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cwiNRyb9B38wT2fjYj
Requested by Elon · project thread
Fixes #39003
Fixes #38785
Fixes #38859
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
#39003, form-view leftovers after the protocol-19 form switch (a
viewholds lists only since spec 19, ADR-0159 D7):view-variant-model.ts: the form family (FORM_FAMILY,familyFromViewKind,isFormFamilyKey) and the binding'sfamilyKeyare removed. A binding is{ storeKey, schema }; no family other than list is derived.ViewVariantInspector.tsx: the form branch is removed (form layout picker and labels,getFormVariantSchemareads, and the required-in-gated-section Save gate that only a form body could reach, withrequiredInGatedSection.tsand its tests). TheformViewType-30046test goes; a newViewVariantInspector.listOnly-39003.test.tsxpins that a draft still sayingviewKind: 'form'is offered the list types only.ViewConfigPanel.tsx/ViewInspector.tsx: the always-falseisFormFamilyKeycall and thefamilyKeyprop are removed.form-preview.ts:toInlineFormType(no caller outside its own test) and its test are removed.recordFormNavigation.ts:resolveFormViewChrome(its one caller always passednullfor the named form) and theFormViewDefinitiontype (not exported from the package entry) are removed;resolveRecordFormChromereturns the host's chrome directly. Removal of a dead arm, not a re-point.engine.viewPreview.formFailedand the sixengine.inspector.view.gatedRequired.*keys are removed fromen.tsandzh.ts; no call site reads any of them (check:i18n-keysgreen).19.internal-record-forms-not-loaded.ts: the lint ruleform-view-internal-not-loadedit named is retired at 19, so its comment and acceptance text no longer name it.#38785, the retired package-less Studio scope:
MetadataAreaHost.emptyListHint(no host set it) and its two reads inResourceListPage.tsxare removed; the list falls back to the type's own hint. Theincludeprop doc inDraftChangesPanel.tsxnow names its one caller (DraftPreviewBar), and thebackfillcomment no longer describes the package-less scope.#38859, nav-row resolver contract:
NavTargetLabelResolver,NavTargetIconResolverandNavTargetColorResolver(@object-ui/layout, TSDoc only) state that a resolver's answers are fixed for its identity and that it may keep them for its own lifetime, never across a metadata version; the label doc no longer says nothing is stored.useNavTargetIcon/useNavTargetColorread live provider state, so both now use the label hook'sansweringOncecache (now generic, exported fromuseNavTargetLabel.ts), pinned byuseNavTargetIcon.answersAsOfItsRender-38859.test.tsx.Also, made false by item 5:
packages/spec/liveness/form.json'sbuttonsnote namedresolveFormViewChromeas a reader; it now namesreadFormButtonin the console form page.Tests
Head
74ae08a2(origin/main 881809c merged in). Two sets of local readings, each through the shared verification lock; the first set was not rerun after the later rounds.Readings at head 74ae08a (rounds 2 to 4: the two ADR sentences, four collection-time imports, one stale pin deleted, the catalog's unread `required` flag removed)
pnpm --filter @object-ui/app-shell run type-check(source and test programs) after removingObjectFieldInfo.requiredand its one fill: exit 0, so no reader of the member remains in the package; a tree grep finds the type used nowhere outsideui/packages/app-shell/src.pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/views/metadata-admin/ResourceEditPage packages/app-shell/src/views/metadata-admin/previews/useObjectFields: 68 files, 348 tests passed.pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/views/metadata-admin/previews/: 167 files, 1878 tests passed.check:adr-symbol-anchors,check:adr-anchors,check:adr-index,check-adr-links,check:doc-authoring,check:issue-citations,check:type-check-debt,check:nul-bytes,check:test-source-alias.44345721(round 2, not rerun since): the four inspector test files that gained the collection-time import, 4 files, 43 tests passed;check:cross-package-test-inputs,check:spec-docblock-symbol-anchors,check-affected-docs,check-closing-keyword-parity,check:pm-governed-mergesand the spec gatescheck:authorable-surface,check:liveness,check:spec-changes,check:api-surface,check:upgrade-guide,check:docs, exit 0 each.ResourceEditPage.requiredInGatedSection-6900.test.tsxis deleted: all four cases drove a form held in a view through the removed Save gate. The neutral withheld-Save title it also read stays pinned byResourceEditPage.celGate.test.tsxandResourceEditPage.defaultGate.test.tsx.The blocks below are the readings taken at head
89d682f0(merge of origin/main 56bed06 in).Targeted UI tests
pnpm --dir ui exec vitest runover app-shellhooks/,utils/,metadata-admin/inspectors/,metadata-admin/previews/and the five other changed test files: 593 files passed, 1 failed, 1 skipped. The one failure,AddWidgetPicker.oneRegistry-26745.test.tsx("expected 20 widget cells, saw 0", the renderer still on its loading spinner), is in a file this diff does not touch; rerun alone it passes.packages/layout/src/,ResourceListPage*,DraftChangesPanel*,ViewConfigPanel*: 78 files, 625 tests passed.pnpm --filter @objectstack/spec exec vitest run src/migrations/: 6 files, 255 passed, 4 todo.ViewVariantInspector.tsx,ViewInspector.tsx,view-variant-model.ts,view-schema.ts,requiredInGatedSection.tsanduseNavTargetIcon.tsrestored from origin/main, the two pins go red (4 failed, the 2 controls pass); restored to the branch, green.Typecheck and lint
pnpm --filter @object-ui/layout --filter @object-ui/i18n --filter @object-ui/app-shell run type-check: exit 0.uicheck:i18n-keys,check:i18n-dead-keys,check:i18n-drift,check:new-line-citations: exit 0.Repo gates
Run locally (exit 0 each):
check:liveness,check:spec-changes,check:upgrade-guide,check:llms-txt(spec);check:issue-citations,check:cross-package-test-inputs,check:doc-authoring,check:gitlink-declared,check:merge-driver,check:nul-bytes,check:published-files,check-adr-0087-registration,check-changeset-no-major,check-empty-changeset,check-closing-keyword-parity,check-affected-docs,check-drift-comment.dispatch-gates --rannames 76 of 93 derived families unrun locally; CI runs them on this PR.Acceptance notes
formitem does not get that check today: Studio's form designer (studio-design/publicForm/PublicFormsDesigner.tsx) refuses nothing of the kind and@objectstack/linthas no rule for it. Whether to re-home the check on theformitem or retire it is not decided here; that question is carried by Studio form editor: re-home or retire the "required field in a gated section" author-time check #39852, theneeds-user-decisioncard filed on the maintainer's choice in the project thread (record the gap, decide on its own card), and ADR-0113 carries a dated note and a status-line entry saying so.inspectors/ViewInspector.tsx(thefamilyKeyprop),inspectors/requiredInGatedSection.tsand its two tests (only the removed form branch imported it),utils/index.ts(theFormViewDefinitiontype export),previews/form-preview.test.ts, five test files that passedfamilyKey, andpackages/spec/liveness/form.json(note text).DraftChangesPanel.tsxlives undersrc/preview/, notviews/metadata-admin/as the claim spelled it.ui/packages/data-objectstack/src/index.tskeeps its ownFORM_FAMILYset (a list filter in the data adapter); not touched.Verification
Read first, by risk:
ui/packages/app-shell/src/hooks/useNavTargetIcon.ts: the icon and colour resolvers now cache per object for the resolver's life.ui/packages/app-shell/src/views/metadata-admin/inspectors/ViewVariantInspector.tsx: the form branch removal; the list branch is otherwise unchanged.docs/adr/0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.mdline 83: one sentence re-pointed to a docblock that still exists.docs/adr/0113-required-write-contract-vs-column-constraint.md: the paragraph at line 410 is as on main, and a dated note (2026-12-05) under it records that the author-time fence is no longer in Studio and names the follow-up card Studio form editor: re-home or retire the "required field in a gated section" author-time check #39852; the status block gains anAmended (2026-12-05)line, after the 2026-11-20 precedent. These two paths make the PR a governed one.Also changed since the first review:
ui/packages/app-shell/src/utils/recordFormNavigation.ts(resolveRecordFormChromeinlined) andpreviews/useObjectFields.ts(the unreadrequiredmember removed).Two-minute check:
pnpm --dir ui exec vitest run packages/app-shell/src/hooks/useNavTargetIcon.answersAsOfItsRender-38859.test.tsx packages/app-shell/src/views/metadata-admin/inspectors/ViewVariantInspector.listOnly-39003.test.tsxfrom the repo root: both files pass.🤖 Generated with Claude Code
https://claude.ai/code/session_016WV4cwiNRyb9B38wT2fjYj
Body refreshed 2026-12-06T01:50Z at head
2418c09d: the ADR-0113 fix round (review 7431562202, M1 route b).