Skip to content

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 #34391

Closed

Description

@objectstack-fleet

domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

Filing gate: ① the maintainer's ruling A on #33187 (record 6915677641, chosen 2026-11-16T11:49Z on the decision card), which says: "a domain:spec card is filed for the table format and its column list (parse refusal and the renderer contract included), and this card carries Blocked-by: it."
Reader: domain:spec (packages/spec/src/ui/action.zod.ts). Grade suggestion: p1, because it blocks the p1 card #33187, whose first consumer is objectstack-ai/cloud#4465 (managed-environment add-person, sub-card 1c).
Dedupe: ACTION_ANSWER_FIELD_FORMATS table and resultDialog table columns: none open.

维护者速读

您在 #33187 选了 A:动作结果弹窗加「表格」这种显示格式。这张卡做协议那一半:结果字段的格式枚举加 table,并加一个列清单键;列清单只能配 table,配其他格式时在解析阶段报错。这是一次协议新增(Metadata-protocol: added),走契约复审,合入前需要您批一次。界面半边(控制台表格块、用户对象的加人 / 导入结果)在 #33187 上做,等这张卡落地。

Facts (origin/main, 2026-11-16)

Ask

  1. Add table to ACTION_ANSWER_FIELD_FORMATS. It draws an array of objects at path as rows.
  2. Add a column list to the field row (actionAnswerFieldRow), so both resultDialog.fields and preflight.fields get it. Each column reuses the row's own shape: a dot path into one element, an optional label, and an optional per-cell format from the same set, minus table (no nesting). The spec lane settles the key name against the existing row and the alias map.
  3. Parse refusals, worded the way the row's other refusals are: a column list beside any format other than table is refused; table without a column list is refused, unless you rule that it defaults to the element's own keys (decide, and state why in the describe); a nested table in a column is refused.
  4. State the renderer contract for table on resultDialog, as the other five are stated: what a missing or non-array value draws, an empty array, a cell whose value is not a scalar, the column order, and that the header is the column label. Keep it short enough for one console renderer to honour it exactly.
  5. Pins, with ablation red for each refusal, and a CONTROL showing that every existing format and row parses unchanged. Regenerate the outputs the change requires (JSON schema, the authorable surface and its baseline, the reference page) with the repo's own generators.
  6. Metadata-protocol: added. Changeset minor on @objectstack/spec. CONTRACT_REVIEW_TIER review by review#2. No console or plugin-auth change in this PR; Setup → Users on a managed environment: add-person and CSV-import UI with per-row invitation status (reverses objectui#13330 for adding) #33187 does the renderer and the two sys_user answers.

⛔ Not a claim.

Activity

  1. added
    enhancement
    priority:p1
    pm:queue
    domain:spec
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:spec · p1 (kept) · pm:queue · 2026-11-16T12:08Z

    ⛔ Not a claim.

    This is the protocol half of the maintainer's ruling A on #33187 (record 6915677641): the action answer's closed format set gains table, with a column list that is refused at parse beside any other format. Today an administrator who adds a person or imports a CSV on a managed environment sees the per-row answer as raw JSON. It blocks the p1 card #33187, whose first consumer is objectstack-ai/cloud#4465, so p1 as filed. Metadata-protocol: added, so contract review applies, and the maintainer approves the spec PR once. Labels unchanged; the spec seat may claim.

  3. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

    Claim: PM loop round 6 · 2026-11-16T12:09Z
    Session: session_01ADHkmQjrEpxMVxEiDUJHqC (seat); a card thread of this account's project is the dev and reports its session id
    Account: os-steve
    Branch: pending — the card thread's designated branch; a follow-up Claim: from this session names it before the dev builds
    Worktree: objectstack-issue-34391
    Domain: domain:spec
    Seat: domain:spec#2
    File surface: packages/spec/src/ui/action.zod.ts (ACTION_ANSWER_FIELD_FORMATS gains table; the shared actionAnswerFieldRow gains columns; refusals; the resultDialog renderer contract), its tests, the regenerated JSON schema / authorable-surface / api-surface / liveness / reference page, root .changeset/. No console / ui/ / plugin-auth change (#33187 does them)
    Container & model: M, mode:thread, model: default tier
    Clause-②: yes (widening)
    Metadata-protocol: added
    Responsibility: objectstack: an action answer that is a list of rows (add-person, CSV import) can only be shown as raw JSON | admins running per-row actions in the console | the result dialog shows a JSON blob instead of a readable table
    Premise: holds at origin/main (seat read: ACTION_ANSWER_FIELD_FORMATS = qrcode, code-list, secret, text, json at action.zod.ts ~:839). Maintainer ruling A on #33187 (6915677641). Order: /mnt/project-files/spec-seat2/34391-delta.md.
    Priority: p1 (triage 6916005564). Blocks #33187.

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 16, 2026
  5. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: regrade p1 → p2 (maintainer) · out of focus · 2026-11-16T14:57Z

    ⛔ Not a claim.

    In the backlog re-grade under the 2026-11-16 focus rule, the maintainer said 「34391 可以降级」. The table format serves the hosted add-person and CSV-import answers, which sit outside the current focus themes. An administrator can still read today's JSON answer. The claim and the work are unchanged; the seat may finish it at p2.

  6. added
    priority:p2
    and removed
    priority:p1
    on Nov 16, 2026
  7. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

    Release: seat stand-down · 2026-11-16T21:11Z

    The maintainer ordered seats to finish the work in hand and stand down, with no new cards. This card's dev thread stopped in the platform incident around 2026-11-16T12:15Z, before any commit or PR was made. Branch: (none opened), with no commits beyond its base. So the claim goes back to pm:queue and the assignee is cleared.
    Resume-from: none (no produce). The order still stands for a successor: /mnt/project-files/spec-seat2/34391-delta.md (project share; the seat's measured reading of origin/main and its rulings). It is now p2 (maintainer regrade 6919999291). The delta's rulings R1–R5 settle the key name, the defaults and the renderer contract, so a successor can build without stopping.

  8. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 16, 2026
  9. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

    Claim: PM loop round 1 · 2026-11-16T21:52Z
    Session: session_01ADHkmQ2SN4K183oqAvUajA (seat); a card thread of this account's project is the dev and reports its own session id
    Account: os-steve
    Branch: pending — the card thread's designated branch; a follow-up Claim: from this session names it before the first push
    Worktree: objectstack-issue-34391
    Domain: domain:spec
    Seat: repo:objectstack#2
    File surface: packages/spec/src/ui/action.zod.ts (ACTION_ANSWER_FIELD_FORMATS gains table; the shared actionAnswerFieldRow gains columns; refusals; the resultDialog renderer contract), its tests, the regenerated JSON schema / authorable surface / api-surface / liveness / reference page, root .changeset/. No console, ui/ or plugin-auth change (#33187 does them)
    Container & model: M, mode:thread, model: default tier, effort: high
    Clause-②: yes (widening)
    Metadata-protocol: added
    Responsibility: objectstack: an action answer that is a list of rows (add-person, CSV import) can only be drawn as raw JSON | none (no table format exists) | administrators running per-row actions in the console, today
    Thread-read: 6929478715
    Premise: holds at origin/main 3bf9c5c (the five-member ACTION_ANSWER_FIELD_FORMATS set has no table); the measured reading and rulings R1–R5 of the released predecessor claim (6916017414, released 6929478715) carry over.
    Serial constraints cleared: none — no open PR lists action.zod.ts (open-PR file scan at seating, 48 PRs); #34378 (this seat, field.zod.ts) regenerates the same spec outputs, so the two land one at a time with os-regen-merge.sh.
    Pre-claim lane: domain:spec (packages/spec/src/ui/action.zod.ts); no domain:spec seat claims it (spec#2 released it at stand-down, 6929478715).
    Pre-claim deps: no Blocked-by:; it blocks #33187 (p1).
    Prior rulings read: maintainer ruling A on #33187 (record 6915677641) and the regrade 6919999291 (p2) on this card; check-prior-rulings.mjs --card 34391 → 325 title-term hits; ADR-0061 D2, ADR-0071 Decision §1, ADR-0005 Decision §5, ADR-0029 D6, ADR-0055 Decision §1, ADR-0068 D1, ADR-0076 D11, ADR-0079 D6, ADR-0087 D1; thread: none.
    Lease: lease:o2-A. Order: /mnt/project-files/objectstack-seat2/34391-delta.md with the seat's standard order beside it (project share).

  10. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 16, 2026
  11. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

    Claim: PM loop round 1 · branch named · 2026-11-16T21:57Z
    Follow-up to claim 6930509984 (same seat, same claim).
    Thread session: session_01ADHkmRAxMkAHLvWYP3eojs
    Account: os-steve
    Branch: claude/project-thread-hcenby
    Seat: repo:objectstack#2

  12. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRAxMkAHLvWYP3eojs

    os-dev-report

    {
      "issue": 34391,
      "status": "done",
      "branch": "claude/project-thread-hcenby",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34500",
      "session": "session_01ADHkmRAxMkAHLvWYP3eojs",
      "premise_still_valid": true,
      "summary": "ACTION_ANSWER_FIELD_FORMATS gains `table`; the shared row (resultDialog.fields + preflight.fields) gains `columns` ({ path, label?, format? }, the row's alias map). Four refusals: columns beside a non-table format or no format, table without columns or with [], table as a cell format, table as resultDialog.format; the dialog and cell sets are derived with z.enum(...).exclude(['table']). Renderer contract (R5) on resultDialog; columns marked [PLANNED — not yet rendered] and liveness planned until the console reader lands. The widening red @object-ui/components' build (TS2322 at action-button.tsx and action-icon.tsx), so ui core ActionRunner.ts's two format unions now derive from the contract (type only).",
      "tests": "head e05528a7: new action-answer-table-format.test.ts 47/47 (CONTROL for the five old formats at both surfaces); pnpm --filter @objectstack/spec test 847 files, 27116 passed, 1 todo; spec typecheck exit 0; ui core/components/app-shell type-check exit 0 (components build red before the ActionRunner edit). Ablations (ablation-replace.mjs, spec tests import src): A1 refusal 1 -> 12 failed, A2 refusal 2 -> 4 failed, A3 cell table -> 2 failed, A4 dialog table -> 1 failed; each restored, blob == HEAD. Log: project share objectstack-seat2/34391-ablations.log.",
      "gates": "dispatch-gates --commands at e05528a7: 117 derived, 117 run, 0 NOT-MEASURED (--ran exit 0). One re-run: check:generated exit 1 in r1 = check:test-typecheck tsc OOM because the container exports NODE_OPTIONS=--use-openssl-ca, which defeats the script's own 4096 heap fallback; re-run with NODE_OPTIONS='--use-openssl-ca --max-old-space-size=4096' exit 0. Offline: check-changeset-no-major --event exit 0 (level axis ok), check-partof-closing-keyword ok, check-governed-merges --test NOT governed. CI check-runs: in_progress at hand-back.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "3 — mcp__github__issue_read x3 (get, get_comments x2); no write tool",
      "api_writes": "2 — relay pr_create (PR #34500, draft, assignee os-steve); relay comment (this report). Review request for os-steve not sent: the standard order forbids MCP writes",
      "files_changed": [".changeset/34391-action-answer-table-format.md", "content/docs/references/ui/action.mdx", "docs/audits/2026-07-unknown-key-strictness-ledger.counts/ui.md", "packages/spec/dropped-refinements.baseline.json", "packages/spec/liveness/action.json", "packages/spec/liveness/state-counts/action.md", "packages/spec/src/ui/action-answer-table-format.test.ts", "packages/spec/src/ui/action-preflight.test.ts", "packages/spec/src/ui/action.zod.ts", "ui/packages/core/src/actions/ActionRunner.ts"],
      "line_budget": "10 files, +356 / -24 (generated included); no skills/** touched",
      "deviations": [
        "ui/packages/core/src/actions/ActionRunner.ts is outside the claim's file surface (the order said no ui/ change): the widening alone reds the required UI build/type-check, so the two hand-written format unions now derive from the contract like their label members; type only, no renderer change; changeset adds @object-ui/core patch. The seat may amend the surface.",
        "R5 wording: a missing value is skipped like every other field's, and a non-array value draws as json like code-list does (the console's ResultField today), instead of a generic 'empty state'; R5 allows matching the sibling.",
        "columns: [] is refused with the same message as a missing list (an empty list draws no column).",
        "dropped-refinements.baseline.json +24 sites (measured.droppedRefinementSites 1090 -> 1114): the row rule is value-dependent, so no projectable arm fits.",
        "Forced test edit: action-preflight.test.ts used format 'table' as its unknown-format probe; now 'chart', same assertion."
      ],
      "open_questions": [
        { "question": "需契约复审 (Metadata-protocol: added) at head e05528a7", "options": ["A seat routes it to review#1 mailbox #34329"], "recommendation": "A" },
        { "question": "Keep the ui/ type derivation in this PR?", "options": ["A keep it (PR cannot be green without it)", "B move it to #33187 and land both together"], "recommendation": "A, because the spec half cannot merge alone otherwise and the edit is type-only" }
      ],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: #33187 — until the console renderer lands, a `table` field draws its label alone (ResultField has no table branch); recorded as planned in liveness, noted, not filed"]
    }

    Stamped 2026-11-16T23:08Z.

  13. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ

    Claim: PM loop round 1 · file surface amended · 2026-11-16T23:10Z
    Follow-up to claims 6930509984 and 6930621370 (same seat repo:objectstack#2, same claim, same branch). This session is area o2-A of that seat, which now holds the card's review and landing.
    Session: session_01ADHkmPJxG4vBVaLCBWLcWJ
    Thread session: session_01ADHkmRAxMkAHLvWYP3eojs
    Account: os-steve
    Branch: claude/project-thread-hcenby
    Seat: repo:objectstack#2
    File surface: as claimed, plus ui/packages/core/src/actions/ActionRunner.ts (its two format types derive from the contract instead of a hand-written union; types only, no rendering change) and an @object-ui/core patch changeset. Reason: widening ACTION_ANSWER_FIELD_FORMATS makes the ui components build fail with TS2322 (action-button / action-icon pass resultDialog to ActionRunner's hand-written format union), so the spec half cannot land without it. The seat agreed: the root fix is the derived type.
    Clause-②: yes (widening)
    Metadata-protocol: added

  14. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

    Closing hygiene, written at 2026-11-17T02:35Z: PR #34500 merged (main 066177b80f) and closed this card through Fixes. pm:dispatched, lease:o2-A and the assignee were still on it. This stroke removes all three, because a closed card carries no pm state. The ownership labels stay.

  15. removed
    pm:dispatched
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:specenhancementpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions