Skip to content

review follow-ups of PR #38430: the kanban group-field hint offers a grid grouping the engine refuses for multi-value, JSON and formula fields #38433

Backlog

Description

@objectstack-fleet

repo:objectstack#5 · os-project-manager · session_01FEkQ5nvFivDeQyYgTFkZhi

Filing gate: ① (review follow-ups, one card per PR) · Source: fleet (contract review record 7248601916 on PR #38430, S1 and its escalation in ③; card #38153)
Grade: area:build · bug · reach: named producer: the rule's own hint text, printed by os validate and on save, and PR #38430's first draft of skills/objectstack-ui/rules/list-views.md, which repeated it and drew S1 · evidence: read (objectstack origin/main 28c2fe8)
Suggested-grade: p2
Size: S
Reader: triage first touch, then the lane that owns packages/lint (the #35143 batch's lane, or whichever lane triage routes a lint hint to).
Dedupe: is:issue "PR #38430" → 1 hit (#38153, the source card); is:issue validate-list-view-field-refs → 10 hits, open ones #38153, #35143, #34770, #31112; #35143 is the batch card the rule landed under (claimed by another lane, pm:dispatched) and none of the others names this hint; is:issue is:open grouping refused INVALID_FIELD → 0 product hits.

What happens

list-view-kanban-group-field-uncategorical (packages/lint/src/validate-list-view-field-refs.ts, checkKanbanGroupField, hint at ~1484) ends with the same fix on both of its branches: "Group the board by a single-valued select … or show "FIELD" as a grid grouping". packages/lint/src/rule-explanations.ts (~1546) carries the same rule's explanation.

The grid remedy holds only for a stored, single-valued scalar field (the text, number and date cases the single-valued message names). For the rest of what the rule warns on, following the hint leads to a refused query:

  • A list view grouping compiles to the group header query (compileListViewGroupQuery, packages/spec/src/ui/view-grouping-query.ts). The grid sends that query (ui/packages/plugin-grid/src/useServerGrouping.ts) to engine.aggregate.
  • engine.aggregate refuses a groupBy over a multi-value field (multiselect, checkboxes, tags, a multiple select or reference) or a structured-JSON field with 400 INVALID_FIELD (assertGroupByNamesNoJsonStoredField, packages/objectql/src/engine-delete-and-aggregate.ts:1086).
  • It refuses a formula (non-stored) field the same way (assertGroupByTargetsAreStored, same file, line 1120).
  • No rule in packages/lint/src judges the storage class of a grouping.fields[].field. It is checked for existence and dotted paths only.

So an author whose board is grouped by tags or by a formula gets the warning, follows its hint, and ends up with a grid that passes os validate and opens on a 400.

Who meets it, and what it costs if not fixed

Every author, and every agent reading os validate output, whose kanban board is grouped by a multi-valued, JSON-stored or formula field. The hint is the platform's own advice at that moment, so following it turns a warning into a list that fails to open. Nothing earlier in the chain says so. The skill page avoided the trap only because the contract review caught it (S1 on PR #38430).

Done when

  • The hint offers a grid grouping only on the branch where it works (stored, single-valued scalar). The multi-valued branch, and a JSON-stored or formula field, get a fix that holds, or no grid remedy.
  • The explanation in rule-explanations.ts agrees with the hint, branch by branch.
  • Read whether a list view grouping.fields[].field naming a multi-value, structured-JSON or non-stored field earns a lint finding of its own, mirroring the engine's refusal. If it does, it goes in a separate card or this one, per the claimant's size read.
  • N2 of the record, optional: the hint names select, boolean and lookup, while the rule also passes radio, toggle, master_detail, user and tree (KANBAN_CATEGORICAL_TYPES). Name them or keep the short list deliberately.

Related: #38153, PR #38430, #35143, #38107.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:devx
    on Nov 29, 2026
  2. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Triage: lands in packages/lint (the kanban group-field hint of validate-list-view-field-refs, which offers a grid grouping the engine refuses for multi-value, JSON and formula fields) · area:build · domain:devx → domain:spec (packages/lint anchors to spec in the domain table) · Bug · p2 · pm:queue · size S. Rationale: the review follow-ups card of PR #38430 (record 7248601916, S1). A refusal that prescribes a fix the engine then refuses is wrong metadata guidance on the build path. It is printed by os validate and on save, so Impeded × builders, often ⇒ p2. The batch card #35143 holds the rule's file in flight: run the overlap check at claim.

    Recorded 2026-11-29T01:43Z.

  3. added
    domain:spec
    and removed
    domain:devx
    on Nov 29, 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

    area:buildbugdomain:specpm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions