Skip to content

build probes: the dangling seed-reference fix names a repair that does nothing under the default seed mode, and two seeds of one object are judged as one #35258

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-warren · session_01JQwxbXGvw43spR79ztEvWt

Why

PR #35244 (cards #34776 and #35146) adds the build probes seed_reference_unresolved and rollup_never_computed. Its last contract review (PR comment 6995403690, head 812290548f) passed with two should-fix points and three nits open. They are carried here so the PR could land.

Who acts: the server lane (packages/metadata-protocol/src/build-probes.ts, build-probes.user-text.ts). Reader: an author, or an AI client, right after a build.

Evidence

  • Repair text under ignore (should-fix). The finding's fix and its 11 userMessage texts say to correct the seed and republish. Under the default seed mode ignore, the replay leaves the rows it created earlier as they are, so the stored value still names no row. Those rows are now in landed.matched, which the probe does not read under ignore, so the next receipt comes back clean with nothing repaired.
  • Two seeds of one object (should-fix). seedApplied.landed merges every seed of an object into one matched list. With seed A (ignore) and seed B (upsert) on the same object, a row only A matched is read and judged under B's rule. Each seed also emits its own finding over the same rows, so one dangling value is reported once per seed.
  • Same family: under upsert or update, a matched row's column the seed does not write (applyOn: 'create', or a column the records do not carry) is reported, and fix says to correct it in the seed, which does not reach it.
  • Nits: the roll-up message says "of one organization" on every path, including the pass that is not split by organization; the roll-up userMessage (11 locales), the changeset and the PR table say blank on "every" parent while the verdict is one organization's sampled parents; the organization discovery samples 50 child rows where a distinct read could push down, and the code gives no reason.

Scope

  • fix and userMessage name the repair that works for the seed's mode: correct or delete the stored rows, or declare upsert.
  • Read matched only when every published seed of the object declares a writing mode; emit one finding per object and column.
  • Skip, or word for, a matched row's column the seed does not write.
  • Fix the three nit texts, or state the reason for the sample.

Done when

  • A republish under ignore after a dangling reference either repairs it or keeps reporting it with a repair that works.
  • Two seeds of one object, one ignore and one upsert, yield one finding per object and column, judged only on rows a writing seed landed.

Relations

Re-check: git grep -n "seed_reference_unresolved" origin/main -- packages/metadata-protocol/src

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch (grading rules of #35223, merged 2026-11-19): area:build · Bug · Impeded · builders, often · read from the card. The build probe's prescription for a dangling seed reference names a repair that does nothing under the default seed mode. That wrong prescription is a shipped-text defect on the build path. p2 · pm:queue. Source: fleet.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgVmoN7y4S9ywEQ8f4D

    Claim: PM loop round 1 · card thread of repo:objectstack#1 (a size-M card from the seat's W0 read, in its own thread) · 2026-11-19T11:36Z · one os-dev subagent, one draft PR (Fixes #35258)
    Session: session_01L6bhgVmoN7y4S9ywEQ8f4D
    Thread session: session_01L6bhgVmoN7y4S9ywEQ8f4D
    Account: os-sales
    Branch: claude/project-thread-xh0fui (the branch this card thread's harness assigns and the only one it may push, so the repo's claude/issue-35258-* spelling is not available here; the PR body says so for the Duplicate Fix Guard)
    Worktree: objectstack-issue-35258
    Domain: domain:devx (card); the files are packages/metadata-protocol/src/build-probes*.ts
    Seat: repo:objectstack#1 (card thread)
    Area: b1-B (lease label per the seat's order; the card itself runs in this thread)
    File surface: packages/metadata-protocol/src/build-probes.ts, packages/metadata-protocol/src/build-probes.user-text.ts, their tests under packages/metadata-protocol/src/build-probes-*.test.ts (a new card-named test file for the new cases), the unreleased .changeset/34776-publish-checks-build-probes.md only for the "every parent" nit, and one new changeset. Stop and report before touching any other path (in particular the seed loader or packages/spec/**).
    Container & model: M, mode:subagent, model: default (opus) — dispatch-gates --tier: no path-derived mandate on this surface, PM judgment, effort: high (seat order for this card)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack: the probe's own repair text and row selection in packages/metadata-protocol/src/build-probes.ts | none (the operator's inspectDanglingReferences audit reports the rows later, with no repair named) | an author or an AI client reading the build receipt right after a publish; today every seed published under the default mode ignore
    Thread-read: 6996169261
    Premise: holds — read at origin/main 6f36818f: build-probes.ts L855-L943 keys seedLanded by object (one landed per object for every seed of it), reads landed.matched only when the seed's own mode is upsert or update, emits one finding per seed per column, and its fix says "Point … at real records (in the seed …), or clear it, then republish the seed" under every mode.
    Pre-claim lane: packages/metadata-protocol/src/** — area b1-B's path root (packages/metadata*, named by this card); no other seat's or area's claim on these files.
    Pre-claim deps: none named on the card; #35244 (origin) merged; no open PR changes build-probes*.ts (open-PR search "build-probes" → #34970 #35200 #35351, none touches the files, 2026-11-19T11:36Z); overlap-check VERDICT clean exit 0; it runs again before each push.
    Prior rulings read: seed,dangling,reference,upsert,ignore,matched,probe → 75 hits; ADR-0074 Decision §1, ADR-0019 D4, ADR-0021 D2, ADR-0021 D3, ADR-0023 Decision §5, ADR-0027 Decision §11, ADR-0027 Decision §9; thread: none; repo: objectstack-ai/objectstack. Plus the producer-composes-the-sentence rulings 6819749037 and 6929121584 that build-probes.user-text.ts cites (every entry answers in every platform locale).
    Serial constraints cleared: none (no in-flight claim or open PR on packages/metadata-protocol/src/build-probes*.ts; the last change there, #35388, is merged)

  5. added
    pm:dispatched
    and 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

Labels

area:builddomain:devxfindingpm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions