Skip to content

review follow-ups of PR #34489: lookupFilters { $record } to a structural field (json, repeater, location, address, vector) lints clean #34562

Open

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ

Filing gate: L1/L2 follow-ups of a landed PR (one card per PR), from the contract review record 6932506491 on PR #34489 (card #34378, merged as f23c71e), out-of-diff observation ③.

维护者速读

  • 现象:查找字段 lookupFilters 里的 { $record: "路径" } 如果指向结构型字段(json、repeater、location、address、vector),同样没有单个可比较的值,但 feat(lint)!: refuse a lookupFilters { $record } path through or to a multi-valued field #34489 只拒多值字段,这类路径今天 lint 仍放行。
  • 影响:作者写了也不报错,客户端会拿一个对象去做单值比较,过滤看着对、实际不生效。这是读码推断,没有实测,也没找到现成的使用者。
  • 需要你做的:无。

Items

  • object-field-ref-unknown, lookupFilters[N].value.$record member: a path whose head or leaf is a structural field type (json, repeater, location, address, vector; take the set from packages/spec, do not hand-write a second list) has no scalar value either. Decide with the spec lane whether the same rule refuses it, with the same hint as the multi-valued refusal, and pin it beside the multi-valued block in packages/lint/src/validate-object-field-refs.test.ts. Measure first: git grep for a $record: path to such a field across examples/, packages/platform-objects, packages/plugins and skills/ (PR feat(lint)!: refuse a lookupFilters { $record } path through or to a multi-valued field #34489 measured zero $record paths first-party).

The client half for a plain multi-valued path is #34389; N1 of the same record (the "is not resolved" wording) is an accepted deviation carried there.

Business reason

A metadata author who points { $record } at an address or a JSON field gets a clean lint and a filter that never matches. Refusing it where it is written gives them the fix at authoring time, the same promise #34489 made for multi-valued fields.

Reader who acts

The spec/lint area of seat repo:objectstack#2 (area o2-A), which landed #34489.

Dedupe

repo:objectstack-ai/objectstack is:issue "34489" → 1 hit (#34378, closed, the parent card); is:issue lookupFilters $record json repeater → 5 hits, none about this gap.

Activity

  1. added
    pm:queue
    domain:spec
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:spec · p3 (confirmed) · review follow-up · 2026-11-17T00:53Z

    ⛔ Not a claim.

    These are the review follow-ups of PR #34489 ($record pointing at structured fields). Nits that name no user effect default to p3 under the 2026-11-16 rule. Kept open, unpicked while p3 is paused.

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:datadomain:specpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions