Skip to content

列表视图列配置混写文字和对象被拒,报错只说期望文字 #38981

Description

@objectstack-fleet

repo:cloud@os-warren · os-warren · session_01JQwxbaECoSjckwkB1YXMTu

Filing source: cloud#5306 run 1 (epic cloud#5304 phase 1, 2026-12-01; record /mnt/project-files/cloud-5304/acceptance/run-1/RUN-1-RECORD-attempt2.md), cloud 96091f6, pin 8a7e65b4, Haiku 5.5, admin skill on. Phase 2, pm:on-hold.

维护者速读

  • 问题:助手存列表视图时,如果列配置里文字和对象两种写法混用,保存会被拒,错误信息只说「期望文字」,模型要多绕一轮才改对。
  • 本卡做:要么允许混写,要么让错误信息直接说明「两种写法不能混用」。
  • 不做会怎样:搭建多花轮次和额度。

Evidence

7 of the 15 harness save errors (case 4, reps 1 and 2): config.columns.0 Invalid input: expected string, received object, although object columns are legal; each cost one extra round. Suspected: packages/spec/src/ui/view.zod.ts ~3650 (z.union of string[] and ListColumn[]).

Acceptance

A mixed columns array either parses, or the error names the mix and the two legal shapes. A test pins it.

Activity

  1. added
    priority:p2
    repo:cloud
    domain:spec
    pm:on-hold
    area:ai
    on Dec 1, 2026
  2. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud@os-warren · os-warren · session_01JQwxbaECoSjckwkB1YXMTu

    Phase 2 of epic cloud#5304 opened by the maintainer (2026-12-01 16:43Z, decision card in the project: 「开始第二阶段」; parallel dev cap 3, 「后续并发3」). Back to pm:queue for the objectstack lane.

  3. added
    pm:queue
    and removed
    pm:on-hold
    on Dec 1, 2026
  4. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

    Claim: card thread of seat repo:objectstack@os-support-ai (epic objectstack-ai/cloud#5304; zone osa-build sized it big; serial behind PR #38957, now merged)
    Session: session_01WGufzhPdWmTd47Fi2bKYZS
    Thread session: session_01WGufzfKmn9HqtN5P3DyxiB
    Account: os-support-ai
    Branch: claude/project-thread-9e5hp3
    Worktree: objectstack-issue-38981
    Domain: domain:spec
    Seat: repo:objectstack@os-support-ai
    File surface: packages/spec/src/ui/view.zod.ts (the list view columns union's error only), packages/spec/src/ui/view-columns-mix.test.ts (new), a changeset. Stop on breach; explain in the report.
    Container & model: M, mode:card-thread, model: TIER_DEFAULT (dispatch-gates --tier on the surface prints no MANDATORY line), effort: high; contract-tier L2 at CONTRACT_REVIEW_TIER for the published schema's error text.
    Clause-②: no — the accepted set is unchanged.
    Metadata-protocol: none
    Responsibility: n/a — error-message card
    Premise: holds on main 444dce6. A mixed array fails the union at view.zod.ts as one invalid_union whose branches say only "expected string" or "expected object".
    Seat ruling: the card's second acceptance arm (route B). The accepted shapes stay as they are; the union gets an error callback that, for an array holding both strings and objects, names the mix and the two legal spellings (in-file precedent: the PDF export options union's error). Route A, accepting a mix, is not taken: objectui's grid, the column spelling diagnostics and the Studio inspectors all dispatch the whole array on its first entry, so a mixed array would silently drop or misread entries. A loud, repairable refusal is chosen over tolerance.
    Serial constraints cleared: check-handover.mjs --inflight on view.zod.ts reads no overlap now that #38957 has merged.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 2, 2026
  6. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfKmn9HqtN5P3DyxiB
    os-dev-report

    {
      "issue": 38981,
      "status": "done",
      "branch": "claude/project-thread-9e5hp3",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39034",
      "session": "session_01WGufzfKmn9HqtN5P3DyxiB",
      "premise_still_valid": true,
      "summary": "Route B per the seat's Claim (7334073524): the list view columns union stays exclusive (string[] | ListColumn[]); it gains an error callback that answers one sentence naming the mix and the repair spelling when the authored array holds both a string and an object, and undefined otherwise (precedent exportOptionsPdfUnionError). The stored-view door now carries that sentence at config.columns, first in zodIssuesToFields, instead of the branch's 'columns.0 expected string, received object'. Every array that parsed before still parses; non-mix failures keep zod's 'Invalid input'. Head 61e66302, 3 files, +179/-1.",
      "tests": "New packages/spec/src/ui/view-columns-mix.test.ts: 14 passed. Ablation: union error option removed on disk -> 6/14 red (head + door + wire pins), restored -> 14/14. Spec vitest src/ui + src/api/zod-issues-to-fields.test.ts + src/shared: 239 files, 7849 tests passed. Spec build and typecheck VERDICT command-exit 0. All at 61e66302.",
      "gates": "dispatch-gates --ran at 61e66302: 93 derived, 91 run, 2 NOT-MEASURED, 0 UNRUN. 90 exit 0. check:closed-ceremony-text exit 1: ENOBUFS listing .changeset, main-wide for any PR adding a file under packages or .changeset, open PR #39025 repairs it (seat heads-up). NOT MEASURED exit 3: check:dual-build-cjs-loads, check:lean-entry-closure (dist of untouched packages; CI). check-plugin-teardown-shape --self-test and check:doc-formula-expressions exit 0 after fetching the pinned fixture and building formula+lint. PR check-runs: pending at report time.",
      "mcp_calls": "0 MCP GitHub calls",
      "api_writes": "2 — relay pr_create (POST pulls + assignees, run 46809379410); this report comment (POST issues/38981/comments)",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: c · reach: not measured through a public door · packages/spec/src/ui/page.zod.ts (page columns) and packages/spec/src/ui/component.zod.ts (record:related_list columns) declare the same exclusive string[] | ListColumn[] union and still answer a mix with the bare refusal; same family as this card · dedupe words: columns union mix, ListColumnSchema refusal, related_list columns mixed, page columns mixed"
      ]
    }
  7. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

    Claim amendment · 2026-12-02T04:46Z · claim 7334073524, widened by two files that pin the refusal text this card changes.
    File surface (added): packages/cli/test/config-load-zod-refusal.test.ts (its mixed columns fixture pins the old union head; the expectation now names the new head, the branch line it also pins is unchanged), packages/cli/src/utils/config-load-refusal.ts (the stale example in the configLoadRefusal docblock; comment only). Reason: stale fixture and docblock pinning the refusal text this card changes, found by Test Core on PR #39034.
    Serial constraints cleared: check-handover.mjs --inflight over the two cli paths reads no other in-flight claim on them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:specpm:dispatchedpriority:p2repo:cloud

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions