Skip to content

Commit 066177b

Browse files
feat(spec): an action's answer fields gain a table format, drawn from its columns (#34500)
<!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi99t9cZ56QWVVy4s6njKh4d8)_ Fixes #34391 Clause-②: yes (widening) Metadata-protocol: added Skills-docs: none — the console does not draw `table` yet (`columns` is `[PLANNED — not yet rendered]`, liveness `planned`); teaching it in `skills/**` before the renderer lands would advertise a format that draws nothing, so the skill line belongs with the renderer half ## 维护者速读 - 改了什么:动作结果弹窗与预读面板的字段格式加了「表格」`table`,字段可写 `columns` 列清单;四种写错的组合在解析阶段直接报错。 - 为什么改:您在 #33187 选了 A(记录 6915677641),加人、导入 CSV 这类逐行结果今天只能显示成一大块 JSON。 - 风险与回滚:只加不删,以前能解析的动作仍原样解析;控制台的表格渲染还没做(#33187),在它落地前写了 `table` 的字段只显示标题。回滚即撤本 PR。 - 先看:`packages/spec/src/ui/action.zod.ts`(新拒收与 `resultDialog` 上的渲染约定)、`ui/packages/core/src/actions/ActionRunner.ts`(两行类型改为从契约派生)、`packages/spec/liveness/action.json`。 - 两分钟验证:`pnpm --filter @objectstack/spec exec vitest run src/ui/action-answer-table-format.test.ts`,预期 47 例全绿。 - 需要你做的:无,席位落地(契约复审由席位转 review 席位)。 ## What changes - `ACTION_ANSWER_FIELD_FORMATS` gains `table`. The shared field row (`actionAnswerFieldRow`, used by both `resultDialog.fields` and `preflight.fields`) gains `columns`: an array of `{ path, label?, format? }`, where `path` is read in ONE element of the array. A column reuses the row's alias map (`key`/`field`/`name` to `path`, `title` to `label`, `display`/`render` to `format`). - Four new refusals, all on the new value or the new key: 1. `columns` beside any `format` other than `table`, or on a field with no `format` (the dialog-level default is never `table`): `custom` at `...fields.N.columns`. 2. `format: 'table'` without `columns`, or with `columns: []`: `custom` at `...fields.N.columns`. Refused, not defaulted to the element's keys (seat ruling R2; Prime Directive 12). 3. `table` as a cell `format`: `invalid_value` at `...columns.M.format`, with its own message. 4. `resultDialog.format: 'table'`: `invalid_value` at `resultDialog.format`, with its own message (seat ruling R3). - The dialog-level set and the cell set are DERIVED from the field set with `z.enum(...).exclude(['table'])`; there is no second hand-written list (R3, R4). - The renderer contract for `table` is stated on `resultDialog` beside the other five formats (R5). Where R5 and the console's existing behaviour for the sibling formats differ, this PR matches the sibling, as R5 allows: a MISSING value is skipped like any other field's, and a NON-ARRAY value draws as `json`, as `code-list` does (the console's `ResultField`). - `columns` carries the `[PLANNED — not yet rendered]` marker, and its liveness rows (`preflight.fields.columns` and its three children) are `planned` until the console reader lands; the `resultDialog` row's note says the same. - `ui/packages/core/src/actions/ActionRunner.ts`: the two hand-written `format` unions on `ResultDialogSpec` / `ResultDialogFieldSpec` now derive from the contract (`SpecResultDialog['format']`, `SpecResultDialogField['format']`), the way their label members already do. Without it the widening reds `@object-ui/components`' build, because `action-button.tsx` and `action-icon.tsx` forward `schema.resultDialog` uncast into the runner's type (measured: TS2322 at both sites). Type only; no renderer change. - Regenerated with the repo's generators: `content/docs/references/ui/action.mdx`, the strictness-ledger counts, liveness state counts. `dropped-refinements.baseline.json` gains the 24 sites the build named for the new row refinement (a value-dependent rule, so it has no projectable arm). `check:authorable-surface` and `check:api-surface` are green with no file change (no export was added). - Changeset: `@objectstack/spec` minor, `@object-ui/core` patch. ## Renderer contract the console half must honour From the `resultDialog` doc comment (`packages/spec/src/ui/action.zod.ts`, the `table` bullet): - value must be an array; each element is one row and each entry of the field's `columns` one cell, in `columns` order; - the header of a column is its `label`, falling back to its `path`; - a cell reads the column's dot `path` in the element; a missing value (the path resolves to `undefined`) draws an empty cell; - a present value draws in the column's `format` (omitted: `text`) when it fits that format the way a field's value must (`qrcode`, `secret` and `text` take a string, `code-list` an array of strings); any value that does not fit, whatever the column's format (an object or an array under the omitted `text`, a number under `secret`), draws as compact JSON text, which is also how `json` draws in a cell; - an element that is not an object has no paths to read: its row draws the element itself as compact JSON text in the first cell and leaves the other cells empty; - `[]` draws the header row over an empty-state line; - a field value that is missing is skipped like any other field's, and one that is not an array draws as `json`, as `code-list` does. ## Tests - New: `packages/spec/src/ui/action-answer-table-format.test.ts` (47 cases). Every case runs at both surfaces. CONTROL: each of the five pre-existing formats parses on a field and as the dialog default, a bare `path` row parses, and the row still refuses an unknown key and an unknown format and answers its aliases. Widening: a `table` row parses and is kept as written; each non-`table` format parses as a cell; a column answers all six aliases. Refusals 1 to 4 each assert `code` + path + the first clause of the message. - Forced edit: `packages/spec/src/ui/action-preflight.test.ts`, the case "`fields` is `resultDialog.fields`' row: its aliases and its format set" used `format: 'table'` as its unknown-format probe. `table` is now a member, so the probe is `chart`; the assertion (`invalid_value` at `preflight.fields.0.format`) is unchanged. - Forced edit: `packages/spec/scripts/strictness-ledger.test.ts` pins the number of `strictObject` sites in `packages/spec/src/ui/action.zod.ts`. The new column row adds one closed object, so the pinned count moves from 12 to 13; nothing else in the test changes. - Forced edit: `packages/spec/scripts/strictness-ledger.test.ts`, the case "does not count a z.object( that appears inside a comment" pins the strictObject site count of `ui/action.zod.ts`; the new column row adds one site, 12 to 13 (comment line added beside the earlier moves). ## Acceptance notes - No existing input is refused: every new refusal needs `table` or `columns`, neither of which parsed before. - Until the console half lands, a `table` field draws its label and no value (`ResultField` has no `table` branch). This is why `columns` is marked planned. - The `ui/` edit is outside the original file surface; the seat accepted it (claim amendment 6932171004). It is the minimum that keeps the required UI checks green and touches no renderer. ## Verification Head and gate readings are in the report comment on the card (`os-dev-report`), taken after the last commit. <details><summary>Ablations (each refusal removed, its pins red, restored to HEAD)</summary> Run with `scripts/ablation-replace.mjs` on `packages/spec/src/ui/action.zod.ts`, against `action-answer-table-format.test.ts`: - A1, refusal 1 (`if (row.columns !== undefined)` made false): 12 failed (the five formats and the no-format case, at both surfaces). - A2, refusal 2 (`columns` missing or empty check made false): 4 failed. - A3, refusal 3 (the cell format swapped for the field set): 2 failed. - A4, refusal 4 (the dialog-level format swapped for the field set): 1 failed. Each leg restored: blob equal to HEAD, `git diff HEAD` empty. </details> <details><summary>Local runs</summary> - `pnpm --filter @objectstack/spec test`: 847 files, 27116 passed, 1 todo. - `pnpm --filter @objectstack/spec typecheck`: exit 0 (test typecheck included). - `pnpm --filter @objectstack/spec check:generated --fix`: all 14 artifacts current; `check:liveness` exit 0. - `type-check` of `@object-ui/core`, `@object-ui/components`, `@object-ui/app-shell`: exit 0 (red before the `ActionRunner.ts` edit). - `check-governed-merges.mjs --test` on the file list: NOT governed. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmRAxMkAHLvWYP3eojs)_ <!-- signed: repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent b019048 commit 066177b

11 files changed

Lines changed: 367 additions & 25 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@object-ui/core': patch
4+
---
5+
6+
feat(spec): an action's answer fields gain a `table` format, so a per-row answer is drawn as rows, not raw JSON
7+
8+
Clause-②: yes (widening) — `format: 'table'` joins the field formats of `resultDialog.fields` and `preflight.fields`, and the field row gains `columns`; the only new refusals fall on the new value and the new key, and every action that parsed before still parses unchanged
9+
Metadata-protocol: added
10+
11+
An action whose server answers a list of rows (adding several people, importing a CSV) can now say how to show it. A field in `resultDialog.fields` (or `preflight.fields`, which shares the row) takes `format: 'table'` with `columns`, one entry per cell: `{ path, label?, format? }`, where `path` is read in one element of the array.
12+
13+
**FROM → TO.** FROM: the answer's list could only be shown as a JSON block (`format: 'json'`). TO: `{ path: 'rows', format: 'table', columns: [{ path: 'email', label: 'Email' }, { path: 'reason', label: 'Reason' }] }` draws one row per element, one cell per column, in `columns` order, with the column `label` (or its `path`) as the header.
14+
15+
Refused at parse, each with a message that names the fix:
16+
17+
- `format: 'table'` without `columns`, or with an empty list. The columns are never guessed from the elements' keys.
18+
- `columns` beside any other `format`, or on a field with no `format` (the dialog-level default is never `table`).
19+
- `table` as a cell `format` (a table does not nest) and as the dialog-level `resultDialog.format` (a default carries no `columns`).
20+
21+
The renderer contract is stated on `resultDialog`. The console's table renderer is still to come: until it lands, a `table` field draws its label alone, and `columns` is marked `[PLANNED — not yet rendered]`.
22+
23+
`@object-ui/core`: the `ResultDialogSpec` / `ResultDialogFieldSpec` `format` members now derive from the contract, as their label members already do, so the console's action renderers keep type-checking against the widened set.

‎content/docs/references/ui/action.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,16 @@ L2 sandboxed JS body — runs inside an isolated VM with declared capabilities
167167
| **title** | `string \| Record<string, string>` | optional | Display label — the default-language string, or an inline locale map (`{ en, "zh-CN" }`) resolved at render time |
168168
| **description** | `string \| Record<string, string>` | optional | Display label — the default-language string, or an inline locale map (`{ en, "zh-CN" }`) resolved at render time |
169169
| **acknowledge** | `string \| Record<string, string>` | optional | Acknowledge button label, e.g. "I have saved this" |
170-
| **format** | `Enum<'qrcode' \| 'code-list' \| 'secret' \| 'text' \| 'json'>` | optional | Default format for fields without their own format. Defaults to json when omitted. |
171-
| **fields** | `{ path: string; label?: string \| Record<string, string>; format?: Enum<'qrcode' \| 'code-list' \| 'secret' \| 'text' \| 'json'> }[]` | optional | Which fields from result.data to render. Omit to dump full JSON. |
170+
| **format** | `Enum<'qrcode' \| 'code-list' \| 'secret' \| 'text' \| 'json'>` | optional | Default format for fields without their own format: any field format but `table`, which needs the field's own `columns`. Defaults to json when omitted. |
171+
| **fields** | `{ path: string; label?: string \| Record<string, string>; format?: Enum<'qrcode' \| 'code-list' \| 'secret' \| 'text' \| 'json' \| 'table'>; columns?: object[] }[]` | optional | Which fields from result.data to render. Omit to dump full JSON. A field with `format: 'table'` draws an array of objects as rows, one cell per entry of its `columns`, in order; the columns are never guessed from the elements' keys. |
172172

173173
### Nested Shape: `Action.preflight`
174174

175175
| Property | Type | Required | Description |
176176
| :--- | :--- | :--- | :--- |
177177
| **read** | `{ url: string; method?: 'GET' }` | ✅ | The read request — the same-origin endpoint the preflight reads |
178178
| **path** | `string` | optional | Dotted path selecting the sub-tree of the answer the preflight shows and seeds from, e.g. `data` in a `{ success, data }` envelope; omitted, the whole answer |
179-
| **fields** | `{ path: string; label?: string \| Record<string, string>; format?: Enum<'qrcode' \| 'code-list' \| 'secret' \| 'text' \| 'json'> }[]` | optional | Which values of the selected answer the panel shows, in `resultDialog.fields`' row and format set. Omit to show the selected answer as JSON. |
179+
| **fields** | `{ path: string; label?: string \| Record<string, string>; format?: Enum<'qrcode' \| 'code-list' \| 'secret' \| 'text' \| 'json' \| 'table'>; columns?: object[] }[]` | optional | Which values of the selected answer the panel shows, in `resultDialog.fields`' row and format set — `table` and its `columns` included, drawn by the same renderer contract. Omit to show the selected answer as JSON. |
180180
| **seed** | `{ param: string; path: string }[]` | optional | Answer-to-param seeding: each entry writes the value at `path` in the selected answer into the named param, which the dialog draws read-only and submits as shown. Each param is seeded once. |
181181

182182
### Nested Shape: `Action.ai`

‎docs/audits/2026-07-unknown-key-strictness-ledger.counts/ui.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The `strict` column is the one the campaign schedules against; it counts both th
2121

2222
| Dir | Sites | strict | passthrough | catchall | strip |
2323
|---|---|---|---|---|---|
24-
| `ui/` | 223 | 212 | 6 | 0 | 5 |
24+
| `ui/` | 224 | 213 | 6 | 0 | 5 |
2525

2626
## `ui/` — sites
2727

@@ -32,7 +32,7 @@ classify and is not listed (it becomes reportable the day it grows its first sit
3232
| File | Sites |
3333
|---|---|
3434
| `action-params.zod.ts` | 1 |
35-
| `action.zod.ts` | 12 |
35+
| `action.zod.ts` | 13 |
3636
| `app.zod.ts` | 20 |
3737
| `bulk-action.zod.ts` | 6 |
3838
| `chart.zod.ts` | 8 |
@@ -46,23 +46,23 @@ classify and is not listed (it becomes reportable the day it grows its first sit
4646
| `sharing.zod.ts` | 1 |
4747
| `view.zod.ts` | 59 |
4848
| `widget.zod.ts` | 1 |
49-
| **total** | **223** |
49+
| **total** | **224** |
5050

5151
## `ui/` — open
5252

5353
Per file, how many of its sites still silently discard unknown keys. The `Class`
5454
column that decides the bucket split is hand-written in the ledger; the arithmetic
5555
over it is here.
5656

57-
**5 strip of 223**, in 4 file(s).
57+
**5 strip of 224**, in 4 file(s).
5858

5959
| File | Strip | Sites |
6060
|---|---|---|
6161
| `action-params.zod.ts` | 1 | 1 |
6262
| `app.zod.ts` | 1 | 20 |
6363
| `view.zod.ts` | 2 | 59 |
6464
| `widget.zod.ts` | 1 | 1 |
65-
| **total** | **5** | **223** |
65+
| **total** | **5** | **224** |
6666

6767
| Bucket | Sites |
6868
|---|---|

‎packages/spec/dropped-refinements.baseline.json‎

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"measured": {
44
"zod": "4.4.3",
55
"publishedSchemasWithDroppedRefinements": 266,
6-
"droppedRefinementSites": 1090,
6+
"droppedRefinementSites": 1114,
77
"refinementSitesThatDidProject": 728,
88
"refinementSitesWithNoJsonFormToCompare": 0
99
},
@@ -105,6 +105,8 @@
105105
"manifest.actions.element.in.ai.outputSchema",
106106
"manifest.actions.element.in.onSuccess",
107107
"manifest.actions.element.in.params.element.in",
108+
"manifest.actions.element.in.preflight.fields.element",
109+
"manifest.actions.element.in.resultDialog.fields.element",
108110
"manifest.agents.element.memory",
109111
"manifest.agents.element.structuredOutput.schema",
110112
"manifest.analyticsCubes.element.measures.valueType",
@@ -287,6 +289,8 @@
287289
"data.options[1].manifest.actions.element.in.ai.outputSchema",
288290
"data.options[1].manifest.actions.element.in.onSuccess",
289291
"data.options[1].manifest.actions.element.in.params.element.in",
292+
"data.options[1].manifest.actions.element.in.preflight.fields.element",
293+
"data.options[1].manifest.actions.element.in.resultDialog.fields.element",
290294
"data.options[1].manifest.agents.element.memory",
291295
"data.options[1].manifest.agents.element.structuredOutput.schema",
292296
"data.options[1].manifest.analyticsCubes.element.measures.valueType",
@@ -437,6 +441,8 @@
437441
"options[1].manifest.actions.element.in.ai.outputSchema",
438442
"options[1].manifest.actions.element.in.onSuccess",
439443
"options[1].manifest.actions.element.in.params.element.in",
444+
"options[1].manifest.actions.element.in.preflight.fields.element",
445+
"options[1].manifest.actions.element.in.resultDialog.fields.element",
440446
"options[1].manifest.agents.element.memory",
441447
"options[1].manifest.agents.element.structuredOutput.schema",
442448
"options[1].manifest.analyticsCubes.element.measures.valueType",
@@ -526,6 +532,8 @@
526532
"data.packages.element.options[1].manifest.actions.element.in.ai.outputSchema",
527533
"data.packages.element.options[1].manifest.actions.element.in.onSuccess",
528534
"data.packages.element.options[1].manifest.actions.element.in.params.element.in",
535+
"data.packages.element.options[1].manifest.actions.element.in.preflight.fields.element",
536+
"data.packages.element.options[1].manifest.actions.element.in.resultDialog.fields.element",
529537
"data.packages.element.options[1].manifest.agents.element.memory",
530538
"data.packages.element.options[1].manifest.agents.element.structuredOutput.schema",
531539
"data.packages.element.options[1].manifest.analyticsCubes.element.measures.valueType",
@@ -612,7 +620,9 @@
612620
"data.actions.element.in",
613621
"data.actions.element.in.ai.outputSchema",
614622
"data.actions.element.in.onSuccess",
615-
"data.actions.element.in.params.element.in"
623+
"data.actions.element.in.params.element.in",
624+
"data.actions.element.in.preflight.fields.element",
625+
"data.actions.element.in.resultDialog.fields.element"
616626
]
617627
},
618628
"api/ObjectDefinitionResponse": {
@@ -622,6 +632,8 @@
622632
"data.actions.element.in.ai.outputSchema",
623633
"data.actions.element.in.onSuccess",
624634
"data.actions.element.in.params.element.in",
635+
"data.actions.element.in.preflight.fields.element",
636+
"data.actions.element.in.resultDialog.fields.element",
625637
"data.defaultRowScope",
626638
"data.fieldGroups",
627639
"data.fields.out.valueType",
@@ -1125,6 +1137,8 @@
11251137
"actions.element.in.ai.outputSchema",
11261138
"actions.element.in.onSuccess",
11271139
"actions.element.in.params.element.in",
1140+
"actions.element.in.preflight.fields.element",
1141+
"actions.element.in.resultDialog.fields.element",
11281142
"defaultRowScope",
11291143
"fieldGroups",
11301144
"fields.out.valueType",
@@ -1364,7 +1378,9 @@
13641378
"actions.element.in",
13651379
"actions.element.in.ai.outputSchema",
13661380
"actions.element.in.onSuccess",
1367-
"actions.element.in.params.element.in"
1381+
"actions.element.in.params.element.in",
1382+
"actions.element.in.preflight.fields.element",
1383+
"actions.element.in.resultDialog.fields.element"
13681384
]
13691385
},
13701386
"kernel/OpsDomainModule": {
@@ -1488,6 +1504,8 @@
14881504
"operations.element.options[3].object.actions.element.in.ai.outputSchema",
14891505
"operations.element.options[3].object.actions.element.in.onSuccess",
14901506
"operations.element.options[3].object.actions.element.in.params.element.in",
1507+
"operations.element.options[3].object.actions.element.in.preflight.fields.element",
1508+
"operations.element.options[3].object.actions.element.in.resultDialog.fields.element",
14911509
"operations.element.options[3].object.defaultRowScope",
14921510
"operations.element.options[3].object.fieldGroups",
14931511
"operations.element.options[3].object.fields.out.valueType",
@@ -1512,6 +1530,8 @@
15121530
"object.actions.element.in.ai.outputSchema",
15131531
"object.actions.element.in.onSuccess",
15141532
"object.actions.element.in.params.element.in",
1533+
"object.actions.element.in.preflight.fields.element",
1534+
"object.actions.element.in.resultDialog.fields.element",
15151535
"object.defaultRowScope",
15161536
"object.fieldGroups",
15171537
"object.fields.out.valueType",
@@ -1568,6 +1588,8 @@
15681588
"options[3].object.actions.element.in.ai.outputSchema",
15691589
"options[3].object.actions.element.in.onSuccess",
15701590
"options[3].object.actions.element.in.params.element.in",
1591+
"options[3].object.actions.element.in.preflight.fields.element",
1592+
"options[3].object.actions.element.in.resultDialog.fields.element",
15711593
"options[3].object.defaultRowScope",
15721594
"options[3].object.fieldGroups",
15731595
"options[3].object.fields.out.valueType",
@@ -1703,7 +1725,9 @@
17031725
"in",
17041726
"in.ai.outputSchema",
17051727
"in.onSuccess",
1706-
"in.params.element.in"
1728+
"in.params.element.in",
1729+
"in.preflight.fields.element",
1730+
"in.resultDialog.fields.element"
17071731
]
17081732
},
17091733
"ui/ActionAi": {

‎packages/spec/liveness/action.json‎

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
},
278278
"resultDialog": {
279279
"status": "live",
280-
"note": "objectui one-shot result reveal {title,description,acknowledge,format,fields}."
280+
"note": "objectui one-shot result reveal {title,description,acknowledge,format,fields}. `fields[].format: 'table'` and its `columns` (#34391) are PLANNED until the console reader #33187 lands (see `preflight.fields.columns`, the same row): the spec refuses the contradictions at parse, and the console draws a `table` row's label alone today."
281281
},
282282
"preflight": {
283283
"status": "live",
@@ -325,6 +325,28 @@
325325
"status": "live",
326326
"verifiedAt": "2026-11-09",
327327
"note": "Live with its container `preflight.fields`: the row's display format, from resultDialog's format set."
328+
},
329+
"columns": {
330+
"status": "planned",
331+
"verifiedAt": "2026-11-16",
332+
"note": "PLANNED (spec card #34391; reader #33187, maintainer ruling A 6915677641). The cells of a `format: 'table'` row, `[{ path, label?, format? }]`, from the row builder `resultDialog.fields` shares (packages/spec/src/ui/action.zod.ts#actionAnswerFieldRow). Enforced at parse today: required by `table`, refused beside any other format (#refuseTableColumnContradictions), and a cell takes the field formats minus `table`. NOT yet drawn: the console's `ResultField` (ui/packages/app-shell/src/views/ActionResultDialog.tsx) has no `table` branch, so until #33187 lands a `table` row draws its label alone. Re-grade `live` in the PR that lands that renderer.",
333+
"children": {
334+
"path": {
335+
"status": "planned",
336+
"verifiedAt": "2026-11-16",
337+
"note": "Planned with its container `preflight.fields.columns`: the dot path, in ONE element of the array, of the value a cell draws; a path that resolves to nothing draws an empty cell, and an element that is not an object draws as compact JSON text in its row's first cell."
338+
},
339+
"label": {
340+
"status": "planned",
341+
"verifiedAt": "2026-11-16",
342+
"note": "Planned with its container `preflight.fields.columns`: the column header; omitted, the header is the column's `path`."
343+
},
344+
"format": {
345+
"status": "planned",
346+
"verifiedAt": "2026-11-16",
347+
"note": "Planned with its container `preflight.fields.columns`: the cell format, the field formats minus `table` (refused at parse: a table does not nest); omitted, `text`. A value that does not fit the cell's format, whatever it is, draws as compact JSON text, and a missing value draws an empty cell (the `table` bullet of the `resultDialog` renderer contract)."
348+
}
349+
}
328350
}
329351
}
330352
},

‎packages/spec/liveness/state-counts/action.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ committed anywhere: `check:liveness` sums the shards when it reads them.
1212

1313
| Type | live | exp | elsewhere | dead | planned | classified |
1414
|---|---|---|---|---|---|---|
15-
| `action` | 79 | 0 | 0 | 1 | 2 | 82 |
15+
| `action` | 79 | 0 | 0 | 1 | 5 | 85 |

‎packages/spec/scripts/strictness-ledger.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ describe('site counting reads the AST, not the source text', () => {
105105
// not counted.)
106106
// (9 → 12 at #31840, which ADDED the `preflight`, `preflight.read` and
107107
// `preflight.seed` strictObject sites.)
108-
expect(countSites(at('ui/action.zod.ts'))).toBe(12);
108+
// (12 → 13 at #34391, which ADDED the `table` column row's strictObject
109+
// site, `ActionAnswerTableColumnSchema`.)
110+
expect(countSites(at('ui/action.zod.ts'))).toBe(13);
109111
});
110112

111113
it('counts a call the source wraps across lines (`z\\n .object({`)', () => {

0 commit comments

Comments
 (0)