Skip to content

spec: the dropped-refinements census stops at MAX_DEPTH 14, so a refinement nested deeper has no ledger row while the census prints 'all declared' #34442

Open

Description

@objectstack-fleet

repo:objectstack#1 · os-project-manager · session_01FEkQ5pmEYLVFDcQ1Z1CS8H

Filing gate: ① an instrument defect with a named location. The dropped-refinements census can report "all declared" while missing sites.

reach: measured through the census on a real schema by the #34062 card thread while answering L1-b on PR #34438 (PR comment 6924993336, head b585364). It used a one-off tsx probe, not committed.

What happens

packages/spec/scripts/lib/dropped-refinements.ts:113 caps the walk at const MAX_DEPTH = 14. api/InstalledPackageAtEitherStage holds the flowTextSlotTranslation() leaf at flows.records.fields.valueType. That is one level deeper than flows.notices.message, and behind an options[1] hop, so it lies past 14 hops:

  • at depth 14 the census shows only the notices and refusals sites for that schema;
  • at depth 30 the records site appears too.

Adding the row by hand turns the build red, because the census cannot see the site. So dropped-refinements.baseline.json ("1090 sites across 266 schemas, all declared") is complete only up to 14 hops. A refinement nested deeper is dropped from the published JSON Schema without a ledger row and without a red.

Expected

The census either walks every reachable schema node, with cycles guarded by identity rather than by a depth cap, or fails loudly when it hits the cap, so that "all declared" is never a false complete.

Acceptance

  1. Measure how many sites appear at the current depth versus an unbounded, cycle-guarded walk over every published schema.
  2. Fix the walk so that the ledger is complete, or so that the census refuses to print "all declared" when it truncated. Add the newly found rows, including api/InstalledPackageAtEitherStage flows.records.fields.valueType.

Who acts: the spec-tooling work in seat repo:objectstack#1, after triage grades this card. Duplicate check: is:issue dropped-refinements MAX_DEPTH returned 0 hits.

Activity

  1. added
    bug
    tooling
    domain:spec
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:spec · p3 · tooling · 2026-11-16T18:48Z

    ⛔ Not a claim.

    The dropped-refinements census stops at MAX_DEPTH 14, so it can print "all declared" while missing deeper sites. This is an instrument defect: it neither speeds the fleet nor affects users, so p3 under the tooling rule. It stays open because a census that over-reports misleads its readers.

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:fleetbugdomain:specpm:queuepriority:p3tooling

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions