Repository navigation
Commit 758e145
docs(adr): ADR-0150 records the ruling on a knowledge source registered in code and on how code names a package's source (#37576)
<!-- claude-projects-attribution: {"github_login":"os-bill"} -->
_Requested by **Bill** · [project
thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wgHNjbrLMC6PSG3JaQXwgqK8)_
Fixes #37545
Clause-②: no
Metadata-protocol: none
## 维护者速读
-
用户能看到什么变化:用户无感。只是在「行为类元数据按应用包寻址」这份架构决策记录里,把你今天对知识源两个问题的决定各记了一行,文首状态补了一句修订说明;另在「知识平台边界」那份记录里加了一行指向,原先那里写着「未决」。
- 为什么做:属于「知识检索平台化」专题。决定原先只在卡片评论里,记录里这几处还写着「未决」,后面做知识功能的人和 AI 查不到依据。
- 出错会怎样:纯文字改动,不动任何代码和行为;记错了撤回这两个提交即可。
- 要你做什么:核对这几行记录与你的原话一致,然后批准合并(架构决策记录需要你亲自放行)。
## What changes
Two files under `docs/adr/`, four hunks, +5 / -1.
In
`0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md`
(the `knowledge_source` addendum of 2026-11-25):
1. **Under point 4 of "Past the ruling's words"**: one dated amendment
note. It says the last part of the point is ruled A, quotes the
maintainer's word 「两处都选 A」 (12:26Z) with the decision card's question
and option text, quotes the ruling record's statement of A for this
point, and cites seat record
[`7192063608`](#37304 (comment))
on #37304. It names B and C as not taken, as the Step 0 record
[`7191722341`](#37304 (comment))
put them, and says that only that part of the point is ruled.
2. **Under point 6**: the same note for the holder of a source
registered in code.
3. **The Status line** gains an appended `Amended (2026-11-26, #37545)`
clause, as each earlier amendment has one. The old Status text is a
strict prefix of the new text.
In
`0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md`:
4. **Under the cross-reference of 2026-11-25**, which says the holder of
a registration in code "stays open there": one dated cross-reference
line (and the empty quote line that separates the two). It says the
holder was ruled on 2026-11-26, quotes the record's statement of A, and
points at the note under point 6 of the ADR-0150 addendum. That record's
Status line lists no cross-reference, so it is left as it is.
No ruled sentence is rewritten in either record. In ADR-0150, points 4
and 6 keep their "(open)" headings and the paragraph above them keeps
"Points 4 to 7 are open": the notes sit beneath, in the form the record
already uses for a dated note inside a list (the notes of 2026-11-10).
What the notes record, in the ruling record's words:
- Point 6: "A knowledge source registered in code belongs to no package.
It is read as the environment's own source and takes the one
package-less slot of its name, keeping its bare key, bare face and
existing index. The duplicate refusal compares `(package, name)`."
- Point 4, last part: "Code names one of two packages' same-named
sources by the face (`NS-NAME`), read by the tool's one rule. […] No
`IKnowledgeService` signature changes."
## Tests
None. The diff is two decision records: no schema, no code, no changeset
(`skip-changeset`: `docs/adr/` ships in no package). Documents are not
ablated.
Two readings stand in for a test, both at `158d4a16`:
- **Every quoted span is the record's own bytes.** The body of comment
7192063608 was read over REST and each of the 11 quoted spans in the
four hunks (the maintainer's word, the card's question, the option text,
and the statements of A) was matched against it as a substring: 11 of
11.
- **Every old line survives, in order.** ADR-0150: 541 of 541 old lines
found in order, 540 unchanged and the Status line extended as a strict
prefix (+626 characters); two lines are added, at 197 and 200. ADR-0161:
+2 / -0, so the diff removes nothing; the two added lines are 221 and
222.
## Acceptance notes
- **Two steps go past the card's first wording, both on the owning
zone's claim amends.** The card asked for two added lines in ADR-0150.
Comment 7193564758 on #37545 adds the Status clause, the way each
earlier amendment has one (the PR #37330 precedent). Comment 7194011874
adds the ADR-0161 file, for the cross-reference line. Because the Status
line is replaced by a longer one, the diff is not add-only by line
count; the claim already reads Tier H.
- **Five sentences are mine, not the record's.** In ADR-0150: the two
"Not taken" clauses, which name B and C by the titles the Step 0 record
gave them, and "Only that part is ruled; the rest of this point stays
3a's to state", which restates the paragraph above the list. In
ADR-0161: the opening sentence of the new line, and "Point 3 above is
read with it", which repeats the wording of the cross-reference above
it; the ruling answers the question ADR-0150's point 6 asks about that
point's refusal. Everything inside double quotes or 「」 is quoted.
- **The ruling record says the addendum would record the answers "in the
same PR"** as the build of #37304. This card carries them instead,
because an implementation card's file surface does not include
`docs/adr/`. The notes read the same either way.
- No source file is changed, and no anchor is added: the new lines cite
no `path#symbol`. The one new relative link goes to the ADR-0150
addendum's heading, which the cross-reference above it already links.
## Verification
Read first, by risk:
1. ADR-0161, line 222 (the new cross-reference line): its first sentence
and "Point 3 above is read with it" are my wording.
2. ADR-0150, line 200 (the note under point 6) and line 197 (the note
under point 4): the "Not taken" clauses and the closing sentence of line
197 are my wording.
3. ADR-0150, line 3 (Status): the appended clause from "· **Amended**
(2026-11-26" to the end.
Two-minute check: `node scripts/check-adr-symbol-anchors.mjs`. Expected
last line: `✅ check-adr-symbol-anchors: 4236 anchors across 163 records
resolve`.
Local gates at `158d4a16`: `node scripts/pm/dispatch-gates.mjs
--commands` derives 21 commands for this diff, all 21 ran with exit 0,
and `--ran` answers `21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN`. The
same 21 had run at `4d432c9b`, the head this PR opened with. The rest of
the farm is CI's.
<details>
<summary>The 21 derived commands and their exit codes at
158d4a1</summary>
```text
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
```
At `4d432c9b` the doc-formula gate answered `exit 3` (PREREQUISITE NOT
MET: `@objectstack/formula` not built) on its first run. After `turbo
run build --filter=@objectstack/formula --filter=@objectstack/lint`
under the verify lock (`VERDICT command-exit 0`) it answered `exit 0`,
there and at this head.
</details>
<details>
<summary>Verdict lines of the gates that read ADR text, at
158d4a1</summary>
```text
✅ check-adr-links: 1238 relative link destination(s) under docs/adr/ resolve
✅ check-adr-symbol-anchors: 4236 anchors across 163 records resolve
adr-index --report: OK — docs/adr/README.md is current, every record parsed, self-test 60 assertions green.
overlap-check: VERDICT clean exit 0 (against origin/main c385d3b and 0 PR heads)
```
</details>
The ADR-0150 list renders as one ordered list of seven items with the
two notes nested under items 4 and 6, and the ADR-0161 quote renders as
one quote of two paragraphs (parsed with `marked` from the workspace's
own dependencies).
---
_Generated by [Claude
Code](https://claude.ai/code/session_01Utp6CYAx8baivbFS2iBXQc)_
<!-- signed: repo:objectstack#5 · os-bill ·
session_01Utp6CYAx8baivbFS2iBXQc -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent eec1040 commit 758e145
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
| 200 | + | |
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
| 222 | + | |
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
| |||
0 commit comments