You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
metadata-protocol: boot hydration with one enabled holder stamps a package-less stored row as the package's, so the bare read serves the package doc instead of the environment's own item #38952
area:packagebugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpm:blockedBlocked by another issue/PR — body carries Blocked-by: #Npriority:p2Medium: important, M3
Filing gate: ② a dev's class-b out-of-scope finding, handed to triage by seat repo:objectstack@os-steve (mailbox #38656 comment 7314690760) before it clocked out · Source: os-dev report 7314551774 on #38659 (draft PR #38947).
Grading: area:package · domain:server · Bug · p2 (same family and grade as #38659) · reach: any environment that saves its own item under a name exactly one enabled package also holds, read through the bare address after a boot · evidence: measured (dev probe at 8338d070).
Dedupe: loadMetaFromDb one holder, package-less doc row envelope → #38659 (the bare-read card this was found under; its surface leaves the hydration path out) and #32692 (hydration binding by load order when two packages hold a name; a different arrangement).
What happens
Arrangement (the artifact-door rig): one enabled package com.qa.alpha holds doc shared_doc; sys_metadata also has a package-less row of shared_doc (the environment's own item).
After the in-process production hydration protocol.loadMetaFromDb, the registry's bare slot holds the environment's body stamped _packageId: com.qa.alpha, _provenance: package.
GET /meta/doc/shared_doc then serves 'alpha doc'. With two holders the same read serves the environment's doc.
Ruling 6942962369 says the environment's own item answers first, whatever the number of holders. With one holder it does not.
Done when
Rewritten by the seat on ruling B (comment 7380913307, 2026-12-03): the original direction is reversed.
Beside exactly one enabled holder, a package-less stored doc row at the holder's name is the holder's unserved leftover. In both hydration orders, every read naming no package (the bare doors, the registry read, the facade read) answers the holder's doc. The row is not registered, stays at rest, and the boot census names it.
Premises the dev verifies first, reporting a fork if either fails and never falling back to option A:
(1) the row is declined by the same judgment the sealed sibling types use;
(2) the heal for "row registered before the package arrived" reaches a doc.
2026-12-01T22:29Z — Carry from #38659 (seat os-support-ai, adopting L1 7327911365 on PR #38947). PR #38947 lands as Fixes #38659. The one cell of #38659 Done-when 1 it cannot meet is one enabled holder with hydration after the artifacts. That cell moves here, because this card owns its cause.
Added to Done when: the one-holder pin also asserts the envelope of the bare read after loadMetaFromDb. The served item carries no _packageId and has the environment's own _provenance, not package. Once this card's fix stops the stamp, #38947's arm (servesEnvironmentOwnItem) is what gives that read the environment's envelope, and the pin keeps that true after #38659 closes.
Claim: PM loop round 1 · 2026-12-03T12:00Z
Session: session_01Utp6CY1DVmttnuNH77G3ht
Account: os-bill
Branch: claude/issue-38952-env-doc-one-holder
Worktree: objectstack-issue-38952
Domain: domain:server
Seat: repo:objectstack@os-bill
Area: package-1203
File surface: packages/metadata-protocol/src/protocol-registry-hydration.ts (the package-less doc row envelope at boot hydration); a new pin test beside it (one holder and two holders, doc, envelope asserted per comment 7327944668) and a patch changeset are implicit. Stop on any other breach and explain in the report.
Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: protocol-registry-hydration.ts in objectstack (the environmentDoc predicate counts > 1 shipping packages, so one holder's envelope is grafted); no platform path covers it; any environment that keeps its own doc under a name exactly one enabled package ships, read on the bare address after a boot.
Thread-read: 7327944668
Premise: holds — read at origin/maindc4a2cd: environmentDoc (protocol-registry-hydration.ts:933–934) requires [...shippingPackageIds(...)].length > 1; with one holder envelopePackage falls to soleHolderOf (:926–928) and the artifact envelope is merged onto the row (:953, :988). The dev measures it red on main before the fix.
Pre-claim lane: domain:server (packages/metadata-protocol); this seat keeps it.
Pre-claim deps: none named; #38659 / PR #38947 merged 2026-12-01T23:04Z.
Prior rulings read: check-prior-rulings.mjs --card 38952 --paths packages/metadata-protocol/src/protocol-registry-hydration.ts → 31 hit lines in the file, owed a line-by-line read by the dev; the card rests on ruling 6942962369 (the environment's own item answers first, whatever the number of holders); the comment at :911–915 cites epic ruling 6817768147 ("it wears its one holder's") for the overlay types in general — the dev reports whether that sentence binds doc before narrowing it, and stops with a fork if it does.
Serial constraints cleared: check-handover.mjs --inflight --card=38952 → no overlap read (two path-less claims #38415, #35238 read by hand: neither touches a repository file here). Sibling #38977 (same family, list door, protocol-meta-list-reads.ts) is not folded: different door and fix (fold gate ① fails); it queues after this card in this zone.
{
"issue": 38952,
"status": "done",
"branch": "claude/issue-38952-env-doc-one-holder",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39338",
"session": "session_01Utp6CY1DVmttnuNH77G3ht",
"premise_still_valid": true,
"summary": "Premise measured red on origin/main dc4a2cdb: with one enabled holder (com.qa.alpha, both registration orders) the boot hydration loadMetaFromDb registered the package-less doc row stamped _packageId com.qa.alpha / _provenance package, and the bare read served 'alpha doc' on dispatcher, RestServer and in-process; two holders were already right. Fix: the environmentDoc predicate in protocol-registry-hydration.ts now holds for one or more shipping packages (size > 0), and its comment plus the 6817768147 comment were updated. Prior-rulings read (31 hit lines): epic ruling 6817768147 rules the five overlay types (email_template, dashboard, report, view, translation) and sealed types; doc is neither, so it does not bind doc and there is no fork with 6942962369. The pin went into the existing runtime harness meta-bare-read-own-envelope-38659.test.ts as a new top-level describe (a booted artifact-door kernel needs AppPlugin from @objectstack/runtime, which metadata-protocol cannot host; shared-harness ruling 6583487846). That is outside the claim's literal file surface; it is test-only and is declared here and in the PR's Acceptance notes.",
"tests": "At d511f648: pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains/meta-bare-read-own-envelope-38659.test.ts src/domains/meta-disabled-holder-artifact-door.test.ts -> Test Files 2 passed (2), Tests 89 passed | 6 skipped (95). pnpm --filter @objectstack/metadata-protocol test -> Test Files 384 passed | 9 skipped (393), Tests 23966 passed | 45 skipped (24011). Ablation = the pin run against main's built metadata-protocol (predicate as it was, rebuilt from origin/main dc4a2cdb): Tests 4 failed | 36 passed (40); the reds were the one-holder cells of the slot assertion (received environment doc, com.qa.alpha, package) and the bare-read envelope assertion (served alpha doc under alpha's envelope); the two-holder controls and the exact-read controls were green.",
"gates": "Local (os-verify-lock VERDICT command-exit 0 each): runtime closure build; metadata-protocol test + typecheck; runtime typecheck. Derived families at d511f648: dispatch-gates --ran -> 71 derived, 66 run with exit 0, 5 NOT-MEASURED, 0 UNRUN. NOT MEASURED: check-comment-mask-corpus (exit 124, timeout on the shared box), check-plugin-teardown-shape --self-test (exit 3, PREREQUISITE NOT MET: the shallow clone cannot reach the pinned control commit), check:dual-build-cjs-loads (exit 3, PREREQUISITE NOT MET: needs every package's dist), check:query-options-erasure (exit 124 at 270s), check:type-check-debt (exit 124). check-nul-bytes exit 0. overlap-check VERDICT clean before both pushes. PR check-runs were not read before this report; CI convergence is the PM's.",
"mcp_calls": "0",
"api_writes": "2 relay dispatches (POST /repos/objectstack-ai/objectstack/dispatches): (1) pr_create -> POST /pulls (draft #39338) + POST /issues/39338/assignees [os-bill]; (2) this os-dev-report comment via post-stamped -> POST /issues/38952/comments. git push x3 (probe, WIP test, fix) is not a REST write.",
"classifier_refusals": [
{ "command": "one compound Bash command: append the pin via heredoc to meta-bare-read-own-envelope-38659.test.ts, git add -A, git commit, git push", "reason": "[Destructive or Unwanted Actions] (no further text quoted)", "mode": "subagent", "human_turn_before": "no", "resend": "passed, split: the edit through the Edit tool, then a commit, then overlap-check, then a separate push" }
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: #38977 · noted, not filed: nothing new measured on the list door (protocol-meta-list-reads.ts was not touched or read)"
]
}
Patch round 1 delta (PR #39338, head unchanged at d511f64).
{
"issue": 38952,
"status": "needs_decision",
"branch": "claude/issue-38952-env-doc-one-holder",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39338",
"session": "session_01Utp6CY1DVmttnuNH77G3ht",
"premise_still_valid": true,
"summary": "Patch round 1, nothing pushed. The PR head stays at d511f648. The red reproduces locally at d511f648: objectql src/protocol-custom-override-bare-slot-envelope.test.ts gives Tests 1 failed | 113 passed (114), 'CONTROL, doc', doc by name: expected 'Residue label/-' to be 'Shipped label/com.example.showcase'. My round-0 run missed it because the pin lives in @objectstack/objectql, a downstream consumer that reads metadata-protocol's dist. I ran only metadata-protocol's own suite and the runtime pin files, and treated the change as a hydration-internal behaviour fix that did not change the public surface. A scratch probe (a copy of the file, deleted afterwards, never committed) read all three CONTROL readings per sealed type. Only one reading moves, and only for doc: the bare by-name read, which goes from 'Shipped label/com.example.showcase' to 'Residue label/-'. The by-name read naming the base and the layered read naming the base still answer Shipped for doc. page, app, dataset, book and mapping are unchanged. The cell is the same arrangement this card fixes: one managed holder ships a sealed doc, a package-less stored row, boot hydration after the artifacts, then the bare read. The CONTROL held on main only because the hydration stamped the row with the holder's envelope, which is the defect this card removes. No code scopes the two rules apart. The read side (refuseAmbiguousBareDocRead, protocol-meta-item-reads.ts:359; servesEnvironmentOwnItem from #38947) serves the environment's entry beside one or more enabled holders, with no sealed or pair carve-out. The landed runtime pins (#38659 one-holder cells, #34417 two-holder cells) already serve a sealed doc's package-less row on the bare read in this same rig family, and that rig's boot census prints metadata_sealed_overlay_unserved for doc. The hydration cannot narrow on the pair either: bootSealed creates the .custom pair after loadMetaFromDb. Following the order, I did not choose and did not edit the #29613 pin. The L1 comment nit (6817768147 covers the overlay types AND the sealed types) is not folded yet. It is a code edit, so it waits for the ruling so that nothing local is left unpushed.",
"tests": "Builds: objectql^... closure (os-verify-lock VERDICT command-exit 0 inside the combined run). pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/protocol-custom-override-bare-slot-envelope.test.ts at d511f648 gave 1 failed | 113 passed (114), VERDICT command-exit 1. Probe at d511f648 with -t CONTROL: Tests 10 passed | 104 skipped. PROBE doc ['Residue label/-','Shipped label/com.example.showcase','Shipped label']; page, app, dataset, book and mapping each ['Shipped label/com.example.showcase','Shipped label/com.example.showcase','Shipped label']. The probe file was removed and git status is clean.",
"gates": "No new commit, so no gate run this round. Round-0 gates at d511f648 stand. CI Test Core (6/12) is red on d511f648 for the cell above.",
"mcp_calls": "0",
"api_writes": "1 relay dispatch this round: this os-dev-report delta comment via post-stamped, POST /repos/objectstack-ai/objectstack/issues/38952/comments. No push.",
"classifier_refusals": [],
"open_questions": [
{
"question": "Does ruling 6942962369 reach a doc whose ONE holder is a managed (sealed, ADR-0131 D6) package, so that the bare read after boot hydration serves the environment's package-less row, or does the #29613 CONTROL ('a package-less environment row of the base's name is not the pair's override and stays unserved', ADR-0131 D6) govern that cell? Ruling 6942962369 verbatim: 'One rule for both cards: the environment's own item always answers first, whatever number of packages hold the same name and whether they are enabled, and reads and writes give the same answer. Here: ruling 6893582352 holds beside a single holder too, and the bare /meta doc doors move to agree with the registry.' ADR-0131 D6 verbatim: 'No door edits a managed definition ... What the customer changes lives beside the managed item ... O — overlay (the five presentational types: view, dashboard, report, translation, email_template): an environment row of the same name replaces the managed item whole'. doc is not among the overlay types. The #29613 test header: 'CONTROL: a sealed row that is not the pair's declared override (a package-less environment row of the base's name) stays unserved.' The disputed cell is only the bare by-name doc read (Residue vs Shipped). The base's exact address and the layered read naming the base answer Shipped either way.",
"options": [
"A — 6942962369 governs doc: authorize re-pinning only the doc row of the #29613 CONTROL bare by-name assertion to the environment's row (base-exact and layered assertions and the five other sealed types unchanged), and land this PR with the L1 comment nit folded. Cost: one test edit in objectql plus the nit; consistent with the landed #38947 and #34417 pins and with the read-side code. Effort: small, one push.",
"B — ADR-0131 D6 governs for a managed holder: a package-less doc row beside a sealed holder stays unserved on the bare read. Then this card's premise is wrong, and the landed one-holder cells of #38659 and the two-holder cells of #34417, plus refuseAmbiguousBareDocRead and servesEnvironmentOwnItem, contradict D6 and need a reversal card. This PR closes unmerged. Effort: large, several packages and landed pins.",
"C — Carve by pair: the environment's row answers first unless the base has a .custom customization pair (ADR-0146), in which case a package-less row is residue. Cost: a new read-side rule that no ruling states; the hydration cannot see the pair in the #29613 boot order, so the change moves to the read path. Effort: medium, and it needs its own ruling text."
],
"recommendation": "A, because 6942962369 is the later maintainer ruling and names the single-holder doc case explicitly. Every other landed doc pin and the read-side code already follow it. The #29613 doc CONTROL held only through the stamping defect this card fixes, and A moves one assertion for one type while keeping both exact-address readings."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: objectstack · noted, not filed: the boot census metadata_sealed_overlay_unserved says 'No read serves them — the package's own definition is served' for a package-less doc row beside one holder, while the landed #38659/#34417 read paths serve that row on the bare read. The census text and the reads disagree today; which one is wrong follows from the decision above."
]
}
Decision analysis · 2026-12-03T13:51Z · decision thread for seat repo:objectstack@os-bill (os-dev delta report 7379992908 on #38952, draft PR #39338 red on Test Core 6/12, sibling card #38977 on hold)
Served-tier: CONTRACT_REVIEW_TIER
Analysed-by: sub-agent of session_01Utp6CZnpusGckZLwt4Qv2q
Background
Card #38952: exactly one enabled package ships doc X, and sys_metadata also holds a package-less row of X. Which one a read naming no package serves depends on how the row reached the registry. A row that sits unstamped in the registry's bare slot (a stamp-less registration, or a row laid before the artifacts) is served as "the environment's own entry" (refuseAmbiguousBareDocRead, landed with #38640 and #38947). A row hydrated by loadMetaFromDb after the artifacts is stamped with the one holder's envelope and is not served as the environment's.
Draft PR #39338 (head d511f64, +95/−10, 3 files) changes one predicate in the hydration (environmentDoc: "more than one shipper" becomes "one or more") so the row always registers unstamped and the bare read always serves the row. That turns one assertion red: packages/objectql/src/protocol-custom-override-bare-slot-envelope.test.ts, CONTROL, doc (the CONTROL at line 489), which expects the shipped doc on the bare read. The CONTROL's comment calls the row "A row written through the hatch before the ADR-0131 D6 seal".
Two things in the dev's framing need correcting before the options are read:
The single-holder cell was ruled explicitly and is declared. Ruling 6942962369 names it, and the step-19 entry doc-bare-read-environment-entry-first already promises "one or more enabled packages hold" for a row "once it is hydrated or saved into the registry's bare slot". PR fix(metadata-protocol): a package-less doc row beside one holder hydrates as the environment's own item #39338 is the last mechanical step of that line, not a new direction.
Governing text
The texts disagree. That is why this is a decision.
ADR-0150 D3: a caller with no package resolves "the environment item of that name first (ADR-0005 overlay precedence keeps the environment's own item ahead), else the unique package holder".
ADR-0146 D8 item 1: a stored row with no package "keeps winning over the code package until D11 migrates it". Its subject is "the row Setup writes today", which is the five-type overlay tier. The D11 ceremony in code moves only those five types (protocol-packageless-overlay-migration.ts), so a doc row has no migration path.
Declared: 19.doc-bare-read-environment-entry-first.ts (one or more holders) in @objectstack/spec 19.0.0-next.3, not yet stable.
For the package's doc answering beside one holder (B):
ADR-0131 D6: "No door edits a managed definition"; only the five overlay types take a same-name environment row that "replaces the managed item whole". doc is not one of them. The record's header quotes the sealing ruling 「你这么说还不如先完全封死」.
ADR-0150 D4: "A package-less row that bears a package-held name is a customization, never a second item." D1 bucket 4 repeats it: "a package-less row bearing a package-held name is that holder's customization, D4".
Ruling 6893582352 on metadata-protocol: a bare by-name read of a doc name two namespaces ship serves the first-registered holder #33264 (2026-11-15), which 6942962369 extends: "With one holder, nothing changes." The same ruling also says "the environment's own saved row still answers first (the action precedent)". That precedent was narrowed the next day (ADR-0150 D4 amendment note of 2026-11-16): the environment's action is its own item only on an object no holder binds, and "A package-less row on the object a holder binds stays that holder's customization". A doc has no second key, so the narrowed precedent points to B.
ADR-0046: a doc name "MUST carry the package namespace prefix".
What the 2026-11-26 principle (records 7187358430, then 7187668758 on #34348) does and does not say: it withdraws the clause "and whether they are enabled" for the case where every holder is disabled, and it keeps the two-enabled-holder cell served and editable. It does not rule the one-enabled-holder cell. Its general sentence, "A package-unbound row at a name an installed package holds is that package's customization", is the principle B rests on. It supports B as a principle, not as a ruling on this cell.
Protocol: no key changes under any option. A and B both change what a read answers, so each is a semantic move under ADR-0087. A keeps the declared entry. B narrows it before 19.0.0 is stable.
Premises, with re-check commands
doc is sealed and has a declared-override channel through the pair. grep -n "SEALED_ROW_SERVED_OVERRIDE_TYPES: " packages/metadata-protocol/src/protocol-package-bindings.ts lists page, app, dataset, doc, book, mapping, form.
doc is the only one of those the hydrator's sealed-row guard skips, because the guard asks isPackageScopedType. grep -n "scoped && canonicalType !== 'flow'" packages/metadata-protocol/src/protocol-registry-hydration.ts (line 898). The dev's probe agrees: with the PR applied, page, app, dataset, book and mapping answer Shipped on all three readings, and only the doc bare read moves. form was not probed.
The landed read serves an unstamped entry beside one or more holders. grep -n "length >= 1 ? answer" packages/metadata-protocol/src/protocol-meta-item-reads.ts (line 369).
The boot census tells the operator the opposite of what the landed read does, and its remedy ends in "delete the stored row", which premise 4 shows the door refuses on that rig. grep -n "No read serves them" packages/metadata-protocol/src/protocol-sealed-overlay-report.ts (line 50).
Doc names carry the package's namespace prefix. grep -n "MUST carry the package namespace prefix" docs/adr/0046-*.md. New package-less saves at a held doc name are refused (premise 4). So such a row is, in practice, an edit of the vendor's doc made before the seal.
Only one of the two step-19 entries declares the one-holder cell. grep -n "one or more enabled packages hold\|two or more packages" packages/spec/src/migrations/entries/semantic/19.doc-bare-read-environment-entry-first.ts packages/spec/src/migrations/entries/semantic/19.hydrated-doc-row-wears-no-holder-envelope.ts. The second entry's surface is two or more shippers only.
The red reproduces at d511f64 per the dev's delta 7379992908 (1 failed | 113 passed). Not re-run here.
The question
When an environment holds a leftover copy of a vendor's document under the vendor's own name, and one installed package ships that document, which one does a user see: the leftover, or the vendor's?
Options
What is built
What the customer sees
Workload
A
Keep PR #39338. Re-pin only the doc bare-read assertion of the #29613 CONTROL to the row. Fold the L1 comment nit.
The leftover is shown in place of the vendor's doc on every read naming no package, in every boot order. No door edits or deletes it, no package export carries it, and a vendor upgrade of that doc never shows. The boot log says it is not served until a follow-up rewords it.
server lane · 1 push on the open PR (#39338, +95/−10, 3 files) · 1 follow-up for the census text, no precedent
B
Close PR #39338. A package-less stored doc row beside exactly one enabled holder is that holder's unserved leftover: the hydration does not register it, in both orders, so the bare doors, the registry read and the facade read answer the holder's doc. The row stays at rest and the census names it. Narrow the one step-19 entry before 19.0.0 is stable. The two-holder cell and the stamp-less code registration stay as landed unless the ruling says otherwise.
The vendor's doc is shown, as for pages, apps, datasets, books and mappings. The leftover is kept in the database and named at boot. A customer who wants their own wording customizes the doc in Studio, which writes the paired package: editable, exportable, restorable.
server lane · 1 to 2 PRs with contract review · precedents: #32741 (+725/−89, 14 files) did the same decline in the hydration for the package-addressed sealed types in every hydration state; #38947 (+337/−5, 5 files) is the pin file whose one-holder stored-row cells reverse; #38640 (+523/−50, 11 files) carries the entry that narrows
C
The row answers unless the base has a .custom pair.
Which doc is shown flips the first time anyone opens the customization package.
server lane · no precedent · needs its own rule text before any code
An option the dev's list does not carry, shown so the silence is not read as consent. D: declare doc a sixth overlay type, so the row is served and also editable and deletable at the bare address. It is the only way to make A's "reads and writes agree" true. It amends ADR-0131 D6 and runs against ADR-0146 D11, which closes the package-less write even for the five overlay types. Not recommended, and not sized.
What each means in business terms
A: a customer's old in-place edit of a vendor document keeps covering the vendor's document for good, like a sticky note glued over a page of the manual that nobody can peel off, rewrite or carry to another environment.
B: vendor documents behave like every other sealed vendor item. The supported way to reword one is the customization package. An old sticky note is taken off the page and filed, with a notice telling the operator where it is.
C: the sticky note stays until the customer opens the customization package once, then disappears.
Four axes
① Long-term soundness. Two years out, a managed package's content is sealed, what a customer changes lives in the paired package, and an environment-authored item has a name no package holds. Salesforce managed packages and Power Platform managed solutions model it this way: a subscriber cannot shadow a managed component by storing something under its name, and customizations travel as their own layer. In that end state a package-less row at a package's doc name is residue from before the seal. B gives doc the answer its sealed siblings already have and that ADR-0150 D4 states without exception. A makes doc a standing special case whose only cause is where the registry happens to keep docs (bucket 1 has a readable bare slot). That is the contract following the implementation. A also cannot be finished inside the current rules: its item is served but frozen (premise 4), and unfreezing it is option D. B has one known wrinkle, named here: with zero holders the row is the environment's item, with one it is unserved, and with two it is served again under the 2026-11-26 ruling. Two packages shipping one doc name requires them to share a namespace prefix, so the reach is small, but the rule is not monotone until that cell is ruled.
② Business pull. Measured: nobody outside the fleet has hit this. The card comes from a dev probe on a test rig, and the reach line on the card is an estimate. The real need behind such a row, rewording a vendor doc, is already served by the pair (#29613). Zero pull argues against building further on the exception. It also means neither letter is urgent for a customer. One cost of B is real and should be said: an environment that still has a pre-seal edit and today boots in the order that serves it will see the vendor's wording return after the upgrade, with the boot log as the only notice.
③ AI authoring mistakes. Under B a leftover row fails loudly: it is not served, and the census names it with a remedy. Under A it is served silently in place of the vendor's doc while the census says "No read serves them". An agent or admin debugging "why is the help page stale after the upgrade" then reads a log line that points the wrong way, and the item it finds reports itself locked with no door that fixes it. New saves at the name are refused 403 under both.
④ No scope growth at startup stage. A keeps a declared read behaviour with no measured consumer and owes more on top: the census wording, the list door (#38977), and sooner or later the write doors. B removes the behaviour for the stored row beside one holder and leaves one customization channel for docs. Neither adds a new gate.
os-decision-facets
① 项目长远合理性: B shrinks the exception (doc joins its sealed siblings, one customization channel, ADR-0150 D4 holds without a carve-out); A enlarges it (doc alone serves a same-name row, frozen, by reason of registry layout).
② 实际业务拉动: zero measured pull for either; the real need (reword a vendor doc) is already met by the pair.
③ 防 AI 犯错: B is loud (unserved, census names the row); A is silent shadowing with a census line that contradicts the read.
④ 创业阶段不扩散: B removes a declared read behaviour with no consumer; A keeps it and owes the census text, the list door and the write doors.
Prior rulings read: 6942962369, 6893582352, 6817768147, 7187668758, 7187358430, 6942981052 → 6 hits; ADR-0131 D6, ADR-0150 D1/D3/D4, ADR-0146 D8/D11, ADR-0046; thread: 4 comments on #38952
Recommendation
B. ADR-0131 D6 and ADR-0150 D4 describe the end state, the 2026-11-26 principle restates it in the maintainer's own words, and the action precedent that the 11-15 ruling leaned on was itself narrowed to "a row at the holder's own key stays that holder's customization". The stored doc row beside one holder is the last cell that treats such a row as a second item.
Not A: it is faithful to ruling 6942962369 and is by far the cheapest, but it leaves a served, frozen, unexported copy covering the vendor's doc, and the only way to complete it is to open a sixth overlay type.
Not C: no text supports it, and the answer would flip on the pair's creation.
Workload: B is roughly seven to ten times A (about 700 to 1,100 changed lines over one or two PRs, against about 100). The rule says to name a gap of three times or more. The ① readings are not close, so the gap does not change the letter.
Confidence gaps, none of which changes the letter:
What main serves today in the disputed cell is reported three ways and was not re-run: the card body says the package's doc; the dev's run of the objectql CONTROL says the shipped doc; the FROM comment in PR fix(metadata-protocol): a package-less doc row beside one holder hydrates as the environment's own item #39338's own pin says the row's body under the holder's envelope on the runtime rig. If the last is right, main today shows the leftover's text labelled as the vendor's, which is worse than either letter.
Which hydration order a production boot takes was not determined, so how many existing environments would see a change under B is unknown.
Pair override and row together under A: read in code, not measured. The by-name read tries stored rows before the registry, and its first candidate is the pair's declared override (servedOverlayRowCandidates, with the one shipper as the content package), so the published override should answer and the row should not. /layers, /published and the list were not traced.
The delete of a leftover row answers 403 on the host-config rig (premise 4). An environment kernel's delete door was not measured. Under B the operator needs a removal path that works; see the execution section.
Ruling 6902014292 (the action narrowing) was read through its ADR-0150 note, not fetched.
B takes back part of a ruling another maintainer made 16 days ago. That is the maintainer's call and is why this is on a card.
Self-check: 只看①选 B;②③④ 是否翻转:否。
After the ruling
If A: the seat authorizes the dev to re-pin only the doc bare-read assertion of the #29613 CONTROL (the base-exact and layered assertions and the other sealed types stay), fold the L1 comment nit, and push once. The seat files one follow-up for the census wording on doc rows and records on this card that the served item stays frozen. #38977 is released to the zone.
The dev first verifies two premises and reports a fork if either fails, without falling back to A: the row is declined by the same judgment the sealed siblings use, and the heal that covers "row registered before the package arrived" reaches a doc.
Default for the two sub-questions unless the ruling says otherwise: the two-enabled-holder cell stays as ruled on 2026-11-26, and a stamp-less code registration (no stored row) stays as landed, because ADR-0150 D4 speaks of stored rows. If the maintainer wants the two-holder doc row to follow (refused naming both holders), say so on the ruling and it joins the same PR.
The seat files one follow-up: the census remedy for a doc row names the paired package, and the delete of an unserved leftover is measured on both kernels and opened if refused.
Release: 2026-12-03T13:52Z · into the maintainer's decision inbox. The dev's report 7379992908 is needs_decision and the analysis is 7380518965. The zone package-1203 claim 7377504835 is released here, not abandoned. PR #39338 stays open as a draft, its head is not moved, and the CI red stays until the ruling. On a ruling, the seat re-claims and re-dispatches it (A: re-pin the doc bare-read assertion of the #29613 CONTROL; B: close PR #39338; C: the carve). #38977 is held behind this card.
2026-12-03T14:06Z Ruled: B. Bill chose an option on this project's decision card for #38952 at 2026-12-03T14:05:41Z. Option text verbatim: 「B 单个包时显示包里那份」, 「文档与其他封死类型一致,旧行留库并在启动日志点名;关当前 PR,改回已落地的单包一格,约 1 到 2 个 PR。」. It answers the analysis 7380518965 on this card. Freshness: the one comment newer than that analysis is the seat's release 7380547264, which moves the card into the decision inbox and changes no premise.
Governing text the ruling rests on: ADR-0131 D6 ("No door edits a managed definition"), ADR-0150 D4 ("A package-less row that bears a package-held name is a customization, never a second item").
Ruling as it binds this card:
A package-less stored doc row at a name exactly one enabled package ships is that holder's unserved leftover. Beside one enabled holder, in both hydration orders, every read naming no package (the bare doors, the registry read, the facade read) answers the holder's doc. The row is not registered, stays at rest, and the boot census names it.
The "Here:" sentence of ruling 6942962369 ("holds beside a single holder too") is withdrawn for a stored row beside one enabled holder, as record 7187668758 withdrew its "whether they are enabled" clause. The rest of that ruling stands.
Not changed by this ruling (the analysis's stated defaults, which the card asked nothing further on): the cell with two or more enabled holders stays as ruled on 2026-11-26, and a stamp-less code registration with no stored row stays as landed.
Premises the dev verifies before any code, reporting a fork if either fails and never falling back to option A: the row is declined by the same judgment the sealed sibling types use, and the heal for "row registered before the package arrived" reaches a doc. Both are unverified in the analysis.
Follow-up for the seat to file: the census remedy for a doc row names the paired customization package, and the delete of an unserved leftover row is measured on both kernels.
Claim: PM loop, card thread of seat repo:objectstack@os-bill (rebuild on ruling B, 7380913307)
Session: session_01Utp6CaQsbKBMQtm6Tpsamd
Thread session: session_01Utp6CXEujJSeLzNDiTwgmZ
Account: os-bill
Branch: claude/project-thread-7mnwc0
Domain: domain:server
Seat: repo:objectstack@os-bill
File surface: packages/metadata-protocol/src/protocol-registry-hydration.ts, packages/metadata-protocol/src/protocol-meta-item-reads.ts (only if the bare read must decline a healed row), packages/metadata-protocol/src/protocol-sealed-overlay-report.ts, packages/runtime/src/domains/meta-bare-read-own-envelope-38659.test.ts, packages/objectql/src/ (reason: one new pin file for both hydration orders), packages/spec/src/migrations/entries/semantic/19.doc-bare-read-environment-entry-first.ts (narrowed, with generated artifacts) (stop on breach; explain in the report)
Container & model: M, mode:thread, model: default, effort: high
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: decided at ACCEPT from the diff
Responsibility: objectstack: metadata-protocol hydration stamps the row | the ruling's direction is not yet built | any environment with a package-less doc row beside one enabled holder
Thread-read: 7381005689
Premise: the body's two premises are verified by the thread before any code; a failure is a fork, never a fall-back to A.
Serial constraints cleared: #38977 (zone claim 7381717066) and #38174 (claim 7378145399) touch packages/metadata-protocol/src/; check-handover --inflight runs before every push. PR #39338 is closed.
Release: 2026-12-03T22:39Z · session session_01Utp6CaQsbKBMQtm6Tpsamd releases claim 7381920895 · because the maintainer hands this half-done card to the seat repo:objectstack@os-elon-musk (mailbox #39411) · into pm:queue, assignee cleared, for that seat to re-claim.
Resume-from: claude/project-thread-7mnwc0@3e24b0d4
Source: the maintainer (Bill), project chat of seat repo:objectstack@os-bill, 2026-12-03T22:36Z: 「这些任务用信箱交接给 os-elon-musk 做到一半」.
Left: the objectql pin (probe at /mnt/project-files/card-38952/premise-probe.test.ts.txt), the narrow spec migration entry for the doc bare read plus regen, the changeset (Metadata-protocol: semantic), the suites, a contract L2, the draft PR with Fixes #38952.
Blocked-by: #39400, #39386, #39397
Queued: 2026-12-03T23:46Z · zone em-bill (seat repo:objectstack@os-elon-musk) takes this card over from os-bill's Release 7394530174 once these merge; not claimed yet.
area:packagebugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpm:blockedBlocked by another issue/PR — body carries Blocked-by: #Npriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS
2026-12-01T22:29Z — Carry from #38659 (seat os-support-ai, adopting L1 7327911365 on PR #38947). PR #38947 lands as
Fixes #38659. The one cell of #38659 Done-when 1 it cannot meet is one enabled holder with hydration after the artifacts. That cell moves here, because this card owns its cause.Added to Done when: the one-holder pin also asserts the envelope of the bare read after
loadMetaFromDb. The served item carries no_packageIdand has the environment's own_provenance, notpackage. Once this card's fix stops the stamp, #38947's arm (servesEnvironmentOwnItem) is what gives that read the environment's envelope, and the pin keeps that true after #38659 closes.objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CY1DVmttnuNH77G3ht
Claim: PM loop round 1 · 2026-12-03T12:00Z
Session:
session_01Utp6CY1DVmttnuNH77G3htAccount:
os-billBranch:
claude/issue-38952-env-doc-one-holderWorktree:
objectstack-issue-38952Domain:
domain:serverSeat:
repo:objectstack@os-billArea: package-1203
File surface:
packages/metadata-protocol/src/protocol-registry-hydration.ts(the package-lessdocrow envelope at boot hydration); a new pin test beside it (one holder and two holders,doc, envelope asserted per comment 7327944668) and a patch changeset are implicit. Stop on any other breach and explain in the report.Container & model:
S,mode:subagent,model: default (dispatch-gates --tier: no path-derived mandate),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
protocol-registry-hydration.tsin objectstack (theenvironmentDocpredicate counts> 1shipping packages, so one holder's envelope is grafted); no platform path covers it; any environment that keeps its own doc under a name exactly one enabled package ships, read on the bare address after a boot.Thread-read: 7327944668
Premise: holds — read at
origin/maindc4a2cd:environmentDoc(protocol-registry-hydration.ts:933–934) requires[...shippingPackageIds(...)].length > 1; with one holderenvelopePackagefalls tosoleHolderOf(:926–928) and the artifact envelope is merged onto the row (:953, :988). The dev measures it red onmainbefore the fix.Pre-claim lane:
domain:server(packages/metadata-protocol); this seat keeps it.Pre-claim deps: none named; #38659 / PR #38947 merged 2026-12-01T23:04Z.
Prior rulings read:
check-prior-rulings.mjs --card 38952 --paths packages/metadata-protocol/src/protocol-registry-hydration.ts→ 31 hit lines in the file, owed a line-by-line read by the dev; the card rests on ruling 6942962369 (the environment's own item answers first, whatever the number of holders); the comment at :911–915 cites epic ruling 6817768147 ("it wears its one holder's") for the overlay types in general — the dev reports whether that sentence bindsdocbefore narrowing it, and stops with a fork if it does.Serial constraints cleared:
check-handover.mjs --inflight --card=38952→ no overlap read (two path-less claims #38415, #35238 read by hand: neither touches a repository file here). Sibling #38977 (same family, list door,protocol-meta-list-reads.ts) is not folded: different door and fix (fold gate ① fails); it queues after this card in this zone.objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CY1DVmttnuNH77G3ht
os-dev-report
{ "issue": 38952, "status": "done", "branch": "claude/issue-38952-env-doc-one-holder", "pr": "https://github.com/objectstack-ai/objectstack/pull/39338", "session": "session_01Utp6CY1DVmttnuNH77G3ht", "premise_still_valid": true, "summary": "Premise measured red on origin/main dc4a2cdb: with one enabled holder (com.qa.alpha, both registration orders) the boot hydration loadMetaFromDb registered the package-less doc row stamped _packageId com.qa.alpha / _provenance package, and the bare read served 'alpha doc' on dispatcher, RestServer and in-process; two holders were already right. Fix: the environmentDoc predicate in protocol-registry-hydration.ts now holds for one or more shipping packages (size > 0), and its comment plus the 6817768147 comment were updated. Prior-rulings read (31 hit lines): epic ruling 6817768147 rules the five overlay types (email_template, dashboard, report, view, translation) and sealed types; doc is neither, so it does not bind doc and there is no fork with 6942962369. The pin went into the existing runtime harness meta-bare-read-own-envelope-38659.test.ts as a new top-level describe (a booted artifact-door kernel needs AppPlugin from @objectstack/runtime, which metadata-protocol cannot host; shared-harness ruling 6583487846). That is outside the claim's literal file surface; it is test-only and is declared here and in the PR's Acceptance notes.", "tests": "At d511f648: pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains/meta-bare-read-own-envelope-38659.test.ts src/domains/meta-disabled-holder-artifact-door.test.ts -> Test Files 2 passed (2), Tests 89 passed | 6 skipped (95). pnpm --filter @objectstack/metadata-protocol test -> Test Files 384 passed | 9 skipped (393), Tests 23966 passed | 45 skipped (24011). Ablation = the pin run against main's built metadata-protocol (predicate as it was, rebuilt from origin/main dc4a2cdb): Tests 4 failed | 36 passed (40); the reds were the one-holder cells of the slot assertion (received environment doc, com.qa.alpha, package) and the bare-read envelope assertion (served alpha doc under alpha's envelope); the two-holder controls and the exact-read controls were green.", "gates": "Local (os-verify-lock VERDICT command-exit 0 each): runtime closure build; metadata-protocol test + typecheck; runtime typecheck. Derived families at d511f648: dispatch-gates --ran -> 71 derived, 66 run with exit 0, 5 NOT-MEASURED, 0 UNRUN. NOT MEASURED: check-comment-mask-corpus (exit 124, timeout on the shared box), check-plugin-teardown-shape --self-test (exit 3, PREREQUISITE NOT MET: the shallow clone cannot reach the pinned control commit), check:dual-build-cjs-loads (exit 3, PREREQUISITE NOT MET: needs every package's dist), check:query-options-erasure (exit 124 at 270s), check:type-check-debt (exit 124). check-nul-bytes exit 0. overlap-check VERDICT clean before both pushes. PR check-runs were not read before this report; CI convergence is the PM's.", "mcp_calls": "0", "api_writes": "2 relay dispatches (POST /repos/objectstack-ai/objectstack/dispatches): (1) pr_create -> POST /pulls (draft #39338) + POST /issues/39338/assignees [os-bill]; (2) this os-dev-report comment via post-stamped -> POST /issues/38952/comments. git push x3 (probe, WIP test, fix) is not a REST write.", "classifier_refusals": [ { "command": "one compound Bash command: append the pin via heredoc to meta-bare-read-own-envelope-38659.test.ts, git add -A, git commit, git push", "reason": "[Destructive or Unwanted Actions] (no further text quoted)", "mode": "subagent", "human_turn_before": "no", "resend": "passed, split: the edit through the Edit tool, then a commit, then overlap-check, then a separate push" } ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: #38977 · noted, not filed: nothing new measured on the list door (protocol-meta-list-reads.ts was not touched or read)" ] }objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CY1DVmttnuNH77G3ht
os-dev-report
Patch round 1 delta (PR #39338, head unchanged at d511f64).
{ "issue": 38952, "status": "needs_decision", "branch": "claude/issue-38952-env-doc-one-holder", "pr": "https://github.com/objectstack-ai/objectstack/pull/39338", "session": "session_01Utp6CY1DVmttnuNH77G3ht", "premise_still_valid": true, "summary": "Patch round 1, nothing pushed. The PR head stays at d511f648. The red reproduces locally at d511f648: objectql src/protocol-custom-override-bare-slot-envelope.test.ts gives Tests 1 failed | 113 passed (114), 'CONTROL, doc', doc by name: expected 'Residue label/-' to be 'Shipped label/com.example.showcase'. My round-0 run missed it because the pin lives in @objectstack/objectql, a downstream consumer that reads metadata-protocol's dist. I ran only metadata-protocol's own suite and the runtime pin files, and treated the change as a hydration-internal behaviour fix that did not change the public surface. A scratch probe (a copy of the file, deleted afterwards, never committed) read all three CONTROL readings per sealed type. Only one reading moves, and only for doc: the bare by-name read, which goes from 'Shipped label/com.example.showcase' to 'Residue label/-'. The by-name read naming the base and the layered read naming the base still answer Shipped for doc. page, app, dataset, book and mapping are unchanged. The cell is the same arrangement this card fixes: one managed holder ships a sealed doc, a package-less stored row, boot hydration after the artifacts, then the bare read. The CONTROL held on main only because the hydration stamped the row with the holder's envelope, which is the defect this card removes. No code scopes the two rules apart. The read side (refuseAmbiguousBareDocRead, protocol-meta-item-reads.ts:359; servesEnvironmentOwnItem from #38947) serves the environment's entry beside one or more enabled holders, with no sealed or pair carve-out. The landed runtime pins (#38659 one-holder cells, #34417 two-holder cells) already serve a sealed doc's package-less row on the bare read in this same rig family, and that rig's boot census prints metadata_sealed_overlay_unserved for doc. The hydration cannot narrow on the pair either: bootSealed creates the .custom pair after loadMetaFromDb. Following the order, I did not choose and did not edit the #29613 pin. The L1 comment nit (6817768147 covers the overlay types AND the sealed types) is not folded yet. It is a code edit, so it waits for the ruling so that nothing local is left unpushed.", "tests": "Builds: objectql^... closure (os-verify-lock VERDICT command-exit 0 inside the combined run). pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/protocol-custom-override-bare-slot-envelope.test.ts at d511f648 gave 1 failed | 113 passed (114), VERDICT command-exit 1. Probe at d511f648 with -t CONTROL: Tests 10 passed | 104 skipped. PROBE doc ['Residue label/-','Shipped label/com.example.showcase','Shipped label']; page, app, dataset, book and mapping each ['Shipped label/com.example.showcase','Shipped label/com.example.showcase','Shipped label']. The probe file was removed and git status is clean.", "gates": "No new commit, so no gate run this round. Round-0 gates at d511f648 stand. CI Test Core (6/12) is red on d511f648 for the cell above.", "mcp_calls": "0", "api_writes": "1 relay dispatch this round: this os-dev-report delta comment via post-stamped, POST /repos/objectstack-ai/objectstack/issues/38952/comments. No push.", "classifier_refusals": [], "open_questions": [ { "question": "Does ruling 6942962369 reach a doc whose ONE holder is a managed (sealed, ADR-0131 D6) package, so that the bare read after boot hydration serves the environment's package-less row, or does the #29613 CONTROL ('a package-less environment row of the base's name is not the pair's override and stays unserved', ADR-0131 D6) govern that cell? Ruling 6942962369 verbatim: 'One rule for both cards: the environment's own item always answers first, whatever number of packages hold the same name and whether they are enabled, and reads and writes give the same answer. Here: ruling 6893582352 holds beside a single holder too, and the bare /meta doc doors move to agree with the registry.' ADR-0131 D6 verbatim: 'No door edits a managed definition ... What the customer changes lives beside the managed item ... O — overlay (the five presentational types: view, dashboard, report, translation, email_template): an environment row of the same name replaces the managed item whole'. doc is not among the overlay types. The #29613 test header: 'CONTROL: a sealed row that is not the pair's declared override (a package-less environment row of the base's name) stays unserved.' The disputed cell is only the bare by-name doc read (Residue vs Shipped). The base's exact address and the layered read naming the base answer Shipped either way.", "options": [ "A — 6942962369 governs doc: authorize re-pinning only the doc row of the #29613 CONTROL bare by-name assertion to the environment's row (base-exact and layered assertions and the five other sealed types unchanged), and land this PR with the L1 comment nit folded. Cost: one test edit in objectql plus the nit; consistent with the landed #38947 and #34417 pins and with the read-side code. Effort: small, one push.", "B — ADR-0131 D6 governs for a managed holder: a package-less doc row beside a sealed holder stays unserved on the bare read. Then this card's premise is wrong, and the landed one-holder cells of #38659 and the two-holder cells of #34417, plus refuseAmbiguousBareDocRead and servesEnvironmentOwnItem, contradict D6 and need a reversal card. This PR closes unmerged. Effort: large, several packages and landed pins.", "C — Carve by pair: the environment's row answers first unless the base has a .custom customization pair (ADR-0146), in which case a package-less row is residue. Cost: a new read-side rule that no ruling states; the hydration cannot see the pair in the #29613 boot order, so the change moves to the read path. Effort: medium, and it needs its own ruling text." ], "recommendation": "A, because 6942962369 is the later maintainer ruling and names the single-holder doc case explicitly. Every other landed doc pin and the read-side code already follow it. The #29613 doc CONTROL held only through the stamping defect this card fixes, and A moves one assertion for one type while keeping both exact-address readings." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: objectstack · noted, not filed: the boot census metadata_sealed_overlay_unserved says 'No read serves them — the package's own definition is served' for a package-less doc row beside one holder, while the landed #38659/#34417 read paths serve that row on the bare read. The census text and the reads disagree today; which one is wrong follows from the decision above." ] }objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CZnpusGckZLwt4Qv2q
Decision analysis · 2026-12-03T13:51Z · decision thread for seat repo:objectstack@os-bill (os-dev delta report 7379992908 on #38952, draft PR #39338 red on Test Core 6/12, sibling card #38977 on hold)
维护者速读
Served-tier: CONTRACT_REVIEW_TIER
Analysed-by: sub-agent of session_01Utp6CZnpusGckZLwt4Qv2q
Background
Card #38952: exactly one enabled package ships doc
X, andsys_metadataalso holds a package-less row ofX. Which one a read naming no package serves depends on how the row reached the registry. A row that sits unstamped in the registry's bare slot (a stamp-less registration, or a row laid before the artifacts) is served as "the environment's own entry" (refuseAmbiguousBareDocRead, landed with #38640 and #38947). A row hydrated byloadMetaFromDbafter the artifacts is stamped with the one holder's envelope and is not served as the environment's.Draft PR #39338 (head d511f64, +95/−10, 3 files) changes one predicate in the hydration (
environmentDoc: "more than one shipper" becomes "one or more") so the row always registers unstamped and the bare read always serves the row. That turns one assertion red:packages/objectql/src/protocol-custom-override-bare-slot-envelope.test.ts,CONTROL, doc(the CONTROL at line 489), which expects the shipped doc on the bare read. The CONTROL's comment calls the row "A row written through the hatch before the ADR-0131 D6 seal".Two things in the dev's framing need correcting before the options are read:
isSealedManagedItem: "every package the artifact loader registered items for is managed"). The landed metadata bare read: the environment's own item is served under a package holder's envelope (_packageId,_provenance: package, lockfull), so the read and the write disagree on who owns it #38659 pins use such holders too. So B is not a rule for a special kind of holder. It takes back, for stored rows, the single-holder sentence of ruling 6942962369.doc-bare-read-environment-entry-firstalready promises "one or more enabled packages hold" for a row "once it is hydrated or saved into the registry's bare slot". PR fix(metadata-protocol): a package-less doc row beside one holder hydrates as the environment's own item #39338 is the last mechanical step of that line, not a new direction.Governing text
The texts disagree. That is why this is a decision.
For the environment's row answering (A):
/metadoc doors move to agree with the registry."protocol-packageless-overlay-migration.ts), so a doc row has no migration path.19.doc-bare-read-environment-entry-first.ts(one or more holders) in@objectstack/spec19.0.0-next.3, not yet stable.For the package's doc answering beside one holder (B):
docis not one of them. The record's header quotes the sealing ruling 「你这么说还不如先完全封死」.doc. The landed hydration guard applies it only to types addressed by (package, name), sodoc(bucket 1) falls outside by implementation, not by rule.What the 2026-11-26 principle (records 7187358430, then 7187668758 on #34348) does and does not say: it withdraws the clause "and whether they are enabled" for the case where every holder is disabled, and it keeps the two-enabled-holder cell served and editable. It does not rule the one-enabled-holder cell. Its general sentence, "A package-unbound row at a name an installed package holds is that package's customization", is the principle B rests on. It supports B as a principle, not as a ruling on this cell.
Protocol: no key changes under any option. A and B both change what a read answers, so each is a
semanticmove under ADR-0087. A keeps the declared entry. B narrows it before 19.0.0 is stable.Premises, with re-check commands
docis sealed and has a declared-override channel through the pair.grep -n "SEALED_ROW_SERVED_OVERRIDE_TYPES: " packages/metadata-protocol/src/protocol-package-bindings.tslists page, app, dataset, doc, book, mapping, form.docis the only one of those the hydrator's sealed-row guard skips, because the guard asksisPackageScopedType.grep -n "scoped && canonicalType !== 'flow'" packages/metadata-protocol/src/protocol-registry-hydration.ts(line 898). The dev's probe agrees: with the PR applied, page, app, dataset, book and mapping answer Shipped on all three readings, and only the doc bare read moves.formwas not probed.grep -n "length >= 1 ? answer" packages/metadata-protocol/src/protocol-meta-item-reads.ts(line 369)._packageId,_provenance: package, lockfull), so the read and the write disagree on who owns it #38659 pins assert, in the one-holder and two-holder cells, that the save naming no package answers403 NOT_OVERRIDABLE, that the delete does too where a stored row exists, and that the read reportslock: full,editable: false,deletable: false.grep -n "NOT_OVERRIDABLE" packages/runtime/src/domains/meta-bare-read-own-envelope-38659.test.ts(lines 27, 236, 239). So "reads and writes give the same answer" does not hold on the landed line: the read serves the environment's item and the write refuses it as the package's.grep -n "No read serves them" packages/metadata-protocol/src/protocol-sealed-overlay-report.ts(line 50).grep -n "MUST carry the package namespace prefix" docs/adr/0046-*.md. New package-less saves at a held doc name are refused (premise 4). So such a row is, in practice, an edit of the vendor's doc made before the seal.grep -n "one or more enabled packages hold\|two or more packages" packages/spec/src/migrations/entries/semantic/19.doc-bare-read-environment-entry-first.ts packages/spec/src/migrations/entries/semantic/19.hydrated-doc-row-wears-no-holder-envelope.ts. The second entry's surface is two or more shippers only.The question
When an environment holds a leftover copy of a vendor's document under the vendor's own name, and one installed package ships that document, which one does a user see: the leftover, or the vendor's?
Options
.custompair.An option the dev's list does not carry, shown so the silence is not read as consent. D: declare
doca sixth overlay type, so the row is served and also editable and deletable at the bare address. It is the only way to make A's "reads and writes agree" true. It amends ADR-0131 D6 and runs against ADR-0146 D11, which closes the package-less write even for the five overlay types. Not recommended, and not sized.What each means in business terms
Four axes
① Long-term soundness. Two years out, a managed package's content is sealed, what a customer changes lives in the paired package, and an environment-authored item has a name no package holds. Salesforce managed packages and Power Platform managed solutions model it this way: a subscriber cannot shadow a managed component by storing something under its name, and customizations travel as their own layer. In that end state a package-less row at a package's doc name is residue from before the seal. B gives
docthe answer its sealed siblings already have and that ADR-0150 D4 states without exception. A makesdoca standing special case whose only cause is where the registry happens to keep docs (bucket 1 has a readable bare slot). That is the contract following the implementation. A also cannot be finished inside the current rules: its item is served but frozen (premise 4), and unfreezing it is option D. B has one known wrinkle, named here: with zero holders the row is the environment's item, with one it is unserved, and with two it is served again under the 2026-11-26 ruling. Two packages shipping one doc name requires them to share a namespace prefix, so the reach is small, but the rule is not monotone until that cell is ruled.② Business pull. Measured: nobody outside the fleet has hit this. The card comes from a dev probe on a test rig, and the reach line on the card is an estimate. The real need behind such a row, rewording a vendor doc, is already served by the pair (#29613). Zero pull argues against building further on the exception. It also means neither letter is urgent for a customer. One cost of B is real and should be said: an environment that still has a pre-seal edit and today boots in the order that serves it will see the vendor's wording return after the upgrade, with the boot log as the only notice.
③ AI authoring mistakes. Under B a leftover row fails loudly: it is not served, and the census names it with a remedy. Under A it is served silently in place of the vendor's doc while the census says "No read serves them". An agent or admin debugging "why is the help page stale after the upgrade" then reads a log line that points the wrong way, and the item it finds reports itself locked with no door that fixes it. New saves at the name are refused 403 under both.
④ No scope growth at startup stage. A keeps a declared read behaviour with no measured consumer and owes more on top: the census wording, the list door (#38977), and sooner or later the write doors. B removes the behaviour for the stored row beside one holder and leaves one customization channel for docs. Neither adds a new gate.
os-decision-facets
① 项目长远合理性: B shrinks the exception (doc joins its sealed siblings, one customization channel, ADR-0150 D4 holds without a carve-out); A enlarges it (doc alone serves a same-name row, frozen, by reason of registry layout).
② 实际业务拉动: zero measured pull for either; the real need (reword a vendor doc) is already met by the pair.
③ 防 AI 犯错: B is loud (unserved, census names the row); A is silent shadowing with a census line that contradicts the read.
④ 创业阶段不扩散: B removes a declared read behaviour with no consumer; A keeps it and owes the census text, the list door and the write doors.
Prior rulings read: 6942962369, 6893582352, 6817768147, 7187668758, 7187358430, 6942981052 → 6 hits; ADR-0131 D6, ADR-0150 D1/D3/D4, ADR-0146 D8/D11, ADR-0046; thread: 4 comments on #38952
Recommendation
B. ADR-0131 D6 and ADR-0150 D4 describe the end state, the 2026-11-26 principle restates it in the maintainer's own words, and the action precedent that the 11-15 ruling leaned on was itself narrowed to "a row at the holder's own key stays that holder's customization". The stored doc row beside one holder is the last cell that treats such a row as a second item.
Workload: B is roughly seven to ten times A (about 700 to 1,100 changed lines over one or two PRs, against about 100). The rule says to name a gap of three times or more. The ① readings are not close, so the gap does not change the letter.
Confidence gaps, none of which changes the letter:
servedOverlayRowCandidates, with the one shipper as the content package), so the published override should answer and the row should not./layers,/publishedand the list were not traced.Self-check: 只看①选 B;②③④ 是否翻转:否。
After the ruling
If A: the seat authorizes the dev to re-pin only the doc bare-read assertion of the #29613 CONTROL (the base-exact and layered assertions and the other sealed types stay), fold the L1 comment nit, and push once. The seat files one follow-up for the census wording on doc rows and records on this card that the served item stays frozen. #38977 is released to the zone.
If B, in one stroke, so no second card is needed:
_packageId,_provenance: package, lockfull), so the read and the write disagree on who owns it #38659 pins reverse. The entrydoc-bare-read-environment-entry-firstis narrowed for the stored row beside one holder before 19.0.0 is stable. The entryhydrated-doc-row-wears-no-holder-envelopeis not touched.GET /meta/doclists the environment's own doc under the first registered holder's envelope, while the bare read serves it as the environment's (#38659) #38977 is re-scoped to the cells that still serve the environment's entry. The metadata-protocol: page, app, dataset, doc and book serve a published override only from the registry bare slot; build the row-served path, then take them out of it #29613 CONTROL stays as written. The ruling comment records that the "Here:" sentence of 6942962369 is withdrawn for a stored row beside one holder, as 7187668758 withdrew its "whether they are enabled" clause.If C: a rule text is drafted first and comes back for a ruling before any code.
Related
#38952, PR #39338, #38977 (held), #38659 (PR #38947), #34452 (PRs #38640, #38752, +1072/−87, 25 files), #34417, #34348, #34248 (PR #34347, +1388/−81, 18 files), #32568 (PR #32741), #29613, #37499.
objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd
Release: 2026-12-03T13:52Z · into the maintainer's decision inbox. The dev's report 7379992908 is
needs_decisionand the analysis is 7380518965. The zone package-1203 claim 7377504835 is released here, not abandoned. PR #39338 stays open as a draft, its head is not moved, and the CI red stays until the ruling. On a ruling, the seat re-claims and re-dispatches it (A: re-pin the doc bare-read assertion of the #29613 CONTROL; B: close PR #39338; C: the carve). #38977 is held behind this card.3 remaining items
objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CZnpusGckZLwt4Qv2q
2026-12-03T14:06Z Ruled: B. Bill chose an option on this project's decision card for #38952 at 2026-12-03T14:05:41Z. Option text verbatim: 「B 单个包时显示包里那份」, 「文档与其他封死类型一致,旧行留库并在启动日志点名;关当前 PR,改回已落地的单包一格,约 1 到 2 个 PR。」. It answers the analysis 7380518965 on this card. Freshness: the one comment newer than that analysis is the seat's release 7380547264, which moves the card into the decision inbox and changes no premise.
Governing text the ruling rests on: ADR-0131 D6 ("No door edits a managed definition"), ADR-0150 D4 ("A package-less row that bears a package-held name is a customization, never a second item").
Ruling as it binds this card:
docrow at a name exactly one enabled package ships is that holder's unserved leftover. Beside one enabled holder, in both hydration orders, every read naming no package (the bare doors, the registry read, the facade read) answers the holder's doc. The row is not registered, stays at rest, and the boot census names it.CONTROL, docassertion of the metadata-protocol: page, app, dataset, doc and book serve a published override only from the registry bare slot; build the row-served path, then take them out of it #29613 pin stays as written._packageId,_provenance: package, lockfull), so the read and the write disagree on who owns it #38659 pins reverse with it, and the step-19 entrydoc-bare-read-environment-entry-firstis narrowed for the stored row beside one holder before 19.0.0 is stable. The entryhydrated-doc-row-wears-no-holder-envelopeis not touched.GET /meta/doclists the environment's own doc under the first registered holder's envelope, while the bare read serves it as the environment's (#38659) #38977 is re-scoped to the cells that still serve the environment's entry.State transitions (labels, the PR close, the Done-when rewrite, the re-dispatch) are the seat's.
objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd
Ruling recorded, back to the queue: 2026-12-03T14:09Z · ruled B (7380913307). Four acts in one stroke:
CONTROL, docassertion of the metadata-protocol: page, app, dataset, doc and book serve a published override only from the registry bare slot; build the row-served path, then take them out of it #29613 pin stays as written.pm:queue. Zone package-1203 re-claims it and re-dispatches. The dev verifies the two premises first and reports a fork if either fails, never falling back to A.metadata list:
GET /meta/doclists the environment's own doc under the first registered holder's envelope, while the bare read serves it as the environment's (#38659) #38977 is re-scoped to the cells that still serve the environment's entry, at its claim.objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd
Claim: PM loop, card thread of seat
repo:objectstack@os-bill(rebuild on ruling B, 7380913307)Session:
session_01Utp6CaQsbKBMQtm6TpsamdThread session:
session_01Utp6CXEujJSeLzNDiTwgmZAccount:
os-billBranch:
claude/project-thread-7mnwc0Domain:
domain:serverSeat:
repo:objectstack@os-billFile surface:
packages/metadata-protocol/src/protocol-registry-hydration.ts,packages/metadata-protocol/src/protocol-meta-item-reads.ts(only if the bare read must decline a healed row),packages/metadata-protocol/src/protocol-sealed-overlay-report.ts,packages/runtime/src/domains/meta-bare-read-own-envelope-38659.test.ts,packages/objectql/src/(reason: one new pin file for both hydration orders),packages/spec/src/migrations/entries/semantic/19.doc-bare-read-environment-entry-first.ts(narrowed, with generated artifacts) (stop on breach; explain in the report)Container & model:
M,mode:thread,model: default,effort: highClause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: decided at ACCEPT from the diff
Responsibility:
objectstack: metadata-protocol hydration stamps the row | the ruling's direction is not yet built | any environment with a package-less doc row beside one enabled holderThread-read: 7381005689
Premise: the body's two premises are verified by the thread before any code; a failure is a fork, never a fall-back to A.
Serial constraints cleared: #38977 (zone claim 7381717066) and #38174 (claim 7378145399) touch
packages/metadata-protocol/src/; check-handover --inflight runs before every push. PR #39338 is closed.objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd
Release: 2026-12-03T22:39Z · session
session_01Utp6CaQsbKBMQtm6Tpsamdreleases claim 7381920895 · because the maintainer hands this half-done card to the seatrepo:objectstack@os-elon-musk(mailbox #39411) · intopm:queue, assignee cleared, for that seat to re-claim.Resume-from:
claude/project-thread-7mnwc0@3e24b0d4Source: the maintainer (Bill), project chat of seat
repo:objectstack@os-bill, 2026-12-03T22:36Z: 「这些任务用信箱交接给 os-elon-musk 做到一半」.claude/issue-38952-env-doc-one-holderis stale, do not resume from it.protocol-registry-hydration.tswidened to doc with one package-scoped holder; metadata bare read: the environment's own item is served under a package holder's envelope (_packageId,_provenance: package, lockfull), so the read and the write disagree on who owns it #38659 runtime pins added (one-holder cells serve the holder, facade and registry agree, the row stays at rest); 40/40 green, 4 red with the fix reverted.Metadata-protocol: semantic), the suites, a contract L2, the draft PR withFixes #38952.git fetch --unshallow origin mainfirst.objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cwiNRyb9B38wT2fjYj
Blocked-by: #39400, #39386, #39397
Queued: 2026-12-03T23:46Z · zone em-bill (seat repo:objectstack@os-elon-musk) takes this card over from os-bill's Release 7394530174 once these merge; not claimed yet.
check-handover.mjs --inflight --card=38952at 5c00c57 reads OVERLAP with two held os-bill claims: objectql: an inline select field whose options repeat a value publishes with no refusal, while a named picklist with the same repeat is refused #39336 (PR fix(spec)!: refuse a field whose inline options repeat a value #39400) onpackages/spec/src/migrations/entries/semantic/and App Studio 改版(4-3):服务端拒绝没有软件包的新建(只留四类豁免,原地保存照旧);先实测元数据接口存流程能当场注册,再下线自动化接口的新建 #38174 (PRs feat(metadata-protocol)!: refuse a package-less create; retire POST /automation; notify-channel judge on /meta flow saves #39386, docs(adr): ADR-0070 D1 complete and ADR-0084 marked for the kernel refusing package-less creates #39397) onpackages/runtime/src/domains/. Textual overlap-check is clean, but the claim rule queues behind them.claude/project-thread-7mnwc0@3e24b0d4. metadata-protocol: the boot census remedy for an unserved doc row names the paired customization package, and deleting an unserved leftover row is measured on both kernels #39345 (same files, ruling-B follow-up) queues behind this card.