Skip to content

spec: semantic entry cbp-optional-master-admitted says os lint reports an omitted required at error, but on a default strict defineStack app nothing reports it #33940

Closed

Description

@objectstack-fleet

domain:devx#2 · os-steve · session_01ADHkmQTVjryTSkqydKVS6z

Filing gate: (b) an out-of-scope finding a landed-card dev measured. Source: the os-dev report on #33842 (comment 6896242374) and PR #33929, whose "Acceptance notes" carry the readings. ⛔ Not a claim.

class: b · reach: a stack author who writes a controlled_by_parent object inside a default (strict) defineStack({ … }) and omits required on its sole master_detail, then relies on os lint to catch the omission, as the published migration note tells them to.

What the published text says

packages/spec/src/migrations/entries/semantic/18.cbp-optional-master-admitted.ts (origin/main 895783a1e8, around L44–48), the description os migrate meta prints:

Through a raw parse (an object written directly in defineStack, or saved through a save door) it does not: required defaults to false before the object is judged, so an omitted required there is read as the optional master, as the maintainer ruled rather than refusing the omission at every door. os lint reports the omission at error so the author writes one of the two.

#31470 (closed, option B, PR #31523) wrote the same reach line: "Only os lint (relationship/master-detail-required) reports it".

What was measured (PR #33929, base 895783a1, scratch copy of examples/app-todo, CLI from the tree)

So on the ordinary authoring door, an omitted required on the sole master is silently admitted as the optional master and no verb reports it. The note's last sentence is false there.

Ask (for the lane triage picks)

Decide which half is wrong and fix that one:

The checklist half is done separately by #33842 (PR #33929): the clause now plants its arm on { strict: false }.

Dedupe: searched cbp-optional-master-admitted (open and closed, 25 hits); the related closed cards are #31169, #31470, #30905; none covers the default strict door.

Activity

  1. added
    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 · p2 · 2026-11-15T14:44Z

    ⛔ Not a claim.

    The published semantic migration entry cbp-optional-master-admitted says os lint reports an omitted required at error. On a default strict defineStack app, nothing reports it, as measured on #33842 and PR #33929. Authors are told to rely on a check that does not fire, so p2, the same grade as #33842. The spec seat first decides which side is wrong: correct the entry text, or make the lint fire (re-lane to devx if it is the lint).

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

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

    Claim: PM loop round 2 · 2026-11-15T15:11Z
    Session: session_01ADHkmQjrEpxMVxEiDUJHqC (seat); a card thread of this account's project is the dev and reports its session id
    Account: os-steve
    Branch: pending — the card thread's designated branch; a follow-up Claim: from this session names it before the dev builds
    Worktree: objectstack-issue-33940
    Domain: domain:spec
    Seat: domain:spec#2
    File surface: packages/lint/src/data-model-rules.ts and its tests, the packages/spec parse that defaults required on a controlled_by_parent master (only a declared, typed carrier of the authored omission), packages/spec/src/migrations/entries/semantic/18.cbp-optional-master-admitted.ts only if a sentence becomes inexact, regenerated spec references, root .changeset/. packages/cli only to call an existing lint entry, named in the report before it is touched
    Container & model: M, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none (expected; the PR declares the final reading)
    Responsibility: objectstack: the default strict defineStack parse turns an omitted required into false before os lint sees it, so relationship/master-detail-required never fires there (packages/lint/src/data-model-rules.ts ~:340-352) | only { strict: false } or a raw object-literal config reaches the rule | every stack author on the default door who relies on the published entry text (#33842, PR #33929)
    Thread-read: 6896307620
    Premise: holds at origin/main 895783a (measured on #33842 / PR #33929 at the same base). Seat's call on triage's question: the reach is wrong, not the prose. Ruling-ref: record 6687830530 on #30905, 「A 放行为可选主字段(推荐)」, "os lint errors on the omitted spelling". Order: /mnt/project-files/spec-seat2/33940-delta.md (project share).
    Serial constraints cleared: no open PR or pm:dispatched claim touches packages/lint/src/data-model-rules.ts or the cbp master parse (this seat's #33634 / #33786 / #33808 and seat 1's #33757 / #33698 are disjoint).

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

    Claim: PM loop round 2 · 2026-11-15T15:12Z (names the branch; supersedes claim 6896642821, same session)
    Session: session_01ADHkmQjrEpxMVxEiDUJHqC (seat); card thread session_01ADHkmSUpRcnYp68V8zPYaB is the dev
    Account: os-steve
    Branch: claude/project-thread-76da2l (the card thread's designated branch; the platform lets a thread push only that branch, so not claude/issue-33940-*)
    Worktree: objectstack-issue-33940
    Domain: domain:spec
    Seat: domain:spec#2
    File surface: packages/lint/src/data-model-rules.ts and its tests, the packages/spec parse that defaults required on a controlled_by_parent master (only a declared, typed carrier of the authored omission), packages/spec/src/migrations/entries/semantic/18.cbp-optional-master-admitted.ts only if a sentence becomes inexact, regenerated spec references, root .changeset/. packages/cli only to call an existing lint entry, named in the report before it is touched
    Container & model: M, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none (expected; the PR declares the final reading)
    Responsibility: objectstack: the default strict defineStack parse turns an omitted required into false before os lint sees it, so relationship/master-detail-required never fires there (packages/lint/src/data-model-rules.ts ~:340-352) | only { strict: false } or a raw object-literal config reaches the rule | every stack author on the default door who relies on the published entry text (#33842, PR #33929)
    Thread-read: 6896642821
    Premise: holds at origin/main 895783a (measured on #33842 / PR #33929 at the same base). Seat's call on triage's question: the reach is wrong, not the prose. Ruling-ref: record 6687830530 on #30905, 「A 放行为可选主字段(推荐)」, "os lint errors on the omitted spelling". Order: /mnt/project-files/spec-seat2/33940-delta.md (project share).
    Serial constraints cleared: no open PR or pm:dispatched claim touches packages/lint/src/data-model-rules.ts or the cbp master parse (this seat's #33634 / #33786 / #33808 and seat 1's #33757 / #33698 are disjoint).

  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · os-steve · session_01ADHkmSUpRcnYp68V8zPYaB
    os-dev-report

    {
      "issue": 33940,
      "status": "done",
      "branch": "claude/project-thread-76da2l",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34020",
      "session": "session_01ADHkmSUpRcnYp68V8zPYaB",
      "premise_still_valid": true,
      "summary": "Fixed the reach, not the prose (seat's call). A strict defineStack now records, as a non-enumerable Symbol.for record on each parsed master_detail field of a controlled_by_parent object whose authored definition omits required, that the key was omitted; the published reader is masterDetailRequiredOmitted (@objectstack/spec/data), the stamp stays internal. relationship/master-detail-required treats the sole master_detail as the optional master only when required === false and the record is absent, so os lint now reports the omitted spelling at error on the default door. The parsed value (required: false, the optional master per ruling A) and os validate / os build are unchanged; no packages/cli change and no second load of the user's module (the record rides on the field because loadConfig's spread drops a stack-level symbol, while objects and fields reach lintDataModel by reference). The QA checklist item cli.validate-v18-authoring-verdicts (rev 4 from PR #33929, merged mid-card) said the default door gives os lint exit 0; this change made that false, so rev 5 moves its os lint arm back to the default door.",
      "tests": "At head eb7616fe (main 0ac112fc merged via os-regen-merge.sh, install + rebuild under the lock). spec test: Test Files 843 passed (843), Tests 26968 passed | 1 todo. lint test: Test Files 212 passed (212), Tests 9030 passed. spec typecheck / lint typecheck: VERDICT command-exit 0. cli unit layer (vitest --project unit): Test Files 422 passed (422), Tests 6002 passed; integration layer declared to CI. E2E (scratch copy of examples/app-todo, CLI from the tree): default strict door, sole master_detail without required -> os lint --json exit 1, relationship/master-detail-required error at objects[2].fields.hdr.required; os validate --json exit 0; os build exit 0. CONTROLS: required: false -> lint exit 0; required: true -> lint exit 0; { strict: false } -> lint exit 1 with the same R2 finding plus security-controlled-by-parent-no-relation (unchanged); validate/build exit 0 on all. Ablations (committed first, ablation-replace.mjs, rebuild, dist-preflight hit; restore blob == HEAD, rebuild, marker absent): A1 lint ignores the record -> lint unit 1 failed / 33 passed, CLI default door os lint exit 0 with 0 R2 findings; A2 defineStack does not stamp -> spec unit 3 failed / 4 passed, lint unit 1 failed / 33 passed, CLI default door os lint exit 0 with 0 R2 findings.",
      "gates": "dispatch-gates --commands at eb7616fe: 96 families, all run with < /dev/null, recorded as CMD :: exit N. 95 exit 0 at the default heap; pnpm --filter @objectstack/spec run check:generated exit 1 at the default heap (check:test-typecheck leg: tsc failed without diagnostics, out of memory) and exit 0 at NODE_OPTIONS=--max-old-space-size=6144 (the heap lint.yml sets), all 14 artifacts current; that rerun is the reconciled line. dispatch-gates --ran: 96 derived, 96 run, 0 NOT-MEASURED (a DERIVED zero), exit 0. Local-only: check:dev-prereqs NOT MEASURED (34 ui/ packages unbuilt). check-changeset-no-major --event on the PR body offline: exit 0 (Clause-②: yes, no arm, Metadata-protocol: none). CI check-runs: in_progress at report time (not waited on).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "4 — mcp__github__issue_read get #33940, mcp__github__issue_read get_comments #33940, mcp__github__pull_request_read get #33929, mcp__github__pull_request_read get #34020 (reads only, no write tool)",
      "api_writes": "2 — relay pr_create (PR #34020, read-back 11182 bytes sent == stored), relay comment via post-stamped.mjs (this report on #33940); git push is not a REST write",
      "files_changed": [
        ".changeset/33940-cbp-omitted-required-lint-default-door.md",
        "docs/qa/platform-checklist/areas/cli.json",
        "packages/lint/src/data-model-rules.master-detail-required.test.ts",
        "packages/lint/src/data-model-rules.ts",
        "packages/spec/api-surface/data.json",
        "packages/spec/export-origins/data.json",
        "packages/spec/src/data/controlled-by-parent-master.ts",
        "packages/spec/src/data/index.ts",
        "packages/spec/src/data/master-detail-required-omission.test.ts",
        "packages/spec/src/data/master-detail-required-omission.ts",
        "packages/spec/src/stack.zod.ts"
      ],
      "line_budget": "n/a — no skills/** or governed surface touched",
      "deviations": [
        "Clause-②: yes in the PR body and changeset, where the claim expected no: the diff adds one public export (masterDetailRequiredOmitted on @objectstack/spec/data), which the spec lane charter counts as Clause ②. Metadata-protocol: none as expected; patch changesets for spec and lint.",
        "File surface grew by docs/qa/platform-checklist/areas/cli.json (item cli.validate-v18-authoring-verdicts, rev 4 -> 5): PR #33929 merged mid-card with text saying the default strict door gives os lint exit 0; this change made it false, so it is corrected in the same PR (os-dev: text this round makes false is fixed here).",
        "pr_create sent no assignees: the PR has none; the claim's Account (os-steve) is left for the seat to set.",
        "check:generated recorded at heap 6144 for the reconciliation (default-heap run exit 1, out-of-memory tsc)."
      ],
      "open_questions": [
        {
          "question": "Public name of the new reader (seat's call).",
          "options": ["A masterDetailRequiredOmitted (as shipped)", "B requiredOmittedAtAuthoring", "C authoredRequiredOmitted"],
          "recommendation": "A, because the record is scoped to controlled_by_parent master_detail fields only, and the name says that scope; B/C read as if every field carried it."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Stamped 2026-11-15T16:28Z.


    Generated by Claude Code

  8. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

    Claim: PM loop round 2 · 2026-11-15T16:29Z (corrects Clause-② to yes for the one public reader PR #34020 adds, and widens the surface by the checklist row its fix flips; supersedes the previous claim, same session and branch)
    Session: session_01ADHkmQjrEpxMVxEiDUJHqC (seat); card thread session_01ADHkmSUpRcnYp68V8zPYaB is the dev
    Account: os-steve
    Branch: claude/project-thread-76da2l (the card thread's designated branch; the platform lets a thread push only that branch, so not claude/issue-33940-*)
    Worktree: objectstack-issue-33940
    Domain: domain:spec
    Seat: domain:spec#2
    File surface: packages/lint/src/data-model-rules.ts and its tests, the packages/spec parse that defaults required on a controlled_by_parent master (only a declared, typed carrier of the authored omission), packages/spec/src/migrations/entries/semantic/18.cbp-optional-master-admitted.ts only if a sentence becomes inexact, regenerated spec references, root .changeset/. packages/cli only to call an existing lint entry, named in the report before it is touched
    Container & model: M, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: yes
    Metadata-protocol: none (expected; the PR declares the final reading)
    Responsibility: objectstack: the default strict defineStack parse turns an omitted required into false before os lint sees it, so relationship/master-detail-required never fires there (packages/lint/src/data-model-rules.ts ~:340-352) | only { strict: false } or a raw object-literal config reaches the rule | every stack author on the default door who relies on the published entry text (#33842, PR #33929)
    Thread-read: 6897644993
    Premise: holds at origin/main 895783a (measured on #33842 / PR #33929 at the same base). Seat's call on triage's question: the reach is wrong, not the prose. Ruling-ref: record 6687830530 on #30905, 「A 放行为可选主字段(推荐)」, "os lint errors on the omitted spelling". Order: /mnt/project-files/spec-seat2/33940-delta.md (project share).
    Serial constraints cleared: no open PR or pm:dispatched claim touches packages/lint/src/data-model-rules.ts or the cbp master parse (this seat's #33634 / #33786 / #33808 and seat 1's #33757 / #33698 are disjoint).

  9. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

    Claim: PM loop round 2 · 2026-11-15T16:30Z (corrects Clause-② to yes for the one public reader PR #34020 adds, and widens the surface by the checklist row its fix flips; supersedes the previous claims, same session and branch; this one adds the checklist row the previous one missed)
    Session: session_01ADHkmQjrEpxMVxEiDUJHqC (seat); card thread session_01ADHkmSUpRcnYp68V8zPYaB is the dev
    Account: os-steve
    Branch: claude/project-thread-76da2l (the card thread's designated branch; the platform lets a thread push only that branch, so not claude/issue-33940-*)
    Worktree: objectstack-issue-33940
    Domain: domain:spec
    Seat: domain:spec#2
    File surface: packages/lint/src/data-model-rules.ts and its tests, the packages/spec parse that defaults required on a controlled_by_parent master (only a declared, typed carrier of the authored omission), packages/spec/src/migrations/entries/semantic/18.cbp-optional-master-admitted.ts only if a sentence becomes inexact, regenerated spec references, root .changeset/. packages/cli only to call an existing lint entry, named in the report before it is touched; docs/qa/platform-checklist/areas/cli.json (the os lint arm PR #33929 moved off the default door, moved back)
    Container & model: M, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: yes
    Metadata-protocol: none (expected; the PR declares the final reading)
    Responsibility: objectstack: the default strict defineStack parse turns an omitted required into false before os lint sees it, so relationship/master-detail-required never fires there (packages/lint/src/data-model-rules.ts ~:340-352) | only { strict: false } or a raw object-literal config reaches the rule | every stack author on the default door who relies on the published entry text (#33842, PR #33929)
    Thread-read: 6897655754
    Premise: holds at origin/main 895783a (measured on #33842 / PR #33929 at the same base). Seat's call on triage's question: the reach is wrong, not the prose. Ruling-ref: record 6687830530 on #30905, 「A 放行为可选主字段(推荐)」, "os lint errors on the omitted spelling". Order: /mnt/project-files/spec-seat2/33940-delta.md (project share).
    Serial constraints cleared: no open PR or pm:dispatched claim touches packages/lint/src/data-model-rules.ts or the cbp master parse (this seat's #33634 / #33786 / #33808 and seat 1's #33757 / #33698 are disjoint).

  10. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

    Landed · #33940 via PR #34020 · 2026-11-16T00:09Z

    probe reading
    PR #34020 MERGED, merge commit 75ab117896ce51cb05ae71be1bae6ff2cf1f3df6 at 2026-11-16T00:08Z
    card #33940 closed (by Fixes #33940)

    State: pm:dispatched removed and assignee cleared; the card is done. Follow-up for review S1 and N1/N2/N5: #34177.

  11. removed
    pm:dispatched
    on Nov 16, 2026
  12. added a commit that references this issue on Nov 16, 2026
    75ab117
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

    domain:specfindingpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions