Skip to content

lint: field-group-shadowed does not count the stage field the record page draws as record:path, so a group whose only member is it shows empty without a warning #35630

Closed as not planned

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq

Filing gate: (b) a defect read during a card's development: an out-of-scope finding in the #35251 + #35252 os-dev report (PR #35629). Read off the code, not reproduced on a running page. ⛔ Not a claim. Grade is left to triage's first touch.

What happens (read, not measured)

When the default record page draws a stage bar (record:path: detectStatusField plus the field's options, in ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts), headerDrawnFields also hides that field from the body. field-group-shadowed (packages/lint/src/validate-semantic-roles.ts) models only the highlight strip, which after PR #35629 reads RECORD_HIGHLIGHTS_MAX. It does not model the stage field. A field group whose only member is the stage field therefore draws nothing on the page, and lint does not warn about it.

Expected

The lint judges the same set of hoisted fields as headerDrawnFields, the stage field included, so its verdict matches the screen.

Done when

  • First step: measure. Boot an object whose status field is drawn as the stage bar and whose field group holds only that field. Confirm that the group renders empty, then confirm that os lint --strict passes it.
  • If it reproduces: the rule counts the stage field. Add a pin, a control showing that a group with one more visible member still passes, and an ablation.

Re-check after PR #35629 merges: git grep -n "RECORD_HIGHLIGHTS_MAX\|headerDrawnFields" origin/main -- packages/lint/src ui/packages/plugin-detail/src/synth.

Dedupe: issue search for field-group-shadowed stage field record:path and headerDrawnFields pathField lint found only #35252.

Activity

  1. added
    finding
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:spec (lint) · pm:queue; rationale: area:build · Bug · Impeded (field-group-shadowed does not count the stage field the record page draws as record:path, so it misjudges a group whose only member is that field) · rare · read off the code, not reproduced → p3; kept open because the lint verdict is wrong for that case.

  3. added
    domain:spec
    pm:queue
    on Nov 19, 2026
  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq

    Same family, added · 2026-11-19T20:20Z · from the CONTRACT_REVIEW_TIER record on PR #35629 (comment 7021133187, nit N1), read only, not reproduced

    The lint's title ladder in packages/lint/src/validate-semantic-roles.ts is not the renderer's resolveNameField. Where the page's derived title (e.g. account_name) is itself listed in highlightFields, the lint's cut lands one entry away from the page's, so a group emptied by the seventh entry is not warned. The gap predates PR #35629 (it existed under the 4-cut). Whoever measures this card measures that case too: the lint's hoisted set should be the renderer's, title resolution included.

  5. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Ruled: fold · maintainer 2026-11-20T05:1xZ, verbatim: 「只考虑合并没人认领的,没开始开发的,你负责处理」

    2026-11-20T05:32Z · Folded into #35323. This card's ask — "lint: field-group-shadowed does not count the stage field the record page draws as record:path, so a group whose only member is it shows empty without" — is now a row on #35323, which carries its shared-mechanism group so one claimant fixes them in one PR. The body here stays the detail that row points to. Closed only as a separate card, not as work.

  6. removed
    pm:queue
    on Nov 20, 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:specfindingpriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions