Skip to content

feat(app-shell): a row-table page block lists the rows a page api binding answers - #31883

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-oorsb5
Nov 9, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-oorsb5

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread

Fixes #31856

Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: none — skills/ teaches no product block (git grep tile-grid|usage-bar skills/ = 0)

维护者速读

  • 改了什么:控制台新增一个页面块 row-table,把页面 api 绑定读到的一组数据画成表格:列在元数据里声明(字段路径、标题、格式:文本 / 日期时间 / 枚举标签),每一行都画,没有数据时显示空状态文字。
  • 为什么改:云端的 AI 员工页(cloud#4073)和 AI 调用追踪页(cloud#4058)要列出接口返回的多行数据,现在只能用固定条数的文字行凑合;这个块让它们按真实行数显示。
  • 风险与回滚:纯新增,没有页面在用,现有块和页面不变;不改 @objectstack/spec,SDUI 清单不动。回滚即还原本 PR。
  • 先看:ui/packages/app-shell/src/console/blocks/productBlocks.tsx(readRowTable 的拒收判定与 rowTableCell)、ui/packages/types/src/zod/product-blocks.zod.ts(RowTableColumnSchema 的严格校验)、ui/packages/cli/src/__tests__/registered-types-validate-ratchet-10859.test.ts(命名空间计数 306→307)。
  • 两分钟验证:pnpm --dir ui exec vitest run packages/app-shell/src/console/blocks/__tests__/rowTable-31856.test.tsx packages/types/src/__tests__/product-block-arms-12197.test.ts,预期两个文件全绿。
  • 需要你做的:无,席位落地。

What changes

  • @object-ui/app-shell: the row-table block, the sixth product-page block beside hero, stat, usage-bar, checklist and tile-grid, registered under the app-shell namespace with the bare row-table as its authorable key and the same API_BINDING_INPUT.
    • rows: a list, or one whole ${…} hole naming a list in the bound data, as tile-grid's items. Every row is drawn, in order, with no cap.
    • columns: { path, label, format?, enum? }, drawn in the order written. The keys are resultDialog.fields' vocabulary (path / label / format, text shared); datetime and enum are this block's own formats. path is read per row with selectElementApiPath (@object-ui/react), the binding's own path reader.
    • text draws as written (an object as compact JSON); datetime goes through formatDateTime(value, { locale: useDisplayLocale(), style: 'compact' }) from @object-ui/core, the datetime field cell's face, in the display zone the host declared, else the viewer's; enum draws the label enum: { value: label } names, and a value the map does not name as written.
    • A field the row lacks, null or '' draws —. An empty list draws emptyLabel, else the existing table.noRows key. No new i18n key.
    • A rows hole that resolves to anything but a list, or a column the block cannot draw (no path, an unknown format, enum with no map), draws an error face with the binding's own title (element.component.apiUnreadable) and a sentence naming the input. Never the empty state.
  • @object-ui/types: its arm. RowTableBlockSchema and RowTableColumnSchema, with the TS twins RowTableBlockSchema, RowTableBlockProps and RowTableColumn, joining ProductBlockComponentSchema, so objectui validate claims the type. The arm is strict: an unknown format, an enum column with no map, a map on a column that is not enum, a path that is not a dotted path, an undeclared key (the card's prose word header included) and an empty columns are refused. dataSource is the spec's ElementApiDataSourceSchema, by reference. The mirror-parity pin registers both pairs (199 → 201) as spec-derived.
  • @object-ui/cli: known-schema-types.ts regenerated (row-table, app-shell:row-table). The 10859 ratchet's namespaced count moves 306 → 307 for app-shell:row-table, a named stopgap raise of that one key, written beside the objectui#13301 raise it follows: the namespaced twin is refused at type by design so the bare key stays the one authorable spelling. Both productBlocks-namespace-13301 lists (app-shell and cli) gain row-table.
  • Docs: the app-shell README block table and a row-table example, content/docs/frontend/data-source.mdx and content/docs/ui/pages.mdx (the block lists that take the api binding).
  • No @objectstack/spec change. The type parses through PageComponentSchema.type's open string arm, and component-type-unknown claims only colon namespaces. The SDUI manifest does not move: @object-ui/app-shell is not one of the manifest generator's registry modules (node scripts/check-sdui-manifest.mjs: exit 0, 106 components).

Tests

  • rowTable-31856.test.tsx (new, eight cases, through the real SchemaRenderer and the host apiFetch): the registration's inputs; every bound row in authored column order; enum labels and an unnamed value drawn raw; datetime in a pinned display zone (Asia/Tokyo) equal to formatDateTime's face; — for a missing and a null field; the authored empty label and the bundle's; a non-list hole draws the error face and not the empty state; an unknown format draws the error face.
  • product-block-arms-12197.test.ts: the row-table fixture joins the shared accept / content-channel / undeclared-prop loop, plus six row-table cases (literal rows, unknown format, enum without a map and a map without enum, a non-dotted path, header, empty columns and a partial hole).
Runs (branch on 1ff1d45; head 5e6d804 merges main a57a007, which moves no `packages/spec` or `ui/packages` file, so the runs below stand)
  • pnpm --dir ui exec vitest run packages/app-shell/src/console/blocks/: Test Files 4 passed (4), Tests 39 passed (39) (re-run after the last source commit).
  • pnpm --dir ui exec vitest run packages/app-shell/src/console/: Test Files 267 passed (267), Tests 2038 passed (2038).
  • pnpm --dir ui exec vitest run packages/types/: Test Files 389 passed (389), Tests 10489 passed (10489); pnpm --filter @object-ui/types run type-check (the mirror-parity type legs): exit 0.
  • pnpm --dir ui exec vitest run packages/cli/: Test Files 31 passed (31), Tests 420 passed (420).
  • pnpm --filter @object-ui/app-shell run type-check (tsc --noEmit and tsc -p tsconfig.test.json, test files included): exit 0.
  • pnpm --dir ui exec vitest run scripts/: Test Files 170 passed | 2 skipped (172), Tests 5027 passed | 2 skipped.
  • ui censuses, each exit 0: check:spec-symbols, check:component-surface-parity, check:element-data-source-declaration, check:registry-bare-names, check:doc-types, check:doc-snippets (537 of 537 blocks), check:doc-examples, check:i18n-keys, check:i18n-drift, check:new-line-citations, check:control-bytes.
  • dispatch-gates --commands: 69 families derived, 69 run, each exit 0 (--ran: 0 NOT-MEASURED, 0 UNRUN; the list is identical after the merge of main). check:skill-examples first answered exit 3 (client SDK unbuilt) and was re-run green after building it; check:query-options-erasure was re-run green with a longer timeout.
Ablation (scripts/ablation-replace.mjs, restored to the HEAD blob)
  • const rows = props.rows; → const rows = Array.isArray(props.rows) ? props.rows : []; (the non-array guard made an empty list): exactly "refuses a hole that resolves to a non-list with the error panel, never the empty state" goes red, 1 failed | 7 passed; restored, git diff HEAD empty.

Acceptance notes

  • Consumers: cloud#4073 (the AI workforce page, which replaces its capped element:text rows with this block) and cloud#4058 (the AI call trace page). Neither is in this repo; no page here places the block yet.
  • os validate does not judge the block's properties, as for every product block: there is no ComponentPropsMap row, so the strict arm is judged by objectui validate / safeValidateSchema. The seat ruled this a family question for all six blocks, not this card's.
  • The error face is drawn by the block, not by ElementDataSourceErrorPanel: that panel marks a consumer of the object-binding gate (check:element-data-source-declaration refused the first draft), which an api-bound product block is not. It uses the same classes, role="alert" and the binding's own title key.
  • NOT MEASURED locally: check:sdui-registration-pins (it weighs a built console bundle; CI's Build & E2E UI builds it). check:type-check-debt ran under the verify lock: exit 0.

…ding answers

The sixth product-page block: rows from a list (or a whole hole naming one
in the bound data), declared columns with path, label and a text, datetime
or enum format, every row drawn, an empty label, and the binding's error
panel for a list it cannot read. Its strict @object-ui/types arm lands with
it, and the cli's known types are regenerated.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTx4LkMSXMTUGZuzQW
…nding's panel

The object-binding error panel marks a consumer of ElementDataSourceGate,
which an api-bound product block is not.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTx4LkMSXMTUGZuzQW
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 9, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 5e6d804d82bcf99052eefbaa44531f1a42f1bf09
Local-runs: none

This is the lane seat's own review of record, owed by the Clause-②: yes declaration (face declaration). packages/spec/** and the server are untouched. check-governed-merges --pr 31883 reads NOT governed: 0 of 17 paths, 596 lines. dispatch-gates --tier gives no path-derived mandate. The precedent is #31370, which added a registered widget's @object-ui/types arm and was reviewed at TIER_DEFAULT.

① Derived judgments

  • @object-ui/types is published and only widens.
    • RowTableBlockSchema joins ProductBlockComponentSchema.
    • RowTableColumnSchema and the TS twins (RowTableBlockSchema, RowTableBlockProps, RowTableColumn) are new exports.
    • No existing arm changes. A document that parsed before parses the same way. A document typed row-table was refused before and is now judged by the new strict arm.
  • The arm's refusals:
    • an unknown key, at properties and in each column;
    • a column path outside the binding's own path grammar, with a message naming the grammar;
    • a format outside text | datetime | enum;
    • enum without format: 'enum', and format: 'enum' without enum, each at the enum path;
    • an empty columns;
    • body and children, by the family's tombstones.
      The api binding is the spec's ElementApiDataSourceSchema, by reference (apiBinding()).
  • @object-ui/app-shell is private. It adds RowTableBlock and its registration under app-shell with the bare row-table.
    • The renderer re-judges what it reads. A rows hole that resolves to a non-list, or a column the arm would refuse, draws the error face naming the input, and never the empty state.
    • Cells are read with selectElementApiPath. Datetime goes through formatDateTime in the display locale, and it re-renders when the host's display zone changes.
    • An enum value the map lacks is drawn raw.
  • @object-ui/cli: known-schema-types.ts is regenerated with row-table and app-shell:row-table.
  • Metadata-protocol: added is RIGHT, as ruled in amendment 6735476936: a page author can write a new type with judged keys. The PR body carries Skills-docs: none — ….
  • Accept sets: one widening, the row-table arm. There is no narrowing.

② Semver level

  • .changeset/31856-row-table-block.md marks @object-ui/types as minor, and @object-ui/app-shell and @object-ui/cli as patch.
  • Both declaration lines are at line start, in the changeset and in the PR body.
  • That is RIGHT: the protocol addition is minor on the package that publishes the arm.

③ Boundary flags

  • Accepted deviations, as the report names them:
    1. NAMESPACED_REFUSED_AT_TYPE goes 306 → 307. This is a named one-key stopgap raise for app-shell:row-table, as objectui#13301 did for the five.
    2. The error face is drawn by the block itself, with the binding's classes, role="alert" and its apiUnreadable title. Importing the panel made check:element-data-source-declaration read productBlocks.tsx as an object-binding consumer.
    3. Mirror pairs go 199 → 201.
    4. One namespace-13301 test title drops the word "five".
  • NOT MEASURED: check:sdui-registration-pins, which needs the console bundle. CI measures it.
  • open_questions: none.

Implemented-by: claude/project-thread-oorsb5
Reviewed-by: session_01QsR2jVEjiYrK7onirxUGyo

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo

席位核对 · ACCEPT · 2026-11-09T09:40Z · head 5e6d804d82bcf99052eefbaa44531f1a42f1bf09

Seat domain:ui#3 reviewed the diff of its own dispatch for #31856. The card thread is session_01QsR2jTx4LkMSXMTUGZuzQW, and the os-dev-report is 6736548473. I checked against GitHub, not against the report.

  1. Shape: 17 files, +570 / -26, draft on main, Fixes #31856.
    • The row-table block is the sixth app-shell product block, registered beside tile-grid with API_BINDING_INPUT. It takes rows (a list, or a whole ${…} hole), columns (path / label / format: text | datetime | enum / enum) and emptyLabel.
    • Its strict @object-ui/types arm is RowTableBlockSchema.
    • The cli's known-schema-types is regenerated.
    • The docs are three pages.
  2. Premise: at 1ff1d45d, no api-bound block drew rows. The cloud lane shows capped element:text rows as a stopgap (cloud#4073, cloud#4058). The step-1 report is 6735450873, and the amendment is 6735476936.
  3. Gates and check-runs:
    • 61 runs on this head: 51 success, 10 skipped, 0 red. mergeable_state is clean.
    • Dev: 69/69 derived gates exit 0, with --ran reconciled.
    • By hand, all green: blocks 39/39, app-shell console/ 2038/2038, types 10489/10489, cli 420/420, ui scripts/ vitest, and the ui censuses (check:spec-symbols included).
    • The non-array guard ablation turns exactly its pin red, and it restores clean.
  4. Declaration review: TIER_DEFAULT PASS, record 6736580074 on this head.
  5. Tests read:
    • Column order.
    • Datetime in a pinned display zone.
    • Enum labels, with an unmapped value drawn raw.
    • A missing field reads —.
    • The empty state: emptyLabel, else table.noRows.
    • A non-array hole draws the error face, not the empty state.
    • An unknown format is refused. The arm pins a refused path, a refused format and the enum pairing.
  6. Accepted deviations:
  7. Landing:

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 9, 2026 09:41
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge November 9, 2026 09:41
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit ac8fede Nov 9, 2026
62 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-oorsb5 branch November 9, 2026 10:01
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
objectstack-ai#35928) (objectstack-ai#36316)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XTRdLmK9YYgMSCJ7NH2PuUY)_

repo:objectstack#7 · zhuangjianguo · session_01QsR2jVTYADzVWfarACx5j3

Fixes objectstack-ai#35928

Clause-②: yes (widening: one new public read, `POST
/api/v1/automation/_record-starts`, and the UI exports that read it)
Metadata-protocol: added
Skills-docs: none — no skill under `skills/**` teaches the console's
stage confirms; `content/docs/automation/flows.mdx` and
`content/docs/frontend/plugins/plugin-grid.mdx` document the read and
the list in this change.
Ruling-ref: 7073655354

## 维护者速读

-
用户在列表单元格或记录页改阶段时,确认框在原来那句话下面列出这次改动会启动的流程名称(按用户语言显示),带审批的流程标「发起审批」;以前只写「可能触发相关自动化」。
- 属于行内编辑专题,按维护者的裁定「能改这条记录的人都看到流程名称」,让用户确认前就知道保存后会发生什么。
- 出错时最多是清单少列或不显示,确认框退回今天那句话,保存本身不受影响;整个改动可以直接撤回。
- 无。

## What changes

**Server (one new read).**

- `@objectstack/spec/api`: `RecordUpdateStartsRequestSchema` (`{ object,
recordId, changes }`, strict), `RecordUpdateStartSchema` (`{ name,
label, startsApproval }`), `RecordUpdateStartsResponseSchema`, and the
contract entry `listRecordUpdateStarts` (`POST
/api/v1/automation/_record-starts`). `_record-starts` joins the
`/automation` domain's reserved position literals (underscore-led, so
the package-namespace install gate is not narrowed).
- `@objectstack/spec/contracts`: `RecordUpdateStartsInput` and the
optional `IAutomationService.listRecordUpdateStarts`.
- `@objectstack/spec/automation`: `recordChangeTriggerHookEvents` /
`recordChangeTriggerFiresOnUpdate`, the record-change token grammar
MOVED out of `@objectstack/trigger-record-change` (whose
`triggerTypeToHookEvents` now delegates to it), so the trigger and the
preview read one rule.
- `@objectstack/service-automation`:
`AutomationEngine.listRecordUpdateStarts` (`record-update-starts.ts`). A
flow is asked only when it is enabled and armed on a `record_change`
trigger for this object whose token binds an update; whether it starts
is `startConditionHolds`, the one start-condition gate every run attempt
passes, over the variables `seedRunVariables` seeds (`record`, its
flattened fields, `previous`). The approval mark is the presence of an
`APPROVAL_NODE_TYPE` node (ADR-0019). A condition that throws is not
listed. Hooks are never listed (ADR-0077 §2).
- `@objectstack/runtime`: the `/automation` domain's `_record-starts`
door, mounted in the dispatcher plugin and recorded in the route ledger.
Order: query parameters refused `400 VALIDATION_ERROR`; body parsed
through the request schema (`400 VALIDATION_FAILED`); `501` when the
engine has no preview; the record read AS THE CALLER through the `/data`
door's own `get` (`callData`), so an unreadable record answers `404
RECORD_NOT_FOUND` exactly like an absent one and the engine is never
asked; a read that answers no record is refused the same `404`; every
`changes` key must be a declared field of the object (else `400
VALIDATION_FAILED` on `changes.KEY`, the engine never asked); then the
engine is handed `previous` = the record read, `record` = that record
with `changes` applied, and the caller's `userId` / `tenantId`.
Anonymous `401`.
- `@objectstack/client`:
`client.automation.listRecordUpdateStarts(request)`.

**UI (two confirms, one reader).**

- `@object-ui/plugin-detail`: `stageChangeStarts.tsx` —
`useRecordUpdateStarts(ask)` (asks the route once per pending move
through the host's `apiFetch`, parses the answer through
`RecordUpdateStartsResponseSchema`, answers `[]` while in flight,
refused, failing, malformed or empty) and `StageChangeStarts` (the list
under the sentence: each flow by its label translated through
`activeFlowsBundle` + the spec's `translateFlow`, the flow runner's
reading; an approval flow marked). Exported for the grid.
- Record page: `recordPathStageChange.tsx` draws it in both
confirmations (the path's `AlertDialog` and the header stage menu's
`RequiredFieldsDialog`, via a new optional `notice` slot in
`@object-ui/fields`).
- List cell: `ObjectGrid`'s state-machine confirm draws it;
`StateChangeConfirm` gains an optional `ask` (the row's record id and
the move).
- `@object-ui/i18n`: `activeFlowsBundle` moves here from
`@object-ui/app-shell`'s module-internal `utils/flowsBundle` (its three
app-shell importers repointed), since the confirms' packages do not
depend on the console; two keys in all eleven packs:
`detail.stageChangeStartsHeading`, `detail.stageChangeStartsApproval`.
- The confirm's sentence is never replaced (not this card: objectstack-ai#35685 S3). A
move that starts nothing, and a failed read, leave the confirm exactly
as today.

Docs: `content/docs/automation/flows.mdx` (§ Which flows a record update
would start), `content/docs/frontend/plugins/plugin-grid.mdx` (the
confirm now names the flows). Changesets:
`35928-record-update-starts-read.md`,
`35928-stage-confirm-names-flows.md`, both carrying the Clause-② and
Metadata-protocol lines.

## Tests

- Engine `record-update-starts.test.ts` (8): condition holds / does not
hold; approval mark CONTROL (an approval flow and a plain flow side by
side); no condition; create / delete / other object / obsolete never
named while `record-before-write` is; an unevaluable condition not
named; an unarmed engine answers nothing; `current_user` evaluated as
the writer named.
- Door `automation-record-update-starts.test.ts` (13): a member is
answered (body parsed through the response schema) and the engine is
handed exactly the record read as the caller; empty list; unreadable
record `404 RECORD_NOT_FOUND` with the engine never asked; unreadable
and absent answer alike; anonymous `401` before any read; malformed body
`400 VALIDATION_FAILED`; query parameter `400 VALIDATION_ERROR`; `501`
without the preview; a GET of the literal is not this door.; a change
key that is not a field `400 VALIDATION_FAILED` on that key (an
undeclared key, a key off the field-name grammar, an inherited member
name), the engine never asked; a change on an object the registry does
not declare refused alike; a read that answers no record `404
RECORD_NOT_FOUND`, never previewed; and the ledger row names
`RecordUpdateStartsRequestSchema` / `RecordUpdateStartsResponseSchema`,
as the clone and publish-drafts suites pin theirs.
- Spec `automation-api.zod.test.ts`: contract count and the new entry's
method/path; request strictness; a leaked `condition` / `nodes` dropped
by the response parse. Each `changes` key is held to the field-name
grammar (refused: a dotted, an upper-case, a digit-initial, a spaced and
an empty key).
- List cell, in its confirm's harness
`ObjectGrid.autosave-35685.test.tsx` (new top-level describe, 3): list
(request body pinned, labels, approval mark under the unchanged
sentence), empty, failure (and Change still saves the move).
- Record page, in each confirm's harness (new top-level describe in
each, 3 + 3): `record-path.stageChange-28199.test.tsx` (the path's
confirmation) and `RecordStageMenu-35891.test.tsx` (the header stage
menu's dialog): list, empty, failure (a refused read, a network error
and a malformed envelope each draw no list).
- `stageChangeStarts-label-35928.test.tsx` (2): a flow named by its
translation where the app's `flows` bundle has one, by its authored
label where not; nothing drawn for no flows.
- Ablation (one-shot under the verify lock, restored by trap, `git diff
HEAD` on both sources empty): removing the `StageChangeStarts` render
from `ObjectGrid.tsx` and from both confirmations in
`recordPathStageChange.tsx` turns exactly the three `list:` pins red
(`Tests 3 failed | 6 passed`); empty and failure pins stay green, as
they should.

## Acceptance notes

- Card acceptance: "Changing a stage that starts a flow shows that flow
by name in both confirms" — pinned in both confirms (list cell, and both
record-page confirmations) and measured live (below); "a stage with
nothing attached shows no list" — the empty pins; "a read failure falls
back to the generic sentence" — the failure pins.
- Residual, stated in the contract docblocks and `flows.mdx`: the
preview binds the caller's user id and tenant only, not their positions,
request params or expand as a live run does, so for a condition reading
those the preview can differ from the save in either direction (it can
miss a flow, or list one a negated test of the writer would stop); the
seat files the follow-up for positions.
- Residual (not widened here): conditions are judged on the record as
the CALLER reads it (field-level security applied), so a condition that
reads a field the caller cannot see is judged on what they see, and one
that throws on a missing field is not listed. The preview can therefore
under-list for a caller with masked fields; it never reveals a masked
value. Documented in `flows.mdx`.
- Residual: the header stage menu's dialog asks with the stage alone;
values typed into that dialog for required fields are not part of the
preview's `changes`.
- Two existing confirm suites (`RecordStageMenu-35891`,
`record-path.stageChange-28199`) now stub `fetch` with a `501` answer in
`beforeEach`, so the new read does not leave for the network under test;
no existing assertion changed. Across the touched UI packages the run
shows 0 `ECONNREFUSED`.
- The approval mark is the ruling's test, "the flow contains an approval
node". Measured live, showcase's `showcase_project_closure` reaches its
sign-off approval through a `subflow` node (the approval node lives in
`showcase_closure_signoff`), so the preview lists it with
`startsApproval: false`. Following subflow references for the mark is a
reading beyond the ruling: filed objectstack-ai#36322.
- Overlap (`overlap-check.mjs` at the head below, exit 1, reported and
not merged around): objectstack-ai#36296 and objectstack-ai#36236 have landed and are merged in.
objectstack-ai#36335 (part of objectstack-ai#35979) moves `activeFlowsBundle` into `@object-ui/i18n`
too and conflicts in `ui/packages/i18n/src/flowsBundle.ts`,
`ui/packages/i18n/src/index.ts` and
`ui/packages/app-shell/src/views/metadata-admin/previews/flow-label-translations.tsx`;
it lands after this PR and drops its copy of the move. Every other open
PR that shares a file merges cleanly.
- Declaration correction: the claim and ruling 7073655354 read
`Metadata-protocol: none`, but the three new `@objectstack/spec/api`
schemas enter the `api` authorable-surface shard (10 keys), which `Check
Changeset` reads as `added` (`none-baseline-moved`). The line is `added`
and `@objectstack/spec` is graded `minor`, as objectstack-ai#32251, objectstack-ai#35789 and objectstack-ai#31883
were for new api request/response schemas. No flow or other metadata key
is added, so the ruling's "no new authorable key" still holds.

## Verification

- Read first: `packages/runtime/src/domains/automation.ts`
`respondToRecordUpdateStarts` (the order of refusals and the
caller-scoped read that admits the engine), then
`packages/services/service-automation/src/record-update-starts.ts`
(which flows are asked and the one gate they pass).
- Live, on a fresh showcase (`pnpm dev -- --fresh`), as a member created
by the admin (`role: user`, not an admin):
- `Website Relaunch` `status: active → completed`: `200
{"flows":[{"name":"showcase_project_closure","label":"Project Closure
with Sign-off (nested pause)","startsApproval":false}]}`
  - same record `→ on_hold` (CONTROL): `200 {"flows":[]}`
- same record `budget 150000 → 250000`: `200
{"flows":[{"name":"showcase_budget_approval","label":"Project Budget
Approval","startsApproval":true}]}`
- an absent record: `404 RECORD_NOT_FOUND`; anonymous: `401
UNAUTHENTICATED`; a body without `changes`: `400 VALIDATION_FAILED`
naming `changes`.
- Zone 2 premise, measured before any code: the same kind of member
reads `GET /api/v1/meta/flow` (200, 33 flows with labels, the admin's
set) and `GET /api/v1/meta/flow/showcase_closure_signoff` (200, its
nodes).
- The console itself was not driven in a browser (its dist is not built
in this container); both confirms are pinned through the real components
above.
- Local, all under `scripts/pm/os-verify-lock.sh` (shared box):
- touched UI packages (`plugin-detail`, `plugin-grid`, `fields`,
`i18n`): `Test Files 1131 passed | 2 skipped` · `Tests 13186 passed | 38
skipped`; after folding the pins into their harness files the three
files plus the label file: `Tests 77 passed (77)`.
- type-check: `tsc --noEmit` (src and test projects) for `i18n`,
`fields`, `plugin-detail`, `plugin-grid`, and src for `app-shell`;
`service-automation`, `runtime`, `client` exit 0.
- server: engine 8/8, door 9/9, `route-ledger.conformance` +
`automation-api-contract-mounts` + `http-dispatcher` green, client
conformance 11, spec `automation-api.zod` + `address-grammar` 87,
`trigger-record-change` 122.
- `dispatch-gates.mjs --commands` (129 families) run and reconciled with
`--ran`: `129 run, 0 NOT-MEASURED`. First pass reds were all this diff's
own owed artefacts, fixed and re-run green: spec `gen:api-surface` /
`gen:docs` / `gen:export-origins` / `gen:declaration-map` /
`gen:strictness-ledger` (api count 533 → 536: the three new schemas),
the route-ledger census sentence (149 → 150), and
`check:test-source-alias` (a spec/automation alias in the trigger
package's vitest config; the door test pays `@objectstack/metadata` at
collection).

- Re-verified after the hand-over (seat 7), main `b3bcfefc` merged in at
`472457d9`, the generated surfaces regenerated at `6bd111ff`
(`gen:schema` → spec build → `gen:api-surface` → `gen:export-origins` →
`gen:declaration-map` → `gen:docs` → `gen:strictness-ledger`;
`check-regen-pending` clear), the changeset correction at `99bfd857`.
Under the verify lock at `6bd111ff`:
- type-check exit 0: `@object-ui/i18n`, `fields`, `plugin-detail` (src
and test; the hand-over's stale-dist red is gone after the closure
build), `plugin-grid`, `app-shell`; `@objectstack/spec`, `runtime` (src
and test layer, after building `@objectstack/driver-turso`),
`service-automation`, `client`, `trigger-record-change`.
- tests: `runtime` Tests 11745 passed | 25 skipped; `service-automation`
4224 passed; `client` 820 passed; `trigger-record-change` 122 passed;
spec `automation-api.zod` + `address-grammar` 87 passed; `plugin-detail`
+ `plugin-grid` + `fields` + `i18n` Test Files 1135 passed | 2 skipped,
Tests 13300 passed | 38 skipped.
- `dispatch-gates.mjs --commands` (129 families): run at `99bfd857` (the
six that started before that commit re-run on it) and reconciled with
`--ran`: `129 derived, 128 run, 1 NOT-MEASURED, 0 UNRUN`. The one
NOT-MEASURED is `check:dual-build-cjs-loads` (exit 3, PREREQUISITE NOT
MET: it needs every package's dist, which this container does not
build); CI runs it in its Lint jobs, green at this head.
- CI at `99bfd857`: every check-run green or skipped by design. Check
Changeset shows two runs: the `synchronize` run (09:07Z, before the body
said `added`) red, the `edited` run (09:08Z) green.
- Contract review rework (L2 at `99bfd857`), at `3ba211dc` and
`d2279e6c` (head):
- the door refuses a change key that is not a declared field of the
object and a read that answers no record; the request schema holds each
change key to the field-name grammar; the ledger row is pinned; the
preview's caller binding is stated in the contract docblocks and
`flows.mdx`; `_record-starts` joins the address module's literal list.
- ablation, one-shot under the verify lock (`ablation-replace.mjs`,
restored by trap, blob == HEAD and `git diff HEAD` empty after each):
the declared-field refusal disabled → `Tests 2 failed | 11 passed` (the
two refusal pins); the no-record refusal disabled → `Tests 1 failed | 12
passed` (its pin).
- local: `runtime` Test Files 637 passed, Tests 11749 passed | 25
skipped; door suite 13/13 at the head; spec `automation-api.zod` +
`address-grammar` 88 passed; type-check exit 0 for `spec`, `runtime`
(src and test layer, at `d2279e6c`), `service-automation`, `client`,
`plugin-detail`.
- `dispatch-gates.mjs --commands` at `3ba211dc`: `129 derived, 129 run,
0 NOT-MEASURED, 0 UNRUN`; the 37 families that read test files re-run at
`d2279e6c` (a one-line test-type fix), all exit 0.
- CI at `d2279e6c`: 70 check-runs, 61 success and 9 skipped by design,
Check Changeset green.
- Delta round (L1-d 7078831268, L2 nit N3 from 7078841748), at
`41487226` (head): the 401 and 501 pins assert `body.error.code`
(`UNAUTHENTICATED`, `NOT_IMPLEMENTED`) beside the status; the spec
changeset names the undeclared-change-key `400 VALIDATION_FAILED` and
the no-record `404` among the door's refusals; the caller-binding limit
reads "can differ from the save in either direction" in the request
schema's docblock, `RecordUpdateStartsInput` and `flows.mdx`. Door suite
13/13; type-check exit 0 for `spec` and `runtime` (src and test layer);
`dispatch-gates.mjs --commands` at `41487226`: `129 derived, 129 run, 0
NOT-MEASURED, 0 UNRUN`; CI at `41487226`: 70 check-runs, 61 success and
9 skipped by design.

https://claude.ai/code/session_01FEkQ5keqTTiV8ptWFNc6ZF
https://claude.ai/code/session_01QsR2jVTYADzVWfarACx5j3

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

<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jVTYADzVWfarACx5j3 -->

---------

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 size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

1 participant