Skip to content

metadata-protocol: the boot hydration binds a stored webhook row of a name two packages hold by registration or load order; key its artifact lookup by (package, name) (ADR-0150 D3/D4) #32692

Open

Description

@objectstack-fleet

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

Parent: #31699. Filed under epic ruling R3-D.1 on PR #32577 (6820856607; Q1 ruled B). Found by: the #31699 PR 2 dev (round-2 report 6819956572, open question 1). Reproduced by the contract review 6820826396 (R2-B) in both registration orders.

Blocked-by: #32577

Premise

PR #32577 admits two packages of two namespaces holding one webhook name. After a restart, loadMetaFromDb hands each stored sys_metadata webhook row to hydrateOverlayIntoRegistry (packages/metadata-protocol/src/protocol-registry-hydration.ts), which grafts on the envelope of the artifact that lookupArtifactItem finds by name. With two holders, measured in both registration orders over a real SchemaRegistry:

  • A stored row naming no package, or naming a package that does not declare the name, is registered into the FIRST-registered holder's slot. The dispatcher then sends that holder's events to the row's URL.
  • Two rows, each naming one holder, leave only the last one loaded. The other holder reverts to its shipped declaration.

The registry's own binding refuses to guess: overlaySlotBinding (packages/objectql/src/registry.ts) binds a package-less row under two holders to no package. The order comes from the by-name artifact lookup. The boot census warns metadata_sealed_overlay_unserved ("No read serves them") for these rows, which is false for the first case.

Such rows are residue: a declared webhook is read-only (ADR-0131 D6). Reaching the state takes a row an older release stored, then a package of a second namespace installing the name.

Fix shape

Acceptance

Order

Activity

  1. removed
    pm:blocked
    on Nov 13, 2026
  2. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-tesla · session_01L9qibzKCovWpJoMZD6U3NT

    Claim: maintainer-ordered takeover of parent #31699 (2026-11-13T15:34:58Z, 「接手 31699」; takeover 6857670747), and of this card by the maintainer's pick on a decision card (2026-11-13T15:50:11Z, option 「一起接手 #32692」) · #32692 lands before #31699 PR 3 (this card's Order section)
    Session: session_01L9qibzKCovWpJoMZD6U3NT
    Account: os-tesla
    Branch: claude/project-thread-y6vjs1 (the card thread's harness-pinned branch, base main 7c36f52; platform exception to claude/issue-N-slug)
    Worktree: objectstack-issue-31699
    Domain: domain:server
    Seat: domain:server#7
    File surface: metadata-protocol protocol-registry-hydration.ts (the hydration's artifact lookup and the slot a stored row lands in), objectql registry.ts (a per-package overlay slot read by getPackageScopedItem and overlaySlotBinding), the boot census text, the harness packages/objectql/src/webhook-stored-row-boot-hydration.test.ts and its siblings for the other slotted types, the changeset. Stop on breach.
    Container & model: M, mode:thread, model: CONTRACT_REVIEW_TIER (reason: ADR-0150 red lines 1 and 2), effort: xhigh
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack (metadata-protocol boot hydration and the objectql registry) · no platform path covers it · an admin of a deployment with a stored row from an older release who then installs a second namespace's package of that name
    Thread-read: 6846288537
    Premise: holds, measured on main 7c36f52 in both registration orders (step 0, 6857806396 part A): the package-less row is fixed on main (#32741); a row naming a package that declares nothing lands in the first-registered holder's slot; of two rows each naming a holder, only the last loaded applies. Scope note 6838938411 (every package-slotted type, tool included) is taken: the fix is written for every package-slotted type.
    Serial constraints cleared: #31699 PR 3 waits for this card; #32895 (pm:on-hold) names this card as its carrier; no live claim names protocol-registry-hydration.ts.
    Resume-from: none

    Seat epic:#31527#2 said it would claim this card once #32577 landed (6842511357); #32577 landed at 05:53Z and no claim followed, so the maintainer gave it to this thread with its parent. ⛔ Not a claim on #32695 or #33016.

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

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-tesla · session_01L9qibzKCovWpJoMZD6U3NT
    os-dev-report

    Posted 2026-11-14T00:20Z.

    {
      "issue": 32692,
      "status": "done",
      "branch": "claude/project-thread-y6vjs1",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/33166",
      "session": "session_01L9qibzKCovWpJoMZD6U3NT",
      "premise_still_valid": true,
      "summary": "Half 1 of this card, Part of #32692 (the card stays open: its acceptance names one row per holder). In the read-side hydrator, for the 14 package-scoped types judgesRowHolder names (every one except flow, permission and the row-served types), a stored row bound to a package that holds none of a name two or more packages hold is declined instead of laid into the first-registered holder's slot (the boot census metadata_sealed_overlay_unserved names it); a customization pair's row of a two-holder name wears the envelope of the holder SchemaRegistry#overlayRowBinding binds it to (new optional includeDisabledPackages, so a disable never moves it), and one binding to no holder is declined. Carried to the epic line's per-package overlay slot: two rows bound to two holders still last-win in the one bare slot; a copy registered before a second holder installs is not taken back. Declared divergence from the claim: the claim said Clause-2 no, the PR and changeset say no (narrowing), required by round 1 of the red-line read.",
      "tests": "packages/objectql/src/webhook-stored-row-boot-hydration.test.ts 32/32, both registration orders. Ablated from scratch builds (dist copies, worktree untouched), each rule turns its own pins red: stray decline 4, pair envelope 5, null-binding decline 2, every-holder binding 2, one-holder guard 1, permission exemption 2, row-served exemption 2; BASE hydrator (84c66d36) fails 9 of 25. Full suites at 7ae13371 code (a63814ee and later change tests, types and a ledger only): @objectstack/metadata-protocol Test Files 337 passed, Tests 22803 passed 36 skipped; @objectstack/objectql Test Files 596 passed, Tests 12908 passed.",
      "gates": "check:adr-0087-registration exit 0 (1 declared-breaking changeset, registered stored-row-of-a-non-holder-under-two-holders); check:empty-changeset exit 0; check:changeset-fixed exit 0; packages/spec vitest src/migrations 198/198; packages/cli migrate-meta-engine-guidance 3/3; eslint on the changed files exit 0; metadata-protocol dts build (pnpm run build, deps built with declarations) exit 0 after reproducing CI's TS2559 at a63814ee (exit 1); tsc --noEmit metadata-protocol exit 0, objectql exit 0; objectql check:test-typecheck exit 0; check-engine-double-contract exit 0 after --write (findOne row 1 to 2). CI on the PR: red at a63814ee (Build UI Deps, TS2559) and at 6437503f (Lint, engine-double ledger), both fixed in this PR; CI on 4571f246 pending at posting.",
      "dogfood_battery": "6437503f (4571f246 adds only scripts/engine-double-contract.pinned.json) · os-verify-lock: VERDICT command-exit 0 · Test Files 462 passed, 3 skipped (465) · Tests 3905 passed, 42 skipped (3947) · no failure",
      "mcp_calls": "read-only: mcp__github__issue_read (card and comment reads, count not kept across this thread's context compaction); no MCP write tool used",
      "api_writes": "relay (fleet-write) only: claim comment 6857939002 (label-write), step-0 comment 6857806396 on #31699, pr_create #33166 (assignee os-tesla), this report; plus git pushes to the thread branch",
      "open_questions": [
        { "question": "A stored permission row bound to a package that holds none of a name two packages hold still lands in the first-registered holder's slot (order-dependent). Decline it too?", "options": ["A keep as is under the permission-fork ruling (detection only), file a card for the os migrate security-catalog-overlays reading to name it", "B decline it like the other types, accepting that enforced grants change at boot without an operator's act"], "recommendation": "A, because declining changes enforced grants without an operator's act, which the standing permission-fork ruling forbids; asked of the maintainer in the thread" }
      ],
      "security_findings": "withheld",
      "out_of_scope_findings": ["class: b · reach: named producer, SchemaRegistry one bare slot per name · two rows bound to two holders last-win, and no take-back when the holder set grows (measured, red-line record) · dedupe words: per-package overlay slot, ADR-0150 child R · carrier: the epic line card, noted, not filed"]
    }

    Red-line read: run in the card thread on the maintainer's instruction; round 1 FAIL (three must-fix, fixed in 7ae1337), round 2 PASS at 7ae1337, its four notes taken in a63814e.

  5. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

    2026-11-17T07:06Z Takeover by repo:objectstack#2. Provenance: triage#1's hand-off on mailbox #34479 (comment 6941142238) under project-forms.md's assist line, after repo:objectstack#1 gave no record for 2h50m on triage's 04:04Z ask; the previous holder os-tesla has been idle since 11-13/11-14. The assignee moves from os-tesla to os-steve in this stroke; pm:dispatched stays.

    Half 1 landed in #33166 (Part of); half 2 remains. Next holder: area o2-I of this seat (same metadata-protocol files as its in-flight PRs, so it runs after them), which writes its own claim before any code.

  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

    2026-11-17T07:26Z Premise corrected · scope narrowed on this card. Reading by area o2-I on origin/main a34eb0716a (real SchemaRegistry through loadMetaFromDb, webhook, both registration orders; probe not committed).

    Done already (#33166 and #33513).

    What is left: the Fix shape's "make the census text say what is served".

    • When a row names its own holder, that holder's slot and exact read serve the row, and the dispatcher sends to its URL. Yet metadata_sealed_overlay_unserved still prints "No read serves them — the package's own definition is served" and advises deleting the row. The census in protocol-diff-delete-load.ts excludes only .custom declared overrides, not a row in its own package's slot.
    • The collision line in registry.ts names the first code artifact's package for every holder's row, and says "every read serves the stored row" where the bare read answers 409.

    Narrowed card: the census and the collision log state truthfully which row each read serves, judging by the read path's own decision. Log text and the census's exclusion predicate only; serving behaviour is unchanged (pinned by #33513). Size S. The other reading (that ADR-0150 D6's seal means such rows should not be served at all) would change serving behaviour and is not taken here.

  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRPxhTmqbUbMrqygh4

    Release: area o2-I of repo:objectstack#2 · 2026-11-17T09:55Z · no dev dispatched, no branch
    Resume-from: none

    The maintainer's clock-out order of 2026-11-17T09:49Z: finish what is in flight, claim nothing new. No dev was dispatched and no branch was cut for this card, so it goes back to pm:queue and the assignee is cleared.

    Handover for the next holder:


    Generated by Claude Code

  8. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 17, 2026
  9. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY

    Ruling-ref: maintainer 14:43Z 「立一张专题卡,开始执行」 and 15:56Z 「domain 和优先级 不是已经定了吗?为什么现在不能改卡」 · regrade v3 under epic #35205

    Grade: p3 (was p2) · area:package · Bug · impeded × rare · boot hydration binds a stored webhook row of a shared name

  10. added and removed
    priority:p2
    on Nov 18, 2026
  11. removed
    area:devpath
    on Nov 22, 2026
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:packagedomain:serverpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions