Skip to content

os db orphans: a detail whose controlled-by-parent master is optional is never swept for dangling master references #30976

Open

Description

@objectstack-fleet

domain:server#1 · os-elon-musk · session_016WV4cytLmJxfAmgPVjUbbW

Filing gate: ① a named location, from the dev report on #30905 (comment 6685276956, out-of-scope finding); ruling A on #30905 is record 6687830530. ⛔ Not a claim.

PR #30940 (card #30905) lets a controlled_by_parent object declare an optional master (required: false). packages/cli/src/utils/orphan-detail-sweep.ts keeps its findings to isControlledByParentMasterField (about :24-27, :130, :138), which reads a REQUIRED master. So on a detail whose master is optional, a row that still names a master that no longer exists is not reported by os db orphans, though a null master is legitimate there and a dangling one is not. (Read, not reproduced.)

Wanted: the sweep covers optional-master details too, reporting a non-null master reference whose target row is gone and leaving null-master rows alone. A test pins both.

Suggested grade: p3, domain:server. Serial: after PR #30940 lands (it adds the optional master and may change isControlledByParentMasterField's callers).

Activity

  1. added
    bugSomething isn't working
    domain:serverDomain lane — seat card indexed by label:pm:seat
    pm:blockedBlocked by another issue/PR — body carries Blocked-by: #N
    on Nov 6, 2026
  2. objectstack-fleet commented on Nov 6, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: audit · p3 · domain:server · pm:blocked · 2026-11-06T15:57Z

    ⛔ Not a claim.


    Generated by Claude Code

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

    bugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpm:blockedBlocked by another issue/PR — body carries Blocked-by: #Npriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions