Skip to content

feat(app-shell): the action result dialog draws table answer fields, and Import Users shows its result per row - #34647

Merged
os-zhuang merged 8 commits into
mainfrom
claude/issue-33187-action-answer-table
Nov 17, 2026
Merged

os-zhuang merged 8 commits into
mainfrom
claude/issue-33187-action-answer-table

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Part of #33187. This PR draws the per-row import result. One part stays open: the Add User result still does not say that an email-only re-add was already pending. The renderer contract cannot hide a false row on a fresh add, so that half moves to #34651 (see Acceptance notes).

Clause-②: yes (widening)
Metadata-protocol: none
Skills-docs: follow-up #34648
Ruling-ref: 6915677641

维护者速读

  • 改了什么:控制台的动作结果弹窗和预读面板现在能画 table 格式,按列逐行显示;托管环境「设置 → 用户 → 导入用户」的结果从一大块 JSON 变成逐行表格(邮箱、是否成功、是否已待激活、是否已通知托管方及原因、未添加原因、未生效的列、上级未关联)。
  • 为什么改:您在本卡选了 A(记录 6915677641);spec 半边(feat(spec): an action's answer fields gain a table format, drawn from its columns #34500)已落地,这是渲染半边。
  • 风险与回滚:只加不减。其他五种格式照旧;唯一行为变化是 code-list 只在值为字符串数组时按代码列表画,否则画 JSON(契约本来就这么写)。回滚即撤本 PR。
  • 先看:ui/packages/app-shell/src/views/ActionResultDialog.tsx(TableBlock / TableCellValue,null 画空格;ui/packages/core/src/actions/ActionRunner.ts 的 columns 类型从契约派生)、packages/platform-objects/src/identity/sys-user.object.ts(导入结果的列)、packages/spec/liveness/action.json(columns 转 live)。
  • 两分钟验证:cd ui && pnpm exec vitest run packages/app-shell/src/views/__tests__/ActionResultDialog.test.tsx,预期 25 例全绿。
  • 需要你做的:本 PR 改了 packages/spec/src 的描述文字,席位会请您批一次。「加用户」重加一个待激活的人时仍不显示「已待激活」,已另立 Add User on a managed environment: an email-only re-add of a pending person does not say it was already pending #34651(排在 PR feat(plugin-auth): import-users assigns positions from a positions column #34531 之后)。

What changes

  • Console renderer (ui/packages/app-shell/src/views/ActionResultDialog.tsx). ResultField gains a table branch, following the table bullet of the resultDialog renderer contract in packages/spec/src/ui/action.zod.ts:
    • an array value draws as a table, one row per element and one cell per entry of columns, in order; the header is the column's label (an inline locale map is resolved), falling back to its path;
    • a cell reads the column's dot path in the element; a missing key and a null both draw an empty cell, never the text null (renderer note 1 of 6934494528);
    • a present value draws in the column's format (omitted: text) when it fits it (qrcode / secret / text a string, code-list an array of strings); any other value, and every json cell, draws as one line of JSON;
    • an element that is not a plain object (an array, null, a scalar) draws as compact JSON in its row's first cell, the other cells empty;
    • [] draws the header over the existing table.noRows line ("No rows to display"); no new UI string, so no @object-ui/i18n pack is touched;
    • a value that is not an array draws as json; a missing value is skipped, as for any field.
      The dialog widens from max-w-lg to max-w-3xl when it draws a table. The preflight panel draws its fields through the same exported ResultField (ActionParamDialog.tsx#PreflightPanel), so preflight.fields gets the table with no further change.
  • @object-ui/core (r2, review nit N2). ResultDialogFieldSpec in ui/packages/core/src/actions/ActionRunner.ts gains columns?: SpecResultDialogField['columns'], derived from the contract row as its label and format already are; no hand-written copy. The renderer now reads columns off the runner's own type, so its local intersection type is gone and the test casts (as never) are dropped.
  • code-list fit test (renderer note 2). The field-level fit test is now the contract's: an array of strings. Before, any array drew as a code list. One shared valueFitsFormat serves the field and the cell.
  • sys_user.import_sso_users (packages/platform-objects/src/identity/sys-user.object.ts). The rows field changes from json to table. Its columns are read off the door's row answer (ImportSsoUserRowResult in packages/plugins/plugin-auth/src/pending-sso-users.ts, unchanged): Row, Email, Succeeded (ok), Already pending, told again (alreadyPending), Hosting organization told (host.notified), Why not told (host.reason), Not added because (error.message), Not applied (notApplied, a code list) and Manager (managerError). The three summary counts are unchanged.
  • Spec wrap-up (prose and ledger only; no key, format value or refusal changes):
    • columns' describe loses [PLANNED — not yet rendered] and the "draws its label alone" sentence; the field format describe loses the marker too;
    • N3: the table bullet now says "not a plain object (an array, null or a scalar)";
    • the bullet and the column format describe now say that a null cell value draws an empty cell. This writes renderer note 1 into the contract, so the renderer and the text agree. It goes one sentence past the delta's list, and the contract review should read it;
    • (r2, S1 of the contract review 6939815806) the table bullet and the column format describe now say that inside a cell text and code-list draw the value alone with no copy control, while secret keeps its mask, reveal and copy and qrcode keeps its code and copy. Prose only: no key, value or behaviour moves;
    • packages/spec/liveness/action.json: preflight.fields.columns and its three children go planned → live, with evidence anchored on ResultField, TableBlock, TableCellValue and PreflightPanel. The resultDialog row's note is updated, and liveness/state-counts/action.md is regenerated (live 79 → 82, planned 5 → 2).
  • Docs (r2): content/docs/protocol/objectui/actions.mdx lists table among the answer-field formats, with its columns and the refusals, in the contract's wording (the item both feat(spec): an action's answer fields gain a table format, drawn from its columns #34500 contract records left to the renderer half).
  • Changeset: .changeset/33187-action-answer-table-renderer.md, patch for @object-ui/app-shell, @object-ui/core, @objectstack/platform-objects and @objectstack/spec.

Tests

  • ui/packages/app-shell/src/views/__tests__/ActionResultDialog.test.tsx has two new top-level describes in the shared harness, 13 cases. They cover: the header (label, else path) and column order; one row per element, read at each path; the empty cell for a missing key and for null; a misfit value drawn as compact JSON (a boolean under text, an object, a non-string array under code-list, a number under secret); a secret cell staying masked; a non-plain-object element (array, null, string, number) in the first cell; [] drawn as header plus empty line; a non-array value drawn as json; a missing table field skipped; an inline locale-map column label; the preflight path through ResultField; and the code-list string-array fit with its CONTROL. The 12 existing cases are the CONTROL for the five formats. They pass unchanged.
  • packages/platform-objects/src/identity/cloud-managed-visibility.test.ts has a new top-level describe (2 cases): rows is a table whose column paths are the door's row members, in order, and the summary fields stay as they were (CONTROL).
  • (r2) ui/packages/core/src/actions/__tests__/ActionRunner.resultDialog.test.ts has a new top-level describe with compile-time pins, compiled by the package's tsconfig.test.json (chained off type-check): ResultDialogFieldSpec['columns'] is structurally Equal to the contract row's columns, is not any, and is optional.
  • No existing assertion changed.

Acceptance notes

Verification

Readings at head 82f384a572.

Ablations (each mutation landed on disk via scripts/ablation-replace.mjs, then restored to the HEAD blob)

On ui/packages/app-shell/src/views/ActionResultDialog.tsx, against ActionResultDialog.test.tsx (the test imports the source file, not dist/):

  • A1, table branch removed (format === 'table' returns json): 9 failed, 16 passed.
  • A2, null handling removed (only undefined draws empty): 1 failed, the null empty-cell case.
  • A3, code-list fit reverted to Array.isArray: 2 failed, the misfit-cell case and the field-level non-string array case.

Each leg restored: the blob after restore equals HEAD (eea0d1ad0638), and git diff HEAD is empty.

Local runs
  • vitest run packages/app-shell/src/views/__tests__/ActionResultDialog.test.tsx: 25 passed.
  • NOT MEASURED: the full @object-ui/app-shell suite (2284 test files). Stopped unfinished after about 49 minutes at --maxWorkers=2 on the shared box, with no failure line printed by then. This is a declared narrowing, and the Test UI check carries it.
  • pnpm --filter @object-ui/app-shell type-check (src and tsconfig.test.json): exit 0.
  • pnpm --filter @objectstack/platform-objects test: 123 files, 2046 passed. typecheck: exit 0.
  • pnpm --filter @objectstack/spec test: 847 files, 27134 passed, 1 todo. typecheck: exit 0.
  • Targeted spec run (action-answer-table-format, action-preflight, component, action tests): 616 passed.
  • pnpm --filter @objectstack/spec check:generated: all 14 artifacts current after a rebuild on the merged tree. check:liveness: exit 0 (action: live 82, dead 1, planned 2).
  • node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 98 commands on head 82f384a; each was run with stdin closed and its exit captured before any pipe. All 98 exit 0. Three needed a second run: check-plugin-teardown-shape --self-test first exited 3 (shallow clone; its fixture commit was fetched), check:dual-build-cjs-loads first exited 3 (no full build; it was rerun after turbo run build), and pnpm --dir ui exec vitest run scripts/ was killed by the OOM killer while sharing the box, then passed alone (171 files passed, 2 skipped). --ran reconciliation: 98 derived, 98 run, 0 NOT-MEASURED, 0 UNRUN.
  • Not run locally: a browser pass of the dialog on a managed environment.
Round r2 (head d854d10)

Old head 82f384a572 → new head d854d108bd. Commits: 02ecb823 (S1 prose and the actions page), d4a79d7f (core columns derived; renderer and tests use it), d854d108 (changeset names core and the cell sentence), plus merge 6dbbf712 of origin/main (PR #34531 included).

  • Ablations of the derivation, via scripts/ablation-replace.mjs on ActionRunner.ts, each read by tsc -p tsconfig.test.json in ui/packages/core: B1, the derived columns member deleted → exit 2, TS2339/TS2353 at the new pins; B2, columns restated by hand as an array of { path: string; label?: string } → exit 2, TS2344 (_IsTheSpecColumns false) and TS2353. Both legs restored: blob equals HEAD (f47c1e3b9716), git diff HEAD empty. A first B1 attempt passed an empty --replacement; the tool refused it (count rose 0, not 1) and nothing ran, so it was rerun with --delete. The S1 and docs edits are prose only, so they get no ablation.
  • @object-ui/core type-check and @object-ui/app-shell type-check: exit 0. ActionResultDialog.test.tsx and ActionRunner.resultDialog.test.ts: 2 files, 40 passed.
  • Spec: action-answer-table-format, action-preflight, component, action and check-liveness tests: 5 files, 699 passed. check:generated: all 14 current. A first run reported check:test-typecheck stale because tsc exited without diagnostics on the shared box; rerun alone under the lock: all current, nothing regenerated.
  • dispatch-gates --commands derived 119 commands on d854d108bd (the merge brought docs families). Each was run with stdin closed and its exit captured before any pipe: all 119 exit 0. --ran: 119 derived, 119 run, 0 NOT-MEASURED, 0 UNRUN.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmSYVw1sqCsaHSJS9JC

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

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/platform-objects, @objectstack/spec, touching 9 documentable anchor(s). ⚠️ 2 changed file(s) yielded no anchor (packages/spec/liveness/action.json, packages/spec/liveness/state-counts/action.md), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

9 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/api/client-sdk.mdx (via error.message (literal, a string literal in actions))
  • content/docs/api/error-handling-client.mdx (via error.message (literal, a string literal in actions))
  • content/docs/api/error-handling-server.mdx (via error.message (literal, a string literal in actions))
  • content/docs/api/wire-format.mdx (via error.message (literal, a string literal in actions))
  • content/docs/frontend/schema-rendering.mdx (via error.message (literal, a string literal in actions))
  • content/docs/kernel/runtime-services/settings-service.mdx (via error.message (literal, a string literal in actions))
  • content/docs/permissions/authentication.mdx (via alreadyPending (literal, a string literal in actions), error.message (literal, a string literal in actions), notApplied (literal, a string literal in actions))
  • content/docs/protocol/kernel/error-handling.mdx (via error.message (literal, a string literal in actions))
  • content/docs/protocol/kernel/lifecycle.mdx (via error.message (literal, a string literal in actions))

⛔ 1 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-0.mdx (via error.message (literal, a string literal in actions))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

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

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

Which tree this was computed on

This run read content/docs from da6fc296175d4567f42fe50cdad566dcee34399c — the merge of head d854d108bdf7ce0bcbcc456fd8ed980eea437147 into base 60552cd9398ad516ed367cd41530188fe97542be, which is what actions/checkout gives a pull_request run. Not the PR head.

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

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin da6fc296175d4567f42fe50cdad566dcee34399c && git checkout da6fc296175d4567f42fe50cdad566dcee34399c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 60552cd9398ad516ed367cd41530188fe97542be d854d108bdf7ce0bcbcc456fd8ed980eea437147 && git checkout -B drift-repro 60552cd9398ad516ed367cd41530188fe97542be && git merge --no-ff d854d108bdf7ce0bcbcc456fd8ed980eea437147

node scripts/docs-audit/affected-docs.mjs --json 60552cd9398ad516ed367cd41530188fe97542be

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

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmSYVw1sqCsaHSJS9JC

Final head for L1 and contract review · 2026-11-17T05:35Z
Final head: 82f384a572459b42c1212ba002f663e440b8a6ed (card #33187, Part of, area o2-B). CI at this head: every check completed success or skipped by path filter (Build Core, Test Core 1–8/8 + aggregate, Test UI 1–16/16 + aggregate, Build & E2E UI, Live E2E UI, Lint UI, Type Check UI, TypeScript Type Check, Lint & Repo Gates, Spec property liveness, Check Changeset, PR-body guards, Governed Surface Queue Guard); none red. The body was patched after the head (Skills-docs: follow-up #34648, follow-ups #34651 / #34652); the head did not move.
Owed: L1 (L1-a, first review) and a contract review at TIER_DEFAULT, since packages/spec/src/ui/action.zod.ts describes and packages/spec/liveness/action.json change. For the contract review: the null empty-cell sentence goes one sentence past the order's list, and text / code-list cells carry no per-cell copy (both under Acceptance notes). This PR touches packages/spec/src, so after both reviews sit on this head it goes to the seat for the approvers; it stays a draft and is not armed by the area.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 82f384a · 2026-11-17T05:37Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQtnGcx7hYEL11ptVs

席位核对

L1 first review: ACCEPT · PR #34647 · card #33187 (ruling A 6915677641) · area o2-B · L1-a2 · 2026-11-17T05:41Z

Head-sha: 82f384a572459b42c1212ba002f663e440b8a6ed

Final-head comment 6939681115; dev report 6938771548.

Checklist

  • Shape. Draft, base main. Part of #33187, and the body has no closing keyword. Part of is right: the Add User alreadyPending half is not delivered and moves to Add User on a managed environment: an email-only re-add of a pending person does not say it was already pending #34651 (open, finding, p2). Clause-②: yes (widening), Metadata-protocol: none, and Skills-docs: follow-up #34648 (open, domain:skills). Add User on a managed environment: an email-only re-add of a pending person does not say it was already pending #34651, An action answer's table column labels have no translation bundle key, so their headers stay English in every locale #34652 and skills: teach the action resultDialog, including the table format and its columns #34648 all exist and match their roles, and no verb sits beside any of them.
  • Scope (get_files, 8 paths, +446/−38): the changeset, ActionResultDialog.tsx and its test, sys-user.object.ts and cloud-managed-visibility.test.ts, action.zod.ts (describe and JSDoc only), liveness/action.json and liveness/state-counts/action.md. Nothing under plugin-auth, ui/packages/i18n or ui/packages/core, as the order required. Commits: f85cbaf3, ae12b3f4, ab02a3e4, and merge 82f384a5, whose git show --remerge-diff is empty.
  • Renderer against the contract. I read ResultField and the new TableBlock and TableCellValue against the resultDialog renderer-contract JSDoc:
    • table draws only an array; any other value draws as json, and a missing value is skipped like any other field.
    • The header is the column label (inline i18n resolved), else its path, in columns order.
    • A cell reads path in the element. undefined and null draw nothing. A value that fits the column format draws in it, and anything else draws as compact JSON.
    • An element that is not a plain object draws as compact JSON in the first cell, with the others empty. [] draws the header over table.noRows.
    • The fit test is now one function, valueFitsFormat, shared by fields and cells. Its code-list arm requires an array of strings, as the contract says. That is the one behaviour change outside table, and the changeset names it.
  • Preflight shares the renderer. ActionParamDialog.tsx:144 imports ResultField and :518 draws each preflight.fields row through it, passing the row whole. On the result-dialog side, overlayActionFieldLabels (useObjectLabel.ts:261) spreads each row ({ ...field, label }), so columns reaches the renderer. No change was needed in either caller, as the body says.
  • i18n. No new key. table.noRows (en.ts:735) and actions.resultDialog.copyFieldItem (en.ts:167) already exist in the locale packs.
  • sys_user against the door. The column paths (row, email, ok, alreadyPending, host.notified, host.reason, error.message, notApplied, managerError) all match ImportSsoUserRowResult (pending-sso-users.ts:593) and EnvironmentUserHostOutcome (environment-user-host.ts:141). feat(plugin-auth): import-users assigns positions from a positions column #34531 merged after this head's main merge. I read the interface on current origin/main: it is unchanged, and git merge-tree of the head against origin/main is clean. manager (the linked outcome) has no column. That matches the changeset, which names only "a manager that was not linked".
  • Spec surface. The diff edits only describe and JSDoc text: the [PLANNED — not yet rendered] markers and the "draws its label alone" sentence are removed, null is added to the empty-cell rule, and "object" becomes "plain object". No key, no format value and no refinement moves. No generated doc carries the changed describe text (git grep on the head), so there is nothing to regenerate. No stale "planned" wording about table or columns is left in action.zod.ts or the ledger.
  • Liveness. preflight.fields.columns and its three children go planned → live, with evidence anchored by symbol. The resultDialog note is updated. CI Spec property liveness is success on this head, and that covers the state-counts freshness leg, so I take the 82/2 counts from the gate, not from my own recount.
  • Changeset (root .changeset/; @object-ui/app-shell, @objectstack/platform-objects and @objectstack/spec, all patch). I checked each sentence against the diff: the table rules, the preflight sharing, the code-list fit, the per-row Import Users columns, and the spec half. All of them match. The Managed environments: re-show the add-people actions in Setup → Users (reverse #25295 / #25309's visible predicates for adding) #33186 erratum is correctly not here: that changeset has been released, and the body names the docs-only route on Add User on a managed environment: an email-only re-add of a pending person does not say it was already pending #34651.
  • Pins and ablations. There are 13 new renderer cases: 11 table cases, one of which draws through the preflight panel, and 2 code-list cases, one of them a CONTROL. The platform-objects pin holds the column paths and keeps the summary counts as a CONTROL. In 33187-ablation.log:
    • A1 (table branch removed): 9 failed / 16 passed.
    • A2 (null handling removed): 1 failed / 24 passed.
    • A3 (code-list fit back to Array.isArray): 2 failed / 23 passed.
    • All three were restored to blob == HEAD (eea0d1ad) with git diff HEAD empty.
  • Gates. 98 derived, 98 run (33187-gates-ran.txt). The full @object-ui/app-shell suite is a declared NOT MEASURED narrowing. CI carries it: Test UI 1–16/16 are all success on this head.
  • CI on this head (check-runs, filter=latest, 71 runs): success=59, skipped=12, nothing red or pending.

Accepted deviations

L2 and landing

  • L2 owed at this head: CONTRACT_REVIEW_TIER (published schema describe/JSDoc under packages/spec/src/**, plus Clause-②: yes). Keep needs:contract-review until a same-shape PASS at 82f384a5 is on file.
  • Landing tier. node scripts/pm/check-governed-merges.mjs --pr 34647 reads NOT governed, 484 changed lines ≤ 3000. However, the PR touches packages/spec/src outside tests, so it is spec surface and goes to the seat as Tier H, and the area does not land it. Once L1 ACCEPT and an L2 PASS are both on file at this head, the final four steps apply: seat record and 速读, pm:awaiting-merge, review request to the approvers, and the round report. ⛔ Do not mark it ready, queue it or arm auto-merge before an approval is on file.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 82f384a572459b42c1212ba002f663e440b8a6ed
Local-runs: none
Scope: packages/spec/src/ui/action.zod.ts + ui/packages/app-shell/src/views/ActionResultDialog.tsx, packages/spec/liveness/action.json

Inputs read: card #33187 (body and all 13 comments, ruling A 6915677641 and the renderer notes 6934494528 included), PR #34647 (body, its 3 comments, the 8-file list, the net diff against merge-base 8dd8192c), the 71 check-runs on the head, and the two last contract records on PR #34500 (6932322404 and the delta 6934473605) that set what the renderer owes. Read to judge, not reviewed: ui/packages/app-shell/src/views/ActionParamDialog.tsx (PreflightPanel), ui/packages/app-shell/src/hooks/useConsoleActionRuntime.tsx, ui/packages/i18n/src/useObjectLabel.ts, ui/packages/core/src/actions/ActionRunner.ts, packages/plugins/plugin-auth/src/pending-sso-users.ts, packages/plugins/plugin-auth/src/environment-user-host.ts, packages/spec/liveness/README.md, packages/spec/scripts/liveness/check-liveness.mts. The rest of the diff (sys-user.object.ts, the two test files, the changeset body, liveness/state-counts/action.md) is the lane seat's ACCEPT at TIER_DEFAULT; what this record says about sys-user.object.ts below answers the seat's question and is not a review of it.

Check-runs on the head: 71 runs, none failed, none pending. Completed green, among them: Test Core 1/8 to 8/8 and its aggregate, Test UI 1/16 to 16/16 and its aggregate, Build Core, Build and E2E UI, Live E2E UI, Type Check UI, Lint UI, TypeScript Type Check, Type Check · workspace, source gates, consumer gates and debt ledger, Lint and Repo Gates and every Lint shard, Spec property liveness, Check Changeset, Governed Surface Queue Guard, PR-body guards, Dogfood Regression Gate. Skipped: the opt-in and queue-only jobs, Build Docs, UI Published Artifacts. These are the gate verdicts; the PR body's local runs are not relied on.

① Derived judgments

  • Spec accept set: unchanged. The whole of the action.zod.ts diff is three .describe() strings (the column format, the row format, the row columns) and one paragraph of the table bullet in the resultDialog JSDoc. No schema call, key, enum member, alias map, refinement or refusal message moved: ACTION_ANSWER_FIELD_FORMATS is the same six members, actionAnswerScalarFormat, ActionAnswerTableColumnSchema and refuseTableColumnContradictions are byte-identical, and the cell refusal message is untouched. No document changes its parse result. Right.
  • The [PLANNED — not yet rendered] marker is gone from both describes and the "draws its label alone" sentence is gone; both are now true of the tree (ResultField has a table branch). The liveness gate reads that marker (markerStatus), so removing it and grading the rows live belong in one change. Right.
  • Liveness: preflight.fields.columns and its children path, label, format go planned to live; the generated count line moves live 79 to 82 and planned 5 to 2 (generated, not reviewed; Spec property liveness, the gate that sums it, is green). The flip is earned under the ledger's rule (live means authoring the property changes runtime behaviour, README and check-liveness.mts): columns is read on every path that draws an answer field. Result dialog: ActionRunner hands action.resultDialog through whole, useConsoleActionRuntime localizes it with actionResultDialog, whose overlayActionFieldLabels returns each row itself or a spread of it, so columns survives; all three mounts of the dialog (useConsoleActionRuntime, RecordDetailView, MetadataTypeActions) are the one ActionResultDialog component and reach ResultField. Preflight: PreflightPanel passes each declared row to the same exported ResultField. No second renderer of the block exists in ui/packages. The four evidence anchors name symbols that exist at the head. A producer exists (sys_user.import_sso_users); the author is the producer, so no producer line is owed. Right.
  • Console behaviour, table: a field that drew its label alone now draws rows. Widening. Right.
  • Console behaviour, code-list at field level: any array drew as a code list; now only an array of strings does, and any other array draws as json. This narrows what the console draws as a code list and is the contract's own fit test ("value must be an array of strings"), asked for by the delta record on feat(spec): an action's answer fields gain a table format, drawn from its columns #34500 and named in the changeset. No shipped producer answers a non-string array under code-list. Right.
  • Public type surface: ResultField's prop type widens from ResultDialogFieldSpec to that type plus columns; nothing removed. @object-ui/core is not in the diff (see N2). Right.
  • sys_user.import_sso_users: one result field changes from format: 'json' to format: 'table' with nine columns. It parses under the shipped schema (table with a non-empty columns, cell formats json, code-list or omitted). Every column path is a member of the door's row answer as the tree declares it (ImportSsoUserRowResult: row, email, ok, alreadyPending, notApplied, error.message, managerError, and host.notified / host.reason off EnvironmentUserHostOutcome). It changes what one dialog draws and nothing else: no visible, requiresFeature, permission, target or param moved, so no accept-set and no visibility changes, and nobody sees a field or an action they did not see before.

② Semver level

Clause-②: yes (widening) and Metadata-protocol: none are on the PR body and in the changeset, line-initial, and match the diff: no key, value or requirement an author can write moved, so the kind is none and each moved package takes patch. @objectstack/spec patch for describe and JSDoc text, @object-ui/app-shell patch for a non-protocol console change, @objectstack/platform-objects patch for one result dialog's drawing. The changeset body's account of the renderer matches the code clause for clause, including the code-list sentence. Check Changeset is green on the head.

③ Boundary flags

④ Design judgment

packages/spec/src/ui/action.zod.ts, each new or changed sentence against ActionResultDialog.tsx at the head:

  • Column format describe, "a missing or null value draws an empty cell": true. TableCellValue returns nothing for undefined and null on its first line, before the format is read, so it holds for every cell format, json, secret, qrcode and code-list included. A path through a missing or null intermediate resolves to undefined in readPath and is empty too.
  • Row format describe, "table draws an array as rows and requires columns": true (safeFormat, TableBlock; the requirement is the unchanged refinement).
  • Row columns describe: true; cells are drawn in columns order and never from the element's keys.
  • The bullet, "a missing value and a null draw an empty cell. A present value draws in the column's format when it fits": the fit test is one function, valueFitsFormat, shared by the field and the cell, and it is the contract's (qrcode, secret, text a string; code-list an array of strings). A misfit and every json cell draw through compactJson, one line. True.
  • The bullet, "an element that is not a plain object (an array, null or a scalar)": isPlainObject tests exactly that; such a row draws the element once, in the first cell. True, and N3 of the feat(spec): an action's answer fields gain a table format, drawn from its columns #34500 delta is answered.
  • The sentences that did not move but had no renderer until now: header is the label, else the path (true, inline locale maps resolved); [] draws the header over an empty-state line (true, the existing table.noRows string); a missing field is skipped (true on both paths); a value that is not an array draws as json (true).

Question 1, whether the contract should promise the null cell. Yes, and it had to. On main the bullet says any present value that does not fit draws as compact JSON text, and the #34500 delta read null under that sentence as the text null. A renderer that draws null empty would contradict that sentence unless the contract says so; leaving it unpromised would ship a renderer the contract calls wrong. The promise is true for every format, the wording keeps one reading ("missing and null are empty; a present value ..."), and it fits the first consumer, whose rows carry optional members. Two consequences the author should know, both consistent with the text and neither a finding: a json cell cannot tell null from an absent key, and the rule is the cell's alone (a null field value still draws as json, and a null element draws the text null in its first cell, as the bullet says).

Question 2, cell chrome. Not a faithful reading as the contract stands:

S1 (should-fix) — the cell rule says a present value "draws in the column's format", and the same docblock defines the formats: text is "plain text with copy", code-list is "each in a monospace row with per-row copy and a Copy all affordance". The field renderers on main draw exactly that (TextBlock: monospace block plus copy; CodeListBlock: per-row copy plus Copy all). TableCellValue draws a text cell as a bare span and a code-list cell as a list with no copy at all, while secret and qrcode cells reuse the field blocks whole and keep theirs. So for two of the five cell formats the renderer and the contract disagree on an affordance the contract names, and the split between formats is written nowhere but the renderer's own comment. The reason is sound (several hundred rows with a button in every cell), but an author who declares a text column for values the reader must copy (the purpose this dialog states for itself) gets no copy and nothing in the contract tells him to pick secret; a second renderer honouring the text would draw the buttons. Fix in the table bullet, with the column format describe kept in agreement: one sentence saying that in a cell text and code-list draw the value alone, without copy affordances, while secret keeps its mask, reveal and copy and qrcode its code and copy. Or draw the copy. Prose only on the first route; no accept-set change either way.

ui/packages/app-shell/src/views/ActionResultDialog.tsx against the contract, tried against: a non-array value, a missing field, [], an empty or absent columns (zero headers, the empty line spans one cell; the schema refuses it anyway), array, null, string and number elements, null and absent cells under each format, a non-string array under code-list in a cell and at field level, a number under secret, an object under the omitted format, a path through a null intermediate, an inline locale-map header, and both callers. Apart from S1 the code agrees with the contract sentence by sentence. Two nits:

  • N1 (nit) — readPath is plain property lookup, so a column path that names an inherited member the element does not carry (constructor, toString) resolves to a function and the cell draws its source text instead of staying empty, and email.length reads a string's length. The helper predates this PR and the field-level read on main behaves the same; no declared column reaches it. An own-property test in readPath would close it for fields and cells alike. Follow-up card, not this head.
  • N2 (nit) — ResultDialogFieldSpec in @object-ui/core still has no columns; the renderer adds it by a local intersection and the tests cast the field with as never. The first feat(spec): an action's answer fields gain a table format, drawn from its columns #34500 record expected this card to add the member. The derivation from the contract type is one line in ActionRunner.ts; it was outside this claim's file surface. Follow-up card.

packages/spec/liveness/action.json against the code: each sentence of the new notes and the evidence string is true of the head (the table branch, TableBlock, TableCellValue, PreflightPanel, the test file, the first producer), and the resultDialog row's note agrees with it. No finding.

No must-fix. S1 is open on this head and earns a delta review of its fix; N1 and N2 are follow-up cards.

Implemented-by: claude/issue-33187-action-answer-table
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

@github-actions github-actions Bot added size/l and removed size/m labels Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmSYVw1sqCsaHSJS9JC

Final head for L1 and contract review, patch round 2 · 2026-11-17T07:29Z
Final head: d854d108bdf7ce0bcbcc456fd8ed980eea437147 (card #33187, Part of, area o2-B), replacing 82f384a5. CI at this head: every check completed success or skipped by path filter (Build Core, Test Core 1–8/8 + aggregate, Test UI 1–16/16 + aggregate, Build & E2E UI, Live E2E UI, Lint UI, Type Check UI, TypeScript Type Check, Lint & Repo Gates, Spec property liveness, Build Docs, Check Changeset, Check Documentation Links, PR-body guards, Governed Surface Queue Guard); none red.
This round answers contract review S1 (6939815806) and takes the seat's scope for the round: the table bullet and the column format describe now say that inside a cell text and code-list draw the value alone while secret and qrcode keep their controls (prose only); content/docs/protocol/objectui/actions.mdx lists table and its columns; N2 is fixed at the root, ResultDialogFieldSpec.columns in @object-ui/core is derived from the contract type with a type pin (both ablations fail to compile); N1 is written into Acceptance notes as a known limitation. origin/main merged. Owed again on this head: L1 (L1-a) and the contract review; then the seat's Tier H step. Stays a draft, not armed by the area.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head d854d10 · 2026-11-17T07:31Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQtnGcx7hYEL11ptVs

席位核对

L1 delta: ACCEPT · PR #34647 · card #33187 · area o2-B · L1-a2 · 2026-11-17T07:32Z

Head-sha: d854d108bdf7ce0bcbcc456fd8ed980eea437147

This reads only 82f384a5..d854d108 (the previous L1 was ACCEPT 6939787432). This round answers contract review 6939815806 (S1, N1, N2). The final-head comment is 6941706887, and the delta order is 33187-delta-r2.md.

What moved (read in git)

  • 02ecb823. S1 prose in action.zod.ts (the column format describe and the table bullet of the renderer JSDoc) and one sentence in content/docs/protocol/objectui/actions.mdx.
  • 6dbbf712. Merge of origin/main, which now includes feat(plugin-auth): import-users assigns positions from a positions column #34531. git show --remerge-diff is empty.
  • d4a79d7f. N2 fixed at the root: ResultDialogFieldSpec.columns in @object-ui/core, a type pin, and the renderer and tests switched to it.
  • d854d108. The changeset adds @object-ui/core patch and the cell-copy sentence.
  • Files go from 8 to 11, +481/−37.

Delta checklist

  • S1 (prose). Both spec texts now say that in a cell text and code-list draw the value alone with no copy control, while secret keeps its mask, reveal and copy and qrcode keeps its code and copy. I checked this against TableCellValue, which is unchanged since the last round:
    • text → a bare <span>;
    • code-list → a <ul> of <code>, with no copy button;
    • secret → SecretBlock with copyName;
    • qrcode → QrcodeBlock with copyName.
      The prose matches the code. No key, value or refusal moves. Answered.
  • Docs. The actions.mdx sentence adds table to the format list, with columns: [{ path, label?, format? }] and path read in one element, columns refused beside any other format, and a cell taking any format but table. All of these match actionAnswerFieldRow, refuseTableColumnContradictions and ActionAnswerTableColumnSchema. Matches.
  • N2 (root fix). ResultDialogFieldSpec gains columns?: SpecResultDialogField['columns']. It is derived from the same contract row as label and format beside it, so it is not a hand-written copy.
    • The renderer's local AnswerField intersection and its SpecAction import are gone. AnswerTableColumn is now read off the runner's own type.
    • The two as never casts in the test are dropped. So the tests now type-check against the real field type, not around it.
    • The pin (ActionRunner.resultDialog.test.ts) asserts Equal<ResultDialogFieldSpec['columns'], SpecAnswerField['columns']>, that the spec type is not any, and that the member is optional.
    • Ablations (33187-ablation-r2.log), each read by tsc -p tsconfig.test.json in ui/packages/core:
      • B1, the member deleted: TS2339/TS2353 at the pin lines.
      • B2, a hand-written { path: string; label?: string }[]: TS2344 (_IsTheSpecColumns false) and TS2353.
      • Both legs were restored to blob == HEAD (f47c1e3b).
    • The first B1 attempt refused itself (a replacement count rise of 0). The log shows that nothing ran, and the rerun used --delete. The legs are piped through grep, so their exit reads batch-last-exit. The verdict rests on the printed TS errors, which are present. Answered.
  • N1 (readPath reads inherited members): seat scope change (b), accepted as the seat's call. It is stated in the Acceptance notes as a known limitation, with a reason I can check: readPath predates this PR, the field-level read on main behaves the same way, and no declared path in sys_user or the tests names an inherited member. Because the seat ruled (b), it is not a rework item for L1.
  • Changeset. @object-ui/core patch is added. The new core sentence and the cell-copy sentence under @objectstack/spec match the diff. Clause-②: yes (widening) still holds: columns is an added optional member of the core type, and nothing is refused that was accepted before.
  • feat(plugin-auth): import-users assigns positions from a positions column #34531 now in the tree. The sys_user column paths still match ImportSsoUserRowResult on the merged tree, which is unchanged since the last round.
  • Gates. 119 derived, 119 run, 0 NOT-MEASURED (33187-gates-ran-r2.txt). check:generated reports all 14 current. The full @object-ui/app-shell suite is still the declared NOT MEASURED narrowing, and CI Test UI carries it.
  • CI on this head (check-runs, filter=latest, 72 runs): success=61, skipped=11, nothing red or pending.

L2 and landing

  • L2 owed at this head: CONTRACT_REVIEW_TIER delta. The spec describe and JSDoc moved again (S1), and the head moved in code (@object-ui/core). The PASS-with-S1 in record 6939815806 is at 82f384a5. Keep needs:contract-review until a same-shape PASS at d854d108 is on file.
  • Landing tier. node scripts/pm/check-governed-merges.mjs --pr 34647 reads NOT governed, 518 changed lines ≤ 3000. However, the PR touches packages/spec/src outside tests, so it is spec surface and goes to the seat as Tier H, and the area does not land it. Once L1 ACCEPT and an L2 PASS are both on file at this head, the final four steps apply: seat record and 速读, pm:awaiting-merge, review request to the approvers, and the round report.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: d854d108bdf7ce0bcbcc456fd8ed980eea437147
Local-runs: none
Scope: packages/spec/src/ui/action.zod.ts + ui/packages/app-shell/src/views/ActionResultDialog.tsx, ui/packages/core/src/actions/ActionRunner.ts, packages/spec/liveness/action.json

Delta review. The last at-tier record is 6939815806 (PASS on 82f384a572459b42c1212ba002f663e440b8a6ed, S1 open, nits N1 and N2); everything it judged and that did not move stands and is not re-judged here.

Inputs read: card #33187 (body and all 13 comments, ruling A 6915677641 included), PR #34647 (body, its 7 comments, record 6939815806 in full), the diff between the two heads restricted to the PR's own 11 files (7 of them moved: the changeset, content/docs/protocol/objectui/actions.mdx, action.zod.ts, ActionResultDialog.tsx and its test, ActionRunner.ts and ActionRunner.resultDialog.test.ts; the two liveness files, sys-user.object.ts and cloud-managed-visibility.test.ts are byte-identical between the heads), the whole of action.zod.ts's answer-field section, ActionResultDialog.tsx and the ResultDialogFieldSpec block of ActionRunner.ts at the new head, and the 72 check-runs on the new head. Commits judged: 02ecb823, d4a79d7f, d854d108. The merge of main 6dbbf712 is not reviewed; it touches none of the 11 files. Read to judge, not reviewed: ui/packages/core/package.json and ui/packages/core/tsconfig.test.json (who compiles the type pin), ui/packages/core/src/index.ts, AGENTS.md (the changeset level rule), .changeset/config.json. The two test files, the changeset body and the docs page are outside the hits and their implementers; what is said about them below answers the brief and is not a review of them.

Check-runs on the new head: 72 runs, 61 completed success, 11 completed skipped, none failed, none pending. Green, among them: Test Core 1/8 to 8/8 and its aggregate, Test UI 1/16 to 16/16 and its aggregate, Build Core, Build and E2E UI, Live E2E UI, Type Check UI, Lint UI, TypeScript Type Check, Type Check · workspace, source gates, consumer gates and debt ledger, Lint and Repo Gates and every Lint shard, Spec property liveness, Build Docs, Check Documentation Links, Check Changeset (both runs), PR-body guards (both runs), Governed Surface Queue Guard, Dogfood Regression Gate. Skipped: the opt-in and queue-only jobs, UI Published Artifacts, and the second Auto Label and Check PR Size runs. These are the gate verdicts; the PR body's local runs and its two type ablations are an account and are not relied on.

① Derived judgments

  • Spec accept set: unchanged by the delta. Between the heads action.zod.ts moves in two places only: one sentence appended inside the column format .describe() string, and the same sentence inserted in the table bullet of the resultDialog JSDoc. No schema call, key, enum member, alias map, refinement or refusal message moved; over the whole PR the non-comment lines of that file that changed are the three .describe() strings and nothing else. No document changes its parse result. Right.
  • Generated surfaces: no generated reference, baseline or schema artifact carries the column format describe text at the head (searched the tree for the sentence), so nothing is owed a regeneration; Spec property liveness and Build Docs are green.
  • Liveness: not moved by the delta. The evidence anchors (ResultField, TableBlock, TableCellValue, PreflightPanel) still exist at the head; the renderer type the delta removed (AnswerField) is named nowhere in the ledger.
  • Console behaviour: unchanged by the delta. ActionResultDialog.tsx moves in types only (one import dropped, one local type alias re-derived, three annotations renamed); no branch, no drawn element and no string moved. TableCellValue, TableBlock, ResultField and valueFitsFormat are byte-identical to the head record 6939815806 judged.
  • Public type surface of @object-ui/core: ResultDialogFieldSpec (exported through actions/index.js) gains one optional member, columns. Widening, additive, nothing removed or narrowed: every value that satisfied the interface still does. ResultDialogSpec.fields carries it by reference. ResultField's prop type in app-shell is now the core type itself, the same shape the old local intersection described. Right.
  • Docs page: actions.mdx gains table in the per-field format list and one sentence on columns. Prose face; matches the contract (see ④).

② Semver level

Clause-②: yes (widening) and Metadata-protocol: none stand on the PR body and in the changeset, line-initial, and still match the diff: the delta adds no key, value or requirement an author can write. Under AGENTS.md the level follows the kind alone, and none takes patch on each package the diff moves. The frontmatter now names four packages, all patch: @objectstack/spec (describe and JSDoc text), @object-ui/app-shell, @objectstack/platform-objects, and the newly added @object-ui/core. Adding @object-ui/core is required, not optional: the delta changes a published export of that package, and the changeset declares it in a sentence of its own that is true of the code (the member is derived from the contract's answer-field row, like label and format). patch is the right level for it: an optional member on an exported interface is a non-protocol widening. The new spec sentence in the changeset repeats the contract sentence word for word and is true (see ④). Check Changeset is green on the head.

③ Boundary flags

④ Design judgment

packages/spec/src/ui/action.zod.ts, the new sentence ("Inside a cell, text and code-list draw the value alone with no copy control, while secret keeps its mask, reveal and copy and qrcode keeps its code and copy"), clause by clause against TableCellValue at the head, for every member the cell enum admits (qrcode, code-list, secret, text, json; table is refused in a cell by the unchanged schema):

  • text: a fitting string draws as one bare span. No copy button. True.
  • code-list: a fitting array of strings draws as a list of monospace items. No per-row copy, no Copy all. True.
  • secret: a fitting string draws through SecretBlock, the field's own block: masked by default, a reveal toggle, a copy button. True.
  • qrcode: a fitting string draws through QrcodeBlock, the field's own block: the QR canvas, the raw string under it, a copy button. True; the raw string is the field definition's and is not denied by "its code and copy".
  • json, and any value that does not fit its column's format: one line of compact JSON text, no control. The sentence does not name them and does not need to: the sentence before it in the same bullet already says how they draw, and the field-level json definition promises no copy to begin with.
  • Missing and null: empty, decided before the format is read. Unchanged.

So every clause is true for every cell format, and the five formats are covered between this sentence and the one before it.

Is the contradiction gone? Yes. The finding was that the cell rule ("a present value draws in the column's format") pulled in the field definitions (text "plain text with copy", code-list "per-row copy and a Copy all affordance") while the renderer drew neither control. The docblock now states the cell exception in the table bullet itself, by format, and the two formats whose cell keeps the field's controls are named as keeping them, so the field definitions and the cell rule no longer disagree anywhere and a second renderer reading only the text draws what this one draws. The column format describe carries the identical sentence, so the two places an author reads agree. It is a contract statement, not a description of one renderer's markup: it fixes which affordances a cell has and leaves layout free. An author who needs a copyable value in a row is now told which format gives it.

Prose only: confirmed in ①.

S1: closed

ui/packages/core/src/actions/ActionRunner.ts against the contract. ResultDialogFieldSpec.columns is declared as the columns member of the module's existing local alias for one element of the contract's resultDialog.fields, the same alias label and format are already read from, taken from the same Action type of @objectstack/spec/ui. So it is the contract's column type and not a restatement: optional exactly as the contract's key is, a plain mutable array as the schema's z.array infers (no readonly added or lost), and the element is the contract's column row whole (path required, label the I18nLabel union, format the field set minus table). A format added to the cell set, or a key added to the column row, reaches core and the renderer with no edit. The renderer drops its own spec import and its local intersection and reads the column type off the core member; both as never casts and the unknown[] parameter are gone from the renderer test, whose literals now compile against the real type. The pin in ActionRunner.resultDialog.test.ts asserts that the member is identical to the contract's and that the contract's is not any; tsconfig.test.json includes the file and is chained from the package's type-check script, which Type Check UI runs, green on this head. The export widening is declared in the changeset (see ②).

N2: closed

N1 (nit) — carried, unchanged in the tree: readPath is still plain property lookup, so a path naming an inherited member resolves to it. The PR body now states it under Acceptance notes as a known limitation and names no card. It predates this PR, the field-level read on main behaves the same, no declared path reaches it, and it has no effect on the contract. It stays a follow-up for the seat to card or to drop; it does not hold this head.

N3 (nit) — the third assertion of the new type pin, named _Optional, tests only that undefined is assignable to the member's type. A required member typed with the contract's columns type would pass it, because that type already includes undefined. Optionality is in fact held elsewhere (every field literal in the renderer and its tests that omits columns would stop compiling), so nothing is unguarded; the assertion just proves less than its name says. Rename it or drop it when the file is next touched.

content/docs/protocol/objectui/actions.mdx (prose face, matched against the contract only): the format list is now the six members of the field set; "table draws an array as rows and requires columns" is the unchanged refinement (absent or empty columns is refused); "one entry per cell, with path read in one element of the array" is the column row; "columns is refused beside any other format" is the refinement's other arm; "a cell takes any format but table" is the cell enum. The sentence speaks of the per-field format and says nothing false about the dialog-level default. Matches.

packages/spec/liveness/action.json: not moved; its notes and evidence remain true of the head.

No must-fix, no should-fix.

Implemented-by: claude/issue-33187-action-answer-table
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Seat record · 2026-11-17T07:36Z · Head-sha: d854d10

维护者速读

  • 改了什么:控制台的动作结果弹窗和预读面板现在能画 table 格式,按列逐行显示;托管环境「设置 → 用户 → 导入用户」的结果从一大块 JSON 变成逐行表格(邮箱、是否成功、是否已待激活、是否已通知托管方及原因、未添加原因、未生效的列、上级未关联)。
  • 为什么改:你在 Setup → Users on a managed environment: add-person and CSV-import UI with per-row invitation status (reverses objectui#13330 for adding) #33187 选了 A(记录 6915677641);契约半边(feat(spec): an action's answer fields gain a table format, drawn from its columns #34500)已落地,这是渲染半边。
  • 风险与回滚:只放宽(Clause-②: yes (widening)),其他五种格式照旧;唯一行为变化是 code-list 只在值为字符串数组时按代码列表画,否则画 JSON(契约本来就这么写)。表格单元格里的 text/code-list 不逐格提供复制,secret/qrcode 保留,契约已写明。回滚即撤回本 PR。
  • 先看:ui/packages/app-shell/src/views/ActionResultDialog.tsx(TableBlock / TableCellValue)、ui/packages/core/src/actions/ActionRunner.ts(columns 类型从契约派生)、packages/platform-objects/src/identity/sys-user.object.ts(导入结果的列)、packages/spec/liveness/action.json(columns 转 live)。
  • 两分钟验证:cd ui && pnpm exec vitest run packages/app-shell/src/views/__tests__/ActionResultDialog.test.tsx,预期 25 例全绿。
  • 需要你做的:用 os-zhuang 审读并批准(本 PR 改了 packages/spec/src 的描述文字)。契约复审 PASS 6941809708,钉在 Head-sha d854d108bdf7ce0bcbcc456fd8ed980eea437147。批准在案后由席位翻 ready,经合并队列落地。

席位意见:同意合并。你已裁 A,契约已在 #34500 落地,本 PR 只是让控制台兑现它;改动只加不减。

席位核对

  1. 形态:11 个文件,+481/−37,Part of #33187;Clause-②: yes (widening),Metadata-protocol: none,Skills-docs: follow-up #34648。碰 packages/spec/src(仅描述文字)⇒ 按 spec 面交人。
  2. 前提实测:dev 在本 PR 前后对照,导入结果从 JSON 变成逐行表格;渲染钉子 25 例,消融各红。
  3. 门禁 check-runs:head d854d108 上 72 条,61 绿、11 跳、0 红;check-governed-merges NOT governed,518 行。
  4. 接受的偏差:L1-a2 delta ACCEPT 6941762445(首审 6939787432);契约复审 PASS 6941809708(前一份 6939815806 的 S1 已在本 head 修:表格单元格的复制规则写进契约)。N3(类型钉 _Optional 名不副实)留到下次碰该文件。ui/core 的 ResultDialogFieldSpec 缺 columns 已在本 PR 从契约派生。
  5. 范围外去向:「加用户」重加待激活的人不显示「已待激活」→ Add User on a managed environment: an email-only re-add of a pending person does not say it was already pending #34651;表格列标签没有翻译键 → An action answer's table column labels have no translation bundle key, so their headers stay English in every locale #34652;技能教学 → skills: teach the action resultDialog, including the table format and its columns #34648(须带「表格单元格不逐格复制」的说法)。
  6. 落地条款:os-zhuang 授权批准在案后,席位翻 ready,经合并队列落地;Part of,Setup → Users on a managed environment: add-person and CSV-import UI with per-row invitation status (reverses objectui#13330 for adding) #33187 合并后保持 open,等 Add User on a managed environment: an email-only re-add of a pending person does not say it was already pending #34651。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 17, 2026 09:17
@os-zhuang
os-zhuang enabled auto-merge November 17, 2026 09:17
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 84e6bbb Nov 17, 2026
78 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-33187-action-answer-table branch November 17, 2026 10:09
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:ui 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

Development

Successfully merging this pull request may close these issues.

3 participants