Skip to content

fix(console): remove Studio form-view leftovers, package-less scope references and nav resolver staleness - #39783

Merged
os-zhuang merged 11 commits into
mainfrom
claude/issue-39003-wip
Dec 6, 2026
Merged

os-zhuang merged 11 commits into
mainfrom
claude/issue-39003-wip

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

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

维护者速读

  • 用户能看到什么变化:Studio 的视图编辑器只按列表视图编辑(本来也只能遇到列表);侧边栏里对象的图标和颜色在对象读取晚到时也会正确显示,不再停在默认灰色;其余用户无感。
  • 为什么做:收尾"表单成为独立元数据类型"之后视图编辑器里残留的表单分支、已退役的无包作用域留下的空字段与过时注释,以及侧边栏导航的同一类首帧过时问题。
  • 出错会怎样:Studio 作者若手里还有旧的表单形视图,会被当成列表打开;侧边栏图标颜色若有问题只影响显示,可直接撤回本改动。
  • 要你做什么:无。

What changes

#39003, form-view leftovers after the protocol-19 form switch (a view holds lists only since spec 19, ADR-0159 D7):

  1. view-variant-model.ts: the form family (FORM_FAMILY, familyFromViewKind, isFormFamilyKey) and the binding's familyKey are removed. A binding is { storeKey, schema }; no family other than list is derived.
  2. ViewVariantInspector.tsx: the form branch is removed (form layout picker and labels, getFormVariantSchema reads, and the required-in-gated-section Save gate that only a form body could reach, with requiredInGatedSection.ts and its tests). The formViewType-30046 test goes; a new ViewVariantInspector.listOnly-39003.test.tsx pins that a draft still saying viewKind: 'form' is offered the list types only.
  3. ViewConfigPanel.tsx / ViewInspector.tsx: the always-false isFormFamilyKey call and the familyKey prop are removed.
  4. form-preview.ts: toInlineFormType (no caller outside its own test) and its test are removed.
  5. recordFormNavigation.ts: resolveFormViewChrome (its one caller always passed null for the named form) and the FormViewDefinition type (not exported from the package entry) are removed; resolveRecordFormChrome returns the host's chrome directly. Removal of a dead arm, not a re-point.
  6. Studio locales: engine.viewPreview.formFailed and the six engine.inspector.view.gatedRequired.* keys are removed from en.ts and zh.ts; no call site reads any of them (check:i18n-keys green).
  7. 19.internal-record-forms-not-loaded.ts: the lint rule form-view-internal-not-loaded it 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 in ResourceListPage.tsx are removed; the list falls back to the type's own hint. The include prop doc in DraftChangesPanel.tsx now names its one caller (DraftPreviewBar), and the backfill comment no longer describes the package-less scope.

#38859, nav-row resolver contract: NavTargetLabelResolver, NavTargetIconResolver and NavTargetColorResolver (@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 / useNavTargetColor read live provider state, so both now use the label hook's answeringOnce cache (now generic, exported from useNavTargetLabel.ts), pinned by useNavTargetIcon.answersAsOfItsRender-38859.test.tsx.

Also, made false by item 5: packages/spec/liveness/form.json's buttons note named resolveFormViewChrome as a reader; it now names readFormButton in 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 removing ObjectFieldInfo.required and its one fill: exit 0, so no reader of the member remains in the package; a tree grep finds the type used nowhere outside ui/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.
  • Gates, exit 0 each: 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.
  • At 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-merges and the spec gates check:authorable-surface, check:liveness, check:spec-changes, check:api-surface, check:upgrade-guide, check:docs, exit 0 each.
  • ResourceEditPage.requiredInGatedSection-6900.test.tsx is 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 by ResourceEditPage.celGate.test.tsx and ResourceEditPage.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 run over app-shell hooks/, 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.
  • Rerun of that file with 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.
  • Ablation: with ViewVariantInspector.tsx, ViewInspector.tsx, view-variant-model.ts, view-schema.ts, requiredInGatedSection.ts and useNavTargetIcon.ts restored 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.
  • eslint over the 17 changed source files: 0 errors (pre-existing warnings only).
  • ui check: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 --ran names 76 of 93 derived families unrun locally; CI runs them on this PR.

Acceptance notes

  • Studio and console: remove the form-view leftovers after the protocol-19 form switch (checklist) #39003 item 2 asks whether the form item has the features the removed branch carried. The required-field-in-a-gated-section author check (objectui#6900) was reachable only from a form held in a view, which a 19 view never is, so removing it removes no reachable check. A form item does not get that check today: Studio's form designer (studio-design/publicForm/PublicFormsDesigner.tsx) refuses nothing of the kind and @objectstack/lint has no rule for it. Whether to re-home the check on the form item 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, the needs-user-decision card 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.
  • The fold also touched files outside the claim's listed surface, each a direct consequence of a listed removal: inspectors/ViewInspector.tsx (the familyKey prop), inspectors/requiredInGatedSection.ts and its two tests (only the removed form branch imported it), utils/index.ts (the FormViewDefinition type export), previews/form-preview.test.ts, five test files that passed familyKey, and packages/spec/liveness/form.json (note text). DraftChangesPanel.tsx lives under src/preview/, not views/metadata-admin/ as the claim spelled it.
  • ui/packages/data-objectstack/src/index.ts keeps its own FORM_FAMILY set (a list filter in the data adapter); not touched.

Verification

Read first, by risk:

  1. ui/packages/app-shell/src/hooks/useNavTargetIcon.ts: the icon and colour resolvers now cache per object for the resolver's life.
  2. ui/packages/app-shell/src/views/metadata-admin/inspectors/ViewVariantInspector.tsx: the form branch removal; the list branch is otherwise unchanged.
  3. docs/adr/0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md line 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 an Amended (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 (resolveRecordFormChrome inlined) and previews/useObjectFields.ts (the unread required member 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.tsx from 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).

… 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>
…mments and a stale liveness note reference

Claude-Session: https://claude.ai/code/session_016WV4cwiNRyb9B38wT2fjYj
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 5, 2026
@github-actions

github-actions Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. ⚠️ 1 changed file(s) yielded no anchor (packages/spec/liveness/form.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/spec/liveness/form.json) — pages documenting those are invisible to this run
  • the SDK route bridge reached 71 of 255 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 185 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json eecae948ad3930b1824bfa141182d589f8157c00 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from f5d1ff6ce53f40f28bee8a593e1ee6d5d7ff49b6 — the merge of head 2418c09d384e585c3d24a8f6eda97a8a24f18595 into base eecae948ad3930b1824bfa141182d589f8157c00, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# 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

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

…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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czzaKz49WLAvKtdyiY

席位核对

L1 verdict (L1-b): ACCEPT at head 74ae08a2bb (a fold: Fixes #39003, #38785, #38859; governed through two ADR sentences, Tier H). Read at 2026-12-05T03:59Z. The contract review at CONTRACT_REVIEW_TIER is running on this head now and will be its own record.

Face: l1-face --pr 39783: 12 ok, 2 flags. keywords-other-cards is the intended fold of #38785 and #38859, and all three cards are judged below. all-checks is only the standing Dogfood matrix-name skip. 65 success · 0 failed. mergeable_state clean.

#39003 (seven items):

#38785: emptyListHint and both reads are removed. The include doc names its one caller (DraftPreviewBar), and the backfill comment is cleaned. Delivered.

#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 answeringOnce cache, pinned by useNavTargetIcon.answersAsOfItsRender-38859. The ablation turns 4 red with the 2 controls green. This is the Done-when's "guarded and pinned".

Deleted tests: the four deleted files pinned only the removed form-view branch and Save gate. The body names ResourceEditPage.celGate and ResourceEditPage.defaultGate as still pinning the neutral withheld-Save title. The L2 judges this against AGENTS.md's deletion rule.

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 RecordFormModalLayout's docblock. N1: that same edited sentence still says the lint rule form-view-internal-not-loaded (packages/lint/src/validate-internal-form-views.ts) "reports" an internal form. On main that file does not exist and the rule is retired at 19, which item 7 of this same PR relies on. The sentence was touched in this PR, so it should hold as of now. The L2 grades it.

Changeset: .changeset/39003-app-shell-studio-leftovers.md. Clause-②: no and Metadata-protocol: none are right, since nothing authorable moves. The two packages/spec hunks are a liveness-ledger note and a migration entry's prose.

Landing: governed, Tier H. It needs the at-tier contract-review PASS on this head, then the seat record and pm:awaiting-merge, and the maintainer merges.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czzaKz49WLAvKtdyiY

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 74ae08a2bb99e4823c2a86bd21c523bc7e2aca39
Local-runs: none
Scope: docs/adr/0113-required-write-contract-vs-column-constraint.md, docs/adr/0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md, packages/spec/liveness/form.json, packages/spec/src/migrations/entries/semantic/19.internal-record-forms-not-loaded.ts + ui/packages/app-shell/src/utils/recordFormNavigation.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/ViewVariantInspector.tsx, ui/packages/app-shell/src/views/metadata-admin/inspectors/requiredInGatedSection.ts (removed), ui/packages/app-shell/src/views/metadata-admin/view-variant-model.ts, ui/packages/app-shell/src/views/metadata-admin/ResourceEditPage.tsx, ui/packages/app-shell/src/views/metadata-admin/previews/useObjectFields.ts
Security-touching: no
Rule-change-verified: none

Inputs read: card #39003 (body and all 13 comments), PR #39783 (body, 41-file list, net diff 881809cf...74ae08a2), the check-runs on the head. Every check-run on 74ae08a2 concluded success or skipped; none failed. The rest of the diff (tests, the nav resolver change for #38859, the emptyListHint removal for #38785, locales, the changeset) is the lane seat's ACCEPT at TIER_DEFAULT; the bodies of #38785 and #38859 are not among this review's inputs, so whether merging delivers those two cards whole is the lane seat's to state.

① Derived judgments

  • A view draft that still says viewKind: 'form' is now read by Studio as a list (resolveVariantBindings returns { storeKey, schema }, no family). Right: ViewKindSchema on the head is enumWithRetiredValues(['list'], { form: ... }), the view door refuses the form kind, and ViewInspector is registered for view alone (inspectors/index.ts), so no other route reached the form branch. Pinned by ViewVariantInspector.listOnly-39003.test.tsx.
  • resolveRecordFormChrome inlines the host defaults. Right: field for field what resolveFormViewChrome(null, ...) returned (show true twice, the host labels, vertical, createValues passed through as the same object). No accept-set change.
  • Removed symbols (FormViewDefinition, resolveFormViewChrome, toInlineFormType, getFormVariantSchema, isFormFamilyKey, MetadataAreaHost.emptyListHint, ObjectFieldInfo.required): none is exported from ui/packages/app-shell/src/index.ts on main, and a tree grep on main finds no reader outside app-shell. Right: no public surface is lost.
  • 19.internal-record-forms-not-loaded.ts acceptanceCriteria no longer asks for a clean form-view-internal-not-loaded reading. Right: the rule is retired at 19 (packages/lint/src/form-view-internal-not-loaded-retired.test.ts, changeset 37112-view-holds-lists-only), so the removed clause was vacuously true and named an id os explain no longer answers. Published upgrade-guide text narrows; nothing a consumer could act on is taken away.
  • packages/spec/liveness/form.json buttons note. Right: readFormButton is at ui/apps/console/src/components/FormPage.tsx and reads loaded.form.buttons.submit and .cancel; foldFormButtons is still in ui/packages/plugin-form/src/ObjectForm.tsx. The row stays live on readers that exist.
  • ADR-0159 line 83. Right: see ④.
  • ADR-0113 line 410. Wrong as written: see M1.
  • Deleted tests, each checked against the removed code on main: requiredInGatedSection.test.ts pins the removed module; ViewVariantInspector.requiredInGatedSection-6900.test.tsx and ResourceEditPage.requiredInGatedSection-6900.test.tsx both build a draft with viewKind: 'form' and drive the removed Save gate (the neutral withheld-Save title stays pinned in ResourceEditPage.celGate.test.tsx and ResourceEditPage.defaultGate.test.tsx); ViewVariantInspector.formViewType-30046.test.tsx pins the removed form-layout picker, and its two list controls are carried by the new listOnly-39003 file. Each deletion follows a removed behaviour. They stand or fall with M1's answer on the fence, not on their own.

② Semver level

Clause-②: 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 @object-ui/app-shell, @object-ui/layout, @object-ui/i18n and @objectstack/spec at patch, which is what the diff publishes (dead-branch removal, TSDoc, unread locale keys, one migration text and one ledger note). Metadata-protocol: none holds. Check Changeset is green on the head.

③ Boundary flags

  • open_questions is empty in all four dev reports (7430382322, 7430841456, 7430970908, 7431212190). Nothing to answer there.
  • Dev flag, report 7430382322, "noted, not filed": the gated-section check is not offered for form items. Not answered by the PR; escalated as M1. The earlier holder's note 7382167195 says a follow-up card is owed; none is filed.
  • Dev flag, ui/packages/data-objectstack/src/index.ts keeps its own FORM_FAMILY: accepted, it is a live list filter outside this diff.
  • Dev flag, files beyond the claimed surface: covered by claim amendments 7430428617, 7430482477 and 7431003590. Accepted.
  • Dev flag, round 4 status rework for the PR body: the body carries a refresh stamp at 74ae08a2. Closed.
  • Round 3's three stale places (ADR-0113 line 410, the ResourceEditPage.tsx comment, ObjectFieldInfo.required): the two code ones are fixed correctly on this head; the ADR one is M1.
  • For the seat, outside this review: report 7430841456 says the anchor packages/lint/src/validate-internal-form-views.ts on ADR-0159 line 83 resolves. No tracked file is at that path on main or on the head, and the ADR symbol-anchor gate is green. Either that gate does not read this file-level form or it has a hole; worth one look by its owner. The head commit carries a work-in-progress title; the squash title is the PR's.
  • SQL push-down: the diff adds no data read, no id materialisation and no in-app join.

④ Design judgment

M1 (must-fix) — docs/adr/0113-required-write-contract-vs-column-constraint.md line 410 records a decision nobody ruled. The author-time fence was landed by maintainer ruling (5749269225 letter c and 5831744213 on objectui#6900, as the removed requiredInGatedSection.ts docblock cites), and ADR-0113 named it as what covers the section case the validator leaves out. The fact half of the new sentence is true: since protocol 19 the fence, mounted only in the view inspector, was unreachable, and on this head it is gone. The second half is not a restatement: "so a required field in a gated section is answered by this contract at the record save" presents the outcome the ruling was made to prevent (a save refused naming a field the user cannot see) as the standing answer, in the body of an Accepted amendment, with no status-line entry and no dated note, where this record's own 2026-11-20 precedent leaves the paragraph as written and adds a note. The hazard is live on form items: FormSchema takes the form body by reference, FormSectionSchema.visibleWhen binds current_user, the server reads no form, and @objectstack/lint has no equivalent rule. The PR's premise for not moving the check is also wrong against the tree: Studio has a form editor (ui/packages/app-shell/src/views/studio-design/publicForm/PublicFormsDesigner.tsx, "the page a form item opens on"), it places object-required fields into named sections, and publicFormDesign.ts#sectionBody keeps a stored section's keys, visibleWhen included. Card #39003 item 2 reads "or moved to the form item designer if it still lacks those features"; that question was answered on the claim that no designer exists. To close M1, one of: (a) put the question to the maintainer (re-home the fence on the form editor, or retire it) and write line 410 and the status line from his answer; or (b) keep this PR decision-neutral: restore the paragraph, add a dated note that states only the facts (the fence lived in the view inspector, has been unreachable since 19, its code is removed here, a form item has no such check) and names a filed follow-up card that carries the open question, filed before Fixes #39003 closes the card. Whether the pure module and its unit test are kept for a re-home follows that answer.

docs/adr/0159-...md line 83 holds. The edited sentence re-points a quotation from recordFormNavigation.ts#FormViewDefinition, which this diff removes, to recordFormNavigation.ts#RecordFormModalLayout, whose docblock on the head reads "An internal form view steers nothing" and cites the same change (#36425). The fact stated is unchanged and true now; no decision moves. This is a restatement.

N1 (nit) — the same line still says the lint rule form-view-internal-not-loaded (packages/lint/src/validate-internal-form-views.ts) reports an internal form; D7 (line 271) cites isPublicForm in the same file. The file is on neither main nor the head and the rule is retired at 19. The diff did not touch that sentence, it sits in the dated Context section whose neighbours are equally of their date (line 79 says form is not a metadata type), D1 (line 134) already names the successor rule, and no part of the record says in words that the rule retires. No effect on the contract; a dated note under its own card, not a rewrite here.

packages/spec/liveness/form.json holds against its readers (①). 19.internal-record-forms-not-loaded.ts holds against the lint registry (①).

N2 (nit) — the comment kept at the top of 19.internal-record-forms-not-loaded.ts still says an internal form "still parses and installs"; at 19 the spec refuses those shapes at the parse (the retired-rule test says so). Comment only, older than this diff.

Implementing files: recordFormNavigation.ts, ViewVariantInspector.tsx, view-variant-model.ts, ResourceEditPage.tsx (comment) and useObjectFields.ts agree with ADR-0159 D7 sentence by sentence; the list branch of the inspector is unchanged apart from the removed conditionals. requiredInGatedSection.ts is the file M1 is about.

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: claude/issue-39003-wip
Reviewed-by: session_016WV4czzaKz49WLAvKtdyiY

VERDICT: FAIL


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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.

  • Open: L2 must-fix M1 (7431562202), on route (b), which keeps the PR decision-neutral. The fix round is committed in the zone at 77e21a9d. Its ADR note still needs the number of one follow-up card, and filing that card is in front of the maintainer.
  • Next: file the card, push, run the L1 and L2 deltas, then hand off to the maintainer (Tier H, docs/adr/**). ETA: hand-off within about 4 h of the filing.

…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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cwiNRyb9B38wT2fjYj

Fix round 6 — 2026-12-06T01:51Z · head 2418c09d3

M1 of contract review 7431562202, route (b), decision-neutral:

Gates run locally on this head: check-adr-links, check:adr-anchors, check:issue-citations, check:doc-authoring, check:adr-index all EXIT=0; overlap-check --branch=HEAD VERDICT clean. CI check-runs: NOT MEASURED yet.
open_questions: none.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czzaKz49WLAvKtdyiY

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 2418c09d384e585c3d24a8f6eda97a8a24f18595
Local-runs: none
Scope: docs/adr/0113-required-write-contract-vs-column-constraint.md, docs/adr/0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md, packages/spec/liveness/form.json, packages/spec/src/migrations/entries/semantic/19.internal-record-forms-not-loaded.ts + ui/packages/app-shell/src/utils/recordFormNavigation.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/ViewVariantInspector.tsx, ui/packages/app-shell/src/views/metadata-admin/inspectors/requiredInGatedSection.ts (removed), ui/packages/app-shell/src/views/metadata-admin/view-variant-model.ts, ui/packages/app-shell/src/views/metadata-admin/ResourceEditPage.tsx, ui/packages/app-shell/src/views/metadata-admin/previews/useObjectFields.ts
Security-touching: no
Rule-change-verified: none

Delta review over record 7431562202 (FAIL at 74ae08a2, M1). Inputs read: dev report 7449514170, card #39852, the PR body as refreshed at this head, the net diff eecae948...2418c09d, and the check-runs on this head. What moved since 74ae08a2: one fix commit (6bfce67d, two files: ADR-0113 and the semantic entry's comment) and a merge of origin/main eecae948. The PR's file list is the same 41 paths, and outside those two files the PR's net patch against main is line for line the patch reviewed at 74ae08a2; the merge brought nothing else into the PR's files. Every check-run on this head is completed: 65 success, 14 skipped, none failed.

① Derived judgments

  • ADR-0113 line 410: the "Not in scope" paragraph is byte-identical to main (it appears in the diff as unchanged context). Right.
  • ADR-0113, the dated note under it: right, see ④.
  • ADR-0113, the status block: one added Amended (2026-12-05) line. Right, see ④.
  • 19.internal-record-forms-not-loaded.ts: the comment now says protocol 19 refuses the view shapes that held such a form at the parse (ADR-0159 D7). Right, against ViewKindSchema and the retired-rule test; comment only, the entry's published strings are as reviewed at 74ae08a2.
  • Every other derived judgment of record 7431562202 stands unchanged on this head: the patch it judged is the patch here.

② Semver level

Clause-②: 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. Check Changeset is green on this head.

③ Boundary flags

④ Design judgment

M1: closed. Route (b) of record 7431562202 is carried out as written. The paragraph is restored to its text on main. The dated note states facts only, each checked against the tree: the fence lived only in the view inspector; it has been unreachable since protocol 19; this PR removes its code; a form item has no such check, in the Studio form designer or in @objectstack/lint. It says "The paragraph is left as written" and hands the question (re-home on the form item, or retire) to #39852. It neither re-decides the objectui#6900 fence nor records its loss as the standing answer: the clause that did that at 74ae08a2 is gone. The status-line entry follows the 2026-11-20 precedent's form word for word in its frame (the bold date, "the author-time fence: a dated note", the linked card, "records that", "The paragraph is left as written."), and its own claim, that the fence left Studio with PR #39783 and its future is open, is what the note says.

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 packages/lint/src/validate-internal-form-views.ts, a file on neither main nor this head; the diff does not touch those sentences. Left as a follow-up for a dated note under its own card; no effect on the contract.

docs/adr/0159-...md line 83, packages/spec/liveness/form.json and the implementing files are as judged at 74ae08a2 and hold.

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 Fixes #39003 closes nothing that is left unowned.

Implemented-by: claude/issue-39003-wip
Reviewed-by: session_016WV4czzaKz49WLAvKtdyiY

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czzaKz49WLAvKtdyiY

席位核对

L1 delta review of PR #39783 at head 2418c09d384e585c3d24a8f6eda97a8a24f18595 (2026-12-06T02:26Z), card #39003, fix round 6 (report 7449514170), over contract record 7431562202 (FAIL, M1).

Verdict: ACCEPT.

  • M1 is closed via route (b). The "Not in scope" paragraph at ADR-0113 line 410 shows only as unchanged context in the diff against main, so it is restored as written. The dated note (2026-12-05) states facts only: the fence lived only in the view inspector, has been unreachable since protocol 19 (ADR-0159 D7), this PR removes its code, and a form item has no such check. It hands the open question to Studio form editor: re-home or retire the "required field in a gated section" author-time check #39852, which is open and labelled needs-user-decision. It no longer records the fence's loss as the standing answer.
  • The status block gains Amended (2026-12-05), in the frame of the 2026-11-20 entry.
  • N2 is closed: the comment in 19.internal-record-forms-not-loaded.ts now matches protocol 19's parse-time refusal.
  • ADR-0159's re-pointed anchor holds. recordFormNavigation.ts#RecordFormModalLayout's docblock carries the quoted words "An internal form view steers nothing".
  • Since the reviewed 74ae08a2 there is one fix commit (6bfce67d, two files) and a merge of main. Outside those two files, the PR's net patch is unchanged.
  • Check-runs: 65 success, 14 skipped, 0 failed.

Nit carried forward (N1): ADR-0159 line 83 and D7 name packages/lint/src/validate-internal-form-views.ts, which exists on neither main nor this head. It needs a follow-up note under its own card.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7

速读 · PR #39783 (Fixes #39003) · head 2418c09d384e585c3d24a8f6eda97a8a24f18595

  • 改了什么:清理控制台(Studio)里旧表单视图留下的代码,去掉指向不存在包的作用域引用,并修好导航解析器读到旧数据的问题。净删约 1000 行,同时更新了相关 ADR 的说明。
  • 为什么要你批:改到了 docs/adr/**,属于 Tier H 人合面。Security-touching: no。
  • 遗留问题:表单设计期检查要不要加护栏,已按你 01:43Z 点选的「先记录,另开一张卡待定」另开 Studio form editor: re-home or retire the "required field in a gated section" author-time check #39852 等你定。
  • 要你做什么:批准或合并本 PR。L2 delta PASS 7449941174,L1 delta ACCEPT 7449952706。
  • 席位意见:接受。

席位核对 — ACCEPT · repo:objectstack@os-elon-musk · head 2418c09d384e

  1. 形态:draft,base main,41 个文件,+475 −1487;Fixes #39003。卡来自分诊裁决 7438797280,Elon 点选「接手,跟到合并」(2026-12-05T13:38Z)。
  2. 记录:L2 delta PASS 7449941174 在本 head 上,M1 按路线 (b) 关闭,没有 must-fix 或 should-fix。L1 delta ACCEPT 7449952706。
  3. 门禁:席位自己读了本 head 的 check-runs,65 success · 14 skipped · 0 failed;mergeable_state 为 clean。check-governed-merges --pr 39783 判为 GOVERNED、Tier H。
  4. 接受的偏差:N1 是 nit,指 ADR-0159 第 83 行和 D7 引用了 main 上不存在的 packages/lint/src/validate-internal-form-views.ts。它不挡合并,由座位另立卡跟进。
  5. 落地条款:GOVERNED,由维护者合并,或在授权的 APPROVED 之后由座位落地(审批后的 Tier H PR 由座位自己合并,Elon 2026-12-03T23:43Z)。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7

维护者速读

  • 改了什么:清理控制台旧表单视图留下的代码,去掉指向不存在包的作用域引用,修好导航解析器读到旧数据的问题,并更新相关 ADR 的说明。净删约 1000 行。
  • 要你批的原因:改到了 docs/adr/**(Tier H)。不涉及安全。
  • 遗留问题:表单设计期护栏要不要加,已另开 Studio form editor: re-home or retire the "required field in a gated section" author-time check #39852 等你定,不挡本 PR。
  • 要你做什么:批准或合并。Head-sha 是 2418c09d384e585c3d24a8f6eda97a8a24f18595。L2 delta PASS 7449941174,L1 delta ACCEPT 7449952706,CI 65 绿 0 红。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 6, 2026
@objectstack-fleet
objectstack-fleet Bot requested a review from os-zhuang December 6, 2026 02:29
@os-zhuang
os-zhuang marked this pull request as ready for review December 6, 2026 02:30
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 6, 2026
Merged via the queue into main with commit 1a3eb7f Dec 6, 2026
87 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-39003-wip branch December 6, 2026 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants