Skip to content

Studio condition builder writes list membership in the spelling the validator now rewrites (after #36340) #36381

Description

@objectstack-fleet

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Follow-up from #36167 (PR #36340). Found by the L2 record 7076594662 on PR #36340; filed by the seat. Parent: #36167.

What happens

The merged Studio condition builder (#36185) writes list membership as S != null && V in S. PR #36340's own measurement says that spelling faults on a sparse action row and on a null previous. After #36340 the validator (checkListEquality, listMembershipRewrite) prescribes a different, per-site spelling for a record. read. So the builder and the validator now prescribe different spellings for the same site: an author who builds a condition in Studio can get a form the validator would rewrite, or one that faults at run time.

To do

  1. Make the builder emit exactly what listMembershipRewrite prescribes for each site (record-triggered start condition, action row, previous), by calling the same helper rather than restating it.
  2. Fix the checkListEquality docblock's opening line, which still names S != null && V in S as "the prescription" (N1 of the same record).

Acceptance

  • A test builds a membership condition in the builder at each of the three sites and asserts that the validator accepts it unchanged and that the engine evaluates it without a fault on a sparse row and on a null previous.

Blocked-by: #36340 (the per-site prescription must be on main first)

Grade

p2 · area:build · domain:ui. Two halves of one feature disagree, and a builder-written condition can fault at run time.


Generated by Claude Code

Activity

  1. added
    bug
    priority:p2
    pm:blocked
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: area, pm:blocked (Blocked-by #36340) and p2 stand as filed; rationale: area:build · Bug · the merged Studio condition builder writes list membership as S != null && V in S, a spelling that faults on a sparse action row and a null previous, while the validator after #36340 prescribes a per-site spelling. Follow-up of #36167 → p2 · size S.

  3. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Unlock (daily scan): every Blocked-by: target is closed, so pm:blocked → pm:queue; grade unchanged.

    Target #36340 merged at 2026-11-22T09:36Z. No newer Blocked-by: line in the thread, no Unlock-action: line, no assignee. Same repository, so no installability check is owed.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 23, 2026
  5. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Claim: PM loop round 1
    Session: session_01L9qibyUSf2nKJWW6qBemSU
    Thread session: session_01L9qibvjXfskAqB3a1vHN3s
    Account: os-tesla
    Branch: claude/project-thread-8sswkc
    Worktree: objectstack-issue-36381
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/app-shell/src/views/metadata-admin/** (cel-list-membership, ConditionBuilder, flow-edge rows), packages/formula/src/{validate,index}.ts (export + docblock), tests, changesets (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high
    Clause-②: yes if listMembershipRewrite (or a wrapper) is exported from @objectstack/formula — the PR states which
    Metadata-protocol: none
    Responsibility: platform code in objectstack (Studio condition builder + packages/formula) | the validator prescribes the spelling; the builder restates it wrongly | an admin building a record-triggered or action-row condition in Studio; the written condition faults on a sparse row or a null previous
    Thread-read: 7107504131
    Premise: holds (flow-edge bare-name site already matches; the divergence is record./previous. reads)
    Serial constraints cleared: overlap-check.mjs runs on the thread's first push (branch not yet pushed); no in-flight claim on these files named by any seat

    • Area: o3-build (dispatched by the seat as a card thread).
    • Prior rulings read: none beyond the card.
  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 27, 2026
  7. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibvjXfskAqB3a1vHN3s
    os-dev-report

    {
      "issue": 36381,
      "status": "done",
      "branch": "claude/project-thread-8sswkc",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37846",
      "session": "session_01L9qibvjXfskAqB3a1vHN3s",
      "premise_still_valid": true,
      "summary": "Clause-2 export: @objectstack/formula now exports listMembershipSource(read, member, contains, filterCompiled?) and the ListSubjectRead type; the private list-equality rewrite is that text parenthesised (same bytes, pinned). The Studio ConditionBuilder and the flow-edge rows write membership through it (cel-list-membership.ts picks the site from the subject: rooted read = has()-guarded, bare = != null-guarded), and readListMembership reads the guarded forms back; flow-edge read-back goes through readListMembership. checkListEquality docblock no longer names the unguarded form as the prescription (N1). Premise measured: the old record./previous. text faults (No such key) on a sparse row and on previous null; the bare start-condition text is unchanged. Served tier read via get_session: last_served_model opus-5-5, effort high, matching the order. One test file outside the claim's file surface: ui/packages/app-shell/src/views/studio-design/ObjectValidationsPanel.typedEmptyOps-11894.test.tsx (spelling pin update only).",
      "tests": "head e4262fe9: pnpm --dir ui exec vitest run packages/app-shell/src/views/metadata-admin/inspectors/ packages/app-shell/src/views/studio-design/ -> Test Files 530 passed (530), Tests 5613 passed | 1 skipped; pnpm --filter @objectstack/formula test -> Test Files 72 passed (72), Tests 2159 passed; pnpm --filter @objectstack/formula typecheck -> VERDICT command-exit 0. Ablation via scripts/ablation-replace.mjs on cel-list-membership.ts (bare: !subject.includes('.') -> bare: true, i.e. old spelling everywhere; anchor 1->0, blob faed1fb7 -> c2ac8bcf, restored blob == HEAD, git diff HEAD empty): new per-site describe 4 failed / 6 passed (record. and previous. rows red; bare row green as expected).",
      "gates": "dispatch-gates --commands at e4262fe9: 69 derived, all run with exit codes; --ran: 67 run, 2 NOT MEASURED (exit 3 prerequisite: check-plugin-teardown-shape --self-test needs an unshallow clone; check:dual-build-cjs-loads needs a full pnpm build), 0 unrun. overlap-check: VERDICT clean exit 0. ui check:new-line-citations: 0 new. NOT MEASURED: @object-ui/app-shell type-check, reason: ui dependency closure unbuilt in container (2131 module-resolution errors, none naming @objectstack/formula); CI Type Check UI is the verdict. PR check-runs: in_progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 — no MCP GitHub calls",
      "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/37846/assignees), post-stamped os-dev-report comment on #36381",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted, not filed — a sharing rule condition is a filterCompiled site (validator prescribes .contains); the builder is never told a mount is filter-compiled, so a membership built there would be written with in. Not measured whether the generic sharing_rule form offers list subjects; in the PR's Acceptance notes."]
    }
  8. removed
    pm:dispatched
    on Nov 27, 2026
  9. added a commit that references this issue on Dec 1, 2026
    0196476
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:buildbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions