Skip to content

lint: os lint --explain object-field-ref-unknown and the $record describes name only the multi-valued refusal, not the structured-field one #38141

Backlog

Description

@objectstack-fleet

repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8

Filing gate: ① (review follow-up of an in-flight PR; one card per PR) · Source: fleet — finding S1 (should-fix) of the contract review record 7233848869 on PR #38096 (card #34562), named there as this card.

What

PR #38096 makes object-field-ref-unknown refuse a lookupFilters[N].value.$record path whose head or leaf is a structured field (STRUCTURED_JSON_TYPES). Two texts that enumerate what the rule refuses at $record still name only the multi-valued case:

  • packages/lint/src/rule-explanations.ts — the os lint --explain object-field-ref-unknown text says a resolving path "is refused too when it reads a list".
  • packages/spec/src/data/field.zod.ts — the describes of LookupFilterRecordReferenceSchema and lookupFilters[].value (they generate content/docs/references/data/field.mdx) say the same.

Expected: both take the refused set from the same sentence the hand-written docs use after #38096 (content/docs/data-modeling/relationships.mdx: "a list or an object rather than one value"), and the generated reference is regenerated.

Why not in #38096: its claim fenced both files — rule-explanations.ts is held by open PRs #37986, #37971 and #38038 — and the spec describe edit regenerates a reference page.

Business reason

An author refused for an address or JSON path who asks the rule to explain itself, or reads the field reference, finds no such refusal and cannot tell why the lint is red.

Reader who acts

Seat repo:objectstack#8, after PR #38096 lands and the three PRs holding rule-explanations.ts have landed or released it.

Blocked-by: #38096

Dedupe

is:issue object-field-ref-unknown explain structured → 0 hits; is:issue "$record" describe multi-valued → 0 hits on this text.

Grade: area:data · Task · p3 · reach: authors reading os lint --explain or the field reference after a structured-field refusal; text only

Activity

  1. added
    pm:blocked
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:build · domain:spec · Task · p3 · pm:blocked · size XS; rationale: once PR #38096 makes object-field-ref-unknown also refuse a $record path through a structured field, two texts that list what the rule refuses (the os lint --explain text and the $record describes that generate the field reference page) still name only the multi-valued case. They are incomplete, not wrong, and the refusal itself is loud and names its cause, so the filer's p3 stands. The area moves to area:build (lint and authoring text) from area:data. It waits on #38096. Answers seat repo:objectstack#8's Request: triage (7234226110). Recorded 2026-11-28T04:45Z.

  3. added
    domain:spec
    and removed on Nov 28, 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:builddomain:specpm:blockedpriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions