Skip to content

docs(adr): ADR-0048 status line — a bare doc read of a two-holder name refuses 409, outside the no-dependency carve-out - #34131

Merged
os-zhuang merged 1 commit into
mainfrom
claude/project-thread-50ha8x
Nov 16, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/project-thread-50ha8x

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #34069

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:只动一处文字。ADR-0048 的状态行末尾追加一条 2026-11-15 的修订记录:对文档(doc)类型,「没有依赖关系的包仍按 §3.3」这句保留不再适用。两个或更多启用的包有同名文档时,不指明包的按名读取返回 409 并列出每个包。原有文字一个字符没动,没有代码改动。
  • 为什么改:裁决 6893582352(选项 A「A 拒绝并列出候选」)已定,代码已由 PR fix(objectql)!: a bare doc read refuses a name two enabled packages hold, naming both #34036 合入主干,而 ADR-0048 的状态行还写着旧行为,照 ADR 干活的人和 AI 会按旧句子理解。裁决点名这条状态行由 skills 线的卡承接。
  • 风险与回滚:纯文档,不发布、不改任何运行时行为;风险只在措辞是否与裁决一致。回滚就是 revert 这一个提交。
  • 先看: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,预期只看到一段 {+ … +} 新增、没有任何 [- … -] 删除。
  • 需要你做的:批准本 PR(Tier H:状态行改动不走低风险放权,只能由维护者批准后落地)。

What changes

One file, one line, add-only: docs/adr/0048-cross-package-metadata-collision.md line 3 (**Status**:) gains one dated entry at its end, in the form the line's existing amendments take. The appended text, whole:

 · **Amended** (2026-11-15, [#34069](https://github.com/objectstack-ai/objectstack/issues/34069)): the sentence above that "Packages with no dependency relation keep §3.3 and §3.4 as written" no longer covers `doc` for §3.3's context-free read — a by-name read of a `doc` that names no package (`GET /meta/doc/NAME` and the in-process `MetadataFacade.get` alike), of a name two or more enabled packages hold, answers `409 RESOURCE_CONFLICT` naming every holder, so §3.3's "it returns the first match" no longer describes that read (ruling record [`6893582352`](https://github.com/objectstack-ai/objectstack/issues/33264#issuecomment-6893582352) on #33264, option A; shipped by PR [#34036](https://github.com/objectstack-ai/objectstack/pull/34036): `packages/objectql/src/registry.ts#resolveItem`, which the protocol's by-name read asks before any layer through `packages/metadata-protocol/src/protocol-meta-item-reads.ts#refuseAmbiguousBareDocRead`; pinned in `packages/objectql/src/package-scoped-e8-readers.test.ts`). Unchanged: a name one package holds, a read that names its package (`?package=`, a package caller) and the environment's own item, which still answers first where the registry holds it; a disabled package holds no name. Not a re-bucketing: `doc` keeps its literal global name and its addressing (ADR-0150 D1 bucket 1), and this entry moves nothing else — §3.4's half of that sentence and ADR-0146 D8 read as before.

How the entry is scoped, and why:

  • Only the §3.3 half of the carve-out sentence. The ruling's words are "packages with no dependency keep the old sentence": the old sentence is §3.3's context-free read ("it returns the first match"). PR fix(objectql)!: a bare doc read refuses a name two enabled packages hold, naming both #34036 changes a read and no registration path, so the entry says the §3.4 half of that sentence reads as before rather than taking doc out of both.
  • Not a re-bucketing. doc stays 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.
  • Anchors. The entry carries two path#symbol anchors and one file-level anchor (the pin), all on the status line itself, so check:adr-symbol-anchors reds if the refusal's door is renamed or removed.
  • Nothing else moves. No other line of the record changes; docs/adr/README.md is 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:

  • Add-only, byte level. The base file is the head file with 1445 bytes inserted at one offset and 0 bytes removed; line 3 is the only differing line and the base line 3 is a prefix of the head line 3. git diff --word-diff shows one added span and no removed span.
  • The anchors are read. check:adr-symbol-anchors on 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.
  • The index does not move. scripts/adr-index.mjs reads the status keyword as the vocabulary entry appearing EARLIEST within the first 80 characters of the value; the value starts Revised, and the first Amended in the head value sits at character 1272 (an entry that was already there). The generator's own parseRecord gives the same keyword, date and superseded-by for ADR-0048 at base and head, and node scripts/adr-index.mjs --check exits 0 with docs/adr/README.md is current.

Acceptance notes

Premise, re-read at origin/main 385ea1cc. PR #34036 is on main as 5af956f3 ("fix(objectql)!: a bare doc read refuses a name two enabled packages hold, naming both"). What it ships, from source:

  • The code and status: packages/core/src/package-scoped-resolution.ts, class PackageScopedNameRefusedError: readonly code = 'RESOURCE_CONFLICT'; and readonly status = 409;.
  • The seam: SchemaRegistry.resolveItem in packages/objectql/src/registry.ts hands a doc read with no caller package to its bare-doc read, which throws that error with reason: 'ambiguous-in-environment' and one candidate per enabled package holder when two or more hold the name.
  • The protocol door: 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.
  • The covered reads, in the PR's changeset (.changeset/33264-bare-doc-read-refusal.md): "a by-name read of a doc that names no package (GET /meta/doc/NAME and 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, to 409 RESOURCE_CONFLICT naming every holder. Unchanged: one holder, a read that names the package, the environment's own item."
  • The pins: 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:

The ADR-0048 status line drops its "packages with no dependency keep the old sentence" carve-out for doc. That is a docs/adr/** status-line edit, carried by a domain:skills card.

Landing tier: H. node scripts/pm/check-governed-merges.mjs --branch HEAD answers GOVERNED, landing tier H, for docs/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 --tier reads MANDATORY CONTRACT_REVIEW_TIER for docs/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's Container & model line records.

Noted, not filed.

  • The entry says the environment's own item answers first "where the registry holds it". That is the reading PR fix(objectql)!: a bare doc read refuses a name two enabled packages hold, naming both #34036 implements and pins (a package-less row only the store holds is no exemption); the ruling's own sentence is the shorter "the environment's own saved row still answers first". The gap was declared in that PR's report and is its seat's to confirm; this entry records what the code does and claims no more.
  • §3.3's body carries no in-place pointer to the status line's entries about it (neither ADR-0146's nor this one). The card's surface is the status line alone and "no other sentence moves", so none is added here.

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 base 385ea1cc, 1 path) derived 21 commands. Each ran with stdin closed and its exit code captured before any pipe:

node scripts/check-adr-links.mjs :: exit 0
node scripts/check-adr-links.mjs --self-test :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:adr-index :: exit 0
pnpm check:adr-symbol-anchors :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-prior-rulings :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:watch-hint-literal :: exit 0

node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran FILE, exit 0:

Run reconciliation — 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN.
✓ dispatch-gates --ran: 21 derived famil(ies) accounted for — 21 run, 0 NOT-MEASURED (a DERIVED zero — all 21 recorded an exit code and none of them is 3).

check:doc-formula-expressions first answered exit 3 (PREREQUISITE NOT MET, no dist in a fresh container); after pnpm turbo run build --filter=@objectstack/formula --filter=@objectstack/lint --concurrency=2 under 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):

✅ check-adr-links: 1133 relative link destination(s) under docs/adr/ resolve
check-adr-anchors: OK (116 anchored file(s), every governing ADR still referenced; 150 decision number(s), each naming one decision or an allowlisted pair; 73977 citation(s) across 10238 file(s) resolve, 42 of them stem-qualified to one record; 2755 decision-letter citation(s) on the anchored surface name a decision the record makes).
adr-index --report: OK — docs/adr/README.md is current, every record parsed, self-test 60 assertions green. Report-only: this line never reds the step.
✅ check-adr-symbol-anchors: 3625 anchors across 156 records resolve — 1052 symbol (1025 declaration, 27 literal), 2521 file-level, 52 cross-repo, 6 exempt, 72 continuation.
✓ check:doc-formula-expressions (field-level `*When`, #11407): 15 predicate(s) on a statically determinable field layer judged clean; 12 skipped as undeterminable.

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 385ea1cc against head f4d28180, from a one-off comparison script (longest common prefix and suffix of the two blobs; lines re-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.md carries 1 added span and 0 removed spans; git diff --numstat reads 1 added, 1 deleted line (the one status line, as git counts a line that grew).

What scripts/adr-index.mjs#parseRecord reads 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; Revised sits at character 0 and the first Amended at character 1272, outside the generator's 80-character keyword window.

node scripts/adr-index.mjs --check :: exit 0
adr-index: OK — docs/adr/README.md is current and every record parsed.
Landing-tier and model-tier readings

node scripts/pm/check-governed-merges.mjs --branch HEAD, exit 3 (GOVERNED), lines quoted from its output:

derived from `git diff -z --name-only --no-renames 385ea1cce5 f4d2818052` (three-dot): 1 path(s).
governed-surface predicate: 1 of 1 path(s) hit the register (13 surfaces govern objectstack).
      ⚖️ landing tier: H(人合) — the maintainer's hand, or an authorized APPROVED review (GOVERNED_APPROVERS) and then the owning seat lands it.
      docs/adr/** ×1 — architecture decision records
        - docs/adr/0048-cross-package-metadata-collision.md
  size: 2 changed line(s) (+1 / -1) ≤ 3000 — under the human-merge threshold (generated files included in the count).

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 base 385ea1cc to head f4d28180), returns one reason:

`docs/adr/0048-cross-package-metadata-collision.md` removes 1 line(s) — an add-only note changes no existing line

node scripts/pm/dispatch-gates.mjs --tier --repo objectstack-ai/objectstack, exit 0: the model tier is MANDATORY at CONTRACT_REVIEW_TIER for docs/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

…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>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 15, 2026
@github-actions github-actions Bot added size/xs documentation Improvements or additions to documentation labels Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: f4d28180520b870f039d4e7b846b37500cbcbfa3
Local-runs: none
Scope: docs/adr/0048-cross-package-metadata-collision.md + none

PR #34131 for card #34069, rules face (docs/adr/**). Base and merge base are both main 385ea1cc; git merge-tree --write-tree origin/main f4d28180 exits 0 (clean, tree 9b25afb8). One file, one line (line 3, **Status**:), +1 / -1. Read, never reviewed (code outside the diff, all on main 385ea1cc): packages/objectql/src/registry.ts, packages/metadata-protocol/src/protocol-meta-item-reads.ts, packages/core/src/package-scoped-resolution.ts, packages/objectql/src/metadata-facade.ts, packages/objectql/src/package-scoped-e8-readers.test.ts, ADR-0146, ADR-0150, scripts/adr-index.mjs, docs/adr/README.md.

Check-runs on this head (48 at the read): 1 still runs, Test Core (1/8); no run failed or was cancelled; the rest are success or skipped. Green among them: Lint · docs & code guards, Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · PM dispatch-gates, Lint & Repo Gates, Check Documentation Links, Check Changeset, Check PR Size, PR-body guards, Governed Surface Queue Guard, the four Type Check · jobs. Test Core (1/8) is not a gate on this text: the diff touches no code and no test.

① Derived judgments

Each claim of the appended entry, against main:

  1. 409 RESOURCE_CONFLICT: true. packages/core/src/package-scoped-resolution.ts lines 645-647: export class PackageScopedNameRefusedError extends Error { / readonly code = 'RESOURCE_CONFLICT'; / readonly status = 409;. readBareDoc (registry.ts 10123) throws exactly that class with reason: 'ambiguous-in-environment'.
  2. "naming every holder": true. registry.ts 10129-10139: const served = this.packageScopedHoldersOf('doc', name); then candidates: served.map(...) mapping each served package id to a { kind: 'package', packageId } candidate, one candidate per served holder, and the message is packageScopedRefusalMessage(base), which the class doc says "names every candidate".
  3. Only a read that names no package, of a doc, with two or more enabled holders: true. registry.ts 10099: if (type === 'doc' && !callerPackageId) return this.readBareDoc...; the refusal sits behind the test served.length at least 2; packageScopedHoldersOf leaves a disabled package out by default ("a package that is disabled ... holds no name"). A caller package goes to getItem(type, name, callerPackageId ...) as before, since doc is not a package-scoped read type. One holder falls through to getItem.
  4. "GET /meta/doc/NAME and the in-process MetadataFacade.get alike": true. metadata-facade.ts 242 / 258 / 308 read this.registry.resolveItem(...); protocol-meta-item-reads.ts 632: if (!request.packageId && request.type === 'doc') refuseAmbiguousBareDocRead(host, request.name, member);.
  5. Anchor packages/objectql/src/registry.ts#resolveItem: resolves (method declaration, line 10098) and is the door the entry says it is: the function the protocol asks. See nit N1 on where the refusal itself lives.
  6. Anchor packages/metadata-protocol/src/protocol-meta-item-reads.ts#refuseAmbiguousBareDocRead: resolves (exported function, line 335); its body is registry.resolveItem('doc', name, null, member), and its one call site (632) precedes the package-less scoped read and every layer below it. "asks before any layer" holds.
  7. Pin file: exists, packages/objectql/src/package-scoped-e8-readers.test.ts line 643, describe [ruling 6893582352] doc (ADR-0150 D1 bucket 1): a bare read of a name two enabled packages hold is refused, asserting code, status, reason and holders in both registration orders.
  8. "Unchanged" list: true as worded. One holder and a package caller: item 3. The environment's own item: registry.ts 10124-10128, a bare-slot entry whose stamp is absent, empty or sys_metadata returns getItem before any holder is counted, which is the entry's "where the registry holds it". A disabled package: item 3.
  9. ADR-0150 D1 bucket 1: true. ADR-0150 line 91, row "1 — global literal prefix, unchanged", lists doc (ADR-0046 doc lint), identity "the literal name", addressing "unchanged". doc is in neither PACKAGE_SCOPED_TYPES nor the per-type read list; PR fix(objectql)!: a bare doc read refuses a name two enabled packages hold, naming both #34036 moved neither.
  10. "§3.4's half reads as before": true. §3.4 is registration coexistence. PR fix(objectql)!: a bare doc read refuses a name two enabled packages hold, naming both #34036 touches no registration path (4 files: one changeset, the two read files, the pin); the pin registers the same doc name under two packages and both registrations succeed; doc is in no addendum's one-holder list.
  11. "ADR-0146 D8 reads as before": true. A paired base.custom row is not a second holder: overlaySlotBinding binds it to its base ("the pair's declared override customizes its base's item"), so the D8 owner (the package, or its declared override) is not turned into a refusal by this count.
  12. Against the ruling (6893582352), no more: the ruling's line is "The ADR-0048 status line drops its 'packages with no dependency keep the old sentence' carve-out for doc". The entry does that and adds no rule the ruling lacks: 409 naming every holder, both doors, one holder unchanged, bucket 1 kept, ?package= and package callers unchanged, a disabled package no holder. It is narrower than the ruling in one place only, the environment qualifier (ruled under ③, Q3). The quoted §3.3 words "it returns the first match" are verbatim from §3.3.
  13. Premise: PR fix(objectql)!: a bare doc read refuses a name two enabled packages hold, naming both #34036 is merged and on main as 5af956f3 (ancestor of 385ea1cc).

② Semver level

None. Docs-only: one ADR line, no package, no schema, no changeset. skip-changeset is right and Check Changeset is green. Clause-②: no is correct: the text changes no published contract; the narrowing it records was declared and shipped by PR #34036 (Clause-②: no (narrowing), its own changeset). Metadata-protocol: none is correct: no authorable key or value moves.

③ Boundary flags

  • Authoring by a tier-pinned subagent (declared deviation): accepted. docs/adr/** is MANDATORY at CONTRACT_REVIEW_TIER; the claim (6900600169), the report (6901052914) and the PR body state the same arrangement. The tier actually served to the author is a declaration, not readable from the tree; nothing in the tree contradicts it. Implemented-by (branch) and Reviewed-by (session) differ.
  • Add-only at byte level: confirmed here. Base line 3 is 2586 bytes, head line 3 is 4031; the base line is a strict byte prefix of the head line; the 1445 appended bytes are the entry. git diff --word-diff=porcelain origin/main...f4d28180 shows one added span and no removed span. No other line differs.
  • Landing tier: H, confirmed. node scripts/pm/check-governed-merges.mjs --pr 34131 exits 3: "GOVERNED", "landing tier: H(人合)", and the low-risk arm answers "an ADR change that is not an add-only note: ... removes 1 line(s) — an add-only note changes no existing line". The author's reading is right: git counts a grown line as -1 / +1. The 速读 line asking the maintainer to approve is right, and the PR stays a draft: no seat flips it ready, enqueues it or arms auto-merge.
  • Open question 1 (§3.3 half only, or the whole sentence): A, the §3.3 half only. The ruling's "old sentence" is §3.3's first-match read; the shipped code changes a read and no registration, and §3.4 is still true for doc (① item 10). Taking doc out of both halves would state something neither the ruling nor the code says.
  • Open question 2 (keep the anchors): A, keep. Both resolve and both say what the code does. See N1 for what the gate tie does and does not hold.
  • Open question 3 (keep "where the registry holds it"): A, keep. It is the pinned behaviour (① item 8, and the pin "a package-less row only the store holds is no exemption"). The ruling's shorter sentence would claim more than main does. The difference between the ruling's sentence and the shipped reading is not this card's to settle: it is recorded "noted, not filed", so it is escalated to the owning seat of metadata-protocol: a bare by-name read of a doc name two namespaces ship serves the first-registered holder #33264 (domain:server#5) to confirm with the maintainer or file. Whether metadata-protocol: an exact read of a doc (?package=A) of a name two packages ship can answer the other package's doc, because the metadata service keeps a doc by name alone #34040 already carries it was not read here.
  • Deviation "status-line Amended entry against the team recipe note": accepted. The ruling and the card order exactly a status-line edit, and AGENTS.md names "an amended status line on the old one" as a valid form.
  • SQL push-down: not applicable, no code in the diff.
  • Security: no security item.

④ Design judgment

  • Holds against the code it cites and the ruling it implements (①). First consumer is the read PR fix(objectql)!: a bare doc read refuses a name two enabled packages hold, naming both #34036 shipped; the entry describes it and nothing beyond it.
  • Form: matches the line's own convention, · **Amended** (date, card link): ..., as the 2026-11-07 and 2026-11-09 entries; date is today; links are the card, the ruling record and the PR.
  • Consistent with ADR-0150 and ADR-0146: it says "not a re-bucketing" and leaves both records unedited, which is what the ruling states ("doc stays in ADR-0150 D1 bucket 1").
  • Proportion: 1445 bytes on an already long line is heavy, but each clause carries a boundary a reader would otherwise guess (which half, which doors, what is unchanged). Acceptable.
  • Index: keyword stays Revised. scripts/adr-index.mjs takes the earliest vocabulary entry inside KEYWORD_WINDOW = 80; the value starts Revised and the first Amended is far past the window. The README row for ADR-0048 (line 121) is cut from the head of the value and does not move; README untouched is correct.

Findings:

  • N1 (nit). registry.ts#resolveItem anchors the door, a long-standing public method; the refusal itself is the private readBareDoc. The anchor gate checks that a symbol exists, so it would stay green if the doc branch left resolveItem. The behaviour is held by the pin file, not by the anchor, and the PR body's "reds if the refusal's door is renamed or removed" is true of the door only. No change required; naming readBareDoc beside it would be tighter if the line is ever touched again.
  • N2 (nit). §3.3's body still reads "it returns the first match" with no in-place pointer to this entry. The 2026-11-07 and 2026-11-09 entries each point to a dated note under their section; this one, like the ADR-0146 entry, does not. The card says no other sentence moves, so it is correct for this PR; a dated note under §3.3 is a possible follow-up at the seat's discretion.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-50ha8x
Reviewed-by: session_01ADHkmRxXmVQ41fqnaTPGAv

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv

维护者速读

  • 改了什么:ADR-0048 第 3 行 Status 行末尾只增一条 **Amended** (2026-11-15, #34069) 注记:无依赖关系的包「§3.3/§3.4 照旧」这一例外里,把 doc 移出 §3.3 那半句。不带包名读一个被两个已启用包同时持有的 doc,返回 409 RESOURCE_CONFLICT 并列出全部持有者(GET /meta/doc/NAME 与进程内 MetadataFacade.get 一致)。§3.4、ADR-0150 D1 bucket 1、ADR-0146 D8 都不变。
  • 为什么改:您在 metadata-protocol: a bare by-name read of a doc name two namespaces ship serves the first-registered holder #33264 的裁定 6893582352 要求状态行去掉 doc 的这条例外;代码已由 PR fix(objectql)!: a bare doc read refuses a name two enabled packages hold, naming both #34036(main 5af956f3)落地,记录还没跟上。
  • 风险与回滚:纯文档,一行只增(旧行是新行的字节前缀),不动运行时;回滚 = revert。
  • 先看:ADR-0048 第 3 行最后那条 Amended。
  • 两分钟验证:对照 registry.ts#resolveItem(约 10098–10139 行 readBareDoc)与 protocol-meta-item-reads.ts#refuseAmbiguousBareDocRead,以及钉子测试 package-scoped-e8-readers.test.ts 第 643 行那组。
  • 需要你做的:受管面 Tier H(git 把行尾追加计作 -1/+1,低风险臂不认)。达档(CONTRACT_REVIEW_TIER)复审 6901141155 在本 head PASS,无 must-fix/should-fix。请批准并合并,或批准后由席位落地。
  • 席位意见:可以合。

席位核对

Verdict: ACCEPT, held for the maintainer · head f4d28180520b870f039d4e7b846b37500cbcbfa3 · card #34069 · report 6901052914 · at-tier contract review 6901141155 (PASS on this head) · read 2026-11-15T20:49Z.

  • Shape: draft → main, Fixes #34069. One file, docs/adr/0048-cross-package-metadata-collision.md line 3, byte-level add-only (+1445 bytes, base line a strict prefix). README untouched; the index keyword stays Revised. skip-changeset. GOVERNED, Tier H (check-governed-merges --pr 34131 exit 3). Clause-②: no; Metadata-protocol: none.
  • Premise measured: PR fix(objectql)!: a bare doc read refuses a name two enabled packages hold, naming both #34036 merged as 5af956f3; every clause of the note was checked against main (the 409 class and code, the holder list, both doors, the one-holder and package-caller paths, bucket 1).
  • Gates: dev on this head: 21 derived, 21 exit 0, --ran reconciles. CI at the review read: none failed, Test Core (1/8) still running (no code in the diff).
  • Accepted deviations: authoring by a subagent pinned to CONTRACT_REVIEW_TIER inside a lower-tier thread (declared in the claim and body). The dev's three open questions are ruled A as the review reads them: only the §3.3 half moves, both anchors stay, the "where the registry holds it" qualifier stays. Nits N1 (the anchor names the door, not the private readBareDoc) and N2 (no in-place pointer under §3.3) are left as they are.
  • Out of scope: the difference between the ruling's wording on the environment's own saved row and the shipped reading is noted by the review for the owning seat of metadata-protocol: a bare by-name read of a doc name two namespaces ship serves the first-registered holder #33264; not this card's.
  • Landing: Tier H. The seat does not flip this PR ready or enqueue it. It needs the maintainer's merge, or an authorised APPROVED review after which the seat lands it.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 15, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 16, 2026 00:45
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit 2601c71 Nov 16, 2026
55 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-50ha8x branch November 16, 2026 01:41
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xs skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

3 participants