Skip to content

metadata-protocol: removing the second holder's .custom override of a shared name judges the pair row against a bare-name owner lookup, so it may depend on registration order (ADR-0150 D4) #32552

Closed

Description

@objectstack-fleet

epic:#31527#1 · os-bill · session_01Utp6CYGYEUhpi29FpjLmxT

Part of #31527. Found as an unconfirmed side read by the contract review of PR #32507 (#31696 PR-3; review 6814434131, red-line read 6814441684, ruling 6814454746). It is outside that PR's diff.

Suspected defect (read, not run). packages/metadata-protocol/src/protocol-diff-delete-load.ts:429 judges a pair-row removal (<base>.custom) against packagedArtifactOwner, a bare-name lookup. When two namespaces hold a name, for example a flow after #31696 lands, removing the second holder's .custom override may be judged against whichever holder registered first. It may then be refused, or the wrong holder's override removed. Under epic red line 2, it must be judged against the pair's own base.

Premise re-check (run first). With two packages A and B each holding flow f and each with a .custom override, register A first, then remove ?package=B.custom for f. Expected: B's override removed, A's untouched. Run it in both registration orders. Zero difference between the orders means the premise is false; close the card.

Fix direction if it reproduces. Read the owner from the pair id's base (isPairOf) rather than from the bare name. Pin both registration orders.

Blocked-by: #32507 #32557

Activity

  1. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#1 · os-sales · session_01L6bhgVaKJ9TPfXPRhdqx3e

    Claim amendment to this seat's takeover claim 6823817495 on #32552 · 2026-11-12T21:36Z:
    Session: session_01L6bhgUbMnYEPr5ZR4R4QHr (card thread; seat session session_01L6bhgVaKJ9TPfXPRhdqx3e)
    Branch: claude/project-thread-31hd5y (the thread's harness branch; it starts from claude/project-thread-qul92e@73391d51c639f158645f64badda2f57b617fd4cc and merges, never rebases; project-thread-qul92e is left as pushed)
    Container & model: M, mode:thread, model: default (dispatch-gates --tier: no path-derived mandate), effort: xhigh (epic card; maintainer's effort rule, 2026-11-12 17:17Z).
    Serial constraints: waits on #32408, now PR #32815 (supersedes #32557), per landing-order ruling 6819293900; the thread merges the current claude/project-thread-iv3vz6 head and origin/main and opens the draft PR only after #32815 merges.
    Everything else in the takeover claim stands.

  2. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#1 · os-sales · session_01L6bhgVaKJ9TPfXPRhdqx3e

    Release: paused under the maintainer's token-saving order of 2026-11-13 (relayed by the epic seat: p1 first, p2 only what is required). The work is kept, nothing is deleted, no PR is open.
    Restart-when: the maintainer lifts the token-saving mode, or the epic seat re-dispatches this card
    Resume-from: claude/project-thread-31hd5y@d4d32416ec770348561ecc4631a7e6f4958f34e1

    State: fix, disable pins and CONTROL done, ablation 12 red, metadata-protocol and objectql suites pass; waits #32815 before the PR. pm:dispatched → pm:on-hold, os-sales unassigned; the next claimant resumes from the branch above (merge main, never rebase).

  3. added
    pm:on-hold
    and removed
    pm:dispatched
    on Nov 13, 2026
  4. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#1 · os-sales · session_01L6bhgVaKJ9TPfXPRhdqx3e

    Back to queue · 2026-11-13T11:39Z · pm:on-hold → pm:queue, on the maintainer's word relayed by the coordinator (「两张暂停的交回队列」, 2026-11-13 11:38Z). Supersedes the pause in Release 6840812602; no claim stands and no one is assigned.

    Resume-from: claude/project-thread-31hd5y@d4d32416ec770348561ecc4631a7e6f4958f34e1

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: H14 · pm:blocking derived · 2026-11-13T12:18Z

    ⛔ Not a claim; grade and state unchanged. Open card(s) #32859 name this card on a line-leading Blocked-by:, so the derived cache is added. It comes off when they close or drop the line.

  7. added
    pm:blocking
    on Nov 13, 2026
  8. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#31527#2 · os-elon-musk · session_016WV4czFhtRVZNBeHdQA6PW

    Claim: PM loop round 2 · p2 with a pushed branch, resumed on the maintainer's order 「31527 之前已经开发了分支的 p2,继续推进到合并」; its prerequisite PR #32815 has merged · 2026-11-13T14:21Z
    Session: session_016WV4czFhtRVZNBeHdQA6PW
    Account: os-elon-musk
    Branch: provisional — the card thread re-posts this claim with its own claude/project-thread-* branch, resuming from claude/project-thread-31hd5y@d4d32416ec770348561ecc4631a7e6f4958f34e1 (Resume-from 6851779892)
    Worktree: objectstack-issue-32552
    Domain: domain:server
    Seat: epic:#31527#2
    File surface: as claim 6823817495 and the branch: packages/metadata-protocol/src/protocol-diff-delete-load.ts, protocol-class-head.ts, protocol-environment-rows.ts, packages/objectql/src/registry.ts, packages/spec/src/migrations/entries/semantic/18.pair-row-locale-addition-refused.ts + tests (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default (no path-derived mandate), effort: high
    Clause-②: no (narrowing)
    Metadata-protocol: narrowed
    Responsibility: platform code in objectstack (metadata-protocol pair-row removal); no other platform path covers it; reached by an environment where a second holder removes its .custom override
    Thread-read: 6852659127
    Premise: holds (carried from the earlier claim and the work on the branch; the thread re-reads every comment first)
    Serial constraints cleared: #32561 (shares objectql/src/registry.ts and the migration entry) runs after this card lands

  9. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 13, 2026
  10. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#31527#2 · os-elon-musk · session_016WV4cyN75XjF6J8fLtD21r

    Claim: PM loop round 2 · p2 with a pushed branch, resumed on the maintainer's order 「31527 之前已经开发了分支的 p2,继续推进到合并」; its prerequisite PR #32815 has merged · re-posted by the card thread at 2026-11-13T14:32Z
    Session: session_016WV4cyN75XjF6J8fLtD21r (card thread; seat session session_016WV4czFhtRVZNBeHdQA6PW)
    Account: os-elon-musk
    Branch: claude/project-thread-h61law (the thread's harness branch; it starts from claude/project-thread-31hd5y@d4d32416ec770348561ecc4631a7e6f4958f34e1 (Resume-from 6851779892) and merges origin/main, never rebases; project-thread-31hd5y is left as pushed)
    Worktree: objectstack-issue-32552
    Domain: domain:server
    Seat: epic:#31527#2
    File surface: packages/metadata-protocol/src/protocol-diff-delete-load.ts, protocol-class-head.ts, protocol-environment-rows.ts, packages/objectql/src/protocol-flow-custom-override.test.ts, .changeset/32552-pair-row-removal-every-shipper.md. packages/objectql/src/registry.ts and 18.pair-row-locale-addition-refused.ts leave the diff at the origin/main merge: the branch carried PR #32815's round-3 head, and each conflict takes main's landed copy (e336a33eb). Stop on breach; explain in the report.
    Container & model: M, mode:thread, model: default (no path-derived mandate), effort: high
    Clause-②: yes (widening)
    Metadata-protocol: none
    Declaration source: the epic ruling 6819293900 condition 2 (Clause-②: yes (widening), a FROM → TO row with its arm and a pin per moved answer, a one-holder CONTROL) and the branch's measured changeset; the earlier claims' no (narrowing) / narrowed were pre-measurement expectations. No answer narrows, and no authorable key, value or type moves.
    Responsibility: platform code in objectstack (metadata-protocol pair-row removal); no other platform path covers it; reached by an environment where a second holder removes its .custom override
    Thread-read: 6855677209
    Premise: holds (measured on the branch: removal, commit revert and boot census each depended on registration order; pinned in both orders)
    Serial constraints cleared: #32561 (shares objectql/src/registry.ts and the migration entry) runs after this card lands. Ruling 6819293900 condition 3: trial-merge against #32613's branch and the open chain branches before queueing.

  11. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#31527#2 · os-elon-musk · session_016WV4cyN75XjF6J8fLtD21r
    os-dev-report

    {
     "issue": 32552,
     "status": "done",
     "branch": "claude/project-thread-h61law",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/33129",
     "session": "session_016WV4cyN75XjF6J8fLtD21r",
     "premise_still_valid": true,
     "summary": "Resumed claude/project-thread-31hd5y@d4d32416 and merged origin/main once (c35a911b30). The four conflicts (objectql registry.ts, two package-scoped test files, the pair-row locale migration entry) came from the branch carrying PR #32815's round-3 head; each takes main's landed copy e336a33eb, and the two 32408-* changesets stay deleted (consumed by #29963). The diff vs main is the card's five files: someShipperOf in protocol-environment-rows.ts judges the pair-row removal, the commit revert (restoreWriteFor) and the boot census against every shipper of the name, not only the first-registered one. Declared Clause-②: yes (widening) / Metadata-protocol: none per epic ruling 6819293900 condition 2 and the branch's changeset; the claim re-post 6855957599 carries the same lines (the earlier claims' no (narrowing) / narrowed were pre-measurement expectations).",
     "tests": "head c35a911b30. metadata-protocol: Test Files 337 passed | 7 skipped (344), Tests 22799 passed | 36 skipped, typecheck exit 0 (lock VERDICT command-exit 0). objectql: Test Files 594 passed (594), Tests 12802 passed (12802), typecheck exit 0 (VERDICT 0). Focused protocol-flow-custom-override.test.ts 33/33. Ablation: the three source files put back to origin/main, metadata-protocol rebuilt, ablation-dist-preflight: someShipperOf absent from all 24 built files; result 12 failed | 21 passed (33), every two-holder pin red, every CONTROL green; quoted 'Serialized Error: { code: NOT_OVERRIDABLE, status: 403 }'. Restore leg: rebuilt, marker present in 2 built files, git diff HEAD empty and HEAD blob hashes matched, 33/33.",
     "gates": "dispatch-gates --commands: 69 families from 5 paths vs merge base 2c98485db; 68 exit 0; check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (needs full pnpm build) = NOT MEASURED locally, CI runs it; check:lean-entry-closure exit 3 then exit 0 after building objectql. --ran with exit codes: '69 derived famil(ies) accounted for, 68 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)'. pnpm lint exit 0. check-closing-keyword-parity --body: Fixes #32552 only. PR check-runs: in_progress at report time (not awaited). Condition 3 trial-merge: PR #33126 (#32613) head c0b7cb13 merges into c35a911b30 with no conflict (8 files, both touch protocol-flow-custom-override.test.ts); #32568 is closed.",
     "dogfood_battery": "c35a911b30 · run at the seat order's request (not owed by os-dev: no ! and no (narrowing) arm) · closure build VERDICT command-exit 0 · test VERDICT command-exit 0 (39m25s) · Test Files 460 passed | 3 skipped (463) · Tests 3874 passed | 42 skipped (3916) · no failures",
     "mcp_calls": "0",
     "api_writes": "4 via the fleet-write relay: claim re-post comment 6855957599 on #32552; pr_create #33129 (+ assignees leg os-elon-musk); contract-review ring 6858168885 on mailbox #32588; this os-dev-report comment. Plus one git push.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: #32859 · its census half (second holder's served declared override reported as unserved) is the third row this PR moves; the seat judges whether #32859's remainder still stands after #33129 lands. Not closed by this PR."
     ]
    }

    PR #33129 · head c35a911b3073eafa6d152e2101a566322cd5c4a0 · contract review requested from triage#1 (6858168885) · epic red-line read and ACCEPT are the seat's.


    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

Labels

area:devpathdomain:serverpm:blockingpm:dispatchedpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions