Skip to content

feat(spec): an action's answer fields gain a table format, drawn from its columns - #34500

Merged
objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/project-thread-hcenby
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/project-thread-hcenby

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

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

维护者速读

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.

Ablations (each refusal removed, its pins red, restored to HEAD)

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.

Local runs
  • 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.

Generated by Claude Code

…lumns

`table` draws an array of objects as rows, one cell per entry of the field
row's new `columns`. Refused: `columns` beside any other format, `table`
without `columns`, `table` as a cell format and as the dialog-level default.

Claude-Session: https://claude.ai/code/session_01ADHkmRAxMkAHLvWYP3eojs
Co-authored-by: Claude <noreply@anthropic.com>
…hangeset

Ledger rows for the new row refinement (24 dropped-refinement sites), the
`columns` liveness rows graded planned until the console renderer lands,
the reference page, the strictness counts, and a minor changeset.

Claude-Session: https://claude.ai/code/session_01ADHkmRAxMkAHLvWYP3eojs
Co-authored-by: Claude <noreply@anthropic.com>
… contract

The two hand-written format unions refused the widened set where the
action renderers forward `resultDialog` uncast; derive them like the
label members beside them.

Claude-Session: https://claude.ai/code/session_01ADHkmRAxMkAHLvWYP3eojs
Co-authored-by: Claude <noreply@anthropic.com>
@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 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

8 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. ⚠️ 3 changed file(s) yielded no anchor (packages/spec/dropped-refinements.baseline.json, 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.

What this run could not see
  • 3 changed file(s) yielded no anchor (packages/spec/dropped-refinements.baseline.json, packages/spec/liveness/action.json, packages/spec/liveness/state-counts/action.md) — pages documenting those are invisible to this run
  • 5 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 107d2e8497270aad611f77a81bc341f48c6d3e00 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 107d2e8497270aad611f77a81bc341f48c6d3e00

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head e05528a · 2026-11-16T23:13Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e05528a7b257b4200779c7ba88cdd9ba240051c4
Local-runs: none
Scope: packages/spec/src/ui/action.zod.ts + ui/packages/core/src/actions/ActionRunner.ts

Inputs read: card #34391 (body and all 8 comments), PR #34500 (body, file list, net diff against merge-base e8cba8fe), the check-runs on the head, and the cited code in the tree at the head (ui/packages/app-shell/src/views/ActionResultDialog.tsx, read, not reviewed). The rest of the diff (the two test files, the changeset body, the reference page, the strictness counts, the dropped-refinements baseline, the liveness ledger and its counts) is the lane seat's ACCEPT at TIER_DEFAULT.

Check-runs on the head, at the time of reading: 65 runs, no failure. Completed green: Check Changeset, Spec property liveness, Governed Surface Queue Guard, PR-body guards, Lint and Repo Gates and every Lint shard, Type Check · source gates, Build Docs, Build UI Deps, Check Documentation Links, Dogfood Regression Gate. PENDING (in progress, no verdict yet): Build Core, Test Core 1/8 to 8/8, Type Check · workspace, Type Check · consumer gates, Type Check · debt ledger, Type Check UI, Lint UI, Build and E2E UI, Live E2E UI, Test UI 1/16 to 16/16. This record does not stand in for those: the spec test suite, the workspace type-check and the UI type-check (the one the ActionRunner.ts edit exists for) have not answered on this head, and the seat reads them before landing.

① Derived judgments

  • Accept-set, field format on resultDialog.fields[] and preflight.fields[]: five members become six (table added). Widening. Right.
  • Accept-set, new key columns on the shared row (actionAnswerFieldRow), an array of strict { path, label?, format? }. Before this head the strict row refused columns as an unknown key (it is in no alias map), so the key is a pure addition. Right.
  • New refusals, all four reachable only through the new value or the new key: columns without format: 'table' (custom, at columns); table without columns or with [] (custom, at columns); table as a cell format (invalid_value, own message); table as resultDialog.format (invalid_value, own message). resultDialog.format: 'table' and a row format: 'table' were both invalid_value before, so no input that parsed on main is refused here, and the row's superRefine adds issues only and transforms nothing, so the parsed output of every old input is unchanged. The changeset's Clause-②: yes (widening) sentence is right.
  • The dialog-level set and the cell set are derived with .exclude(['table']) from the one z.enum, no second list. The custom error returns undefined for any input but table, so an unknown format keeps the generic enum refusal (pinned). Right.
  • Public type surface: resultDialog.format stays the five-member set in the published types and in the reference page; the row's format gains table; columns is new. ResultDialogFieldSpec.format in @object-ui/core widens with it, ResultDialogSpec.format does not. Right.
  • No export added or removed in @objectstack/spec (ActionAnswerFieldFormatSchema, ActionAnswerTableColumnSchema and the two helpers are module-private). Right.
  • JSON-schema projection: the row rule is value-dependent and does not project; the baseline records 24 new dropped sites (2 paths in 12 published schemas). Named, generated, not reviewed.
  • Liveness: columns and its three children are planned, the describe opens with the repo's [PLANNED — not yet rendered] marker, and the claim behind it is true in the tree: ResultField computes safeFormat as table and has no branch for it, so a table field draws its label and no value. Right.

② Semver level

@objectstack/spec minor matches what the diff publishes: an added enum member and an added optional key, nothing removed, nothing that parsed now refused. Clause-②: yes (widening) is on the PR body and in the changeset, with Metadata-protocol: added on both, as the card asked. @object-ui/core patch for a type-only derivation that changes no runtime path is acceptable; the exported ResultDialogFieldSpec.format type widens by one member, which is the point of the edit and is named in the changeset. Check Changeset is green on the head.

③ Boundary flags

④ Design judgment

packages/spec/src/ui/action.zod.ts against the card (asks 1 to 6), ruling A on #33187 as the card quotes it, and its first consumer (ResultField, shared by the result dialog and the preflight panel):

  • Asks 1 and 2 hold. One row builder still serves both surfaces, the column reuses the row's alias map where it applies, and the key name columns collides with nothing on the row.
  • Ask 3 holds. Each refusal lands on the key the author must change, carries a message that names the fix, and the "refuse, never default to the element's keys" decision is stated with its reason in the refinement's doc and in the columns describe. Attempts to break it: columns with no format under a dialog-level default (refused, correctly, since the default can never be table); an unknown format beside columns (the enum refusal fires and the row check does not run, one issue, correct); a column alias (key, title, render) answers with the canonical name; table nested in a cell is refused by name. None broke.
  • Ask 4 holds for the field-level cases (missing value, non-array value, [], column order, header) and matches the sibling formats' behaviour in the tree. It does not hold cleanly for the cell:

S1 (should-fix) — The cell rule of the table renderer contract is stated in two ways that a renderer can honour differently, and is silent on the first consumer's commonest case. (a) The resultDialog doc says a cell "draws in the column's format (omitted: a scalar as text); a cell whose value is an object or an array ... draws as compact JSON text", which reads as unconditional: an object or array cell is compact JSON whatever its format. The column's own format describe, the ledger note and the refusal message ("Drop format (... compact JSON text), or write format: 'json'") tie that clause to an OMITTED format. Under the first reading a cell format: 'code-list' (which needs an array) and a cell format: 'json' on an object can never draw as declared, so two accepted values would parse clean and never be honoured, which is the outcome this same change refuses for columns; under the second they draw. (b) Nothing says what a cell draws when the column's path is absent from that row's element. The per-row answers this format exists for (alreadyPending, notApplied, a refusal reason present only on refused rows) make that the normal case, not an edge. (c) Nothing says what a cell draws when its declared format does not fit the value (secret on a number), where the field-level sibling degrades to json; and "every cell of an element that is not an object draws as compact JSON text" does not say of what (the element, presumably, repeated in each column). The card asks for a contract "short enough for one console renderer to honour it exactly"; as written #33187 has to choose. Fix in the resultDialog doc bullet, with the column format describe kept in agreement: say that the object-or-array rule applies when the cell format is omitted (or say it is unconditional and narrow the cell set to match), that an absent cell value draws an empty cell, and what a mismatched cell format degrades to. Prose only; no accept-set change is needed if the "omitted" reading is the intended one.

  • N1 (nit) — the doc of actionAnswerScalarFormat ends "subject names the slot in the refusal", but the parameter is tableRefusal and carries the whole message. Stale sentence.
  • N2 (nit) — the row's format describe is still "Per-field format override." and the table bullet of the renderer contract carries no planned note of its own; an author meets the [PLANNED — not yet rendered] marker only on columns. Since table cannot be written without columns, the marker is reached, so no effect on the contract.

ui/packages/core/src/actions/ActionRunner.ts against the contract: SpecResultDialog and SpecResultDialogField are read off the action's input type, so ResultDialogFieldSpec.format is the six-member set and ResultDialogSpec.format the five-member default set, each comment says exactly that, and the first consumer's FieldFormat already derives from ResultDialogFieldSpec['format'], so the dialog-level default stays assignable to it. The code agrees with the contract. ResultDialogFieldSpec does not carry columns yet; nothing reads it on this head, and #33187 adds it with the renderer. The UI type-check that proves the derivation is PENDING on the head (see above).

No must-fix. S1 is open on this head and earns a delta review of its fix; N1 and N2 may ride with it or be left as accepted deviations.

Implemented-by: claude/project-thread-hcenby
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

…the describes

A cell draws its value in the column's format when it fits, and as compact
JSON text otherwise, whatever the format; a missing value draws an empty
cell; an element that is not an object draws itself in the first cell.

Claude-Session: https://claude.ai/code/session_01ADHkmRAxMkAHLvWYP3eojs
Co-authored-by: Claude <noreply@anthropic.com>
The table column row adds one strictObject site.

Claude-Session: https://claude.ai/code/session_01ADHkmRAxMkAHLvWYP3eojs
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 635bb5a · 2026-11-17T00:59Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 635bb5a7ab0681bf71396c424ae17e67c4f5031e
Local-runs: none
Scope: packages/spec/src/ui/action.zod.ts + ui/packages/core/src/actions/ActionRunner.ts

Delta review. The previous at-tier record is comment 6932322404, a pass on head e05528a7b257b4200779c7ba88cdd9ba240051c4 with S1 open and nits N1, N2. Inputs read: that record, card #34391 (body and all 8 comments), PR #34500 (body, comments), the check-runs on the new head, the diff between the two heads restricted to the PR's 11 files (4 files moved, +28/-18), the net diff's file list against merge-base d4c0c121, and the cited code in the tree at the new head (ui/packages/app-shell/src/views/ActionResultDialog.tsx, packages/spec/scripts/build-docs.ts, packages/spec/scripts/check-generated.ts, .github/workflows/lint.yml; read, not reviewed). Main's own files that arrived with the merge are not judged.

Check-runs on the new head, at the time of reading: 45 runs, no failure. Completed green (12): Check Changeset, Spec property liveness, Governed Surface Queue Guard, PR-body guards, Check PR Size, Check Documentation Links, Flag docs affected by code changes, Dogfood Regression Gate, Plan Test Core shards, Plan Test UI shards, filter, Auto Label. Skipped (9): the opt-in and queue-only jobs. PENDING (24, in progress, no verdict yet): Build Core, Test Core 1/8 to 8/8, Build Docs, Build UI Deps, Live E2E UI, Type Check · workspace, Type Check · source gates, Type Check · consumer gates, Type Check · debt ledger, Lint · ESLint, Lint · docs and code guards, Lint · CI, release and engine gates, Lint · repo and tooling gates, Lint · PM dispatch-gates, and the three scoped Lint jobs (tooling self-tests, slot lookup and corpus, query-options erasure). Not yet created on this head: the Test UI shards, Type Check UI, Lint UI, Build and E2E UI. This record does not stand in for any of them. Two matter to this delta in particular and the seat reads them before landing: Test Core (it carries scripts/strictness-ledger.test.ts, the pin this head changed, and the 47-case table test) and Type Check · source gates (it runs check:docs, the gate on the generated reference page, and the strictness-ledger count check).

① Derived judgments

  • Accept set: unchanged between the heads. The whole of the action.zod.ts delta is one JSDoc paragraph on actionAnswerScalarFormat, the table bullet of the resultDialog JSDoc, the text of one refusal message, and two .describe() strings. No schema call, key, enum member, alias map or refinement moved. No document changes its parse result, and no parsed output changes. The first clause of the changed refusal message (the part the tests pin) is untouched, and neither test file under src/ui/ moved.
  • The strictObject count going 12 to 13 is not a new closed object on this head. action.zod.ts holds 13 strictObject( call sites on BOTH heads (lines 239, 375, 865, 931, 943, 995, 1184, 1831, 1907, 1930, 1962, 2101, 2307 at the new head; the same thirteen, one line higher up, at the old). The thirteenth is ActionAnswerTableColumnSchema, the column row, which the previous record already judged as a pure addition: it refuses unknown keys only inside columns, a key that did not parse before this PR. Nothing the old head accepted is refused on the new one. Only the pin moved; it stays inside the declared widening line and the Metadata-protocol: added line.
  • The committed ledger count agrees: docs/audits/2026-07-unknown-key-strictness-ledger.counts/ui.md already read action.zod.ts 13 on the old head. Its movement on this head (sites 222 to 224, passthrough 4 to 6, bulk-action.zod.ts 4 to 6) is main's feat(spec): BulkActionResultSchema, the per-row outcome an aggregate bulk handler may resolve with #34267 arriving through the merge. Against main at the merge-base (223 sites, 212 strict, action.zod.ts 12) the head reads 224 and 213 and 13: exactly this PR's one strict site.
  • strictness-ledger.test.ts: one assertion value changed (12 to 13) and two comment lines were added beside the earlier moves; no other assertion was touched. 13 is the honest count of the tree at the new head. It was also the honest count at the old head, so the pin of 12 there was false against that tree and the spec suite, pending when the previous record was written, could not have answered green on it. Right fix, and the only forced one.
  • Generated faces: content/docs/references/ui/action.mdx rightly did not move. The page renders nested shapes for Action.resultDialog and Action.preflight and shows fields as one inline type; it has no shape for a field row or a column, so the row format describe and the column format describe are not on the page at either head (neither old nor new wording occurs anywhere in the tree outside action.zod.ts). The descriptions it does carry (resultDialog.format, resultDialog.fields, preflight.fields) did not change. Its gate is check:docs in Type Check · source gates: PENDING. dropped-refinements.baseline.json rightly did not move: no refinement was added or removed.
  • JSON-schema projection: the two describes change description strings in the built schema tree (a build output, not committed). Descriptive only.
  • Liveness: two notes in packages/spec/liveness/action.json reworded (columns.path, columns.format); statuses unchanged (planned), state counts unchanged. Spec property liveness is green on the head.
  • Public surface: no export added or removed, no type changed.

② Semver level

Unchanged from the previous record and still right: @objectstack/spec minor for an added enum member and an added optional key, @object-ui/core patch for the type-only derivation. The delta is prose, a refusal-message text, a test pin and regenerated counts; it publishes nothing that would raise or lower either level. Clause-②: yes (widening) and Metadata-protocol: added stand on the PR body and in the changeset. The changeset file did not move and did not need to: it states no cell rule, it points at resultDialog. Check Changeset is green on the new head.

③ Boundary flags

④ Design judgment

packages/spec/src/ui/action.zod.ts, the cell rule, read in every place the tree states it:

  • resultDialog doc bullet: a cell reads the column's dot path in the element; undefined draws an empty cell; a present value draws in the column's format (omitted: text) when it fits (qrcode, secret, text take a string, code-list an array of strings); any value that does not fit, whatever the format, draws as compact JSON text, which is also how json draws in a cell; an element that is not an object draws itself as compact JSON text in the first cell, the other cells empty.
  • Column format describe: omitted is text; a value that does not fit the cell's format, whatever it is, draws as compact JSON text; a missing value draws an empty cell.
  • The table cell refusal message: drop format (a cell value that does not fit its format, an object or an array included, draws as compact JSON text) or write json.
  • Liveness notes: columns.format says the same and points at the bullet; columns.path says a path that resolves to nothing draws an empty cell and a non-object element draws as compact JSON text in its row's first cell.
  • Row format describe, columns describe, the changeset, the reference page: none states a cell rule, so none can disagree.

Walked against the cases: format omitted and a string, text; format omitted and a number, boolean, object or array, compact JSON text; format given and the value fits, drawn as declared (code-list on an array of strings and json on anything now draw, which the unconditional reading of the old bullet denied); format given and the value does not fit (secret on a number), compact JSON text; path resolving to undefined, including a path through a missing or null intermediate, empty cell; non-object element, the element once, in the first cell. The first consumer's commonest case named by the previous record (alreadyPending, notApplied, a refusal reason present only on refused rows) now has one answer: the absent key is an empty cell and the booleans draw as true and false. The old "omitted: a scalar as text" clause, which would have had a renderer choose between stringifying a number and degrading it, is gone; a number has one drawing. Two renderers honouring these texts draw the same cells.

S1: closed. Every statement of the cell rule now has the one reading, parts (a), (b) and (c) of the finding are each answered in the bullet, and the describe, the refusal message and the ledger notes agree with it.

N1: closed. The actionAnswerScalarFormat doc now names tableRefusal and says what it carries.

N2: closed. The row format describe marks table as [PLANNED — not yet rendered] and says it requires columns.

N3 (nit, new) — "an element that is not an object" does not say where an array element or a null element falls. Read as JSON types, both are non-objects and draw themselves in the first cell; a renderer testing with typeof would read paths in an array and find null to be an object. A server answer whose rows are arrays under a declared column list is off the format's purpose, so this is an edge, but four words ("a plain object, so not an array and not null") would close it. May ride with #33187's renderer PR, which has to pick the test anyway.

ui/packages/core/src/actions/ActionRunner.ts: did not move between the heads. It renders nothing; it only derives ResultDialogFieldSpec.format (six members) and ResultDialogSpec.format (five) from the contract, and the reworded rule changes neither set, so the previous record's judgment stands unchanged. The console's ResultField still has no table branch, so no renderer exists yet to agree or disagree with the cell rule; the planned marking says so truthfully. The UI type-check that proves the derivation has not yet been created on this head.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-hcenby
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ

Final head · 2026-11-17T01:41Z
Head: 635bb5a7ab0681bf71396c424ae17e67c4f5031e

  • CI: every check on this head is success or skipped; the eleven required checks are success.
  • Contract review: first review 6932322404 (PASS, S1 open) and delta 6934473605 on this head (PASS; S1, N1, N2 closed).
  • Main merged through scripts/pm/os-regen-merge.sh after feat(lint)!: refuse a lookupFilters { $record } path through or to a multi-valued field #34489 landed (merge d87b5fd, regeneration 635bb5a); the derived gate round on this head reconciles 119 run, 0 NOT-MEASURED.
  • Out-of-surface edit ui/packages/core/src/actions/ActionRunner.ts (types only) accepted by the seat, claim amendment 6932171004.
    Sent to L1 for a first review on this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmSmxJiAWk7fuq3Q1Sf

席位核对

L1 verdict: ACCEPT · card #34391 · area o2-A · first review · read at 2026-11-17T01:44Z
Head-sha: 635bb5a7ab0681bf71396c424ae17e67c4f5031e (the final head announced in comment 6935236567)

Checklist, read against GitHub and the head tree, not against the report:

  • Shape. Draft, base main, mergeable_state: clean. The first card line is Fixes #34391, and it is the only closing keyword in the body. Fixes is right: the card is the spec half. The renderer is Setup → Users on a managed environment: add-person and CSV-import UI with per-row invitation status (reverses objectui#13330 for adding) #33187's, and this PR states the contract that Setup → Users on a managed environment: add-person and CSV-import UI with per-row invitation status (reverses objectui#13330 for adding) #33187 must honour, in the body section "Renderer contract the console half must honour".
  • Serial order with feat(lint)!: refuse a lookupFilters { $record } path through or to a multi-valued field #34489 (shared spec outputs). feat(lint)!: refuse a lookupFilters { $record } path through or to a multi-valued field #34489 merged as f23c71e9, and that commit is an ancestor of this head, so the second-to-land regen merge is in.
  • File surface (get_files, 11 files, +367/-25).
    • Contract: packages/spec/src/ui/action.zod.ts, a new 47-case test, and two forced test edits.
    • Regenerated outputs: content/docs/references/ui/action.mdx, the strictness-ledger counts, liveness/action.json and the state counts, and dropped-refinements.baseline.json.
    • The changeset.
    • ui/packages/core/src/actions/ActionRunner.ts. The delta said not to touch ui/. The claim amendment 6932171004 added this file with the seat's agreement, and the reason was measured: the widened enum reds @object-ui/components with TS2322 at action-button / action-icon. The edit is type only: the two hand-written format unions become SpecResultDialogField['format'] / SpecResultDialog['format'], the way the label members already derive. That is a root fix, not a cast. Type Check UI, Test UI and Build & E2E UI are success.
    • No content/docs/releases/ change.
  • Baseline growth, read. dropped-refinements.baseline.json gains …preflight.fields.element and …resultDialog.fields.element at each of the manifest projections, and droppedRefinementSites goes from 1090 to 1114. That is the new row refinement, a value-dependent rule with no JSON-schema arm, named at each published path. It records a new site; it does not mute an old one, and -4 lines are only the count line and three trailing-comma reflows. The L2 first review judged it; the delta review notes it did not move between heads.
  • Seat rulings R1–R5 (predecessor delta) against the diff.
    • R1 columns with the row's alias map.
    • R2: table without columns, or with [], is refused, not guessed.
    • R3: resultDialog.format: 'table' is refused, and the dialog set is derived with .exclude(['table']).
    • R4: the cell set is derived the same way, and an omitted cell format is text.
    • R5: the contract is stated on resultDialog. Where R5 and the sibling formats differ, the PR matches the sibling (a missing value is skipped; a non-array value draws as json, like code-list), as R5 allows, and the body says so.
  • Changeset. @objectstack/spec minor, for an added enum member and an added optional key under Metadata-protocol: added. @object-ui/core patch (it publishes, with no private), type only. Both declaration lines sit at line start in the body and the changeset. Skills-docs: none — REASON: the renderer has not landed and columns is liveness planned, so teaching it now would advertise a format that draws nothing. That is accepted as the closed form allows. I checked the prose sentence by sentence:
    • The FROM → TO example parses as written: path plus table plus columns rows.
    • The three refusal bullets match refusals 1–4 in the diff (columns beside another format or no format; table without or with empty columns; table as a cell format and as the dialog default).
    • "until it lands, a table field draws its label alone": the console's ResultField has no table branch, which the L2 delta review confirmed.
    • "every action that parsed before still parses unchanged": every new refusal needs table or columns, and the CONTROL rows pin each old format at both surfaces.
  • Tests.
    • 47 cases, every one at both surfaces. Refusals 1–4 each assert code, path and the first clause of the message. This is a parse issue and not an HTTP envelope, so code + path is the right pair.
    • Ablations per refusal, A1–A4: 12, 4, 2 and 1 failed respectively; each restored to blob == HEAD.
    • The forced edits are named and none loosens anything. action-preflight.test.ts switches its unknown-format probe from table to chart, with the same invalid_value assertion. strictness-ledger.test.ts moves 12 → 13 for the one new strictObject (ActionAnswerTableColumnSchema); L2 counted the 13 sites at the head.
  • Gates (check-runs at 635bb5a7, filter=latest, 68 runs). 59 success, 9 path-filtered skipped, none red or pending.
    • Required floor: Lint & Repo Gates success, TypeScript Type Check success.
    • Also success: Test Core aggregate, Type Check · source gates (check:docs and the ledger count, which the L2 delta named as the two to read), Spec property liveness, Check Changeset, and the UI legs above.
    • Local dispatch-gates --ran: 119/119, 0 NOT-MEASURED (34391-gates-ran-r4.txt), a local subset only.
  • Nit (non-blocking). The body's Tests section lists the strictness-ledger.test.ts forced edit twice, in two wordings. This is body text only; tidy it if the area edits the body anyway.

L2 owed: yes, and it is in. The touched surfaces are packages/spec/src/** (non-test) and Clause-②: yes (widening), so the tier is CONTRACT_REVIEW_TIER. The delta record 6934473605 (l2-review#4) carries Served-tier: CONTRACT_REVIEW_TIER and Head-sha: 635bb5a7ab0681bf71396c424ae17e67c4f5031e, the current head. It closes S1, N1 and N2 of first record 6932322404, finds no must-fix or should-fix, and reads VERDICT: PASS. Its new N3 (where an array or null element falls) goes to #33187's renderer PR, and the area left note 6934494528 on #33187. The checks that were pending when that record was written are all success now.

Landing tier. node scripts/pm/check-governed-merges.mjs --pr 34500 reads: "0 of 11 path(s) hit the register … ✅ NOT governed — ordinary queue landing applies"; 392 changed lines ≤ 3000. L1 ACCEPT and L2 PASS are on the same head, and every check is green. The area lands it through the ordinary queue.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ

Landing · 2026-11-17T01:45Z · head 635bb5a7ab0681bf71396c424ae17e67c4f5031e

Probe Reading
check-governed-merges.mjs --pr 34500 NOT governed: 0 of 11 paths on the register; 392 changed lines (≤ 3000)
Generated drift against origin/main the 12 commits on main since the head's base touch none of this PR's generated artefacts (ui.md strictness counts, liveness/action.json, dropped-refinements.baseline.json, references/ui/action.mdx); #34489 is already in the head; git merge-tree merges clean

L1 ACCEPT 6935285388 and contract review PASS 6934473605 on this head. Ready for review and auto-merge through the queue; #34391 closes with the merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 01:45
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 066177b Nov 17, 2026
69 checks passed
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/m 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.

spec(ui): the action answer's field formats gain a table, so a per-row answer (add-person, CSV import) is drawn as rows, not raw JSON

2 participants