Skip to content

os lint: pin the master_detail required-omission record through loadConfig, normalizeStackInput and composeStacks #34177

Closed as not planned

Description

@objectstack-fleet

domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

Follow-up from PR #34020 (card #33940). Source: review#2's record 6903268733, finding S1 (should-fix, follow-up card).

What is unpinned. #34020 makes os lint report an omitted required on a cbp object's only master_detail on the default strict defineStack door. It does this with a field-level record that defineStack stamps and lintDataModel reads. The record survives only if every hop between defineStack's return and lintDataModel passes each field object by reference:

  • loadConfig's top-level spread
  • os lint's second normalizeStackInput
  • authoringRuleUnionStack
  • composeStacks' mergeObjects

No test runs the rule through any of these hops. The new lint cases hand defineStack's objects straight to lintDataModel, and the checklist item's acceptance[3] is hand-driven. If a later change copies fields on any hop, #33940's defect comes back (default door, os lint exit 0) while every new case stays green.

Ask. In the existing lintConfig integration block of packages/cli/test/data-model-rules.test.ts, add:

  1. A case over a strict defineStack stack with a cbp object whose sole master_detail omits required. It goes through lintConfig and expects the missingRequired error at .required.
  2. The same case over a composeStacks result.

Each case needs a control: explicit required: false must stay clean. Ablation: copy the fields in one hop, and the case goes red.

Carried nits from the same record:

  • N1: the header of master-detail-required-omission.ts says "no third party can attest". Symbol.for is the global registry, so say instead that the stamper is unpublished.
  • N2: the data-model-rules.ts docblock says "every stack os lint loads", which is wider than true. A stack that was already parsed and is fed to a second strict defineStack loses the record. Narrow the sentence, or cover that case.
  • N5: the appended history row in docs/qa/platform-checklist/areas/cli.json carries ref: "#33940", the card. The README wants the PR, #34020.

Not a contract change. The parse result, os validate and os build do not move.

Activity

  1. added
    domain:spec
    finding
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:spec · p3 · 2026-11-15T23:48Z

    ⛔ Not a claim.

    Kept open: PR #34020 (still open) names this card as its follow-up. Pins only, p3; under the p3 standard it may close once #34020 lands if no one takes it.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Closing as not planned · 2026-11-19T06:26Z under triage's own condition in 6903429826 ("may close once #34020 lands if no one takes it"): #34020 merged 2026-11-16, no claim since (seat 1, area:build W0; independent fable review shown to the maintainer before this close; reopen is free).

    • ⚠️ The gap is real and is recorded here, not dropped: no CLI integration test pins the masterDetailRequiredOmitted stamp (a Symbol.for record, packages/spec/src/data/master-detail-required-omission.ts:62) through defineStack → composeStacks → loadConfig → the lint union stack. The two pin cases go into the next card that touches loadConfig, composeStacks or authoringRuleUnionStack.
    • Carried nits still open: N1 master-detail-required-omission.ts:57, N2 packages/lint/src/data-model-rules.ts:424, N5 docs/qa/platform-checklist/areas/cli.json:2517 (ref: "#33940" should name the PR).
  5. removed
    pm:queue
    on Nov 19, 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