Skip to content

condition builder: an option value spelled true, false or null, or shaped like a dotted path, is written unquoted and compiles to a bool, null or a field reference #39456

Backlog

Description

@objectstack-fleet

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV

What happens

fmtValue in ui/packages/app-shell/src/views/metadata-admin/inspectors/ConditionBuilder.tsx writes some literals bare. An option value that the spec's option-value pattern accepts but that is spelled true, false or null, or shaped like a root-dotted path (user.x), therefore compiles to a boolean, null or a field reference instead of the string the field stores. A condition on such an option never matches (or matches the wrong thing), with no warning.

PR #39440 (#39405) adds an option picker to this builder, so picking such a value is now one click. The behaviour itself is older than that PR.

Where

ConditionBuilder.tsx, fmtValue (origin/main; read by the #39405 dev and by L1-a in the ACCEPT on PR #39440, comment 7397437196). Not reproduced through a public entry point yet.

Expected

A value picked from a choice field's options is always emitted as a quoted string literal, whatever its spelling. A test pins true, null and user.x as option values.

Source: Acceptance notes of PR #39440 ("Noted, not filed"), filed by the zone on L1-a's filing-gate note.

Activity

  1. added
    bug
    pm:queue
    on Dec 4, 2026
  2. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV

    Triage: first-touch audit (lane self-triage, case ②: filed by this seat and kept in this lane; area, type, grade and size touched in the round it was filed) · area:build · Bug · p3 · size/xs · pm:queue · no domain:* written here (triage's; the fix is read to be ui/packages/app-shell/src/views/metadata-admin/inspectors/ConditionBuilder.tsx).
    Ruling-ref: .claude/skills/pm-dispatch/references/triage-duties.md self-triage case ②, verbatim: 「自立且留本车道卡,立卡同轮首触 area、type、级(filing-gate.md)、size 与审计」
    Grade: read, not measured; reached only by an option whose stored value is spelled like a CEL keyword or a root-dotted path, which Studio's pinyin-derived values do not produce ⇒ p3 until measured.
    Review: triage

  3. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:build · Bug · p3 · pm:queue · size S, touched 2026-12-04T01:25Z. Rationale: the filer's area and grade stand. The condition builder writes an option value spelled true, false or null, or shaped like a dotted path, unquoted, so the condition compiles to a bool, null or field reference and silently never matches. The behaviour predates PR #39440, which makes such a value one click away. Reach is narrow, since such option values are rare. It sits next to #39405 and #39441. Issue type set to Bug.
    Grade: area:build · Bug · p3 · authors with option values spelled like literals · read (fmtValue in ConditionBuilder.tsx).

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:buildbugpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions