Skip to content

feat(plugin-detail): every titled field group folds on the default record page - #36817

Merged
os-zhuang merged 11 commits into
mainfrom
claude/issue-36269-every-group-folds
Nov 24, 2026
Merged

os-zhuang merged 11 commits into
mainfrom
claude/issue-36269-every-group-folds

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Fixes #36269

Clause-②: no
Metadata-protocol: semantic
Skills-docs: updated here — skills/objectstack-data/references/examples-objects.md (ruling 7074368214 names "any skill text that teaches 'none' as no toggle" as part of this same change, and the claim's file surface lists it; the seat decides whether a domain:skills follow-up is still owed)

维护者速读

  • 记录页(右侧预览、手机「详情」页、宽屏左侧固定栏、整页)上每个有标题的字段分组现在右侧都有箭头,点标题整行即可收起;原来只有对象声明了可折叠的分组才有。
  • 记录页字段区改成一列后页面变长,按您在该卡上的裁决「都能折叠,默认展开」,读者自己收起分组。
  • 声明了默认收起的分组照旧先收起,系统信息照旧先收起,表单和设计器预览不变,对象设计器里「折叠」设置的说明文字同步改写;出问题最多是某个分组多了一个箭头,撤回即恢复原样。
  • 请审批合并(规范描述文字有改动,按裁决需要您批准)。

What changes

Maintainer ruling 7074368214 (option (b), 「都能折叠,默认展开」) on the synthesized (default) record page:

  • Renderer (ui/packages/plugin-detail/src/DetailSection.tsx, the frameless face). The face drew a disclosure only for a section the synth marked collapsible (a group declaring collapse: 'expanded' | 'collapsed'), and a plain h3 heading for 'none' and for groups declaring nothing. Every titled section on this face now draws the one title-row button (aria-expanded, chevron at the right end), whatever its group's collapse. collapse keeps choosing the first state through the synth's existing defaultCollapsed ('collapsed' → closed; 'none' / 'expanded' → open). The frameless face is only drawn under DefaultRecordPageContext (the side preview, the phone 「详情」 tab, the pinned left column and the full page) and never on a print page, so:
    • forms and the designer preview are unchanged ('none' = always open, no toggle; they never take the frameless face);
    • the untitled ungrouped bucket draws no toggle (the button is behind section.title);
    • a print page still draws every group open with a plain heading (card face);
    • an authored record page keeps its own face (the context is false there);
    • 系统信息 (RecordMetaFooter) still starts closed (defaultCollapsed: true, ruling 7066516044 item 5);
    • the fold is component state, not saved.
  • Spec wording (packages/spec/src/data/object.zod.ts). The ObjectFieldGroupSchema.collapse TSDoc and .describe(), and the refusal guidance for a stray expanded group key, now say the synthesized record page lets the reader fold every titled group, so there only 'collapsed' starts closed. The enum, its default and what it accepts are unchanged. Regenerated: content/docs/references/data/object.mdx.
  • Heading kept (L1 S1). The title-row button sits inside the group's h3 (the disclosure-in-heading pattern), so heading navigation still finds every titled group on the record page.
  • Object form (packages/spec/src/data/object.form.ts, L2 S1). The Collapse help text now says the entry form follows the setting and the default record page lets the reader fold every titled group, so there it only sets the first state; the "None" option reads "always open on the entry form, no toggle". Regenerated: en.metadata-forms.generated.ts; the ten translated metadata-form catalogs (ar, de, es-ES, fr, ja-JP, ko, pt-BR, ru, zh-CN, zh-Hant) re-translated for that one key. @objectstack/platform-objects gains its changeset line.
  • Docs: the collapse row and the "Groups render identically on forms, modals, and detail pages" sentence (L1 S2) in content/docs/data-modeling/schema-design.mdx; the skill reference skills/objectstack-data/references/examples-objects.md (it taught the same sentence).
  • ADR-0085 addendum (docs/adr/0085-…): the ruling lists it under "Wording in the same change", and the seat put it in this PR (claim amendment 7120248008). It records the record-page fold against §4 and §5 and states that every other surface keeps §4 as written.
  • No app change (CRM, HotCRM add nothing), per ruling item 4.

Metadata-protocol: semantic. On the synthesized record page collapse: 'none' no longer means "no toggle"; it means "starts open", the same as 'expanded'. What to check in an app: an object that used 'none' to keep a group from folding on the record page now shows a chevron there; forms keep it always open. Clause-②: no, measured: no accepted value, key, default or exported type changes (check:api-surface and check:authorable-surface green on the head below).

Tests

  • DetailSection.fieldList-36147.test.tsx, new describe "every titled group folds on the record page; collapse picks the first state": a group declaring nothing folds from its title row starting open (chevron up → down, rows unmount); the same on the width-laid page (cap 3); 'collapsed' starts closed; the untitled bucket has no toggle; control: off the record page a 'none' group keeps a plain heading. The existing empty-rows case now asserts the group's one fold beside the list's empty-fields row.
  • defaultFieldGroupsPage.sectionHeadings.test.tsx, new describe across the seam (synth → record:details → DetailSection under DefaultRecordPageContext): groups declaring nothing each fold, starting open, and the untitled bucket has none; 'collapsed' starts closed and 'none' open; control: the same page off the record page draws no disclosure.
  • Updated to the ruled behaviour: recordPageV3Face-27055.test.tsx (a 'none' section folds, starting open, and its heading holds the toggle: both roles pinned), RecordDetailView.accessibleNames-12625.test.tsx (the non-collapsible group is now a button, open), headerColor.test.ts (three headerColorClass call sites, the frameless face has one title row).
  • The cross-seam case in defaultFieldGroupsPage.sectionHeadings.test.tsx also pins that each group's heading holds its fold.
Ablation (head bb358a0, round 2 on head 85f9ed7)
  • Mutation: node scripts/ablation-replace.mjs --file ui/packages/plugin-detail/src/DetailSection.tsx puts back the base face (the h3 heading for !section.collapsible and the button only for section.collapsible); anchor 1 → 0, blob 3e85f526 → bd854450. ui/ tests resolve @object-ui/plugin-detail from src, so no build leg.
  • With the mutation, the five pin files under the verify lock: Test Files 5 failed (5) · Tests 8 failed | 57 passed (65); VERDICT command-exit 1. Red: the three new fold cases in DetailSection.fieldList-36147, its empty-rows case, the two new cross-seam cases in defaultFieldGroupsPage.sectionHeadings, the 'none' case in recordPageV3Face-27055, the toggle case in RecordDetailView.accessibleNames-12625, and the call-site count in headerColor. The controls (off the record page, untitled bucket, 'collapsed') stayed green, as expected: the base draws them the same.
  • Restore: blob back to 3e85f526 == HEAD, git diff HEAD empty (tool verdict); the five files again: 5 passed (5) · 65 passed (65); VERDICT command-exit 0.
  • Round 2, the heading (L1 S1). Mutation: the title row's <h3> back to a <div> (opening tag held with --hold, closing tag in wrap mode, so the JSX still compiles). The five pin files: Test Files 2 failed | 3 passed (5) · Tests 2 failed | 63 passed (65); VERDICT command-exit 1. Red: the heading-holds-the-toggle assertions in recordPageV3Face-27055 and defaultFieldGroupsPage.sectionHeadings. Restore: blob 0f36bc24 == HEAD, git diff HEAD empty; the five files: 65 passed (65); VERDICT command-exit 0.
Local runs (head 85f9ed7)
  • pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-detail/: Test Files 416 passed | 1 skipped (417) · Tests 3921 passed | 18 skipped (3939); exit 0. (The round-2 heading pins are assertions inside existing cases, so the count is unchanged.)
  • pnpm --filter @object-ui/plugin-detail run type-check: exit 0.
  • pnpm --filter @objectstack/platform-objects test: Test Files 125 passed (125) · Tests 2126 passed (2126); exit 0.
  • pnpm --filter @objectstack/spec test: Test Files 883 passed (883) · Tests 28106 passed | 1 todo; exit 0. pnpm --filter @objectstack/spec typecheck: exit 0.
  • app-shell: only the edited file ran (RecordDetailView.accessibleNames-12625.test.tsx, inside the five-file pin run above); the full app-shell suite is CI's.
  • Derived gate families on this head (node scripts/pm/dispatch-gates.mjs --commands, 24 changed paths vs merge base 4c93f880): 129 derived, 129 run, every one :: exit 0; --ran: "129 derived famil(ies) accounted for — 129 run, 0 NOT-MEASURED (a DERIVED zero — all 129 recorded an exit code and none of them is 3)". Round 1 (head bb358a0): 126 of 126, with two ui/scripts files that went red under box load re-run green alone.
  • CI: head 85f9ed7 reads 61 success · 9 skipped · 0 failed, mergeable clean. The red Test UI / Lint & Repo Gates / TypeScript Type Check on 223415a and 2a1218b were those runs' lanes cancelled by the next push (every lane cancelled, no test or lint step failed).
  • Dogfood battery: n/a — no ! in the title and no (narrowing) arm.

Acceptance notes

  • The four faces, live (CRM dev boot, an object seeded with four groups: no collapse, 'none', 'expanded', 'collapsed'): each face reads Summary=open, Contact (none)=open, Terms (expanded)=open, Notes (collapsed)=closed, Other=open, System information=closed (the aria-expanded of each title-row button), in zh-CN and en; clicking the 'none' group's title folds it. Faces: full page at 700 px (details as the first tab), pinned left column at 1680 px (data-record-page-pinned), side preview, phone 390 px 「详情」 tab. Screenshots were taken at head; they are attached to the project thread, not committed.
  • Outside the first claim surface (claim amended 7120248008): the existing app-shell test RecordDetailView.accessibleNames-12625.test.tsx (its "non-collapsible group is no button" control now reads a button, open), skills/objectstack-data/references/examples-objects.md (kept here by the seat), object.form.ts with the metadata-form catalogs, and docs/adr/0085.
  • The "Other" group folds too. The running app titles the ungrouped bucket of a grouped object ("Other" / 「其他」), so it is a titled group and folds; only a section drawn with no title has no toggle. This is the ruling's "every titled group"; worth knowing at approval.
  • Translations. The metadata-form catalogs carry no source hashes for this key, so a stale translation would be served silently; all ten translated values were rewritten from the new English, keeping each locale's existing ending for "Unset: none".
  • The designer hint for this setting already reads 「控制该分组在真实表单(预览)中的折叠方式」 (ruling analysis), so no Studio copy changes.

Verification

Read first (by risk): DetailSection.tsx frameless face (the section.title && title-row button that replaced the collapsible split), object.zod.ts collapse .describe(), RecordMetaFooter.tsx (unchanged; 系统信息 still defaultCollapsed: true).

Two-minute check: pnpm --dir ui exec vitest run packages/plugin-detail/src/__tests__/defaultFieldGroupsPage.sectionHeadings.test.tsx — expect every case green, including "groups that declare no collapse each fold from their title, starting open".


Generated by Claude Code

@github-actions github-actions Bot added documentation Improvements or additions to documentation protocol:data tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

1 anchor(s) derived from 2 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • 2 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 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 — 175 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 14f4d8f8cd997d3722db0460a0fc7230f793121a → packageMentionDocs.

Which tree this was computed on

This run read content/docs from dc36b9dd62c31f2494215e2c899e0c4eef51df2c — the merge of head 85f9ed76e6adf42413fb31b51dafb2e745078bd7 into base 14f4d8f8cd997d3722db0460a0fc7230f793121a, 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 dc36b9dd62c31f2494215e2c899e0c4eef51df2c && git checkout dc36b9dd62c31f2494215e2c899e0c4eef51df2c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 14f4d8f8cd997d3722db0460a0fc7230f793121a 85f9ed76e6adf42413fb31b51dafb2e745078bd7 && git checkout -B drift-repro 14f4d8f8cd997d3722db0460a0fc7230f793121a && git merge --no-ff 85f9ed76e6adf42413fb31b51dafb2e745078bd7

node scripts/docs-audit/affected-docs.mjs --json 14f4d8f8cd997d3722db0460a0fc7230f793121a

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

Contract-review-claim: session_01WGufzesUz1Y8VZuKJRhVL8 · head bb358a0 · 2026-11-24T02:25Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: bb358a0d6e58e0748ac34e023bf6cb31284b0965
Local-runs: none
Scope: packages/spec/src/data/object.zod.ts, skills/objectstack-data/references/examples-objects.md + ui/packages/plugin-detail/src/DetailSection.tsx
Security-touching: no

Inputs read: card #36269 with every comment (ruling 7074368214, claims 7078229847 and 7118735409, release 7080178415, dev report 7119596674), the PR body and its 11-file list, the net diff against merge base 4c93f8807e, and the check-runs on the head. Nothing was built, run or re-run. The remainder of the diff (five test files, the changeset, content/docs/data-modeling/schema-design.mdx, the regenerated content/docs/references/data/object.mdx) is the lane seat's ACCEPT and is not reviewed here.

① Derived judgments

  • Accept set of ObjectFieldGroupSchema: unchanged. The collapse enum, its .optional().default('none') and the strict-key refusal list are the same; the diff edits one refusal message string, one TSDoc block and one .describe(). Right, and it agrees with the claim's Clause-②: no.
  • Public types and exports of @objectstack/spec and @object-ui/plugin-detail: unchanged. DetailSection keeps its props; the synth (buildDefaultPageSchema.ts) is not in the diff and still emits collapsible only for a non-'none' group and defaultCollapsed only for 'collapsed'. Right.
  • Published text: the collapse describe gains one sentence, and content/docs/references/data/object.mdx carries the same sentence in all five tables that render it. Right; check:generated is inside the green Lint & Repo Gates family.
  • Behaviour: on the frameless face (drawn only under DefaultRecordPageContext and never on a print page) a titled section with no collapsible changes from a plain h3 to the title-row button with aria-expanded. This is the semantic change the ruling orders (item 1) and it is declared as Metadata-protocol: semantic. Right.
  • Gate verdicts on the head: every check-run concluded success or skipped; none failed. Check Changeset, Spec property liveness, Lint & Repo Gates, Test UI (16 shards), Test Core (10 shards), Type Check UI, Build & E2E UI and Live E2E UI are green.

② Semver level

.changeset/36269-every-group-folds.md grades @objectstack/spec minor and @object-ui/plugin-detail minor and carries Clause-②: no and Metadata-protocol: semantic; the PR body carries the same two lines. The meaning of an authorable key changes on one surface, which AGENTS.md grades semantic and at least minor on a package the diff moves. Both packages have published source in the diff. The level matches what the diff publishes.

Clause-②: no. No accepted key, value, default or exported type changes.

No ADR-0087 entry is in the diff. No stored metadata needs rewriting (no key or value is renamed, refused or re-defaulted), and no gate on the head asked for one.

③ Boundary flags

  • Dev open_questions 1 (the skills/** hunk on an area:ux PR): answered, option A. Ruling 7074368214 names "any skill text that teaches 'none' as no toggle on every surface" as part of this change, and the PR is Tier H by the same ruling. The hunk stays.
  • ADR-0085 addendum: escalated to the seat. The ruling says "the build carries an ADR-0085 addendum" and lists it under "Wording in the same change". This PR carries none, and cites claim 7078229847 ("a separate domain:skills card, asked of the seat 08:24Z"). I searched the tracker and found no such card, which does not prove there is none. After this lands, ADR-0085 §4 and §5 on main still read as one meaning on every surface while the spec describe says otherwise. The seat names the addendum card on this PR before it lands, or files it.
  • The titled ungrouped bucket: answered, within the ruling. On the running app deriveRecordDetailSections (ui/packages/app-shell/src/views/recordDetailSections.ts, outside the diff) gives the ungrouped bucket of a grouped object the common.ungroupedSection heading, so that bucket is titled and now folds (the PR's own acceptance line shows Other=open with a toggle). The ruling's "the untitled ungrouped bucket has no toggle" therefore holds only for a section drawn with no title, which is what the tests pin. The ruling's reader-facing sentence is "every titled group", so this matches it; the maintainer should know the "Other" group folds too.
  • content/docs/data-modeling/schema-design.mdx line 332 still says "Groups render identically on forms, modals, and detail pages", twelve lines below the collapse row this PR rewrites, and it is the same sentence this PR removes from the skill. That file is the lane seat's remainder, so the sentence is not graded here; it is handed to the lane seat.
  • SQL push-down: not applicable. The diff adds no query, no id materialisation and no in-app join.
  • Security: no changed hunk teaches permission, sharing, credential, token or authentication behaviour. The skill hunk changes the collapse bullet only; the neighbouring requiresFeature bullet is untouched.

④ Design judgment

packages/spec/src/data/object.zod.ts (against ruling 7074368214 and its first consumer, DetailSection.tsx)

  • The .describe() sentence holds: on the head's frameless face a titled section folds whatever collapsible says, and the first state is defaultCollapsed, which the synth sets for 'collapsed' alone. 'none' and 'expanded' start open.
  • The TSDoc holds for forms and the designer preview (ruling item 3; no form file is in the diff).
  • The refusal message for a stray expanded key holds.
  • S1 (should-fix) — packages/spec/src/data/object.form.ts line 123, the published object form in the same package, still gives the collapse setting the help text "Whether the section can be collapsed, on the entry form and the record detail page. Unset: none." with the option "None — always open, no toggle". After this change that sentence is false for the default record page. The ruling's facet ③ names exactly this as the one trap the wording change has to state (an author choosing 'none' to remove the arrow on the record page), and this form is where a human author makes that choice. The same string is generated into packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts. The fix is one help-text sentence plus its regenerated copies, in this PR or in a follow-up card the seat names here; the claim's file surface lists the collapse describe only, so the seat decides which.
  • N1 (nit) — the TSDoc names forms and the designer preview as the surfaces that follow the three states as written. An authored record page and a print page also do not take the reader-fold rule (the card face still reads collapsible; print draws open). The sentence is not wrong, only incomplete.

skills/objectstack-data/references/examples-objects.md (against the spec it teaches and the ruling's facet ③)

  • The removed sentence, "Groups render identically on forms, modals, and detail pages", was the text the ruling orders changed. The new sentence, "the default record page lets readers fold any titled group", is true on the head and states the trap. 'collapsed' starts closed is true on every surface. No other file under skills/ teaches 'none' as "no toggle" (searched at the head).
  • N2 (nit) — "Forms keep it" is terse; "it" is the collapse value as written. The meaning is recoverable from the bullet, and the file sits under the token ratchet.

ui/packages/plugin-detail/src/DetailSection.tsx (implementing file, against the contract sentence by sentence)

  • "Every titled group folds": the two section.title branches are merged into one button, with aria-expanded, the chevron at the row's right end and the whole row as the click target. Holds.
  • "collapse picks the first state": React.useState(section.defaultCollapsed ?? false) is unchanged. Holds.
  • "The untitled bucket has no toggle": the button is behind section.title. Holds.
  • "Print draws open; forms, designer preview and authored pages unchanged": frameless = useDefaultRecordPage() && !isPrintPage; the card and disclosure faces below still read section.collapsible. RecordDetailView.tsx provides the context as !assignedPage && !namedPageBlocked. Holds.
  • "System information stays closed": RecordMetaFooter.tsx is not in the diff and still passes collapsible: true, defaultCollapsed: true. Holds.
  • The reported body rows (drawsContent, line 580) already treated a closed frameless section as drawing nothing, so the owner line stays correct when a 'none' group is folded. Holds.
  • Tried to break it: a section with defaultCollapsed: true and no collapsible was already drawn closed on this face before the change, with no way to open it; it now has a toggle, which is an improvement.
  • N3 (nit) — for that same shape, sectionDrawnClosed in synth/buildDefaultPageSchema.ts (outside the diff, read only) still requires collapsible === true && defaultCollapsed === true, so it counts as open a section the face draws closed. Group references are unaffected, because the synth never sets one without the other. This predates the PR; a follow-up card if the seat wants the two readers aligned.

No must-fix. One should-fix (S1) is open on this head and earns a delta review of its fix.

Implemented-by: claude/issue-36269-every-group-folds
Reviewed-by: session_01WGufzesUz1Y8VZuKJRhVL8

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

席位核对 — REWORK · repo:objectstack#3 · head bb358a0 · 2026-11-24T02:31Z

L1: REWORK
Head-sha: bb358a0d6e58e0748ac34e023bf6cb31284b0965
Reviewer: L1-a (area ux-C, card #36269, ruling 7074368214, claim 7118735409, os-dev-report 7119596674). Tier H by ruling. The contract-tier L2 record on this head is comment 7120199982 (PASS, with one open finding of its own).

Read

  • l1-face.mjs --pr 36817 at this head: CLEAN, 13 items. Draft, base main, Fixes #36269 (the build card for ruling item 1, delivered whole), changesets for @objectstack/spec and @object-ui/plugin-detail (both minor), Clause-②: no / Metadata-protocol: semantic match the claim. Checks: 61 success / 9 expected skip / 0 failed, Lint & Repo Gates and TypeScript Type Check success.
  • Net diff against merge-base 4c93f880 (11 files). Ruling items 1–4 against the tree: every titled group on the frameless face draws the one title-row button whatever collapse; defaultCollapsed still picks the first state; forms, designer preview, print and authored pages keep reading collapsible; no app change. Pinned across the seam (synth → record:details → DetailSection) with an ablation that turns 8 cases red and leaves the controls green. The live four-face reading in zh-CN and en is in the body.
  • Changeset read sentence by sentence: true at this head. No new UI string.
  • The remainder outside the L2 Scope: (tests, changeset, schema-design.mdx, regenerated object.mdx) is read here, at the lane's tier.

Findings

  • M1 (claim surface, paper). Claim 7118735409's file surface is ui/packages/plugin-detail/**, the object.zod.ts describe plus its regenerated reference, and content/docs/**/schema-design.mdx. The diff also edits ui/packages/app-shell/src/views/RecordDetailView.accessibleNames-12625.test.tsx, an existing test outside that surface. Neither the PR body nor the report names the breach the claim asks to be explained. The diff also edits skills/objectstack-data/references/examples-objects.md; the seat's keep is not on GitHub. Fix: the seat posts a claim amendment on Record page field area: only groups whose object declares collapse get the right-hand fold arrow; the #36147 card asked for every group to fold #36269 naming both paths, and the card thread names the app-shell test edit in the PR body. No head move.

  • S1 (the record page loses its group headings). DetailSection.tsx frameless face: the plain <h3> that a group without collapse drew is gone. Every titled group is now a bare <button> inside a <div>, so a screen-reader user's heading navigation finds no field-group heading on the default record page. On HotCRM, 104 of 135 groups had one until now (ruling's own count). The pin that asserted getByRole('heading', { name: 'Address' }) (recordPageV3Face-27055.test.tsx) was replaced, not kept beside the new button assertion. Fix: wrap the title-row button in the heading (<h3><button aria-expanded …>, the disclosure-in-heading pattern), and pin both roles for one group: heading and button.

  • S2 (docs sentence this PR makes false). content/docs/data-modeling/schema-design.mdx line 332, twelve lines below the row this PR rewrites, still reads "Groups render identically on forms, modals, and detail pages". After this PR they do not: a 'none' group folds on the record page and not on a form. The PR removes the same sentence from the skill. Fix: one clause in that paragraph, inside the claim's surface.

  • L2 S1, routed here for the seat. Record 7120199982 leaves open the collapse help text in packages/spec/src/data/object.form.ts line 123, "Whether the section can be collapsed, on the entry form and the record detail page", with option "None — always open, no toggle", plus its generated copy in packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts. That is the form where an author picks 'none': the ruling's facet ③ trap. I checked the line at this head. The seat decides whether it is fixed in this PR (claim amendment) or in a follow-up card named here. Under the nit-only merge standard it is fixed and delta-read before landing either way, unless the seat moves it to a named card.

  • Seat item (ruling compliance, not graded here). Ruling 7074368214 lists an ADR-0085 addendum under "Wording in the same change". The PR defers it to "a separate card (claim 7078229847)", and no such card number is cited anywhere. The L2 search found none. Before the hand-off to the approver, the seat names the addendum card on this PR or files it.

  • N1 (from L2). The object.zod.ts TSDoc names forms and the designer preview as following the three states as written; authored record pages and print also do. Incomplete, not wrong.

  • N2 (from L2). The skill's "Forms keep it" is terse but recoverable.

  • N3 (from L2, predates the PR). sectionDrawnClosed in synth/buildDefaultPageSchema.ts requires collapsible && defaultCollapsed, while the face draws closed on defaultCollapsed alone. The synth never sets one without the other. A follow-up card if the seat wants them aligned.

  • N4. The titled "Other" (ungrouped) bucket folds too, because recordDetailSections.ts titles it. This is within the ruling's "every titled group" but worth one line to the approver.

Delta read owed on the next head: S1, S2, and whichever way the L2 S1 goes. M1 is closed by the claim amendment and the body line.

…s every titled group

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgTSB7FSJQ4j6QNnr8
…ader fold every titled group

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgTSB7FSJQ4j6QNnr8
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

Contract-review-claim: session_01WGufzesUz1Y8VZuKJRhVL8 · head 85f9ed7 · 2026-11-24T03:29Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 85f9ed76e6adf42413fb31b51dafb2e745078bd7
Local-runs: none
Scope: packages/spec/src/data/object.form.ts, packages/spec/src/data/object.zod.ts, docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md, skills/objectstack-data/references/examples-objects.md + ui/packages/plugin-detail/src/DetailSection.tsx
Security-touching: no

Delta review of record 7120199982 (head bb358a0d). Read for this round: the three commits bb358a0d..85f9ed76 (19 files), the card's new comment (claim amendment 7120248008), the PR body, and the check-runs on the new head. The whole-PR judgments of the first record were re-read against this head and are restated below where the delta touches them. Nothing was built, run or re-run. The delta adds two paths to the review face: packages/spec/src/data/object.form.ts (schema face) and docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md, a governed ADR path (rules face). The tier is unchanged, and the PR stays Tier H: it lands on the maintainer's approval, as ruling 7074368214 says.

Not reviewed here, the lane seat's ACCEPT: the test files, the changeset body, content/docs/data-modeling/schema-design.mdx, content/docs/references/data/object.mdx and the eleven packages/platform-objects/src/apps/translations/*.metadata-forms.generated.ts catalogs.

① Derived judgments

  • Accept set of ObjectFieldGroupSchema: still unchanged. The delta edits a TSDoc block in object.zod.ts and two strings in object.form.ts (the collapse help text and the label of the none option). The option values none / expanded / collapsed are the same. Right.
  • Public types and exports: unchanged. DetailSection keeps its props; the delta changes one wrapper element from div to h3. Right.
  • Published text: the object form's collapse help text and its English generated copy carry the same new sentence; the ten translated catalogs carry a translation of it under the same key. Right, and the Lint & Repo Gates family is green on this head.
  • Rendered output: on the frameless face every titled section's title row is now h3 containing the toggle button. Before this PR a non-collapsible titled section had an h3 and a collapsible one had a bare button; now both have a heading holding the disclosure. Right.
  • Gate verdicts on 85f9ed76: 74 check-runs, 63 success and 11 skipped, none failed or pending.

② Semver level

The changeset now grades @objectstack/spec, @object-ui/plugin-detail and @objectstack/platform-objects minor, with Clause-②: no and Metadata-protocol: semantic in both the changeset and the PR body. All three packages have published source in the diff. AGENTS.md asks a declared kind for at least minor on a package the diff moves, so the level matches what the diff publishes. Check Changeset is green.

Clause-②: no. No accepted key, value, default or exported type changes.

③ Boundary flags

  • ADR-0085 addendum (escalated in the first record): answered. It is in this PR, and claim amendment 7120248008 widens the file surface to it. Judged in ④.
  • The schema-design.mdx sentence "Groups render identically on forms, modals, and detail pages" (handed to the lane seat in the first record): rewritten in this delta to "the same members, order and visibility ... (the default record page also lets the reader fold every titled group)". It no longer contradicts the collapse row. The file stays the lane seat's to accept.
  • The titled ungrouped bucket: unchanged from the first record, and still for the maintainer to know. On the running app the ungrouped bucket of a grouped object is given the "Other" heading by ui/packages/app-shell/src/views/recordDetailSections.ts (outside the diff), so it folds. The ruling's and the addendum's "the untitled ungrouped bucket has no toggle" holds only for a section drawn with no title.
  • Dev open question (the skills/** hunk on an area:ux PR): answered in the first record, option A; the claim amendment now lists the file.
  • SQL push-down: not applicable. The delta adds no query, no id materialisation and no in-app join.
  • Security: no changed hunk in the PR teaches permission, sharing, credential, token or authentication behaviour.

④ Design judgment

  • S1: closed. packages/spec/src/data/object.form.ts now reads "The entry form follows it as set. The default record page lets the reader fold every titled group, so there it only sets the first state: Collapsed starts closed, the others start open", and the option reads "None — always open on the entry form, no toggle". Both sentences agree with the head's DetailSection.tsx and with the synth, which sets defaultCollapsed for 'collapsed' alone. en.metadata-forms.generated.ts carries the same string.

packages/spec/src/data/object.form.ts (against ruling 7074368214 facet ③ and its first consumer, the object form in Setup)

  • The trap the ruling names (an author choosing 'none' to remove the arrow on the record page) is now stated where the author chooses. Holds.

packages/spec/src/data/object.zod.ts

  • N1 of the first record is fixed: the TSDoc now names forms, the designer preview and authored record pages as following the three states as written, and says a print page draws every group open. This agrees with DetailSection.tsx (frameless = useDefaultRecordPage() && !isPrintPage; the card face still reads collapsible; isCollapsed is false on a print page). The .describe() and the refusal message are unchanged from bb358a0d and still hold.

docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md (against ruling 7074368214 and its first consumer, DetailSection.tsx)

  • Add-only: twelve lines appended after the 2026-08-28 addendum; no existing line of the ADR is changed.
  • Bullet 1 is ruling item 1, with the same four faces. Bullet 2 is item 2, including the system-information group. Bullet 3 is item 3 plus the ruling's "not ruled, so unchanged" list (authored pages, print, the untitled bucket, the fold state not saved). Nothing in the addendum goes beyond the ruling, and nothing the ruling decided is left out except item 4 (no app change), which is not an ADR matter.
  • Bullet 4, "§5 is unchanged", was checked in the tree: deriveFieldGroupLayout in packages/spec/src/data/field-group-layout.ts and the synth in ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts are not in the diff, and the synth still emits collapsible for a non-'none' group and defaultCollapsed for 'collapsed'. Only the frameless face reads them differently. Holds.
  • Bullet 5, no ADR-0087 entry: no key, value or default changes, and no gate on the head asked for one. Holds.
  • The addendum is dated 2026-11-22, the day of the ruling it records. Fine.

skills/objectstack-data/references/examples-objects.md

  • Unchanged in the delta; the first record's judgment stands. N2 (the terse "Forms keep it") is left as an accepted deviation.

ui/packages/plugin-detail/src/DetailSection.tsx (implementing file)

  • The delta wraps the title-row button in h3, which carries the hairline and the header colour the div carried; the button keeps the row classes, aria-expanded and the click handler. Every contract sentence checked in the first record still holds on this head: every titled section folds, defaultCollapsed picks the first state, an untitled section has no toggle, a print page and every non-default face are untouched.
  • The System information section (RecordMetaFooter.tsx, outside the diff) takes the same face, so its title is now a heading as well. That is consistent with the other groups.
  • N3 of the first record (sectionDrawnClosed in the synth, outside the diff, reads collapsible && defaultCollapsed while the face draws closed on defaultCollapsed alone) is unchanged and predates the PR; left for a follow-up card if the seat wants one.

No must-fix, no should-fix. S1 of the first record is closed above; the remaining nits (N2, N3) are left as accepted deviations.

Implemented-by: claude/issue-36269-every-group-folds
Reviewed-by: session_01WGufzesUz1Y8VZuKJRhVL8

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

席位核对 — ACCEPT · repo:objectstack#3 · head 85f9ed7 · 2026-11-24T03:32Z

L1: ACCEPT
Head-sha: 85f9ed76e6adf42413fb31b51dafb2e745078bd7
Reviewer: L1-a. Delta read on REWORK 7120228936 (head bb358a0d). Tier H: governed by docs/adr/** (check-governed-merges.mjs --pr 36817: 2 of 24 paths hit) and by ruling 7074368214. The contract-tier L2 delta on this head is 7121189706: PASS, its open item closed, nits only. It notes four review-face hits now: the ADR is a rules face, object.form.ts a schema face.

Delta read

  • git diff bb358a0d 85f9ed76: three commits, 19 files. Main was not merged. Every path is inside the claim surface as amended by 7120248008.
  • M1: closed. Amendment 7120248008 names the app-shell test, the skills file, object.form.ts with its catalogs, schema-design.mdx and the ADR. The PR body's Acceptance notes name the paths outside the first surface.
  • S1: closed. DetailSection.tsx frameless face: the title-row <button aria-expanded> now sits inside the group's <h3> (the disclosure-in-heading pattern). recordPageV3Face-27055 and the cross-seam case pin both the heading and the button roles, and the h3 ablation turns the two heading pins red.
  • S2: closed. schema-design.mdx now reads "Groups use the same members, order and visibility on forms, modals, and detail pages (the default record page also lets the reader fold every titled group …)". True of the tree.
  • The L2 open item (the object.form.ts collapse help text and the "None" option, plus the catalogs) is fixed in 223415a. The L2 delta judges it. The en and zh-CN catalogs read correctly; the en catalog is regenerated.
  • Seat item from 7120228936: the ADR-0085 addendum the ruling puts "in the same change" is now in the PR. It matches ruling items 1–4 and its "not ruled" list.
  • Changeset read sentence by sentence: true, now with a @objectstack/platform-objects minor line for the catalogs.
  • l1-face.mjs --pr 36817 at this head: CLEAN. Checks: 63 success / 11 expected skip / 0 failed. The red runs on 223415a and 2a1218b were cancelled by the next push and are not on this head.

Open

Nits only: L2 N2 and N3, and L1 N4 (the titled "Other" bucket folds, for the approver), as recorded.

Hand-off: Tier H, so the seat hands this PR to the approver (os-zhuang) with this record and the L2 record on this head. The area does not ready, queue or merge it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W

维护者速读

  • 记录页(右侧预览、手机「详情」页、宽屏左侧固定栏、整页)上每个有标题的字段分组都能点标题收起,默认展开;原来只有对象声明了可折叠的分组才有箭头。
  • 依据您在 Record page field area: only groups whose object declares collapse get the right-hand fold arrow; the #36147 card asked for every group to fold #36269 上的裁决(7074368214「都能折叠,默认展开」),连同裁决要求「同一改动」里的文字:对象设计器「折叠」设置的说明(11 种语言)、schema-design.mdx 一句、ADR-0085 补记(只增不改)。
  • 另请留意:带标题的「其他」兜底分组现在也能收起(评审 N4)。
  • 声明了默认收起的分组、系统信息照旧先收起;表单和设计器预览不变。请审批人批准;批准后由维护者入队(本席尚无「审批人批准后的 Tier H PR 你可以自主落地」授权)。

Request: approval · Tier H by ruling 7074368214 (spec describe text + ADR addendum) · 2026-11-24T03:33Z

席位意见: land. It does what the ruling asks on every record-page face, and the help text, docs sentence and ADR addendum the ruling puts "in the same change" are in this PR.

  • L1: delta ACCEPT 7121200519 (L1-a) at head 85f9ed76; first-round REWORK 7120228936 closed (M1, S1, S2).
  • Contract review (CONTRACT_REVIEW_TIER): record 7120199982 on bb358a0d, delta record 7121189706 on 85f9ed76 reads PASS with no open finding (S1 object.form.ts collapse help text: closed). Nits only.
  • Checks at 85f9ed76: 61 success, 9 skipped, 0 failed; mergeable clean. +223/−67. Fixes #36269.

@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 Nov 24, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 24, 2026 03:35
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 9742142 Nov 24, 2026
80 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-36269-every-group-folds branch November 24, 2026 04:05
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 24, 2026
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…of 2026-11-21) (objectstack-ai#37045)

<!-- claude-projects-attribution: {"github_login":"huangyiirene"} -->
_Requested by **Irene** · [project
thread](https://claude.ai/code/project/chan_01TJXtQ1tVD26ecLDZxFS67x?thread=cmsg_01TJXtQ1tVD26ecLDZxFS67x8Be2AAcUBhodBsvnWLd3Xs)_

Fixes objectstack-ai#36086

Clause-②: no
Metadata-protocol: none

## 维护者速读
-
用户能看到什么变化:用户无感;十二份内部设计记录在与现行代码不一致的地方各加一条注明日期的补注,原决定文字不动,只有访客模型里一句已被裁决撤回的接口说明照裁决改掉。
- 为什么做:这是本周的设计记录修订合集;AI 席位改代码前会读这些记录,这十五处已与上线代码不一致,会把 AI 带偏。
- 出错会怎样:只改说明文字,不动代码和功能;补注若写错,读记录的 AI 和人会拿到错误说明,整个合并可以直接撤回。
- 要你做什么:审阅后批准一次(设计记录必须由你亲手批)。

## What changes

Seventeen append-only dated notes, for the 15 rows of this week's card
whose code is on `main`, in twelve records. Each note sits directly
under the passage it amends, says what `main` does now, and links its
card and its landing PR. One clause is rewritten, in ADR-0138, as its
row and the ruling on it ask. No other decision text is rewritten,
struck or reordered. Six records whose header indexes their amendments
gain a pointer entry there (ADR-0050, 0066, 0090, 0138, 0151, 0158).

| # | ADR · section | What it said | What `main` does | Landing PR |
Note location |
|:--|:--|:--|:--|:--|:--|
| 1 | ADR-0158 · Open item 12 | Which aggregates count as "raw" is left
to the aggregate card | `sum`, `avg`, `min` and `max` over a
`record`-mode quantity are refused unless the query groups by the
quantity's own `unitField`: ObjectQL aggregate `INVALID_FIELD` / 400,
`summary` field `INVALID_METADATA` / 422, cube measure `INVALID_FIELD` /
400 on each query. `count`, `count_distinct`, a `fixed`-mode quantity
and a plain number are not judged. No error code is added | objectstack-ai#36060 |
under Open item 12; status entry |
| 2 | ADR-0066 · D2 ⑧ | View All and Modify All are the bits that vote
on every field of an object | A set may carry `viewAllFields`: a read
vote, never an edit vote, on every field of the object. The set's own
`readable: false` row beats it. It grants no object access, no record
and no admin posture | objectstack-ai#36085 | under D2 ⑧, after the 2026-11-15 note;
status entry |
| 3 | ADR-0090 · D5 | The high-privilege list refused on an `everyone`
binding | The list gains `viewAllFields` on any object entry | objectstack-ai#36085 |
under D5; status entry |
| 4 | ADR-0090 · D12, condition (a) | No `viewAllRecords` or
`modifyAllRecords` on `'*'` | Condition (a) also refuses `viewAllFields`
on `'*'`; the bit on a named object stays inside the boundary | objectstack-ai#36085 |
under D12's 2026-10-17 amendment |
| 5 | ADR-0151 · D3 | The bits the agent ceiling removes | The clamp
also clears `viewAllFields` on every object entry; assigning a set that
carries it to an account is refused by name | objectstack-ai#36085 | under D3; header
entry |
| 6 | ADR-0050 · Decision 2, the 2026-10-20 note | "a per-list open
mode, if ever wanted, is the list's existing `navigation.mode`" | On an
object's list `navigation.mode` is deprecated and no longer picks how a
record opens: the name opens the full page, the hover icon the side
panel. `none` still means the rows open nothing. A page block still
honours every value | objectstack-ai#35910 | under Decision 2, after the 2026-10-20
note; status entry |
| 7 | ADR-0050 · the same note | The create form is chosen by convention
from the object's form views | The console's record create and edit
forms are the object's own, laid out by `fieldGroups`, less a
`showOnCreate: false` field on a create. An internal form view steers
nothing there. A public form and a named form an action opens keep their
own definition | objectstack-ai#36543 | second note under Decision 2 |
| 8 | ADR-0052 · section 5b, tier 1 | "Opt-in (like Feed Tracking) keeps
the stream from becoming change-noise" | Old and new values show by
default. Off per object with `enable.fieldHistory: false`, per field
with `fieldHistory: false`. An entry serves a field's values only to a
reader who is served that field | objectstack-ai#36399, objectstack-ai#36580, objectstack-ai#36613, objectstack-ai#36641, objectstack-ai#36661
| under tier 1 |
| 9 | ADR-0146 · D1 | Studio is where metadata is edited | A workspace
administrator also edits in the running app: the menu and the pinned
header actions in design mode, a dashboard on its page, a report on its
builder page, a view's settings on the view. Each save is one item's
draft and publish, and writes nothing over a pending draft | objectstack-ai#36397,
objectstack-ai#36437, objectstack-ai#36629, objectstack-ai#36405, objectstack-ai#36644, objectstack-ai#36411, objectstack-ai#36848 | end of D1, after the
2026-11-24 amendment's table |
| 10 | ADR-0146 · D5 (two card rows) | The bridge draws on the app
switcher row and the app bar entry | From 768 px up the entries are two
rows of the app-name menu. "Design layout" turns on design mode. "Edit
app" opens Studio, and reads "View in Studio" for a read-only package.
The page header draws neither | objectstack-ai#36437, objectstack-ai#36621, objectstack-ai#36789 | under D5 |
| 11 | ADR-0146 · D10, the 2026-11-22 note | An extension places only
what it brings; the base's arrangement stays the base's | The App's
paired `.custom` package may declare whole `fieldGroups` and
`relatedLists`. Each key it writes replaces the folded result whole. Any
other package is refused and prescribed `place` | objectstack-ai#36517 | under D10,
after the 2026-11-22 note |
| 12 | ADR-0146 · D10, the same note | (the same) | `actionLayout` is
the third such key. Only the paired `.custom` package writes it on an
extension. Each arm it writes replaces the served arm whole. The server
refuses the shape; the reference is refused by design mode's Save and by
the CLI rule only | objectstack-ai#36629 | second note under D10 |
| 13 | ADR-0138 · D2, the 2026-11-20 amendment | The restriction profile
is served on the unscoped route "and its environment-scoped twin" | Only
the unscoped route is mounted. A request to the twin gets the host's
ordinary not-found answer. A server that mounts the scoped base alone
serves no profile | objectstack-ai#36531 | the clause is rewritten in place; a dated
amendment under it; status entry |
| 14 | ADR-0149 · D3, rules 4 and 5 | Both rules apply to an unknown
word beside a grouping word; the record did not say which governs | Rule
4 governs the unknown word: the labelled fallback, nothing asked. Rule 5
is the rule for a question that names no number. Beside a fallback the
note ends with one conditional sentence | objectstack-ai#36509 | under D3, after the
2026-11-19 note |
| 15 | ADR-0027 · roadmap row M2 | "explicit, batched publish" | In
Studio's designers a person's Save writes the draft and publishes that
one item at once. Drafts and the package's batch publish remain for an
AI's changes | objectstack-ai#36597, objectstack-ai#36634, objectstack-ai#36652 | under the roadmap table |
| 16 | ADR-0037 · the product-boundaries amendment | "Publish remains
the single commit gate shared by every surface" | The publish is the
item's own, issued by the Save itself. The top bar's Publish is drawn
only while a draft is pending | objectstack-ai#36597, objectstack-ai#36634, objectstack-ai#36652 | under that
sentence |
| 17 | ADR-0085 · section 2 | `relatedLists` is "the one place" where
the re-arrange rejection yields | `actionLayout` is the second: a ruled
exception (the maintainer's ruling on objectstack-ai#36635), on the object, with a
`list` arm and a `record` arm | objectstack-ai#36629, objectstack-ai#36815 | under section 2, after
the 2026-11-22 note; dated 2026-11-23 |

The 15 card rows are the 17 lines above: the `viewAllFields` row is
lines 2 to 5, and the two ADR-0146 D5 rows are line 10.

**Rows not carried**

- ADR-0085, the `fieldGroups[].collapse` row: already on `main` through
objectstack-ai#36817. The record carries "Addendum (2026-11-22): on the synthesized
record page the reader folds every titled group", which says what the
row asks for. Nothing is added.

No `scripts/adr-anchors/**` entry moves. No `**Status**:` line changes
in the part the index projects, so `docs/adr/README.md` stays current.

## Why

AI seats read the ADRs before they change code in governed territory
(AGENTS.md Prime Directive objectstack-ai#13). These passages say something `main` no
longer does, so a seat that trusts them is steered wrong. This is the
week's rolling ADR revisions card: its rows land together as one
governed `docs/adr/**` PR and one approval, on the maintainer's word of
2026-11-20 (「adr接受你的建议」).

## Tests

Docs-only diff: no package, test or build input is touched, so no
package test or typecheck applies, and nothing a test pins changes.

## Acceptance notes

- Every row was read against the code on `main` at `a73edb3cd`, not
against PR state. Each landing commit is an ancestor of the branch, and
each note names the file or symbol that makes it true. `main` has moved
once since (`9c57bd283`); that commit touches no `docs/adr/**` file and
no file a note names.
- Where a row's claim is not what `main` does, the note states what
`main` does:
- **ADR-0052.** The row gives the per-field switch as `trackHistory:
false`. On `main` it is `fieldHistory: false`; `trackHistory: false`
reads as unset.
- **ADR-0146 D1.** Three sentences of the row are not written. "The fate
of Studio's Interfaces pillar is still open": the 2026-11-24 amendment
of D1, already on `main`, retires the pillars. "Studio is not changed by
this batch": the same amendment changes it. "Each of these writes the
same paired package": a report's save and a change to an existing view's
settings name no package, and the menu, the action arrangement and a
dashboard go to the item's own package when it is writable. The note
says where each save lands. It does not repeat what that amendment
already says about dashboards and reports opening in the app.
- **ADR-0146 D5.** Both card rows describe a state objectstack-ai#36789 has since
replaced: the row of objectstack-ai#36437 has the page header's button enter design
mode, and the row of objectstack-ai#36621 has the app-name menu's "Edit app" enter it.
On `main` the entry into design mode is "Design layout", and "Edit app"
opens Studio. The two rows are written as one note that states the end
of that sequence.
- **ADR-0027.** The row says later PRs will move the other Studio
editors. They have landed (objectstack-ai#36634, objectstack-ai#36652) and the note cites them. It
quotes the maintainer's own sentence on the epic, not the epic's summary
line.
- **ADR-0037.** The row says a pending draft now means an AI's draft.
Studio's generic item page still saves a person's drafts (its move is
declared by D1's amendment and not built), and the note says so.
- **ADR-0085.** The row says the row menu is queued and not built.
objectstack-ai#36815 built it, and it follows the `record` arm; the note says so. The
`list` arm still has one reader.
- Header entries: added where a record's header indexes its amendments
(ADR-0050, 0066, 0090, 0138, 0151, 0158). Not added to ADR-0146: its
status block lists only the maintainer's in-place amendments, its
2026-11-22 note under D10 has no entry there, and open PR objectstack-ai#36957 edits
that block. Not added to ADR-0027, 0037, 0052, 0085 and 0149, whose
headers hold no such list.
- Dates: every note is dated 2026-11-24, except ADR-0085's, dated
2026-11-23 as its row sets (that record dates its notes by ruling).
ADR-0138's amendment is dated 2026-11-24 and names the ruling's date,
2026-11-22.
- ADR-0151 is `Proposed`; its note follows the form of the dated notes
it already carries.
- The spec docblock sentence the ADR-0085 row mentions landed with
objectstack-ai#36629, so nothing outside `docs/adr/**` is owed.
- Noted, not filed (read-only observations, nothing was run to exercise
them):
- A report's save, and a change to an existing view's settings, from the
running app name no package. For an item of an installed package whose
stored rows are not bound to exactly one package, the server then
addresses the package-unbound row, not the paired `.custom` package
ADR-0146 D2 points customizations to. Whether a door refuses that write
was not measured.
- Two source comments still say design mode is entered from "Edit app"
(the page-actions module header and the design-mode module's gate
paragraph). Comments only.
- Landing tier: Tier H (`docs/adr/**`, governed; the maintainer
approves). The diff is +243 / -5 over 12 files.

## Verification

Read first, by risk:

1.
`docs/adr/0138-guest-model-anonymous-principal-doors-grants-and-organization.md`,
the D2 hunk: the one place earlier text is rewritten.
2.
`docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md`,
the note at the end of D1: the widest claim, where each in-app save
lands.
3. `docs/adr/0066-unified-authorization-model.md`, the note under D2 ⑧,
with its ADR-0090 D12 twin: permission semantics.

Two-minute check: `pnpm check:adr-symbol-anchors` prints a green line
that starts `check-adr-symbol-anchors: 3904 anchors across 160 records`,
and `git diff origin/main...HEAD --stat` shows 12 files, 243 insertions
and 5 deletions.

<details><summary>Gate readings on e5c60bf</summary>

`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived the same 21 families on `8c705bc2c`
and on `e5c60bff0`. The readings below are the second run, on
`e5c60bff0`, each exit captured before any pipe:

```text
node scripts/check-adr-links.mjs :: exit 0
node scripts/check-adr-links.mjs --self-test :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:adr-index :: exit 0
pnpm check:adr-symbol-anchors :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-prior-rulings :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:watch-hint-literal :: exit 0
```

On the first run `check:doc-formula-expressions` answered 3,
prerequisite not met, until `formula` and `lint` were built under
`os-verify-lock` (VERDICT command-exit 0, 5 of 5 tasks). `--ran`
reconciliation: 21 derived, 21 run, 0 NOT-MEASURED (a derived zero).
`node scripts/adr-index.mjs --check`: exit 0, the README is current.
`check-commit-card-trailers --range origin/main..HEAD`: exit 0, 2 commit
messages. `overlap-check`: `origin/main` and objectstack-ai#36957 both merge cleanly,
VERDICT clean exit 0. `check-governed-merges --branch`: GOVERNED, 12 of
12 paths on the register, Tier H. Control-byte scan of the twelve files:
0 hits.

</details>

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(No schema touched.)
- [x] 2. Every name I added uses the casing for its kind. (No name
added.)
- [ ] 3. No formatter ran; `pnpm lint` passes. (No formatter ran. `pnpm
lint` was not run locally on this Markdown-only diff; CI judges it.)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset. (Publishes
nothing: `skip-changeset`.)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (Not touched.)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.
- [ ] The *Before Submitting* list in CONTRIBUTING.md is done. (Not
walked item by item; the derived gates above are what ran.)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01J8VVAoUbebHyRXKT4GxBTV

---------

Co-authored-by: Claude <noreply@anthropic.com>
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 protocol:data size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Record page field area: only groups whose object declares collapse get the right-hand fold arrow; the #36147 card asked for every group to fold

3 participants