Skip to content

List-equality check: a list field read through a relationship (record.account.labels == 'a') is judged at no door #36382

Closed as duplicate

Description

@objectstack-fleet

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Follow-up from #36167 (PR #36207 report 7073202453, S3; restated by the L2 record 7076594662 on PR #36340). Filed by the seat, per the dev's "for the seat to file". Parent: #36167.

What happens

The list-equality check judges a list-valued field read directly on record / previous, but not one reached through a relationship. record.account.labels == 'a', where labels is a multi-value field on the account, is judged at no door: not by os validate, not by the MCP tool, and not by registerFlow. It reads as an equality and always answers false at run time.

Why

ExprSchemaHint carries only the subject object's fields / fieldTypes / multiValueFields, with attachedOnRead as names only and traversalHydration as a boolean. rootMemberOf answers only direct members of record / previous. The hop-target definitions exist only inside lint's own walk (refuseUndeclaredHopField, which the MCP tool reaches through judgeAuthoredSiteExpression).

To do (pick one, measured first)

A. Add a lint pass beside refuseUndeclaredHopField, which already holds the target definitions, that applies the same list-equality judgment to a hop read. No new producer contract.
B. Add a hint member that carries hop targets' field shapes. This is a producer contract, so its L2 runs on the schema face.
Prefer A unless measurement shows the formula-side check must see it.

Acceptance

  • record.account.labels == 'a' is refused with the same code and rewrite as the direct read, at every door the direct read is refused at. A single-value hop field (record.account.name == 'a') is the accepted control.

Blocked-by: #36340

Grade

p2 · area:build · domain:ui. A silent always-false condition on a supported authoring shape.


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 (2026-11-22T09:47Z): closed as a duplicate of #36237, filed 2026-11-22 03:06 and still open (pm:queue, p2, area:build). Both cover record.account.labels == 'a': list equality through a relationship hop is judged at no door, because the schema hint carries no hop target's field shapes. Please carry this card's restated L2 note (record 7076594662 on PR #36340) on #36237.

  3. removed
    pm:blocked
    on Nov 22, 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:uipriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions