Repository navigation
feat: an object's action layout per scope, pinned and more, set from the design mode (#36366) - #36629
Conversation
…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>
…wn Share entry (#36366) Claude-Session: https://claude.ai/code/session_01ADHkmQwVVCVuN69B7ThYrP Co-authored-by: Claude <noreply@anthropic.com>
#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>
📓 Docs Drift CheckThis PR changes 7 package(s): 29 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 7 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 187 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 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
|
|
l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih Contract-review-claim: session_01ADHkmT4eA4YqtxfiPyLPih · head e683f40 · 2026-11-23T12:46Z |
|
l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih Contract reviewServed-tier: Delta round 3 on record 7094210583 (head ① Derived judgments
② Semver levelClause-②: yes (widening). Still true against main
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. S1: closed. The new jsdoc paragraph of
N3: carried to #36494, unchanged. N6 (nit) — carried: N7 (nit) — Per file, for what this hop changed:
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: VERDICT: PASS |
|
repo:objectstack#2 · os-steve · session_01ADHkmQwVVCVuN69B7ThYrP Patch round 4, head
Generated by Claude Code |
|
repo:objectstack#2 · os-steve · session_01ADHkmQwVVCVuN69B7ThYrP 席位核对ACCEPT: L1 delta for card #36366 at head
Generated by Claude Code |
|
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY 维护者速读
席位意见:同意合并。四轮补丁后 L1 与 L2 在同一 head 通过,CI 全绿,与 main 无冲突。 席位核对ACCEPT → PR #36629 comment 7102252962 (delta) · Contract review PASS → comment 7101748829 (
|
…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>
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>
…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>
…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>
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
actionLayoutis a new optional key onObjectSchemaandObjectExtensionSchema, 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[] }.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 rowobject/actionLayoutislive, drilled intolist/recordand each intopinned/more, citing the record header, the list header, the fold and the design mode.actionLayoutis the third key ofCUSTOM_ARRANGEMENT_KEYS, besidefieldGroupsandrelatedLists(ADR-0146 D10). Only the base's paired.custompackage writes it on anobject_extension; the one judgejudgeExtensionArrangementrefuses any other package's, each door in its own way: publish, restore and draft promotion answerVALIDATION_ERROR/ 400; marketplace install refuses the package body withVALIDATION_ERROR/ 422;os validateandos buildexit non-zero and print the row; the registry fold skips the key and leaves a note. The registry applies the pair's arms last, inapplyCustomArrangement, by role, arm by arm. A manifest'sobjectExtensionsentry now carries the key to the fold (objectExtensionContributiondropped it).validateObjectActionLayoutrefuses, inos 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;pinnedbecome buttons in pin order, the namesmoregives lead the overflow in that order, unnamed ones follow in their default order.page:headerwithplacedActions: truereadactionLayout.record; the list header readsactionLayout.listwith$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'sobject_extension, through the one writer of an installed object's arrangement,saveObjectExtensionArrangement(patch round 3).designMode.pins.*in every hand-written locale, including the newdesignMode.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)
actionLayout.recordarm is a scope, not a page: the record header, the side preview and the phone bottom bar all read it.$import/$exportcan be named, and only inpinned: one inmoreis refused with its reason (not pinned, the page still draws its own Import / Export menu). The record scope has none..custompackage writesactionLayouton anobject_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.page:headerauthored with its ownactionslist keeps that list; the design mode offers it no 「Header buttons」.os validateand in the design mode's Save; see Acceptance notes for the server door).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
locationsvocabulary), #36496 (theselectionarm).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:object51 → 52.packages/platform-objects/src/apps/translations/object-collapsed-sections-echo-decisions.test.ts: leaves 119 → 125,advanced106 → 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: itsinputhelper now types the pins asObjectPins(the type-check read the oldstring[]shape as nine TS2353).content/docs/deployment/cli.mdx,deployment/validating-metadata.mdx,getting-started/build-with-claude-code.mdxandui/react-pages.mdx: author-time rules 76 → 77, ascheck:docs-transcript-driftderives.packages/spec/src/compose-stacks-merge-collection-refusal.test.ts,packages/spec/src/compose-stacks-merge-config-object-refusal.test.ts:actionLayoutadded to the config-object key list.Tests
Patch round 3, head
8a85482aea(L2 delta S5, N4, N5; S1 waits on #36635 and is untouched).origin/main6e643cc43emerged ind871e26fdbwith 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/main9c283a11bfstill merges cleanly.saveObjectPinsnow callssaveObjectExtensionArrangement, handing it only the composedactionLayout. That module's patch type is{ [K in CustomArrangementKey]?: ExtensionArrangementValue... }, a list forfieldGroups/relatedListsandObjectActionLayoutforactionLayout; 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. NewdesignMode.pins.pairNotWritablein the 11 locales (zh-Hant regenerated).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 storedrelatedLists,fieldGroupsand 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 storedactionLayoutturned 2 red (the S3 held-arm pin and the S5 kept-keys pin), restored blob equals HEAD's.actions.mdxnow 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 inmore; each door's own answer.object.zod.ts: theactionsguidance and the comment abovemembershipKeysnameactionLayoutas a pair-only key besidefieldGroupsandrelatedLists.check:generated(no drift); ui 16 files pluspackages/i18n/(122 files / 2134 passed, 13 skipped); spec 101 files namingObjectExtensionSchemaor 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/maind7411fa373merges cleanly.CUSTOM_ARRANGEMENT_KEYSthrough the one judge, so the mechanism applies as is. The five doors and where they call it:object_extension:objectExtensionItemRefusalinpackages/metadata-protocol/src/protocol-object-extension-item.ts;os validate:packages/cli/src/commands/validate.ts;os build:packages/cli/src/commands/compile.ts(both CLI doors throughpackages/cli/src/utils/extension-arrangement.ts);packages/cloud-connection/src/marketplace-install-local-plugin.ts;applyCustomArrangementinpackages/objectql/src/registry-custom-arrangement.ts, run last infoldExtendersOntoDefinition, skips a non-pair package's key and names it in a warning.The round-1 priority fold (
foldExtensionActionLayout,actionLayoutinOBJECT_FOLD_SCALAR_KEYS) is removed;registry.tsis back at main's 6426 lines.object_extensionsave withactionLayoutanswersVALIDATION_ERROR/ 400, one issue atactionLayout, 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 ownlocationsandorder(protocol-extension-arrangement.test.ts).actionLayoutno 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).$built-in inmorewith its reason, the Save never writes one there, and thepinneddescribe, the form help (11 locales) and the docs say the list page still draws its own Import / Export menu; themore: ['$import']examples are gone.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-shelltype-check;check:generated --fixregeneratedcontent/docs/references/**and rechecked green. Gate families this round's files touch: 25 run, exit 0;check:i18n-coverageexit 3, PREREQUISITE NOT MET (example apps unbuilt), NOT MEASURED locally, CI runs it. Lines in the seat fileobjectstack-seat2/36366-gates-ran.txt.ablation-replace.mjsreplacedlayout = { ...(layout ?? running), [scope]with{}as the base (blob67155de2c30c→6f6b1a29855b); 2 failed / 11 passed (arm by arm; the S2 tenant arm kept); restored blob equals HEAD's,git diff HEADempty.packages/spec/src/data/field-customization.ts,packages/spec/src/data/object-extension-arrangement.test.ts,packages/metadata-protocol/src/protocol-extension-arrangement.tsand 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 withorigin/mainat4ef1ea9779(#36612 landed) inebd99fe0dd, then the changeset's Skills-docs line was changed. Only the families that merge touched were rerun, all exit 0:@object-ui/app-shelland@object-ui/i18ntype-check.check:i18nandcheck:i18n-stale-fill.gen:zh-hant(no diff).All of the following ran at head
564840dc1b, the final commit of round 1, after the merge oforigin/mainatceaa70efcc. Every heavy run went throughos-verify-lock.sh; each line quotes itsVERDICT.@objectstack/spectestcommand-exit 0)@objectstack/spectypecheckcommand-exit 0@objectstack/objectqltestcommand-exit 0)@objectstack/objectqltypecheckcommand-exit 0@objectstack/linttestcommand-exit 0)@objectstack/linttypecheckcommand-exit 0@objectstack/metadata-coretestcommand-exit 0)@objectstack/metadata-coretypecheckcommand-exit 0@objectstack/metadata-protocol@objectstack/metadata-protocoltypecheckcommand-exit 0@objectstack/platform-objectstestcommand-exit 0)@objectstack/platform-objectstypecheckcommand-exit 0@object-ui/types@object-ui/typestype-checkcommand-exit 0@object-ui/componentscommand-exit 0)@object-ui/componentstype-checkcommand-exit 0@object-ui/i18ncommand-exit 0)@object-ui/i18ntype-checkcommand-exit 0@object-ui/app-shelltype-checkcommand-exit 0@object-ui/app-shellcommand-exit 0)The app-shell tests at the final head are narrowed, and this is declared.
RecordDetailView,objectViewPageHeader, the design-mode header pins orPageHeaderActions, or whose names match those modules, 记录「…」里加「配置页签」:管理员原地调整记录页页签的顺序、显示隐藏和标题,取消或保存;自建应用写对象,安装来的应用写 .custom #36499's record tabs, or this card.vitest related: it ran out of heap at 4 GB.72ec1b2a2, before the merge: 2416 files passed, 1 skipped / 22791 tests (command-exit 0, the lock held for 5634 s). CI runs the whole suite.Found and fixed in this round:
@object-ui/app-shelltype-checkwas red with nine TS2353 errors. The save test'sinputhelper still typed the pins as a record of string arrays. vitest does not type-check, so the tests stayed green. Fixed in649fc028b6.Ablation (one reading): the More order
arrangedHeaderActionsinui/packages/types, the line that ranks amore-named action.scripts/ablation-replace.mjsreplacedconst moreAt = name && !seen.has(name) ? moreRank.get(name) : undefined;withundefined. The anchor count went 1 → 0 and the blob changed33d1f1de663b→2af6af57c9fb.@object-ui/typesis aliased tosrcinui/vitest.config.mts, so no build was needed.more-order tests went red: the side preview and the authoredpage:headerinRecordDetailView.actionLayout-36366.test.tsx, and the list toolbar inobjectViewPageHeader.actionLayout-36366.test.tsx. Their controls withoutmorestayed green.git checkout HEAD --. The blob after restore read33d1f1de663b(HEAD's), andgit diff HEADwas empty.Gates: dispatch-gates at 564840d
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 130 families. All 130 ran, one line each (command :: exit N) in the seat fileobjectstack-seat2/36366-gates-ran.txt.--ranreconciliation: "130 derived, 130 run, 0 NOT-MEASURED, 0 UNRUN".check:skill-examplesandcheck:dual-build-cjs-loads. Both read 0 at the same head after the client and ui closure builds.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.check:skill-frame-freshness: exit 0.check:dev-prereqs: exit 1, "The workspace is not built". Some workspace packages have nodiston this box. That is a machine-state reading, not about this diff.Acceptance notes
PUT /api/v1/meta/object_extension/crm_opportunity?package=com.example.crm.customwithactionLayout.list.pinnednaming 4 actions answered422INVALID_METADATA. The message read: "actionLayout.list.pinnednames 4 actions; at most 3 are drawn as buttons, and every other action goes to 「More」. Keep the first 3 and move the rest tomore."os validate/os build/os lint(object-action-layout-unknown/-not-placed) and by the design mode's Save.actions, so an action bound byobjectNamewould read as unknown there.packages/spec(object-action-layout.test.ts); the door'sINVALID_METADATA/ 422 is the live reading above. Since patch round 2 the writer refusal is pinned at the save door withVALIDATION_ERROR/ 400 (protocol-custom-arrangement.test.ts).registry.tsis a facade at its line ceiling. Since patch round 2 the fold lives inregistry-custom-arrangement.ts, andregistry.tsdiffers from main only in one docblock line (6426, the ceiling not raised).check:docs-transcript-driftderives 77 forvalidateandbuild, and four transcripts that quoted 76 now say 77:deployment/cli.mdx,deployment/validating-metadata.mdx,getting-started/build-with-claude-code.mdx,ui/react-pages.mdx.Import ▾menu: kept as is, listed as 待审假设 11.crm_opportunitydeclares no actions of its own. The record header, the side preview and the phone bar are covered by the unit tests below.designMode.recordTabsand this PR'sdesignMode.pinsare both kept in the 11 locales.de-quote-pairing-3876.test.tsrecounted by running it, 131.ObjectViewPageBarActionsreads its Object settings path, then this PR's list arm.exportDoorisexportPinned ? undefined : barEnd?.exportDoor, andmoreShownis!!objectSettingsPath || !!description || !!listFavorite || (ioInMore && (importInMenus || !!exportDoor)).overlap-check --branch=HEADatebd99fe0dd, exit 1):de-quote-pairing-3876.test.ts.protocol.meta-types-degenerate-derivation.test.tsandobject-lifecycle-panel-echo-decisions.test.ts.carrier: #36086), andskills/objectstack-ui/rules/actions.md(Skills follow-up of #36366: objectstack-ui actions rules do not teach the new actionLayout key (list and record arms, up to 3 pinned plus more) #36630).packages/cli/src/commands/compile.ts,packages/cloud-connection/src/marketplace-install-local-plugin.tsandpackages/metadata-protocol/src/protocol-object-extension-item.ts(step 8) still name onlyfieldGroups,relatedListsandplace; the code readsCUSTOM_ARRANGEMENT_KEYSand already refusesactionLayout. Comment-only, carrier: the seat.Verification
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.tsxImport ▾was.objectstack-seat2/36366-shots/):1-list-header-before.png: the bar withImport ▾.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