Skip to content

feat: an object's action layout per scope, pinned and more, set from the design mode (#36366) - #36629

Merged
os-zhuang merged 26 commits into
mainfrom
claude/project-thread-m619um
Nov 23, 2026
Merged

os-zhuang merged 26 commits into
mainfrom
claude/project-thread-m619um

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread
Fixes #36366
Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: follow-up #36630
ADR notes: carrier #36086 (seat posts them)

维护者速读

  • 管理员在设计模式里点页头最右边的「页头按钮」,能把列表页和记录页的动作分成「固定」(最多三个,可拖动排序)和「更多」(也可排序),保存后所有成员看到的页头都跟着变;记录页的设置同样作用于侧边预览和手机底栏。
  • 属于「运行界面的设计模式」专题,解决按钮多时挤掉记录名、管理员又改不了页头的问题。
  • 设置错了,管理员在同一面板里改回或取消即可;对象不写这项设置时,页头和今天完全一样。
  • 无。

What changes

actionLayout is a new optional key on ObjectSchema and ObjectExtensionSchema, in the format of the maintainer's ruling (2026-11-22T14:50Z, quoted in release 7087101113: 「#36366 改成"列表"和"记录"两组,每组分"固定"和"更多"两段,等 #36363 合并后,卡标记为p1,剩余任务放回队列」) and seat rulings 7077698148 / 7080672229:

actionLayout: { list?: Arm, record?: Arm }, Arm = { pinned: string[] (at most 3, required, may be []), more?: string[] }.

  • spec (packages/spec/src/data/object-action-layout.ts): the shape and its refusals at every door (more than three pinned, a name twice in one part or across both, a malformed name, a built-in the scope does not have), each with a named reason; the object form offers one JSON row per arm under Advanced. Generated artifacts regenerated (api-surface, export-origins, authorable-surface, dropped-refinements counts, references); liveness row object/actionLayout is live, drilled into list / record and each into pinned / more, citing the record header, the list header, the fold and the design mode.
  • objectql + metadata-protocol (patch round 2, M1): actionLayout is the third key of CUSTOM_ARRANGEMENT_KEYS, beside fieldGroups and relatedLists (ADR-0146 D10). Only the base's paired .custom package writes it on an object_extension; the one judge judgeExtensionArrangement refuses any other package's, each door in its own way: publish, restore and draft promotion answer VALIDATION_ERROR / 400; marketplace install refuses the package body with VALIDATION_ERROR / 422; os validate and os build exit non-zero and print the row; the registry fold skips the key and leaves a note. The registry applies the pair's arms last, in applyCustomArrangement, by role, arm by arm. A manifest's objectExtensions entry now carries the key to the fold (objectExtensionContribution dropped it).
  • lint: validateObjectActionLayout refuses, in os validate / os build / os lint, a name in either part that is no action of the object or is not placed in the scope its arm arranges.
  • @object-ui/types: arrangedHeaderActions(actions, arm, scope), the one reader; pinned become buttons in pin order, the names more gives lead the overflow in that order, unnamed ones follow in their default order.
  • console: the synthesized record header (record page, the side preview's embedded mount, the phone's bottom bar) and an authored page:header with placedActions: true read actionLayout.record; the list header reads actionLayout.list with $import / $export. Under the design mode, 「Header buttons」 at the end of the header opens a two-part panel (「Pinned to header」 at most 3, 「Other」 = More), both parts draggable, a dot moving an action between them, a fourth pin refused with a toast; the mode's Save writes the object's own package when writable, else the installed object's customization package's object_extension, through the one writer of an installed object's arrangement, saveObjectExtensionArrangement (patch round 3).
  • i18n: designMode.pins.* in every hand-written locale, including the new designMode.pins.stale (names the arm sets that the scope no longer offers); zh-Hant regenerated. Object-form translations for the two arm rows in all 11 metadata-forms locales.

待审假设 (assumptions for review, shown to the maintainer, not ruled)

  1. The key name actionLayout.
  2. The record arm is a scope, not a page: the record header, the side preview and the phone bottom bar all read it.
  3. An action the scope places that neither part names goes to the end of More, in its default order.
  4. A hidden pinned action leaves its slot empty; no other action takes its place.
  5. No arm (or no key) = today's drawing, exactly.
  6. Among built-ins, only the list scope's $import / $export can be named, and only in pinned: one in more is refused with its reason (not pinned, the page still draws its own Import / Export menu). The record scope has none.
  7. Only the base's paired .custom package writes actionLayout on an object_extension. Each arm it writes replaces the served arm for that scope whole, after every other layer (a tenant's arm for the same scope included); an arm it leaves out stays.
  8. A page:header authored with its own actions list keeps that list; the design mode offers it no 「Header buttons」.
  9. Save refuses: more than 3 pinned, a name in both parts, an unknown name, an action of the other scope (the last two at os validate and in the design mode's Save; see Acceptance notes for the server door).
  10. Names the arm sets that the scope no longer offers are listed in the panel as left out and skipped by the reader.
  11. With no list arm, the panel says "No button is pinned: every action is in More." while the bar end shows the page's Import / Export menu (Import ▾), and 「Other」 lists Import: for a built-in, 「Other」 means "in the page's Import / Export entries". The wording is kept as is.

Out of scope: #36494 (row menu and right-click), #36495 (the locations vocabulary), #36496 (the selection arm).

Tests changed because the surface grew (named, each recounted by measurement, not by hand)

  • packages/metadata-protocol/src/protocol.meta-types-degenerate-derivation.test.ts: object 51 → 52.
  • packages/platform-objects/src/apps/translations/object-collapsed-sections-echo-decisions.test.ts: leaves 119 → 125, advanced 106 → 112.
  • packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts: positive control 760 → 763.
  • ui/packages/i18n/src/__tests__/de-quote-pairing-3876.test.ts: paired spans 127 → 131 and 127 / 127 / 0 → 131 / 131 / 0 (main's 127 after 看板的「视图设置」换成看板自己的项:分列字段、显示哪几列、卡片字段和三个开关、列底统计;每列加「⋯」菜单 #36370, measured again after the merge).
  • ui/packages/app-shell/src/layout/__tests__/designModeHeaderPinsSave-36366.test.ts: its input helper now types the pins as ObjectPins (the type-check read the old string[] shape as nine TS2353).
  • The CLI transcripts in content/docs/deployment/cli.mdx, deployment/validating-metadata.mdx, getting-started/build-with-claude-code.mdx and ui/react-pages.mdx: author-time rules 76 → 77, as check:docs-transcript-drift derives.
  • packages/spec/src/compose-stacks-merge-collection-refusal.test.ts, packages/spec/src/compose-stacks-merge-config-object-refusal.test.ts: actionLayout added to the config-object key list.

Tests

Patch round 3, head 8a85482aea (L2 delta S5, N4, N5; S1 waits on #36635 and is untouched).

  • Merge: origin/main 6e643cc43e merged in d871e26fdb with no conflict (it brings feat(console): configure tabs on installed objects, into the paired .custom package (#36499, PR 2 of 2) #36624's one writer and feat(console): the design mode is entered from the app-name menu; the page header drops Edit app and Open in Studio (#36485) #36621's app-menu entry). origin/main 9c283a11bf still merges cleanly.
  • S5, the L2-preferred route: the installed-object branch of saveObjectPins now calls saveObjectExtensionArrangement, handing it only the composed actionLayout. That module's patch type is { [K in CustomArrangementKey]?: ExtensionArrangementValue... }, a list for fieldGroups / relatedLists and ObjectActionLayout for actionLayout; its docblock names the header buttons as a caller. The writable-package branch, which writes the object itself, is unchanged. S3 holds: the composed value is the arms the stored extension holds with each changed arm replaced. New designMode.pins.pairNotWritable in the 11 locales (zh-Hant regenerated).
  • Pins (designModeHeaderPinsSave-36366.test.ts, 13 tests): a pair the server answers not writable is refused after the ensure call and before any read or write; through the one writer the stored relatedLists, fieldGroups and held list arm are kept and the publish announces itself; the S3 pins and the call-order pins (now ensure, get, layered, save, publish) pass. Ablation: composing over no stored actionLayout turned 2 red (the S3 held-arm pin and the S5 kept-keys pin), restored blob equals HEAD's.
  • Docs and wording: actions.mdx now reaches 「Header buttons」 through the app name at the top of the sidebar, then 「Edit app」. Changeset: [] pins none; the spec bullet names the built-in refusal in more; each door's own answer. object.zod.ts: the actions guidance and the comment above membershipKeys name actionLayout as a pair-only key beside fieldGroups and relatedLists.
  • Reruns, all exit 0: closure build; check:generated (no drift); ui 16 files plus packages/i18n/ (122 files / 2134 passed, 13 skipped); spec 101 files naming ObjectExtensionSchema or the guidance (6725 passed); spec typecheck; app-shell, components and i18n type-check; 23 gate families (i18n, docs, changeset, liveness, facade, nul-bytes and others). Lines in the seat file.

Patch round 2, head 49a31750bc (L2 review M1, S2, S3, S4; the ADR-0085 §2 sentence and #36086 untouched). No merge: origin/main d7411fa373 merges cleanly.

  • M1, chosen semantics: per-arm replacement, the pair only, applied last. Measured first: every door already reads CUSTOM_ARRANGEMENT_KEYS through the one judge, so the mechanism applies as is. The five doors and where they call it:
    1. publish, restore and draft promotion of an object_extension: objectExtensionItemRefusal in packages/metadata-protocol/src/protocol-object-extension-item.ts;
    2. os validate: packages/cli/src/commands/validate.ts;
    3. os build: packages/cli/src/commands/compile.ts (both CLI doors through packages/cli/src/utils/extension-arrangement.ts);
    4. marketplace install: packages/cloud-connection/src/marketplace-install-local-plugin.ts;
    5. the registry fold: applyCustomArrangement in packages/objectql/src/registry-custom-arrangement.ts, run last in foldExtendersOntoDefinition, skips a non-pair package's key and names it in a warning.
      The round-1 priority fold (foldExtensionActionLayout, actionLayout in OBJECT_FOLD_SCALAR_KEYS) is removed; registry.ts is back at main's 6426 lines.
  • Pins replacing "partner 250 beats pair 150": a partner's object_extension save with actionLayout answers VALIDATION_ERROR / 400, one issue at actionLayout, nothing stored or served, the pair's save served (packages/objectql/src/protocol-custom-arrangement.test.ts); in the registry, partner at 250 against the pair at 150, and a partner registered after the pair, both serve the pair's arm (registry-extension-action-layout.test.ts); the judge names the path and prescribes the action's own locations and order (protocol-extension-arrangement.test.ts).
  • S2: actionLayout no longer yields to a tenant: the pair applies last, per arm, so a tenant's arm for another scope stays and the pair's arm wins for its own scope (two pins).
  • S3: the design-mode Save writes only the arms whose staged value differs from the served one, merged into the arms the document already holds; nothing changed means no call (three pins).
  • S4: chosen to refuse: the schema refuses a $ built-in in more with its reason, the Save never writes one there, and the pinned describe, the form help (11 locales) and the docs say the list page still draws its own Import / Export menu; the more: ['$import'] examples are gone.
  • Reruns, all command-exit 0: spec test 974 / 29634 and typecheck; metadata-protocol test 365 passed, 9 skipped; objectql test 634 / 14360; lint 228 / 9474; platform-objects 125 / 2126; typecheck of metadata-protocol, objectql, lint, cli; cli unit extension-arrangement files 3 / 48; cloud-connection install arrangement 1 / 5; ui 36366 files 6 / 59; @object-ui/app-shell type-check; check:generated --fix regenerated content/docs/references/** and rechecked green. Gate families this round's files touch: 25 run, exit 0; check:i18n-coverage exit 3, PREREQUISITE NOT MET (example apps unbuilt), NOT MEASURED locally, CI runs it. Lines in the seat file objectstack-seat2/36366-gates-ran.txt.
  • Ablation, the per-arm fold: ablation-replace.mjs replaced layout = { ...(layout ?? running), [scope] with {} as the base (blob 67155de2c30c → 6f6b1a29855b); 2 failed / 11 passed (arm by arm; the S2 tenant arm kept); restored blob equals HEAD's, git diff HEAD empty.
  • Files beyond the claim (round 2): packages/spec/src/data/field-customization.ts, packages/spec/src/data/object-extension-arrangement.test.ts, packages/metadata-protocol/src/protocol-extension-arrangement.ts and its test, packages/objectql/src/registry-custom-arrangement.ts, packages/objectql/src/engine-registration.ts, packages/objectql/src/protocol-custom-arrangement.test.ts, packages/cli/src/utils/extension-arrangement.ts (comment only).

Patch round 1, head 6303c52011. The branch was merged with origin/main at 4ef1ea9779 (#36612 landed) in ebd99fe0dd, then the changeset's Skills-docs line was changed. Only the families that merge touched were rerun, all exit 0:

  • ui i18n tests: 106 files / 1978 tests.
  • The 268 app-shell files below: 2294 tests.
  • platform-objects tests: 125 / 2126.
  • @object-ui/app-shell and @object-ui/i18n type-check.
  • check:i18n and check:i18n-stale-fill.
  • gen:zh-hant (no diff).
  • The four changeset gates.

All of the following ran at head 564840dc1b, the final commit of round 1, after the merge of origin/main at ceaa70efcc. Every heavy run went through os-verify-lock.sh; each line quotes its VERDICT.

Package Command Result
@objectstack/spec test 881 files / 28066 tests passed (command-exit 0)
@objectstack/spec typecheck command-exit 0
@objectstack/objectql test 634 / 14356 passed (command-exit 0)
@objectstack/objectql typecheck command-exit 0
@objectstack/lint test 228 / 9474 passed (command-exit 0)
@objectstack/lint typecheck command-exit 0
@objectstack/metadata-core test 27 / 1056 passed (command-exit 0)
@objectstack/metadata-core typecheck command-exit 0
@objectstack/metadata-protocol the changed pin file 18/18 passed
@objectstack/metadata-protocol typecheck command-exit 0
@objectstack/platform-objects test 125 / 2126 passed (command-exit 0)
@objectstack/platform-objects typecheck command-exit 0
@object-ui/types tests 390 / 10512 passed
@object-ui/types type-check command-exit 0
@object-ui/components tests 507 passed, 1 skipped / 4940 passed (command-exit 0)
@object-ui/components type-check command-exit 0
@object-ui/i18n tests 106 / 1978 passed (command-exit 0)
@object-ui/i18n type-check command-exit 0
@object-ui/app-shell type-check command-exit 0
@object-ui/app-shell tests (narrowed, see below) 268 / 2294 passed (command-exit 0)

The app-shell tests at the final head are narrowed, and this is declared.

Found and fixed in this round: @object-ui/app-shell type-check was red with nine TS2353 errors. The save test's input helper still typed the pins as a record of string arrays. vitest does not type-check, so the tests stayed green. Fixed in 649fc028b6.

Ablation (one reading): the More order
  • Target: arrangedHeaderActions in ui/packages/types, the line that ranks a more-named action.
  • Mutation: scripts/ablation-replace.mjs replaced const moreAt = name && !seen.has(name) ? moreRank.get(name) : undefined; with undefined. The anchor count went 1 → 0 and the blob changed 33d1f1de663b → 2af6af57c9fb.
  • @object-ui/types is aliased to src in ui/vitest.config.mts, so no build was needed.
  • Mutated run: 3 failed / 46 passed. All three more-order tests went red: the side preview and the authored page:header in RecordDetailView.actionLayout-36366.test.tsx, and the list toolbar in objectViewPageHeader.actionLayout-36366.test.tsx. Their controls without more stayed green.
  • Restore: git checkout HEAD --. The blob after restore read 33d1f1de663b (HEAD's), and git diff HEAD was empty.
Gates: dispatch-gates at 564840d
  • node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 130 families. All 130 ran, one line each (command :: exit N) in the seat file objectstack-seat2/36366-gates-ran.txt.
  • --ran reconciliation: "130 derived, 130 run, 0 NOT-MEASURED, 0 UNRUN".
  • Two families first exited 3 (PREREQUISITE NOT MET: the client and workspace dists were unbuilt): check:skill-examples and check:dual-build-cjs-loads. Both read 0 at the same head after the client and ui closure builds.
  • Found red in this round, and fixed:
    • check:facade-delegation-only (registry.ts at 6433 lines against a ceiling of 6426) now reads 6426.
    • check:docs-transcript-drift (four transcripts quoted 76) now reads 77.
  • Local-only families:
    • check:skill-frame-freshness: exit 0.
    • check:dev-prereqs: exit 1, "The workspace is not built". Some workspace packages have no dist on this box. That is a machine-state reading, not about this diff.

Acceptance notes

Verification

  • One command (expect 3 files, all green): pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/views/objectViewPageHeader.actionLayout-36366.test.tsx packages/app-shell/src/views/RecordDetailView.actionLayout-36366.test.tsx packages/app-shell/src/views/RecordDetailView.phoneFace-27058.test.tsx
  • One click: run the CRM example, open Opportunities, click the app name at the top of the sidebar, then Edit app in its menu, then Header buttons at the end of the bar. Click the dot beside Import and press Save. Outside the design mode the bar shows a plain Import button where Import ▾ was.
  • Live-run screenshots (seat files, objectstack-seat2/36366-shots/):
    • 1-list-header-before.png: the bar with Import ▾.
    • 2-panel-before.png: the panel, 0/3 pinned, Import in 「Other」.
    • 3-panel-import-pinned.png: 1/3, Import pinned.
    • 5-list-header-after.png: the bar with an Import button.
    • 6-server-door-422.txt: the door's 422 reading.

https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP
🤖 Generated with Claude Code

…three (#36366)

`ObjectSchema.pinnedActions` (new, optional, no default): a `list` arm and a
`record` arm, each the names of the actions that page's header draws as
buttons, in order, at most three; every other action the header places goes
to its More menu. An entry is an action name of the object or one of the
page's `$` built-ins (`$import`, `$export` on the list page; none on the
record page). The shape refuses more than three, an entry twice, a malformed
entry and a built-in the page does not have, each with a named reason; the
limit and the entry pattern are in the JSON Schema, uniqueness is the one
dropped refinement (ledger rows added).

`ObjectExtensionSchema.pinnedActions` carries the same leaf, so an installed
object (ADR-0146 D10, extend-only) is pinned from its customization pair.

The object form gains the `pinnedActions` composite (two string-tags rows),
translated in every locale; the two echo-decision counts and the
`/meta/types` object property count move with history lines.

Clause-②: yes (widening)
Metadata-protocol: added

Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5
Co-authored-by: Claude <noreply@anthropic.com>
…actions (#36366)

`pinnedActions` is a fourth `OBJECT_FOLD_SCALAR_KEYS` member: an extension's
arm replaces the running arm, an arm it leaves out stays, the higher
`priority` is written last, and pins the tenant authored on the base stay
(ADR-0029 D9.2a). It is not a string, so the yield asks the shared question
by structure (`foldScalarOverridesPackagedBase`), with the string predicate's
three conservative edges.

Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5
Co-authored-by: Claude <noreply@anthropic.com>
…used (#36366)

`validateObjectPinnedActions` (gating, os validate / build / lint): a name in
an object's or an object extension's `pinnedActions` that is no action of the
object (`object-pinned-action-unknown`), or one not placed on that page
(`object-pinned-action-not-placed`: `list_toolbar` for the list arm,
`record_header` / `record_more` for the record arm). An extension of an object
the stack does not define is not judged. CLI only: the runtime snapshot
carries no stack `actions` (RUNTIME_NEEDS_FULL_SNAPSHOT).

Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5
Co-authored-by: Claude <noreply@anthropic.com>
…the design mode sets them (#36366)

Both record headers (the default page's and an authored page:header with
placedActions: true) and the list header read pinnedActions through one
reader, pinnedHeaderActions. In the design mode, 「Header buttons」 at the
end of the header moves actions between 「Pinned to header」 (at most
three, dragged into order) and 「Other」; the header shows the staged
change, and Save writes it into the object's own package or, for an
installed object, its customization package as an object_extension,
refusing a name the header cannot draw. Liveness row, docs, skill note.

Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5
Co-authored-by: Claude <noreply@anthropic.com>
…t pinnedActions (#36366)

composeStacks' 'merge' refuses two stacks declaring different
pinnedActions on one object, as it does every fixed-shape config object
of the shape walk; the refusal's pinned key lists name it. The
dropped-refinements header totals the two new sites in ten entries.

Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5
Co-authored-by: Claude <noreply@anthropic.com>
…t reads the pins (#36366)

A record page authored with its own page:header `actions` list keeps that
list, and a page:header with neither `actions` nor `placedActions` draws
none of the object's actions; neither reads the object's pins, so the
design mode no longer offers the control there (it changed nothing they
draw). The record-header tests now mount an authored page on the full
page, where it applies (the drawer takes the standard page), and pin the
own-list header and the control's absence on it.

Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5
Co-authored-by: Claude <noreply@anthropic.com>
…#36366)

The strictObject `history` text is printed at the author on a refusal, so
the card id moves to a comment beside it (check:doc-authoring).

Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5
Co-authored-by: Claude <noreply@anthropic.com>
…, pinned and more (#36366)

The maintainer's format ruling (#36366 comment 7080672229): an object's
`actionLayout` has a `list` and a `record` arm, each `{ pinned, more }`.
`pinned` is the buttons (at most 3, in order), `more` orders the More menu,
and an action named in neither follows in its default order. The record arm
is a scope: the record header, the side preview and the phone bar read it.

Spec, fold (arm replaced whole), lint rule (both parts judged), the one
reader (`arrangedHeaderActions`), the design-mode panel (both parts
draggable, names no longer offered listed) and the save are reshaped, with
their tests.

Claude-Session: https://claude.ai/code/session_01QsR2jSr8sNCnJrK6Q9kEF5
Co-authored-by: Claude <noreply@anthropic.com>
… no longer offered, in every locale (#36366)

Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP
Co-authored-by: Claude <noreply@anthropic.com>
…pinned and more per scope; the headers' More order, the phone bar and the side preview are pinned (#36366)

Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP
Co-authored-by: Claude <noreply@anthropic.com>
…ns, references and liveness counts; the object form's arm rows in every locale (#36366)

Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP
Co-authored-by: Claude <noreply@anthropic.com>
…or the action layout, as measured (#36366)

Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP
Co-authored-by: Claude <noreply@anthropic.com>
…I transcripts count the new author-time rule (#36366)

`registry.ts` is a facade at its line ceiling (check:facade-delegation-only
read 6433 over 6426): the extension's `actionLayout` fold is now
`foldExtensionActionLayout` in `registry-top-level.ts`, beside
`OBJECT_FOLD_SCALAR_KEYS`, called in one line; the facade reads 6426.

The object action-layout lint rule is the 77th author-time rule:
check:docs-transcript-drift derives 77 for `validate` and `build`, and the
four transcripts that quoted 76 now say so.

Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP
Co-authored-by: Claude <noreply@anthropic.com>
…n layout (#36366)

The test's `input` helper still typed the pins as `Record<string, string[]>`,
the shape before the arms became `{ pinned, more }`: vitest does not
type-check, and `@object-ui/app-shell` type-check (tsconfig.test.json)
read nine TS2353. It now takes `ObjectPins`.

Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP
Co-authored-by: Claude <noreply@anthropic.com>
Conflicts, both kept:
- the 11 ui locales: `designMode.pins` (this branch) and
  `designMode.recordTabs` (#36583) were added at the same place; both blocks
  stay, zh-Hant regenerated (`gen:zh-hant`).
- `de-quote-pairing-3876.test.ts`: main's 127 (#36370) plus this branch's
  four `designMode.pins` spans, recounted by running the test: 131, and
  131 / 131 / 0.

Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP
Co-authored-by: Claude <noreply@anthropic.com>
…ference after the merge (#36366)

The os-regen merge driver kept main's side of three generated artifacts and
dropped this branch's action-layout entries; `check:generated --fix` on a
fresh spec build writes them back (six `ObjectActionLayout*` /
`OBJECT_ACTION_LAYOUT_*` exports, the object reference row), and re-checks
all three green.

Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP
Co-authored-by: Claude <noreply@anthropic.com>
Conflict in `objectViewPageHeader.tsx` (`ObjectViewPageBarActions`), both
intents kept: #36612's Object settings path (`useObjectSettingsGate`) is
read first, then this branch's list arm; `exportDoor` stays
`exportPinned ? undefined : barEnd?.exportDoor`, and `moreShown` is
`!!objectSettingsPath || !!description || !!listFavorite ||
(ioInMore && (importInMenus || !!exportDoor))`.

Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP
Co-authored-by: Claude <noreply@anthropic.com>
`Skills-docs: follow-up #36630`: the seat filed the follow-up for
skills/objectstack-ui/rules/actions.md.

Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl 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 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 7 package(s): @objectstack/cli, @objectstack/lint, @objectstack/metadata-core, @objectstack/metadata-protocol, @objectstack/objectql, @objectstack/platform-objects, @objectstack/spec, touching 49 documentable anchor(s). ⚠️ 8 changed file(s) yielded no anchor (packages/lint/src/index.ts, packages/objectql/src/registry.ts, packages/spec/api-surface/data.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

29 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 115d38788e2d5094ff0cb14b6f8be8f5ef3f1eba.

⛔ 7 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 8 changed file(s) yielded no anchor (packages/lint/src/index.ts, packages/objectql/src/registry.ts, packages/spec/api-surface/data.json, …) — pages documenting those are invisible to this run
  • 12 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 68 of 251 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 — 187 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 115d38788e2d5094ff0cb14b6f8be8f5ef3f1eba → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 115d38788e2d5094ff0cb14b6f8be8f5ef3f1eba

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

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 115d38788e2d5094ff0cb14b6f8be8f5ef3f1eba → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih

Contract-review-claim: session_01ADHkmT4eA4YqtxfiPyLPih · head e683f40 · 2026-11-23T12:46Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e683f40e31750b943272ad922259dee7b6e0d327
Local-runs: probe — path-list count and intersection of two git name-only diffs (grep -c, grep -F -x -f), declared by the reviewer
Scope: packages/spec/src/data/field-customization.ts, packages/spec/src/data/index.ts, packages/spec/src/data/object-action-layout.ts, packages/spec/src/data/object.form.ts, packages/spec/src/data/object.zod.ts + packages/objectql/src/registry-custom-arrangement.ts, packages/objectql/src/registry.ts, packages/objectql/src/engine-registration.ts, packages/metadata-protocol/src/protocol-extension-arrangement.ts, packages/cli/src/utils/extension-arrangement.ts, packages/lint/src/validate-object-action-layout.ts, ui/packages/app-shell/src/views/objectExtensionArrangementSave.ts, ui/packages/app-shell/src/layout/designModeHeaderPinsSave.ts, ui/packages/app-shell/src/layout/designModeHeaderPins.ts, ui/packages/app-shell/src/layout/DesignModeHeaderPins.tsx, ui/packages/app-shell/src/layout/DesignModeHeaderPinsPanel.tsx, ui/packages/app-shell/src/views/objectViewPageHeader.tsx, ui/packages/app-shell/src/views/RecordDetailView.tsx, ui/packages/components/src/renderers/layout/containers.tsx, ui/packages/types/src/ui-action.ts

Delta round 3 on record 7094210583 (head 8a85482a, PASS with S1 open, N3 carried, N6 a nit). Since that head: the merge cf784c7a1e (parents 8a85482a and main 115d38788e), d23e460185 (two files) and e683f40e31 (the jsdoc of object-action-layout.ts, 6 lines in, 2 out). Judged: the rework diff cf784c7a1e..e683f40e31 in full, the merge on the 13 PR paths main also changed, and the net diff against 115d38788e for the scope files. Read, not reviewed: card #36366 and its 13 comments, decision card #36635 (body, 3 comments, state), weekly card #36086 (all comments), the PR body and its comments, docs/adr/0085-...md §2 at the head, AGENTS.md on rulings and ADR notes.

① Derived judgments

  • No accept-set or public-surface change in this hop. Of the PR's 82 paths, 14 differ between 8a85482a and the head: the 13 that main changed between 6e643cc43e and 115d38788e (content/docs/references/data/object.mdx, de-quote-pairing-3876.test.ts, the 11 ui/packages/i18n/src/locales files) and object-action-layout.ts, comment text only. The two lists agree path for path, so no PR path moved except by the merge and the two named commits, and no PR path that main changed was left behind.
  • The 11 locale files: what the merge adds over the PR parent is main's own change (same per-file counts as main's diff: 96 in and 1 out, en.ts 98 and 1), and what it adds over the main parent is the PR's own 17 lines per file, the same as before the merge. Read in full for de.ts: main's filePreview, fieldHistory, noCards, designMode.menu.new* and report-builder blocks arrive whole beside the PR's designMode.pins block. Both sides kept. Right.
  • de-quote-pairing-3876.test.ts: the merge commit itself carries placeholders (MEASURED_A, MEASURED_B, expected counts of 0); d23e460185 writes 133 in both places. Reasoned from the diffs: main's test went from 127 to 129, and main's de.ts change adds exactly two „…“ spans (designMode.menu.newItemLeft and newReportLeft, each one „{{name}}“) and no other German quote pair; the PR's pin before the merge was 131 over main's 127, four spans, and its de.ts lines are unchanged. 129 plus 4 is 133, in both the span pin and the open / close identity. Right. The intermediate commit cf784c7a1e would fail this test; only the head is judged.
  • object.mdx: the merge kept the branch side, losing main's longer ActionSchema.body text; d23e460185 restores it. At the head the file differs from main by the PR's 16 added lines only (the two actionLayout rows and the two nested-shape tables), and the body row is main's. The PR touches no action schema source, so the head's spec source for body is main's. Right.
  • Check-runs on this head, as read (67 listed): no failure. Completed green: Lint and Repo Gates, every Lint job (ESLint, docs and code guards, repo and tooling gates, PM dispatch-gates, CI release and engine gates, the three scoped jobs), Type Check source gates, consumer gates and debt ledger, Build Docs, Build UI Deps, Live E2E UI, Dogfood Regression Gate, Check Changeset, PR-body guards, Governed Surface Queue Guard, Spec property liveness, Check Documentation Links, Flag docs affected by code changes, Check PR Size, Auto Label, filter, both shard plans. PENDING (in progress when read): Test Core 1 to 10 of 10, Build Core, Type Check workspace, Test UI 1 to 16 of 16, Build and E2E UI, Lint UI, Type Check UI. Skipped: the opt-in and queue-only jobs. The test families are therefore not yet answered on this head; the 133 pin above is exactly what a pending Test UI shard answers.

② Semver level

Clause-②: yes (widening). Still true against main 115d38788e: actionLayout has no acceptor anywhere on main (no hit under packages, ui/packages, content, docs or skills), every refusal sits inside the new key, and no document main accepts is refused.

Metadata-protocol: added holds. The changeset is unchanged by this hop: minor for spec, objectql, lint and @object-ui/types; patch for metadata-core, metadata-protocol, platform-objects, @object-ui/components, @object-ui/app-shell and @object-ui/i18n. This hop's source changes are a spec comment, a generated doc and an i18n test; nothing new is published. Check Changeset is green on this head. The level holds.

③ Boundary flags

④ Design judgment

No must-fix, no should-fix.

S1: closed. The new jsdoc paragraph of object-action-layout.ts, sentence by sentence:

N3: carried to #36494, unchanged.

N6 (nit) — carried: objectExtensionArrangementSave.ts, "the other arrangement key" in the module docblock. Untouched by this hop; stays with the N5 follow-up.

N7 (nit) — object-action-layout.ts, the new paragraph: #36635 and #36086 are written bare while the same docblock writes objectstack#36366, and two of its statements are dated by design ("carried by #36086", "one reader today"). The weekly ADR PR should re-point the jsdoc at the 2026-11-23 §2 note, and #36494 should drop the single-reader sentence when it adds the row menu. Wording only; a fix here moves the head, so leave it to those two carriers.

Per file, for what this hop changed:

  • object-action-layout.ts: the paragraph agrees with the ruling, with §2 and with the readers at the head. N7 apart.
  • field-customization.ts, index.ts, object.form.ts, object.zod.ts: unchanged this hop and untouched by the merge; the earlier records stand.
  • The objectql, metadata-protocol, cli, lint and ui implementing files: unchanged this hop and untouched by the merge (none is among the 13 paths main changed).
  • object.mdx, the locale files and the quote-pair test are the lane's, read here only for the merge: both sides kept at the head.

No graded finding is open on this head. This verdict assumes the pending check-runs conclude green; a red Test UI or Test Core shard reopens it.

Implemented-by: claude/project-thread-m619um
Reviewed-by: session_01ADHkmT4eA4YqtxfiPyLPih

VERDICT: PASS

Copy link
Copy Markdown
Collaborator

repo:objectstack#2 · os-steve · session_01ADHkmQwVVCVuN69B7ThYrP

Patch round 4, head e683f40e31. This covers L2 S1 after the ruling on #36635. Where the PR body differs, read this comment instead; the body was not edited, so its tree is unchanged.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator

repo:objectstack#2 · os-steve · session_01ADHkmQwVVCVuN69B7ThYrP

席位核对

ACCEPT: L1 delta for card #36366 at head e683f40e31750b943272ad922259dee7b6e0d327 (2026-11-23T13:15Z), read by the card thread for seat repo:objectstack#2.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

维护者速读

席位意见:同意合并。四轮补丁后 L1 与 L2 在同一 head 通过,CI 全绿,与 main 无冲突。

席位核对

ACCEPT → PR #36629 comment 7102252962 (delta) · Contract review PASS → comment 7101748829 (CONTRACT_REVIEW_TIER, delta 3; S1 closed) · Head-sha e683f40e31750b943272ad922259dee7b6e0d327 · check-runs 61 success, 9 skipped, 0 failed · mergeable clean · check-governed-merges --pr 36629: no governed path (0 of 82). SIZE limb: 3817 changed lines > 3000, so human approval. Fixes #36366.

@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 23, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 23, 2026 13:17
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 70d07fd Nov 23, 2026
76 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-m619um branch November 23, 2026 13:46
@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 30, 2026
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…d Edit (objectstack-ai#36711)

<!-- claude-projects-attribution: {"github_login":"os-warren"} -->
_Requested by **Warren** · [project
thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ88koXu8fkc7uTmy43dVUPer)_

Fixes objectstack-ai#36286
Clause-②: no
Metadata-protocol: none

## 维护者速读

- 用户在列表页按 ⌘K,「当前页面」组里多了「新建视图」,回车直接打开视图切换器的新建卡片;在记录页按 ⌘K
多了「编辑」,回车等同点页面右上角的编辑按钮。
- 属于外壳专题(去掉顶栏那一层)里搜索面板这张卡的最后一项,做完这张卡就关闭。
- 面板里的这两行完全跟着页面上的按钮走:按钮不出现它就不出现,按钮变灰它也变灰并写明原因;出问题只影响这两行,撤回本 PR 即恢复原样。
- 无。

## What changes

The empty ⌘K palette's "Current page" group (its favorites row landed
earlier) now carries the page's own main entry:

- **On an object's list: "Add view".** Listed exactly where the view
switcher offers "Add view". Enter opens the switcher on its in-place
create card; for a host whose switcher offers only the Create View
dialog, it opens that dialog. Opened the switcher's own way afterwards,
the dropdown shows the views again.
- **On a record page: "Edit".** The header's own `sys_edit` entry: Enter
runs its `onClick` (the record form, or the page's edit state where the
page draws body tables). It is listed off exactly when the header's
button is off (`userActions.edit.disabledWhen`, the state lock, a live
inline draft the header greys Edit for), with the header's reason under
it. An approval-locked record, a record already in its edit state and a
record in a drawer or pane over a list list no Edit row, because the
page draws no Edit there (or the page behind the palette is the list).
- The footer names what Enter does ("Add view ↵", "Edit ↵"), in the
controls' own words. No new locale keys: both rows reuse the controls'
labels (`view.switcher.addView`, `detail.edit`).

How: nothing is recomputed in the palette. The page publishes the
command beside the control that runs it, for as long as it draws that
control (`usePublishPageCommand`, new `chrome/paletteCommands.ts`, a
module store like `advertisedShortcuts`), and the palette lists what is
published. `ObjectViewTitleSwitcher` publishes "Add view" under the same
condition its footer button is drawn (`create || onAddView`);
`RecordDetailView` publishes the header's `sys_edit` entry through
`PublishRecordEditCommand` (new `views/recordPaletteEdit.tsx`), mounted
inside the page's `InlineEditProvider` so the inline-draft greying is
read where the header reads it. `ObjectViewSwitcherMenu` gains an
optional `startOnCreate` prop (package-internal, not exported). This is
the route the card's release comment recorded (seat 2: pages advertise
their own command and verdict; the palette lists them).

## Tests

- Palette harness (`CommandPalette.previewCreate-36286.test.tsx`), new
top-level describe, 10 tests, over the real `CommandPaletteProvider`
with the real `ObjectViewTitleSwitcher` and the real
`PublishRecordEditCommand` in an `InlineEditProvider`: row order and
selection, Enter opens the switcher on the create card; dialog-only host
runs `onAddView`; CONTROL no row when the switcher offers no Add view;
Edit runs the entry's handler; an off Edit is listed off with its reason
and does nothing; a live inline draft turns it off; CONTROL a draft
leaves it on where the header does; withdrawn when the page stops
drawing it, and never listed on the wrong kind of page; footer kinds.
- `RecordDetailView.harness.test.tsx`, new block
`RecordDetailView.paletteEdit-36286` (4 tests) over the real record
page: the page publishes Edit and running it calls the same `onEdit` the
header button calls; off exactly when the header button is off
(`edit.disabledWhen` holds); CONTROL a predicate that does not hold
leaves both on; CONTROL an embedded record publishes nothing.

<details><summary>Runs at d8c8135</summary>

- `vitest run` of `packages/app-shell/src/chrome/` + the
RecordDetailView harness + `objectViewTitleSwitcher` (2 files),
`inPlaceViewCreate-35553`, `ObjectView.titleViewSwitcher-27594`,
`RecordDetailView.phoneFace-27058`, `.favoritesEntry-12427`,
`.headerActionGates`, `.drawerLevelEdit-33111` under the verify lock:
Test Files 38 passed (38), Tests 398 passed (398), VERDICT command-exit
0 (at 27f5347; the last commit touched only the palette harness's
imports, re-run there: 37 passed).
- `pnpm --filter @object-ui/app-shell type-check` (tsc --noEmit +
tsconfig.test.json): VERDICT command-exit 0.
- Ablation 1, `scripts/ablation-replace.mjs` on `recordPaletteEdit.tsx`,
the `disabled:` verdict replaced with `disabled: false`: 3 failed (the
disabledWhen, off-with-reason and inline-draft tests), restored blob
282bf9e equals HEAD.
- Ablation 2, `setStartOnCreate(true)` deleted from
`objectViewTitleSwitcher.tsx`: 2 failed (the two create-card tests),
restored blob c9b9cf6 equals HEAD. Source-resolved relative imports, no
dist leg.

</details>

## Acceptance notes

- The card's acceptance lines for step 2 read
"列表页上是收藏这个视图、新建视图;记录页上是收藏这条记录、编辑". The favorites rows landed earlier;
this PR adds the other two, so it closes the card.
- Row words are the controls' own ("Add view", "Edit"), as the favorites
rows reuse the menu's words; Attio's "New view" wording would need two
new keys, not added.
- An authored record page that draws no `page:header` still publishes
Edit, as the header entry is built for every face; I found no such page
in the examples.
- The phone's palette is out of the card's scope and unchanged; the
switcher's phone sheet takes the same `startOnCreate`, adjusted during
render so a kept-mounted body is asked again.

## Verification

Two-minute check: run the showcase, open Accounts, press ⌘K, ArrowDown
to "Add view", Enter: the view switcher opens on its create card. Open
any account, ⌘K, ArrowDown to "Edit", Enter: the page enters its edit
state (Cancel / Save in the header), as the header's Edit does.

Browser run (showcase on its own `--fresh` backend + console vite,
Playwright Chromium 1440x900, signed in through `/login`): list page
group rows `favorite-add`, `view-add`; footer "Add view ↵"; after Enter
the palette is closed, the switcher menu and `create-view-card` are
present. Record page group rows `favorite-add`, `record-edit`; footer
"Edit ↵"; after Enter the header shows Cancel and Save. Four screenshots
are attached to the project thread (GitHub's image store takes browser
uploads only), not committed.

Gates at d8c8135: `dispatch-gates --commands` derived 38 families; all
38 run, each exit 0 (`pnpm --dir ui exec vitest run scripts/` was
OOM-killed on the first pass beside the dev servers and re-run under the
lock: Test Files 172 passed, 2 skipped; `check:test-source-alias` went
red on the first pass and is fixed in d8c8135); `--ran` reconciliation
38 derived, 38 run, 0 NOT-MEASURED. ESLint on the changed source files:
0 errors. `check:new-line-citations`: 0 new. overlap-check: VERDICT
clean (origin/main and objectstack-ai#36629, which shares `RecordDetailView.tsx`,
merge cleanly).

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes.
- [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.
- [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.
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01JQwxbXBGc8PQRp6Q7TM7EU)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
objectstack-ai#36691)

<!-- claude-projects-attribution: {"github_login":"os-warren"} -->
_Requested by **Warren** · [project
thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ82m9WTJKrcL1TbDtF6CnzSt)_

Part of objectstack-ai#35143 — this is the card's Flows family. The Data model,
Views/dashboards/app shell, and Seeds/actions families stay open on the
card for later PRs (premise table:
objectstack-ai#35143 (comment)).

Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up objectstack-ai#36718

## 维护者速读

- 搭建者发布流程时,以前能保存却永远不跑、跑错对象或每次写入都失败的七类流程,现在发布当场被拒并告诉怎么改;另有三类只提醒不拦。
- 属于「各种搭建方式共用的底座:发布前检查」专题的第二批,托管搭建删掉自家重复检查之前要等它。
- 已保存的流程不受影响,下次重新发布才会被拦;误拦时改回即可,本改动可整体撤回。
- 无。

## What changes

Seven errors, judged by the runtime publish gate and by `os validate` /
`lint` / `compile` / `build`:

| Rule | What it catches | Why it fails at run time |
|---|---|---|
| `flow-trigger-object-missing` | a record-triggered start node with no
or a blank `objectName` | absent: the hook registers with no object, so
it fires on writes to every object; blank: the engine refuses the hook,
so the flow never starts |
| `flow-condition-option-label` | a start condition comparing a select
field with one of its option **labels** (`F == 'L'`, `'L' == F`, `!=`,
`F in [...]`) | the row stores the option value, so it is never true |
| `flow-time-relative-shadowed` | `timeRelative` under a record
`triggerType` | the record trigger wins; the sweep never runs |
| `flow-time-relative-key-misplaced` | `filter` / `maxRecords` beside
`timeRelative` | the sweep reads them only inside the block |
| `flow-time-relative-date-field-invalid` | `dateField` missing or not
`date` / `datetime` | the range query matches no record |
| `flow-node-write-unknown-option` | a create/update node writing a
select literal no option carries | the record validator refuses
`invalid_option` on every run |
| `flow-node-write-date-helper-text` | a create/update node writing
`'today()'`-style text to a date field | the validator refuses
`invalid_date`; the hint gives the CEL value envelope |

Three warnings: `flow-schedule-timezone-missing` (cron with no
`timezone` runs in UTC), `flow-subflow-unknown` (new CLI-only rule
`validateFlowSubflowTargets`: a `subflow`/`map` node naming a flow the
stack and its packages do not carry), `flow-create-update-pair` (an
after-create and an after-update flow on one object with the same nodes;
fingerprinted on the whole node minus
`id`/`label`/`description`/`position`).

- One reading of a select field's options,
`packages/lint/src/flow-select-options.ts`, shared by the two option
rules: a field is judged only when its options are inline (no shared
`picklist`) and no two object extensions tie on it.
- Ten `os explain` entries in `rule-explanations.ts`.
- Upgrade-guide entry `publish-refuses-flows-that-save-and-do-not-run`
(ADR-0087, notice only; no D2 conversion).
- Docs and spec docblocks: the cron examples in
`content/docs/automation/flows.mdx`, `time-relative-trigger.zod.ts` and
`schedule-organization.zod.ts` state `timezone: 'UTC'`; the two
reference pages are regenerated.
- Examples: four cron schedules in `app-todo` and `app-showcase` gain
`timezone: 'UTC'`; four CLI transcripts in `content/docs/` print 77
author-time rules.

## Tests

- New `packages/lint/src/flow-publish-checks-second-batch.test.ts` (33
tests): a positive and a silent pin per rule, the runtime-gate refusal
for each error, the subflow rule running on the CLI and not on the gate,
a `connectorConfig` regression case for the pair rule, and `explainRule`
for all ten ids.
- `validate-flow-trigger-readiness.test.ts`: four fixtures gained
`timezone: 'UTC'` so the objectstack-ai#5647 and objectstack-ai#17396 tests keep judging only their
own question (fixture triage; no assertion narrowed or removed).

## Acceptance notes

- **F6 (`flow-subflow-unknown`) is a CLI-only warning, not an error.**
The publish gate judges a flow write over a snapshot that holds only
that flow, and another package may ship the called flow, so a gate-side
or error-tier check would refuse valid flows.
- **F3 (self-retriggering flow) is not built**: refuted on main
(re-entry guard and driver-sql boolean read-back), evidence in the
premise table.
- **F4c and F7b are already covered** (`flow-trigger-unknown-object`;
`date-text-call` from objectstack-ai#34451).
- The label check covers **start conditions** only; decision-node
conditions are not judged here.
- The flow-CRUD unknown-object line (S2) goes with a later family, as
the premise table says.
- No `*.user-text.ts` catalog entries, following the objectstack-ai#34776 precedent
for author-time findings.
- Contract review rework (head `72fe0c076`): `Metadata-protocol:
narrowed` with `@objectstack/lint` at `minor`;
`flow-condition-option-label` now reports a label only as its own
field's comparand (`F == 'L'`, `'L' == F`, `!=`, `F in [...]`), so
`record.stage == 'open' && record.name == 'Closed Lost'` is silent; a
blank `objectName` gets its own message (the engine refuses an empty
hook target, so the flow is never bound); the cron examples in
`flows.mdx` and in the spec docblocks behind two reference pages state
`timezone: 'UTC'`.
- Not covered by this PR, open on the card: decision-node and edge
conditions for the label check (start conditions only), and a gate-side
subflow check (F6 is CLI-only).

## Verification

Two-minute check: `cd examples/app-todo && pnpm exec objectstack
validate` exits 0 with no finding from the ten new rules; `os explain
flow-condition-option-label` prints the rule's paragraphs.

Read first, by risk: `packages/lint/src/validate-flow-node-writes.ts`
(`writtenValueFindings`, the two new errors on every CRUD write),
`packages/lint/src/validate-flow-trigger-readiness.ts` (the record and
time-relative blocks), `packages/lint/src/lint-flow-patterns.ts`
(`flowActionSignature`).

<details><summary>Test and gate readings</summary>

Head `05bdad816`: CI 60 success, 10 skipped, 0 failed. It is `0292183af`
plus a second merge of `origin/main`, which added an author-time rule,
so the four CLI transcripts now print 78. On `0292183af`: `4466c0cc8`
plus the changeset's `Skills-docs: follow-up objectstack-ai#36718` and a clean merge
of `origin/main`. After the merge, under the verify lock:
`@objectstack/lint` 229 files / 9509 tests, `metadata-protocol` 23354,
`service-automation` 4264, `verify` 500, `mcp` 1481, all passed. One
`mcp` run first failed a PDF worker-pool timing assertion
(`mcp-file-tools.test.ts:1150`); it passed 54/54 alone and 1481/1481 on
the next run. `check-test-source-alias`, `check-adr-0087-registration`,
`check:docs-transcript-drift`, `check-nul-bytes` and overlap-check: all
OK.

Earlier, on `4466c0cc8`: Same tree as `7bc8e8a6e` plus one module-top
`import '@objectstack/lint';` in
`protocol.package-closure-gate.test.ts`, which the test-source alias
gate asked for. CI on `7bc8e8a6e`: every Test Core and Test UI shard,
every Type Check lane and the dogfood gate passed. The only red was that
alias step, and `node scripts/check-test-source-alias.mjs` now reports
OK locally.

- `@objectstack/lint`, the full suite under the verify lock: 228 files,
9503 tests passed.
- Lint dependents under the lock: `@objectstack/metadata-protocol` 365
files / 23352 tests, `@objectstack/service-automation` 293 / 4258,
`@objectstack/verify` 55 / 500, `@objectstack/mcp` 83 / 1467. All
passed, exit 0.
- The first CI run found one stale fixture in `metadata-protocol`: a
sweep over the text field `title`, which the new date-field rule
refuses. It now sweeps `created_at`, and the file passes 11/11.
- M2 red/green: with the previous `flow-select-options.ts` restored, the
new pin "is silent when the label is the comparand of another field"
fails (1 failed, 34 passed). With the fix, 35/35 pass.
- `@objectstack/spec` `src/migrations`: 200 tests passed. After `pnpm
--filter @objectstack/spec build`, these all exit 0: `check:generated`,
`check:api-surface`, `check:browser-reachable-entries`,
`check:dual-source-exports`, `check:entry-nameability`,
`check:exported-any`, `check:skill-examples`.
- Examples: `example-todo` 267/267 and `example-showcase` 554/554.
`objectstack validate` on app-crm, app-todo and app-showcase exits 0
with no finding from the ten rules.
- Full dogfood battery, run on the first head (the rule code was
unchanged in later heads apart from the label matcher): 487 files
passed, 3 skipped; 4121 tests passed, 68 skipped; exit 0.
- `dispatch-gates --ran`: 122 derived families accounted for, 121 exit
0. `check-plugin-teardown-shape --self-test` exits 3 here because it
needs an unshallowed clone.
- `check-adr-0087-registration`: registered (BREAKING, bang, clause-②
narrowing, metadata-protocol narrowed). `check-nul-bytes`: OK.
Overlap-check against `origin/main` and objectstack-ai#36629: clean.

</details>


---
_Generated by [Claude Code](https://claude.ai/code)_

<!-- signed: repo:objectstack#1 · os-warren ·
session_01JQwxbYLajSVuBY258yrEFn -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…every public form (objectstack-ai#36697)

<!-- claude-projects-attribution: {"github_login":"os-warren"} -->
_Requested by **Warren** · [project
thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ8KF3BvUnBEoN52Vcnw6JhXg)_

Part of objectstack-ai#36444. This PR is the card's **Settings = operations** half
(ruling items 6–10 of
objectstack-ai#36444 (comment)).
The **Studio = design** half (items 1–5: the designer under the object,
create/delete, fields, sections, address, live preview) stays open on
the card for a second PR on this branch.

Clause-②: yes (widening) — a new `@objectstack/spec/ui` export
`anonymousFormIntakeWithdrawnIn` (moved verbatim from
`@objectstack/metadata-core`, which re-exports it), a new Setup
navigation id `nav_public_forms`, a new component id
`forms:public-forms`, and new language-pack keys (the `publicFormsSetup`
block and the nav label) in every shipped locale
Metadata-protocol: none

## 维护者速读

- 设置 › 配置
新增「对外表单」:列出本环境所有对外表单(名称、所属对象、地址、开关),可一键关闭/开启、复制地址、在新标签打开。仅系统管理员可见。
- 关闭后表单地址立即打不开(与现在一致,返回「找不到表单」),表单仍留在列表里可随时重新开启。
- 已安装应用的表单,开关存为本环境的定制,不改应用本身,应用升级照常进来;重新开启且没有其它改动时,自动恢复为应用原样。
- 表单的设计(新建、删除、字段、标题)仍在 Studio,下一个 PR 做;「最近一次提交时间」本卡不做。

## What changes

- **New Setup page `forms:public-forms`** (Setup → Configuration →
Public Forms, `nav_public_forms`, `requiredPermissions:
['manage_platform_settings']`; the page asks the same capability). One
row per public form: name, the object a submission creates a record of,
its address, an on/off switch, copy address, open in a new tab. No field
editing, create or delete here (ruling item 7).
- **Which forms are listed**
(`ui/packages/app-shell/src/views/setup/publicForms.ts`): read from the
effective view list (`GET /meta/view`), judged by the server's own rule
`anonymousFormIntakeCandidates` (`@objectstack/spec/ui`), never a second
reading of `sharing`:
- listed = the rule would open the form with its switch on
(`allowAnonymous: true` + a `publicLink`), so a switched-off form stays
listed (item 8);
  - on = the rule opens it as served.
- The name shown is the served label, else the form's title, else its
first section's label, else its key.
- **Where a switch is saved** (item 9): the switch is `sharing.enabled`,
saved and published at once.
  - Writable package → saved in that package.
- Installed (read-only) app → a declared override in the app's `.custom`
package (ADR-0146 D2/D3), via the same seams the in-page dashboard
editor uses (`resolveDashboardEditTarget`, `ensureDashboardSaveTarget`,
`overrideDraftBody`, `saveAndPublishInPackage`). The app's own package
is never written, so upgrades still flow in.
- Switching back on removes the override (the pair's row) when it held
nothing but the switch, so the app's original form is served again; an
override that also carries design changes keeps them, with the switch
on.
- A pending draft where the switch would save is never published or
removed on its saver's behalf: the switch writes nothing and says so.
- After an app upgrade, an override taken from an earlier version is
still restored when the form is otherwise the app's current one. When it
is not, it is kept with the switch on, and the page says the form stays
on the app's earlier version (`basedOn`), which Studio's "Restore
package original" undoes. The app's earlier document cannot be read, so
a switch-only override at an old version cannot be told from a design
one (review S1).
- **A form its installed app ships switched off** (address kept,
`enabled: false` or `allowAnonymous: false`, or `enabled` omitted, which
the stack schema parses as `false`) is withdrawn by the app's own
document, and the routes never let an override re-open it (pinned in
`packages/rest/src/public-form-withdrawal-effective-read.test.ts`). The
page judges the app's document with the routes' own function,
`anonymousFormIntakeWithdrawnIn`, against the served form switched on
(slot or slug match), plus an omitted `enabled` (review M1, S2). The
page reads each installed app's form's layers (`markShippedOff`, one
package-list read per page load) and lists such a form as "Off (switched
off by its app)" with its switch disabled, even when an override already
switches it on; a switch-on writes nothing and refuses with that
sentence. A form whose app's document cannot be read shows "Unknown",
never On (N5).
- **`anonymousFormIntakeWithdrawnIn` moves into `@objectstack/spec/ui`**
(`anonymous-form-intake.ts`, beside the candidates half), verbatim: it
is a pure judgement of the bodies it is handed.
`@objectstack/metadata-core` re-exports the same binding, so the routes'
import is unchanged, and its identity test now pins this name with the
others (one copy, not a twin). Spec `api-surface` and `export-origins`
regenerated (1 added).
- **Permission:** the page asks `manage_platform_settings` (its Setup
entry's); the switches also ask `manage_metadata`, the capability the
server checks on every write they make. Without it the forms are listed,
the switches are disabled, and a sentence says why. A refused switch is
told in business words (403 → no permission; anything else → the server
refused, try again), and so is a failed list read; the server's own
message goes to the console log only (review N1, N3, N6).
- **Switched-off behaviour (F3 = A):** unchanged, `404 FORM_NOT_FOUND`.
The routes already honour an override that withdraws a base's form
(`anonymousFormIntakeWithdrawnIn`), so no route, spec key, error code or
stored-key change was needed: Metadata-protocol stays `none`. The new
spec export (the moved withdrawal judgement), the new navigation id,
component id and language keys are the widening the Clause-② line
declares.
- Business wording only (item 10): new `publicFormsSetup` block in all
11 console locales; nav label in all 11 platform-object locales (zh-CN
「对外表单」).
- Access restrictions (password, expiry, domains) are exposed on neither
surface, per the ruling.
- **Not built: "last submission time".** A submission is an ordinary
record of the form's object and records no form, so there is nothing to
read (stated in the ruling).

## Tests

- `ui/packages/app-shell/src/views/setup/publicForms.test.ts` (26
cases): the listing rule (on, off-but-listed, internal forms, non-form
views, naming); writable-package save; installed app off → override in
`.custom` with its `overrides` declaration and nothing in the app;
reading the base when the listed pair does not hold the form; on with a
switch-only override → restore (reset at the pair, no save); on with a
design override → kept, switch on, `basedOn` unchanged; pending draft →
nothing written (both the client-side check and the server's `409
METADATA_CONFLICT`); refusals (package not listed, unreadable form, no
version to declare); a base shipped off, both `enabled: false` and
absent `enabled`, refused with nothing written, with and without an
override already on, and listed as not on (`markShippedOff`); an app
that ships `allowAnonymous: false` under an override that opens it,
refused and listed as not on; an unreadable app document → `unknown`,
not on; an override switch-only at `basedOn: 2.0.0` against a changed
3.0.0 base → `{ kind: 'earlier-version', basedOn: '2.0.0' }`, kept; the
same against an unchanged base → restored. Ablations: dropping the
refusal, the listing mark, the earlier-version answer, the routes'
withdrawal rule, or the unknown mark, or reading an absent switch as on,
each turns cases red.
- `PublicFormsSetupPage.test.tsx` (8 cases, rendered): the Setup
capability gate; without `manage_metadata` the switches are disabled
with the sentence; a shipped-off form shows "switched off by its app"
with a disabled switch (both spellings); the pending-draft toast leaves
the row as it was; a 403 and a 500 are told by key, with no server text;
a failed list read shows the business sentence without the server text;
an unreadable app document shows "Unknown", not On. Ablations of the
metadata gate, the shipped-off mark and the business-word refusal each
turn a case red.
- `PublicFormsSetupPage.navContribution.test.tsx` (3 cases): the ref is
registered by the production registration, addresses
`component/forms/public-forms`, and mounts through the component route.
- `packages/metadata-core/src/anonymous-form-intake.test.ts`: the
identity case now includes `anonymousFormIntakeWithdrawnIn`
(metadata-core's export is the spec binding); the package's 1,057 tests
pass, and so does
`packages/rest/src/public-form-withdrawal-effective-read.test.ts`.
- `packages/cli/test/connect-agent-both-halves-wire.pin.test.ts`: Setup
nav count 34 → 35, plus `nav_public_forms` is served to a
`manage_platform_settings` holder. Red without the fix: against a
platform-objects build without the nav entry it fails `expected [...] to
have a length of 35 but got 34`.
- `ui/packages/i18n/src/__tests__/zh-hant-generated.test.ts`: passes
with `src/locales/zh-Hant.ts` regenerated from zh (`pnpm --filter
@object-ui/i18n gen:zh-hant`).
-
`ui/packages/app-shell/src/console/__tests__/openPathObjectReaders-12811.test.ts`:
the new page's `useMetadata().objects` read is classified `off` (Setup,
not an app object-list open).

## Acceptance notes

Live run on `examples/app-crm` (`objectstack dev --seed-admin --fresh`)
+ console dev server, as the seeded admin. `com.example.crm` lists as
not writable, so this exercised the installed-app (customization) path:

| Step | Result |
|---|---|
| Open Setup → Configuration → Public Forms | 1 row, "Contact us", Lead,
`…/f/contact-us`, On |
| Switch off | toast; row Off; `GET /api/v1/forms/contact-us` → `404
FORM_NOT_FOUND`; `/f/contact-us` shows "Page not found" |
| Reload the page | still listed, still Off |
| Switch on | `GET /api/v1/forms/contact-us` → 200; the form renders and
takes input again |
| Layers after switching on | `effective._packageId = com.example.crm`,
no override left in `com.example.crm.custom` (restored to the app
original) |

Screenshots (live run, 2× scale) are in the project's shared files under
`issue-36444/`; they cannot be uploaded to GitHub from the cloud seat:
- `01-public-forms-on.png`: the page with the Setup sidebar entry, form
On.
- `02-public-forms-off.png`: after switching off (toast, Off).
- `03-anon-form-off.png`: the anonymous address while off.
- `04-public-forms-back-on.png`, `05-anon-form-on.png`: switched back
on, the form takes input again.

The Studio designer screenshot comes with the second PR.

Premise finding for the Studio half: the existing Developer → Public
Forms entry (`nav_public_forms` in `studio.app.ts`,
`developer:public-forms`) is served only where a host loads
`@objectstack/studio`; no example and no CLI default loads it, so the
console's own Studio has no public-forms entry today. The second PR
places the designer under the object in the console's Studio, within the
seven-tab Data pillar (objectui#12450).

Overlap: merges cleanly with `main`, objectstack-ai#36629 and objectstack-ai#36525. objectstack-ai#34223 (draft
since 11-19) also bumps the same Setup nav count line in the CLI pin
test; whichever lands second takes the other's count.

## Verification

Head `2a859fb0a4` (review round 2: S2, N5, N6; round 1 at `d91c73bcad`;
`main` merged in earlier as `33a41ea1b0`, no rebase).

- The derived gate union (`dispatch-gates --commands`, now 94 commands
with the spec and metadata-core paths): 94/94 exit 0 on `2a859fb0a4`.
- CI on `2a859fb0a4`: all workflows completed (Spec Liveness Check
included), 59 checks success, 10 skipped (opt-in, queue and schedule
gates), 0 failure.
- `@object-ui/app-shell` type-check (src + tests): exit 0. eslint on the
changed files: 0 errors.
- Locale keys in all 11 console locales; zh-Hant regenerated from zh
(`gen:zh-hant`).
- Earlier heads: `a502b8c57` had two reds, fixed in `d3b3b09d3`
(`check:spec-symbols` refused a local type `Doc`, renamed `FormDoc`; the
`openPathObjectReaders-12811` census, classified). `d3b3b09d3` had one
red, Test UI (10/16), the stale zh-Hant locale, fixed in `5c7d009426`.
`8902d697ee` and `d91c73bcad` were all green.
- Locally `peopleAssignments.navContribution.test.tsx` ("Position
holders" heading) fails on `main` as well; CI runs it green. Not touched
here.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01JQwxbWoxCrkYwcqxxENvmn)_
<!-- signed: repo:objectstack#1 · os-warren ·
session_01JQwxbWoxCrkYwcqxxENvmn -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
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/xl 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.

设计模式(四)页头按钮:选哪些动作固定在页头、哪些收进「更多」,可以拖动排序

3 participants