Repository navigation
docs(adr): ADR-0048 status line — a bare doc read of a two-holder name refuses 409, outside the no-dependency carve-out - #34131
Conversation
…e refuses 409, outside the no-dependency carve-out Appends one dated Amended entry to the status line of ADR-0048. The sentence "Packages with no dependency relation keep §3.3 and §3.4 as written" no longer covers doc for the context-free read of §3.3: a by-name read of a doc that names no package, of a name two or more enabled packages hold, answers 409 RESOURCE_CONFLICT naming every holder (ruling record 6893582352, option A; the code is on main as 5af956f). Add-only: the old line is a byte prefix of the new one and no other line moves. doc stays in ADR-0150 D1 bucket 1. Claude-Session: https://claude.ai/code/session_01ADHkmR3k2TfPZ5pUCqZDbk Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv Contract reviewServed-tier: PR #34131 for card #34069, rules face ( Check-runs on this head (48 at the read): 1 still runs, ① Derived judgmentsEach claim of the appended entry, against main:
② Semver levelNone. Docs-only: one ADR line, no package, no schema, no changeset. ③ Boundary flags
④ Design judgment
Findings:
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv 维护者速读
席位核对Verdict: ACCEPT, held for the maintainer · head
|
Requested by Steve · project thread
Fixes #34069
Clause-②: no
Metadata-protocol: none
维护者速读
docs/adr/0048-cross-package-metadata-collision.md第 3 行(状态行)行尾新增的那一条· **Amended** (2026-11-15, …),这是唯一的改动。重点看三句:只收窄 §3.3 的不指明包读取;§3.4 与 ADR-0146 D8 不动;doc 仍在 ADR-0150 D1 第 1 桶(不是换桶)。git diff --word-diff origin/main...HEAD -- docs/adr/0048-cross-package-metadata-collision.md,预期只看到一段{+ … +}新增、没有任何[- … -]删除。What changes
One file, one line, add-only:
docs/adr/0048-cross-package-metadata-collision.mdline 3 (**Status**:) gains one dated entry at its end, in the form the line's existing amendments take. The appended text, whole:How the entry is scoped, and why:
docout of both.docstays in ADR-0150 D1 bucket 1 (global literal name, addressing unchanged), as the ruling and the card's prior-rulings note say. ADR-0146 and ADR-0150 are not edited.path#symbolanchors and one file-level anchor (the pin), all on the status line itself, socheck:adr-symbol-anchorsreds if the refusal's door is renamed or removed.docs/adr/README.mdis untouched because the index regenerates identical (below).Tests
Docs-only: no test is added or edited (no forced test edit), and nothing is ablated because no tested behaviour changes. What was measured instead, at head
f4d28180:git diff --word-diffshows one added span and no removed span.check:adr-symbol-anchorson the base tree resolves 3622 anchors (1050 symbol, 2520 file-level); on the head 3625 (1052 symbol, 2521 file-level): the entry's two symbol anchors and one file-level anchor, each resolving.scripts/adr-index.mjsreads the status keyword as the vocabulary entry appearing EARLIEST within the first 80 characters of the value; the value startsRevised, and the firstAmendedin the head value sits at character 1272 (an entry that was already there). The generator's ownparseRecordgives the same keyword, date and superseded-by for ADR-0048 at base and head, andnode scripts/adr-index.mjs --checkexits 0 withdocs/adr/README.md is current.Acceptance notes
Premise, re-read at
origin/main385ea1cc. PR #34036 is on main as5af956f3("fix(objectql)!: a bare doc read refuses a name two enabled packages hold, naming both"). What it ships, from source:packages/core/src/package-scoped-resolution.ts, classPackageScopedNameRefusedError:readonly code = 'RESOURCE_CONFLICT';andreadonly status = 409;.SchemaRegistry.resolveIteminpackages/objectql/src/registry.tshands adocread with no caller package to its bare-doc read, which throws that error withreason: 'ambiguous-in-environment'and one candidate per enabled package holder when two or more hold the name.packages/metadata-protocol/src/protocol-meta-item-reads.ts, in the by-name read:if (!request.packageId && request.type === 'doc') refuseAmbiguousBareDocRead(host, request.name, member);, before any layer is read..changeset/33264-bare-doc-read-refusal.md): "a by-name read of a doc that names no package (GET /meta/doc/NAMEand the doors that read through it,MetadataFacade.get/getEntry), of a name two or more enabled packages hold, moves from one holder's body, picked by registration order, to409 RESOURCE_CONFLICTnaming every holder. Unchanged: one holder, a read that names the package, the environment's own item."packages/objectql/src/package-scoped-e8-readers.test.ts, the describe titled "[ruling 6893582352] doc (ADR-0150 D1 bucket 1): a bare read of a name two enabled packages hold is refused" (both registration orders; controls for one holder, the exact address and a package caller, a disabled holder, the environment's own item).The ruling. Record 6893582352 on #33264 (maintainer, 2026-11-15T11:23Z). Chosen option, verbatim as the decision card read: 「A 拒绝并列出候选」. The line this card carries out, verbatim:
Landing tier: H.
node scripts/pm/check-governed-merges.mjs --branch HEADanswers GOVERNED, landing tier H, fordocs/adr/**. The low-risk add-only arm does not take this diff: appending to an existing line is one line removed and one added to git, and the arm's reader (addOnlyNoteReasons, run on this branch's full-context diff) answers "removes 1 line(s) — an add-only note changes no existing line"; by its own rules it also refuses a status line and any line in a record's header block. A status-line edit is what the ruling orders, so this PR stays a draft and waits for a GOVERNED_APPROVERS approval.Model tier (deviation, declared).
dispatch-gates --tierreads MANDATORY CONTRACT_REVIEW_TIER fordocs/adr/**, with no one-line exit. The card thread is served below that tier, so the text was authored in an isolated os-dev subagent pinned to CONTRACT_REVIEW_TIER on this same branch, as the claim'sContainer & modelline records.Noted, not filed.
Verification
Derived gates at head f4d2818: 21 derived, 21 run, all exit 0
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack(no paths; change set from the merge base385ea1cc, 1 path) derived 21 commands. Each ran with stdin closed and its exit code captured before any pipe:node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran FILE, exit 0:check:doc-formula-expressionsfirst answered exit 3 (PREREQUISITE NOT MET, no dist in a fresh container); afterpnpm turbo run build --filter=@objectstack/formula --filter=@objectstack/lint --concurrency=2under the verify lock (VERDICT command-exit 0, 5 tasks, 100 s) it answered 0, and that 0 is the one recorded above. Gate verdict lines (the symbol-anchor line is cut after its counts):CI check-runs were not waited on; the families CI owns are read from the PR's own check-runs.
Add-only proof (bytes, words, index projection)
Bytes, base
385ea1ccagainst headf4d28180, from a one-off comparison script (longest common prefix and suffix of the two blobs;linesre-wrapped onto one row here):{ "base": "385ea1cce5e1761b36d7e9fbc8b599f5adb07fca", "oldBytes": 77815, "newBytes": 79260, "bytesRemoved": 0, "bytesInserted": 1445, "suffixBytes": 1445, "lines": [1273, 1273], "differingLines": [3], "oldLine3IsPrefixOfNewLine3": true, "insertedEqualsSuffixModuloSharedBoundaryBytes": true, "verdict": "ADD-ONLY (pure insertion, 0 bytes removed)" }Words:
git diff --word-diff 385ea1cc f4d28180 -- docs/adr/0048-cross-package-metadata-collision.mdcarries 1 added span and 0 removed spans;git diff --numstatreads 1 added, 1 deleted line (the one status line, as git counts a line that grew).What
scripts/adr-index.mjs#parseRecordreads off ADR-0048, identical at base and head (title omitted):{ "keyword": "Revised", "date": "2026-06-13", "supersedes": [], "supersededBy": ["ADR-0146"] }The head status value starts with the base value;
Revisedsits at character 0 and the firstAmendedat character 1272, outside the generator's 80-character keyword window.Landing-tier and model-tier readings
node scripts/pm/check-governed-merges.mjs --branch HEAD, exit 3 (GOVERNED), lines quoted from its output:Without a pull request to read, that mode reports the low-risk arm as NOT MEASURED and stays at H. The arm's add-only reader, called directly on this branch's full-context diff (
addOnlyDiffArgv, merge base385ea1ccto headf4d28180), returns one reason:node scripts/pm/dispatch-gates.mjs --tier --repo objectstack-ai/objectstack, exit 0: the model tier is MANDATORY at CONTRACT_REVIEW_TIER fordocs/adr/**, the one-line mechanical-edit exit is not available for this surface, and the changed lines read 2 (+1 / -1) against the 3000 human-merge threshold. Its output names the tier's model; that name is left out of this text.Generated by Claude Code