Skip to content

fix(service-knowledge): read the split algorithm version per strategy - #38375

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-38349-split-version-per-strategy
Nov 28, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-38349-split-version-per-strategy

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #38349

Clause-②: no
Metadata-protocol: none

Claim: comment 7241090032 · Seat repo:objectstack#8 · zone knowledge-split · Session: session_017xRBcSSm1UGomShRsemA1N · Account: sunhaolin · Branch: claude/issue-38349-split-version-per-strategy · Worktree: objectstack-issue-38349

维护者速读

  • 用户无感:今天所有知识源的索引指纹一个字节都不变,上线不会触发任何重建。
  • 属于知识平台阶段 0(专题卡里的分段专题),先把「分段算法版本」拆成按策略各一份,下一张修 Markdown 分段的卡才不会把所有知识源都重建一遍。
  • 出错的话最坏是某类知识源该重建时没重建,或不该重建时被重建;改动只有一个读取点,直接撤回即可。
  • 无

What changes

  • split/splitter.ts: a frozen per-strategy table, SPLIT_ALGORITHM_VERSION_BY_STRATEGY (whole: 1, recursive: 1, markdown: 1), typed as a readonly record keyed by every KnowledgeSplitStrategy, so a strategy added to the spec enum cannot reach the fingerprint without a version. Exported from split/index.ts only, not from the package entry.
  • knowledge-index-fingerprint.ts: the fingerprint's splitAlgorithm component reads the entry for the RESOLVED strategy instead of the one global constant. Still null when the adapter takes no chunks.
  • SPLIT_ALGORITHM_VERSION keeps its name and value (still published from src/index.ts, which this PR does not touch). Its JSDoc now says the fingerprint no longer reads it, so bumping it rebuilds nothing: the old text told a maintainer to bump it, which after this change would have done nothing.
  • ADR-0161 K7 kept: the row says the version "changes when the splitter gives different passages for the same text and settings". The resolved strategy is part of those settings, and the version is still a constant the splitter owns. The alternative the ADR rejects is one version per ADAPTER, which this is not. The claim records that an ADR wording note is owed at landing; this PR leaves docs/adr/** untouched.

Read first, by risk:

  1. packages/services/service-knowledge/src/knowledge-index-fingerprint.ts, the splitAlgorithm: line in computeIndexFingerprint. This is the only behaviour hunk.
  2. packages/services/service-knowledge/src/split/splitter.ts, the table and both JSDoc blocks.
  3. packages/services/service-knowledge/src/__tests__/index-fingerprint.test.ts, the PINNED values and the bump test.

Tests

  • New pin: the fingerprint of the fixed source for whole, recursive, markdown and no split equals the value measured on origin/main c6a1328 BEFORE the edit (same fixture, run against the base tree with tsx). The markdown value is the existing inline snapshot, unchanged.
  • New: with only the markdown version bumped (a fresh copy of the fingerprint module over a mocked split module, vi.doMock), the whole and recursive fingerprints are byte-identical to the pins, the no-split one too, and the markdown one differs.
  • The existing pin now also asserts the table equals { whole: 1, recursive: 1, markdown: 1 } and is frozen.
Package suite and typecheck

After merging origin/main (which brought in the sync-state change to this package), at 49bcd52, under the verify lock: dependency closure rebuilt, then pnpm --filter @objectstack/service-knowledge build && … test && … typecheck: VERDICT command-exit 0; Test Files 20 passed (20), Tests 698 passed (698); check:test-typecheck: OK. Before the merge, at a3b2b4f: 19 files, 685 tests, all passed. The test file is in the tsconfig.test.json program (--listFiles count 1).

Ablation (the bump test can fail)

Committed at 4897d47, then through scripts/ablation-replace.mjs: the splitAlgorithm read changed from the resolved strategy's entry to the recursive entry (anchor 1 to 0, blob f55b94bf1ccf to 45095300c800). Result: Tests 1 failed | 7 passed (8), the bump test failing on expected 'fp1:1455ed0d…' not to be 'fp1:1455ed0d…'. Restored: blob equals HEAD and git diff HEAD is empty.

Built declarations (decides Clause-②)

Measured twice. First, dist/ built on base c6a1328 and at a3b2b4f. Second, at the merge head 49bcd52: built as is, then built again with this PR's three source files restored to origin/main's bytes (worktree only, then restored; git diff HEAD empty afterwards). Both times testing.d.ts is byte-identical, and index.d.ts and index.d.cts differ in 6 lines each. All 6 are lines of the JSDoc comment on SPLIT_ALGORITHM_VERSION; no declaration line differs. SPLIT_ALGORITHM_VERSION_BY_STRATEGY is declared in neither entry. The published surface gains and loses nothing, so Clause-②: no.

Acceptance notes

  • SPLIT_ALGORITHM_VERSION is now read by no runtime code: only the package entry's re-export and the pin test read it. Retiring a published export is a separate narrowing card, not this one.
  • A change shared by several strategies (markdown cuts each section as recursive does) has to bump every strategy whose passages it changes. The table's JSDoc says this; no test can enforce it.

Verification

Two-minute check: pnpm --filter @objectstack/service-knowledge exec vitest run --maxWorkers=2 src/__tests__/index-fingerprint.test.ts. Expected: Tests 8 passed (8), including with only the markdown version bumped, a whole and a recursive source keep their fingerprint and a markdown source gets another.

Derived gate families, local subset

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack, derived at the merge head 49bcd52: 64 commands for the 5 changed paths. All 64 were run at 49bcd52, each exit code captured before any pipe. 63 exited 0. One exited 3, node scripts/check-plugin-teardown-shape.mjs --self-test: PREREQUISITE NOT MET, because its positive control is pinned to a commit this shallow clone cannot reach. It grades the checker's own fixtures, not this diff, so it is NOT MEASURED here and left to CI. --ran reconciliation: 64 derived famil(ies) accounted for — 63 run, 1 NOT-MEASURED. On the pre-merge run at a3b2b4f, pnpm check:dual-build-cjs-loads also exited 3 (no dist/ for most packages). At 49bcd52 it exited 0.

The repo-wide scans, the dogfood shards and the type-check lanes are CI's.


Generated by Claude Code

The index fingerprint read one global split algorithm version, so a change
to one strategy's passages rebuilt every source, including the whole and
recursive sources whose passages did not change. The splitter now carries a
frozen version per strategy, and the fingerprint reads the entry for the
source's resolved strategy (ADR-0161 K7: the strategy is part of the
settings). Every entry starts at today's value, so no fingerprint changes.

The published SPLIT_ALGORITHM_VERSION keeps its name and value.

Claude-Session: https://claude.ai/code/session_017xRBcSSm1UGomShRsemA1N
Co-authored-by: Claude <noreply@anthropic.com>
…s no unexported symbol

Claude-Session: https://claude.ai/code/session_017xRBcSSm1UGomShRsemA1N
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

2 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. ⚠️ 1 changed file(s) yielded no anchor (packages/services/service-knowledge/src/split/index.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/services/service-knowledge/src/split/index.ts) — pages documenting those are invisible to this run
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 253 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 125 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 4 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json bc31d453ea923b40529854b78e7a15fe48b810e1 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from ae57f2a5f86bbe685562fe389fc4c4585c8a5a2a — the merge of head 49bcd5201c3468c9dbbd7e7dc6f90b22b5007677 into base bc31d453ea923b40529854b78e7a15fe48b810e1, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin ae57f2a5f86bbe685562fe389fc4c4585c8a5a2a && git checkout ae57f2a5f86bbe685562fe389fc4c4585c8a5a2a
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin bc31d453ea923b40529854b78e7a15fe48b810e1 49bcd5201c3468c9dbbd7e7dc6f90b22b5007677 && git checkout -B drift-repro bc31d453ea923b40529854b78e7a15fe48b810e1 && git merge --no-ff 49bcd5201c3468c9dbbd7e7dc6f90b22b5007677

node scripts/docs-audit/affected-docs.mjs --json bc31d453ea923b40529854b78e7a15fe48b810e1

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#8 · sunhaolin · session_017xRBcSSm1UGomShRsemA1N

维护者速读

  • 做什么:切分算法版本改为每种策略各一个;以后只改一种策略的切分结果,就只重建用这种策略的知识源。
  • 影响:落地时三种策略的版本都从原值开始,现有索引一个都不重建;公开导出不变。
  • 风险:低;指纹用改动前的实测值钉住,并有“只升 markdown 时其余不变”的测试。
  • 要你做的:无(非受管面,本区落地)。

Head-sha: 49bcd52
Verdict: ACCEPT (L1, zone knowledge-split, seat repo:objectstack#8)

席位核对

  1. Shape. 5 files, all inside the claim's File surface: (comment 7241090032 on service-knowledge: the split algorithm version is global, so a change to one strategy rebuilds every source #38349): split/splitter.ts, split/index.ts, knowledge-index-fingerprint.ts, __tests__/index-fingerprint.test.ts, one changeset. src/index.ts (edited by PR feat(service-knowledge): each source's sync state is one durable record, the same on every node #38307) is untouched. +108 / −13.
  2. Premise, measured. Read in the diff: the fingerprint's splitAlgorithm now reads SPLIT_ALGORITHM_VERSION_BY_STRATEGY[split.strategy] and stays null with no split; the table is Readonly<Record<KnowledgeSplitStrategy, number>>, frozen, every entry 1, so no fingerprint moves. The test pins all four fingerprints (whole, recursive, markdown, no split) to literal values, and a fresh-module case with only markdown bumped keeps the other three equal and moves markdown. The dev's ablation (read changed to the recursive entry → 1 failed / 7 passed, restored) is in the report comment 7242296147; not re-run here.
  3. Gates, check-runs at this head. 55 check-runs: 39 success, 16 skipped, 0 failed or pending (read from GET /commits/49bcd52…/check-runs). The skips are UI, docs-build, opt-in harness and merge-queue verdict jobs; check-expected-skips.mjs could not run in this container (missing yaml dependency), so the skip list is NOT MEASURED by the script, read by job name only. mergeable_state: clean. check-governed-merges --pr 38375: NOT governed, 121 lines ≤ 3000. landing-k --pr 38375: K = 0.
  4. Accepted deviations. One merge of origin/main before pr_create (merge commit 49bcd52; feat(service-knowledge): each source's sync state is one durable record, the same on every node #38307 landed in the same package meanwhile, on other files); the dev re-ran the package suite and the gate list on the merge head. Clause-②: no is final: the dev measured the built entry declarations twice (index.d.ts/index.d.cts differ only in 6 JSDoc lines; SPLIT_ALGORITHM_VERSION_BY_STRATEGY is declared in neither entry). The diff touches no packages/spec/src/**, so no contract-review leg is owed.
  5. Out of scope, where each goes. (a) SPLIT_ALGORITHM_VERSION stays exported and is now read by no runtime code; retiring a published export is a narrowing → a review follow-ups of PR #38375 card. (b) ADR-0161 K7 calls the split algorithm version "a constant the splitter exports"; the per-strategy reading refines it → an ADR revisions row, carrier: this PR, recorded on the same follow-ups card. Skills-docs: n/a (Metadata-protocol: none).
  6. Landing. Non-governed, under the line: the zone lands it (pr_ready, automerge_enable). Fixes #38349 closes the card on merge. The next card in the zone, service-knowledge: the markdown split drops body-less headings and files them under the wrong chapter #38350, is Blocked-by: #38349 and is released when this merges.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 28, 2026 16:58
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit ba33ea2 Nov 28, 2026
56 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-38349-split-version-per-strategy branch November 28, 2026 17:23
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…tack-ai#38452)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XPpqjfjwZCAyAm71ZUE2yhz)_
Fixes objectstack-ai#38377
Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — no published skill, doc page or example names the
retired constant (git grep over `skills`, `content/docs`, `docs`,
`examples`, `apps`, `ui`, `.claude` at 4fa2f8e: 0 hits); the ADR text
is item 2, carried by the lander

## 维护者速读

- 用户能看到什么变化:用户无感;只有直接引用知识服务包里那个旧常量的宿主代码,升级后编译会提示删掉这行引用。
- 为什么做:知识平台「切分版本按策略计」之后的收尾,撤掉一个已经没有任何运行代码读取的公开常量,免得作者和 AI 以为改它有效。
- 出错会怎样:最坏是某个宿主仍引用它而编译失败,删掉那行引用即可;可直接撤回本改动,不会触发任何索引重建。
- 要你做的:无。

## What changes

`SPLIT_ALGORITHM_VERSION` leaves `@objectstack/service-knowledge` at
once, with no alias (the card's stage posture). Since the per-strategy
split version landed, the index fingerprint (ADR-0161 K7) reads
`SPLIT_ALGORITHM_VERSION_BY_STRATEGY` for the source's resolved
strategy, and the global constant was read by no runtime code.

- `src/split/splitter.ts`: the constant and its docblock are deleted.
The per-strategy table's docblock linked to it ("Every entry started at"
the constant); it now says every entry started at 1, the one split
version the fingerprint read before the table, which names no retired
symbol and stays true.
- `src/split/index.ts`, `src/index.ts`: both re-exports are deleted.
- `src/__tests__/index-fingerprint.test.ts`: the version pin keeps the
two remaining constants (`INDEX_FINGERPRINT_VERSION`,
`ASSEMBLY_RULE_VERSION`), and a new case pins the retirement: neither
the split barrel nor the package entry has the property, with a positive
control on the entry.
- Area-ordered additions (the sibling split card's L2 nit, comment text
only, no assertion, value or snapshot changed): two comments now name
both changes `markdown` version 2 carries, the body-less heading as its
own passage and a fitting section as one passage whatever `minChars` is.
One is the `markdown: 2` entry comment in
`SPLIT_ALGORITHM_VERSION_BY_STRATEGY` (`splitter.ts`); the other is the
`PINNED` docblock in `index-fingerprint.test.ts`. The second clause is
true only once PR objectstack-ai#38439 merges; the seat lands this PR after it. The
table's docblock does not tie version 2 to one change, so it needed no
edit.
- `.changeset/38377-retire-split-algorithm-version.md`: `patch` (kind
`none`), BREAKING banner, FROM/TO table, a sentence saying this
retirement replaces the still-pending 38349 changeset's note that the
constant keeps its name and value (that changeset is not edited),
ADR-0087 disposition `not-required (runtime-export-retired
@objectstack/service-knowledge#SPLIT_ALGORITHM_VERSION)`.

Item 2 of the card (the ADR-0161 K7 revisions row) is not in this PR: no
`docs/adr/**` edit. The landing seat appends it to the weekly ADR
revisions card (`carrier:` PR objectstack-ai#38375). `Fixes` stays because that row is
landing bookkeeping.

Landing: a narrowing of a published surface. It owes one
contract-review-tier L2 on its final head before the queue.

Read first: (1) `src/split/splitter.ts` — the reworded docblock is the
only prose a reader of the table keeps; (2) the changeset — it ships as
the CHANGELOG line an upgrader greps; (3) the new test case.

Two-minute check: `pnpm --filter @objectstack/service-knowledge exec
vitest run src/__tests__/index-fingerprint.test.ts` — expect 9 tests
passing, including "publishes no global split version beside the
per-strategy table".

## Tests

Package suite at `f76ba9c9`. At `987b09ca`, the last commit that touched
code or tests, `index-fingerprint.test.ts` alone under the verify lock:
Test Files 1 passed (1), Tests 9 passed (9), VERDICT command-exit 0.


<details><summary>service-knowledge test + typecheck (lock VERDICT
command-exit 0)</summary>

```
pnpm --filter @objectstack/service-knowledge test
 Test Files  21 passed (21)
      Tests  727 passed (727)
pnpm --filter @objectstack/service-knowledge typecheck
check:test-typecheck: OK, the test layer compiles under tsconfig.test.json; 0 file(s) / 0 error(s) held in test-typecheck-debt.json
```
</details>

<details><summary>Ablation of the new retirement pin</summary>

With `export const SPLIT_ALGORITHM_VERSION = 1;` appended to
`src/index.ts` on disk, `index-fingerprint.test.ts` went red: `publishes
no global split version beside the per-strategy table` failed with
`expected ... to not have property "SPLIT_ALGORITHM_VERSION"` (1 failed,
8 passed). Restored with `git checkout HEAD`, tree clean.
</details>

<details><summary>Full dogfood (the narrowing arm), at
`4fa2f8ee`</summary>

`pnpm turbo run build --filter='@objectstack/dogfood^...'` then `pnpm
--filter @objectstack/dogfood test` under the verify lock: VERDICT
command-exit 0, Test Files 495 passed, 3 skipped (498), Tests 4183
passed, 68 skipped (4251). `987b09ca` differs from `4fa2f8ee` by
comments only (`git diff --stat 4fa2f8e..HEAD`: 2 files changed, 4
insertions, 1 deletion; one hunk in `splitter.ts`, one in
`index-fingerprint.test.ts`, both comment lines). The final head
`42214359` adds one changeset sentence. So the battery was not re-run.
</details>

## Acceptance notes

- Whole-tree search before deleting, at `d751790c`: `git grep -n
'SPLIT_ALGORITHM_VERSION\b'` gave 13 lines. 5 were the declaration, the
two re-exports and the pin's import and assertion (all removed here); 1
was the per-strategy docblock link (reworded); the other 7 are history:
`.changeset/38349-split-version-per-strategy.md`,
`.changeset/pre/37100-knowledge-pgvector.md` and five generated
`CHANGELOG.md` files. They are left alone: existing changesets are never
edited, and CHANGELOGs are release-owned. No `skills`, `content/docs`,
`docs`, `examples`, `apps`, `ui` or `.claude` hit.
- The package has no API-surface baseline, so no generator was owed.

## Verification

<details><summary>Local gates (derived with dispatch-gates --commands,
reconciled with --ran: 63 derived, 63 run)</summary>

- 60 of 63 exited 0 on the first pass.
- `node scripts/check-adr-0087-registration.mjs --base origin/main` exit
1 on `0c4609e7` (the FROM column spelled an import statement, not the
operand); after the fix, exit 0 on `4fa2f8ee`: `not-required
(runtime-export-retired) -- verified:
@objectstack/service-knowledge#SPLIT_ALGORITHM_VERSION`.
- `node scripts/check-plugin-teardown-shape.mjs --self-test` exit 3
(shallow clone could not reach its pinned fixture commit); after
fetching that commit, exit 0, 48 cases pass.
- `pnpm check:dual-build-cjs-loads` exit 3, PREREQUISITE NOT MET (needs
every package built). NOT MEASURED locally, CI runs it.
- Re-run at `4fa2f8ee` after the changeset fix:
check-changeset-no-major, check-empty-changeset,
check:changeset-gate-self-tests, check:nul-bytes, check:doc-authoring,
check:issue-citations: all exit 0. check:nul-bytes exit 0 again at
`f76ba9c9` and at `987b09ca`. At `42214359` (changeset sentence only),
check-adr-0087-registration, check-changeset-no-major,
check-empty-changeset and check:nul-bytes: all exit 0.
- `node scripts/check-platform-checklist.mjs --changed-from origin/main`
exit 0: 0 anchored files in the change set.
- `node scripts/pm/overlap-check.mjs` before each push: clean; at
`f76ba9c9`, `987b09ca` and `42214359` it also merges cleanly with PR
objectstack-ai#38439.
</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01FEkQ5omA3kZCsWzBMMqF11

<!-- signed: repo:objectstack#5 · os-project-manager ·
session_01FEkQ5omA3kZCsWzBMMqF11 -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…s five records) (objectstack-ai#38774)

<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBHuLciv5hYVYUu4pypDP48J)_

Part of objectstack-ai#38438

Clause-②: no
Metadata-protocol: none

This pull request carries seven of the card's nine rows. The two
ADR-0161 rows stay on the card; see "Rows not carried".

## 维护者速读

- 用户能看到什么变化:用户无感;只在五份设计记录里补了七条带日期的说明,写明主线现在实际怎么做,原有的决定文字一个字没动。
- 为什么做:属于「每周设计记录修订」滚动清单(11 月 29
日这一周);清单每一行指出一处「记录写的和主线不一致」或「记录留给某项工作回答、那项工作已经做完」,这次把代码已在主线的七行一并补齐。
- 出错会怎样:最坏是某条说明写得不准,照着设计记录干活的人会被带偏;纯文档、只增不删,可以直接撤回,不影响任何功能。
- 要你做什么:请审这七条说明并批准一次(设计记录须由你本人批)。

## What changes

Five ADR files gain seven notes dated 2026-11-30. Every diff line is an
addition: 62 lines added, 0 removed. No original decision text is
rewritten, and no decision changes. Each note follows the note
convention its own record already uses, and each says that the passage
it is read with is left as written.

Each row's "what is true now" was read against the code on `main` before
its note was written. Where a row's wording did not match the tree, the
note says what `main` does; the last column says so and the list under
the table gives the detail.

| ADR · section | Was (the record's words) | Now (what the note records)
| Source PR | Row on the card · result |
|:---|:---|:---|:---|:---|
| ADR-0084 · amendment of 2026-11-28, item (3) | "one landing for every
door is not ruled"; the command palette's package entries, an app's
design-in-Studio entry, the empty menu's entry and Setup's doors "still
open the object list" | One landing is ruled: ruling record 7247357556
on objectstack-ai#37958, the maintainer's 「OK」, quoted with its question. Every door
lands on the package's overview, `/studio/PACKAGE/overview`.
`/studio/PACKAGE/data` stays a working address for the object list. The
review-changes deep link still opens the Changes drawer over the object
list and is read as no door, by a seat reading and not by a ruling |
objectstack-ai#38501 | Card body row and 7252442785 · **written, corrected to the
tree** (two labels, the date) |
| ADR-0084 · the note of 2026-11-29 on the `form` row (near line 219) |
"The same change takes the type off the directory's hidden types and
brings its designer" | True of card objectstack-ai#37087, loose for the change: objectstack-ai#38484
brought the designer, and objectstack-ai#38619, which wrote the row, lists the type
(off the hidden types, a place in the menu) | objectstack-ai#38484, objectstack-ai#38619 |
7258423977 · **written as an added note** (the row says "Reword") |
| ADR-0037 · TL;DR item 2 and the "What already exists" table | "the
streaming build tree (`data-build-progress` parts)", and a table row
that marks "`data-build-progress` stream parts" shipped | The
build-progress stream frame is retired. Its reader left with the build
chat frontend, its producer with the cloud build loop, and its
declaration left `@objectstack/spec/ai`. The upgrade guidance is the
migration entry `ai-build-progress-frame-retired` | objectstack-ai#38398 (reader:
objectstack-ai#37720) | 7250363289 · **written** (one sentence beyond the row) |
| ADR-0150 · the note of 2026-11-26, bullet "Reads stay the missing
name" | "Three reads at `_env` still answer `409` at this head
(`?state=draft`, `?preview=draft`, `?layers=true`), and card objectstack-ai#34261
carries their move to `404`." | The move has landed. For a name only
disabled packages hold, each of the three answers its own `404` and
names no package, on both transports. An enabled package's stored draft
that the plain read does not see keeps the `409` for the two draft reads
| objectstack-ai#38633 | 7259890438 · **written, corrected to the tree** (codes and
callers made exact) |
| ADR-0150 · D4, the engine's flow-map row | The table keys the engine's
flow map by `(package, name)` and says nothing of the status rows read
from it | Each status row carries the `packageId` of the engine slot it
reads, so `(packageId, name)` names one row. The toggle door reads back
the row of the slot it switched, and echoes the request only where the
reading cannot name that flow | objectstack-ai#38652 | 7266385586 · **written** |
| ADR-0085 · the note of 2026-11-27 | "Neither key is in the spec yet:
`ObjectSchema` is strict and refuses both until objectstack-ai#37792 lands
`pinOverview` and objectstack-ai#37802 lands `fieldTabs`." | `pinOverview` is in the
spec, an optional boolean on `ObjectSchema`; `false` means the desktop
full record page never pins. An object extension does not carry the key.
`fieldTabs` is still refused | objectstack-ai#38679 | 7271302663 · **written**, no
`fieldTabs` line |
| ADR-0146 · the note of 2026-11-24 (near line 908) | "A `.custom`
package that is not the object's pair is not applied, and the boot log
names it." | Maintainer ruling 7268226134 on objectstack-ai#36548, item 5, arm (c),
verbatim 「保存和安装都拒绝」. A non-pair `.custom` package that writes
`fieldGroups`, `relatedLists` or `actionLayout` on an object extension
is refused at the save, the restore, the draft promotion, a package
duplicate and marketplace install. Where no door can read the installed
packages, the sentence stands | objectstack-ai#38706 | 7272564306 · **written,
corrected to the tree** (statuses; the duplicate's answer corrected in
patch round 1) |

### Rows not carried

- **ADR-0161, two rows** (Consequences, "The service keeps none of its
own"; K7 components table, "Split algorithm version"). The claim for
this pull request leaves that file out, because pull request objectstack-ai#38764 was
open on the same record when the claim was written. objectstack-ai#38764 merged at
2026-11-30T13:15:16Z, while this branch was being verified, and the
prerequisites both rows name (objectstack-ai#38307, objectstack-ai#38401, objectstack-ai#38375, objectstack-ai#38452) are
merged. Pull requests objectstack-ai#38730 and objectstack-ai#38732 (card objectstack-ai#38692) are still open and
both write ADR-0161, so that record still has other writers. By the
seat's call on the card (comment 7280598106) the two rows stay on objectstack-ai#38438
behind them, and this pull request is `Part of objectstack-ai#38438`.
- **ADR-0085, a `fieldTabs` line.** Its pull request, objectstack-ai#38742, was open
and a draft when this was opened (read at 2026-11-30, head
`59220bf331`). The card says that line follows when it merges.

Every prerequisite of the seven rows is merged on `main`: objectstack-ai#38398,
objectstack-ai#38501, objectstack-ai#38484, objectstack-ai#38619, objectstack-ai#38633, objectstack-ai#38652, objectstack-ai#38679 and objectstack-ai#38706. The newest
comment on the card when this was opened is the claim, 7279134045; a row
added after it is not in this pull request.

### Where a note differs from its row

- **ADR-0084, item (3).** The row names Setup's doors "Open in Studio"
and "Customize in Studio". The labels on `main` are "Open in App Studio"
and "Customize in App Studio", and the note uses them. The proposed text
was dated 2026-11-29; the note is dated 2026-11-30, the day it was
written into the record. The note names the three Setup doors one by one
and says of the review-changes deep link what the row says: no door, by
a seat reading, not by a ruling.
- **ADR-0084, the `form` row.** The row says "Reword". The card's rule
is that a row lands as an added dated note, so the 2026-11-29 note stays
as written and a note under it says which pull request did which half.
- **ADR-0037.** One sentence goes beyond the row: Phase 2's first
invalidation source, the `buildProgress.items` diffs, was the same
signal as the chat held it, and no code under `ui/` holds it any more.
Cut it if the note should carry the row alone. The note also names the
producer's retirement in the cloud repository and what a host does that
still streams a progress part of its own.
- **ADR-0150, the reads.** The row's proposed sentence gives `404` for
`?preview=draft` and `?layers=true`. The note gives the code the tree
answers, `404 RESOURCE_NOT_FOUND`, says that these are the answers to a
caller admitted to the switch, and that a caller who is not admitted
gets the plain read's `404`. It adds two facts from the tree: a
package-less draft is withheld while a disabled package holds the name,
and the layered view answers `404` under the leak guard.
- **ADR-0150, D4.** The note spells out the three cases where the toggle
door still echoes the request. The row's proposed sentence leaves them
out.
- **ADR-0085.** The row offers a "Built by" line in the style of an
earlier note. The note carries it and also restates what `false` does
and why an object extension does not carry the key, both from the row's
own "what is true now".
- **ADR-0146.** The row gives one code for every door. The tree answers
`VALIDATION_ERROR` with status 400 at the save, the restore and the
draft promotion, and with status 422 at marketplace install, with
nothing installed. A package duplicate saves each copied row through the
save door and lists a refused row in its own `failed[]`, with the save
door's sentence and no code, storing nothing for that row. The note says
all three, and that no error code is minted.

## Patch round 1 (head `04cc5911`)

The contract review at `947b7e64` (comment 7280965486) passed with one
should-fix: the ADR-0146 note put `VALIDATION_ERROR` / 400 on the
package duplicate. Commit `04cc5911` corrects this branch's own
2026-11-30 note to the tree (`duplicatePackage` reports the refused row
in `failed[]`) and adds one sentence from item 3 of ruling 7268226134 (a
target whose owner the door does not know is not judged by role). Only
that note moves: +9 / -3 inside it, and the branch is still +62 / -0
against `main`. Dev report: card comment 7281379369. Sections below that
name `947b7e64` record the first round.

## Tests

Docs only. No package source is touched, so no package test and no type
check is owed for the change. No tested behaviour changed, so there is
no ablation.

Checked on the committed text at `947b7e64`:

- Each phrase a note quotes from its ADR is in that file as it stands on
`main`. A script compared them. One quotation, in the ADR-0085 note,
reads as the sentence renders: the record links its two card references
and the quotation does not.
- Each verbatim maintainer quotation was compared with its record on
GitHub (7247357556 and 7268226134).
- Each path a note cites exists on the tree. The one exception is
deliberate: the ADR-0037 note names
`packages/spec/src/ai/build-progress.zod.ts` to say that the module is
gone.
- Each test title a note quotes is in the test file the note names.
- A probe on the spec source: `ObjectSchema` accepts `pinOverview:
false`, refuses `pinOverview: "no"`, and refuses `fieldTabs` as an
unrecognised key; `ObjectExtensionSchema` refuses `pinOverview` as an
unrecognised key, with its guidance.
- Upstream moved four commits while this was written. The branch merges
`main` at `f576dee5`; none of the four touches one of the five files or
a path a note cites. `overlap-check` answers `VERDICT clean exit 0`
against that `main`, and no open pull request shares a file with this
branch.

Two tests read these records from disk. Both were run on `947b7e64`
under the verify lock, after building what each needs:

-
`ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts`
reads ADR-0084's type table: `Test Files 1 passed (1)`, `Tests 21 passed
(21)`.
- `packages/qa/scenarios/test/score/entry.test.ts` reads ADR-0150's D1
table: `Test Files 1 passed (1)`, `Tests 14 passed (14)`. Its first run
answered `Failed to resolve entry for package "@objectstack/types"`, a
missing build in the fresh worktree and no verdict on this change; it
passed once that package's build closure was built.

The local gate set is the `dispatch-gates --commands` derivation for
this change set, 21 commands, run on commit `947b7e64` (patch round 1
ran the same 21 on `04cc5911`, all exit 0). Each exit code was captured
before any pipe. Reconciliation: `Run reconciliation — 21 derived, 21
run, 0 NOT-MEASURED, 0 UNRUN`. The same 21 were derived and run on the
commit before the merge, with the same result.

<details><summary>ADR gates on 947b7e6 (all exit 0)</summary>

| Command | Exit | Verdict line |
|:---|:---|:---|
| `pnpm check:adr-symbol-anchors` | 0 | `check-adr-symbol-anchors: 4597
anchors across 165 records resolve`, 0 line anchors survive. On the base
commit the gate read 4570, and 4593 with this change alone; the other
four come with `main`. |
| `node scripts/check-adr-links.mjs` | 0 | `check-adr-links: 1284
relative link destination(s) under docs/adr/ resolve` |
| `node scripts/check-adr-links.mjs --self-test` | 0 | |
| `pnpm check:adr-anchors` | 0 | `check-adr-anchors: OK (135 anchored
file(s), every governing ADR still referenced` |
| `pnpm check:adr-index` | 0 | `adr-index --report: OK —
docs/adr/README.md is current, every record parsed` |
| `pnpm check:doc-authoring` | 0 | |
| `pnpm check:nul-bytes` | 0 | `check-nul-bytes: OK (scanned 29015 text
file(s)`, no raw control bytes |
| `pnpm check:closed-ceremony-text` | 0 | |
| `pnpm check:pm-governed-merges` | 0 | |
| `pnpm --filter @objectstack/lint run check:doc-formula-expressions` |
0 | run after building `@objectstack/spec`, `@objectstack/formula` and
`@objectstack/lint` under the verify lock |

</details>

<details><summary>The other derived families on 947b7e6 (all exit
0)</summary>

`node scripts/check-closing-keyword-parity.mjs` and its `--self-test`,
`node scripts/check-comment-mask-corpus.mjs`, `node
scripts/ci/plan-test-core-shards.mjs --self-test`, `pnpm
check:ci-filter-parity`, `pnpm check:cross-package-test-inputs`, `pnpm
check:driver-memory-census`, `pnpm check:gitlink-declared`, `pnpm
check:pm-prior-rulings`, `pnpm check:refd-timer-probe`, `pnpm
check:watch-hint-literal`.

Before the last push: `node scripts/check-commit-card-trailers.mjs
--range origin/main..HEAD` exit 0, two commit messages (three after
patch round 1, also exit 0), no card relation and no model identifier in
the trailer pair.

</details>

<details><summary>A local-only reading that is red for a reason outside
this change</summary>

`pnpm check:dev-prereqs` exits 1 in this worktree: "The workspace is not
built", 105 of 110 workspace packages have no build output. It judges
the machine and not the diff, CI does not run its scan, and a fresh
worktree that builds only what a docs change needs reads this way. It is
not in the derived list.

</details>

Not run locally: the repository test project behind `test:repo`, and
every package suite. CI runs them on the pull request and on the merge
group. Every other family CI runs is read from this pull request's check
runs, not re-run here.

## Acceptance notes

- **Changeset.** None, and the pull request carries `skip-changeset`.
`docs/adr/**` ships in no package.
- **Governed surface.** `docs/adr/**` lands on the maintainer's
approval. This pull request stays a draft; the seat arranges the review
at the tier this surface owes and hands it over.
- **Why "Part of".** The card says it ends when its pull request merges.
Two of its rows are not here, so merging this one must leave the card
open.
- **Seen and left alone.** These are outside the seven rows and are not
changed here.
- ADR-0037's Status line says all four phases are implemented. On this
tree the console's canvas-invalidate signal has a subscriber and no
publisher: nothing calls the bus function that emits it. It is a
candidate row for the card of this name.
- ADR-0150's D4 note of 2026-11-10 gives its own end condition, an
earlier card landing. That card ended on 2026-11-12, and the record
carries no line that says so. A possible row; not judged here.
- Comments in the chat plugin still name the retired build-progress
part, and one test fixture uses the name as an open `data-` part. Not a
record, so not a row.

## Verification

### Read first

1.
`docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md`,
the note of 2026-11-30 under the note of 2026-11-24. The highest-risk
hunk: it quotes a maintainer ruling, and it draws the line between the
doors that refuse and the places where the old sentence still stands.
Check the two statuses and the list of places with no door.
2. `docs/adr/0084-application-builder-information-architecture.md`, the
amendment of 2026-11-30 under the amendment of 2026-11-28. It quotes a
maintainer ruling and lists every door; check the list, and the sentence
on the review-changes deep link, which records a seat reading and says
so.
3.
`docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md`,
the first amendment note of 2026-11-30. Check the three answers, who
gets which, and the leak-guard paragraph against the tests it names.

### Two-minute check

Run `git diff --numstat origin/main...HEAD` on this branch. Expect five
rows under `docs/adr/`, each with `0` in the removed column, and 62
added lines in total (2, 4, 18, 28 and 10). Then run `pnpm
check:adr-symbol-anchors` and expect exit 0 with a line that contains
`anchors across 165 records resolve`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01WGufzhPdWmTd47Fi2bKYZS)_

<!-- signed: repo:objectstack@os-support-ai · os-support-ai ·
session_01WGufzhPdWmTd47Fi2bKYZS -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
… notes across three records) (objectstack-ai#38809)

<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBHuLciv5hYVYUu4pypDP48J)_

Fixes objectstack-ai#38438

Clause-②: no
Metadata-protocol: none

This pull request carries the card's last four rows. The first seven
landed with the first pull request of this card, objectstack-ai#38774, merged
2026-11-30.

## 维护者速读

- 用户能看到什么变化:用户无感;只在三份设计记录里补了四条带日期的说明,写明主线现在实际怎么做,原有的决定文字一个字没动。
- 为什么做:属于「每周设计记录修订」滚动清单(11 月 29 日这一周);上一张合并请求已带走七行,这次补齐剩下四行,这份清单就此收口。
- 出错会怎样:最坏是某条说明写得不准,照着设计记录干活的人会被带偏;纯文档、只增不删,可以直接撤回,不影响任何功能。
- 要你做什么:请审这四条说明并批准一次(设计记录须由你本人批)。

## What changes

Three ADR files gain four notes dated 2026-12-01. Every diff line is an
addition: 43 lines added, 0 removed. No original decision text is
rewritten, and no decision changes. Each note follows the note
convention its own record already uses, and each says that the passage
it is read with is left as written.

Each row's "what is true now" was read against the code on `main` before
its note was written. All four rows hold. Where a row's wording did not
match the tree, the note says what `main` does; the last column says so
and the list under the table gives the detail.

| ADR · section | Was (the record's words) | Now (what the note records)
| Source PR | Row on the card · result |
|:---|:---|:---|:---|:---|
| ADR-0161 · Consequences, the bullet "A stored fingerprint and recipe
hash are the only index state the service relies on" | "The service
keeps none of its own" | The service keeps a sync state for each source:
its last build, and the record syncs that failed and are not yet
repaired. Where the knowledge plugin can keep it, it is one durable
record per source; otherwise the last build is kept in the process and
failed syncs are not counted. Whether an index is due for a build is
still read from the stored fingerprint and recipe hash, so the bullet's
first sentence stands for that decision. The K8 note of 2026-11-28
already names this state | objectstack-ai#38307 | Card body row · **written, corrected
to the tree** (the in-process case) |
| ADR-0161 · K7, the components table, row "Split algorithm version" |
"a constant the splitter exports; it changes when the splitter gives
different passages for the same text and settings" | The version is kept
per split strategy, and the fingerprint reads the entry for the strategy
the source resolves to. A change to one strategy's passages starts a new
generation only for the sources that resolve to it. The single exported
constant is retired, with no alias | objectstack-ai#38375, objectstack-ai#38452 | Card body row ·
**written, corrected to the tree** (no version value is written) |
| ADR-0085 · the note of 2026-11-27, and the note of 2026-11-30 under it
| "Neither key is in the spec yet", and in the later note "The second
half stands: `fieldTabs` is not in the spec" | `fieldTabs` is in the
spec, an optional list of `{ key, groups }` entries on `ObjectSchema`,
so both keys are built. The parse refuses a group the object does not
declare, a group two tabs name, a group that places a related list, and
a repeated `key`. The tabs are drawn on every tier of the standard
record page: the full page, the side preview and a phone. Only the
standard record page reads the key, and an object extension does not
carry it | objectstack-ai#38742 | 7282251133 · **written** |
| ADR-0084 · the table "What the amendment replaces", row "Entries that
are not a type", and three sentences that count four entries | "The
organization's own flows retire when the door that moves loose items
ships."; "The menu also holds four entries that open no type's list";
"Of the four entries that are not a type, the cross-package directory is
to leave the menu"; "The four entries that are not a type are 高级 on a
package" | The door has shipped and the flows have retired, the entry
and the package-less scope it opened alike. Four changes carried it,
each named with what it did. The three sentences count the rows of the
table under "Entries that are not a type" as it was first written. The
note names the entries of a package's menu that open no type's list
today: 概览 Overview, the default sharing overview, Diagnostics and 全部类型
All types | objectstack-ai#38185, objectstack-ai#38389, objectstack-ai#38545, objectstack-ai#38598 | 7283216315 · **written,
corrected to the tree** (names and no count; a third sentence; the
change that built the door) |

Every prerequisite of the four rows is merged on `main`: objectstack-ai#38307, objectstack-ai#38375,
objectstack-ai#38452, objectstack-ai#38742, objectstack-ai#38185, objectstack-ai#38389, objectstack-ai#38545 and objectstack-ai#38598, and objectstack-ai#38679 and
objectstack-ai#38401, which two of the notes point back to. The newest comment on the
card when this was opened is the claim amendment, 7296007044; a row
added after it is not in this pull request.

### Where a note differs from its row

- **ADR-0161, Consequences.** The row says the service keeps a sync
state per source. On the tree that state is a durable record only where
the knowledge plugin can keep it, with its object registered and a data
engine bound. Otherwise the last build is kept in the process and failed
syncs are not counted. The note says both. It also says what the row
asks for: the stored fingerprint and recipe hash are still what a build
is decided from, at boot and on reload alike.
- **ADR-0161, K7.** The row says no fingerprint value moves. That is
true of the change that brought the table in, and the note says so in
those terms. It is not true of every entry since: one strategy's entry
has been raised on `main` for a change to its own passages. So the note
writes no version value, and says that an entry raised since was raised
for its own strategy.
- **ADR-0161, the header.** This record lists every dated note in its
header, one "Amended" line each. The two notes add two such lines, the
seventh and the eighth. That is the record's own convention and it is
why the file gains 17 lines for two notes.
- **ADR-0085.** The first pull request of this card wrote a note dated
2026-11-30 that says "The second half stands". That sentence was true
for one day. The new note is placed under it and names both sentences it
is read with; neither older note is edited. It does not repeat what the
2026-11-30 note says of `pinOverview`. The three tiers are read from the
code: the list of field tabs is built with no regard to the tier. No
test names the three tiers one by one.
- **ADR-0084.** The row asks for the entry count as it now stands. The
note names the entries and writes no number, since a count in a record
goes stale with the next entry. The row names two sentences that count
four entries with no note beside them: the one that opens "Entries that
are not a type", and "Of the four entries that are not a type, the
cross-package directory is to leave the menu", in the note of 2026-11-26
under "The two tiers". The note reads both. It also reads a third, which
the row does not name and which has no note either: "The four entries
that are not a type are 高级 on a package", under the same heading, quoted
as it renders (the record links part of it). So the note says three. As
first pushed, the note said two and left out the sentence the row asks
about; the contract review found it, and `128528c5` corrects the note.
The row names three pull requests. The note names four and says which
did which part: the door itself was built by objectstack-ai#38185. The note stays in
step with the two ADR-0084 notes of the first pull request, which it
does not touch.

## Tests

Docs only. No package source is touched, so no package test and no type
check is owed for the change. No tested behaviour changed, so there is
no ablation.

Checked on the committed text:

- Each phrase a note quotes from its ADR is in that file as it stands on
`main`. A script compared them. One quotation, in the ADR-0084 note,
reads as the sentence renders.
- Each path a note cites exists on the tree, and each of the seven
symbols a note anchors is a declaration in the file named. `pnpm
check:adr-symbol-anchors` judges the same and is green.
- A probe on the spec source: `ObjectSchema` accepts `fieldTabs` with a
declared group. It refuses a group the object does not declare, a group
two tabs name, and a repeated `key`. `ObjectExtensionSchema` refuses
`fieldTabs` as an unrecognised key, with its guidance.
-
`ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts`
reads ADR-0084's type table from disk. It was run under the verify lock
on the final commit `128528c5`: `Test Files 1 passed (1)`, `Tests 21
passed (21)`. It read the same on `808e249f`, the first commit of the
notes.

The local gate set is the `dispatch-gates --commands` derivation for
this change set, 21 commands, run on the final commit `128528c5`. Each
exit code was captured before any pipe. Reconciliation: `Run
reconciliation — 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN`. The same
21 were derived and run on `808e249f` and on `f7bae5cfb`, with the same
result. On `128528c5` the derivation warns that the branch is one commit
behind `main` and that one file it derives from changed there. The
branch does not merge `main` again while this pull request is open and
mergeable, so the list was derived a second time on a throwaway tree of
`main` (`d97aaaea9a`) plus this branch: the same 21 commands, and no
warning.

<details><summary>ADR gates on 128528c (all exit 0)</summary>

| Command | Exit | Verdict line |
|:---|:---|:---|
| `pnpm check:adr-symbol-anchors` | 0 | `check-adr-symbol-anchors: 4606
anchors across 165 records resolve — 1726 symbol (1697 declaration, 29
literal)`, 0 line anchors survive. Seven of the symbol anchors are new
with this change. |
| `node scripts/check-adr-links.mjs` | 0 | `check-adr-links: 1284
relative link destination(s) under docs/adr/ resolve` |
| `node scripts/check-adr-links.mjs --self-test` | 0 | |
| `pnpm check:adr-anchors` | 0 | `check-adr-anchors: OK (135 anchored
file(s), every governing ADR still referenced` |
| `pnpm check:adr-index` | 0 | `adr-index --report: OK —
docs/adr/README.md is current, every record parsed` |
| `pnpm check:doc-authoring` | 0 | |
| `pnpm check:nul-bytes` | 0 | `check-nul-bytes: OK (scanned 29077 text
file(s)`, no raw control bytes |
| `pnpm check:closed-ceremony-text` | 0 | |
| `pnpm check:pm-governed-merges` | 0 | |
| `pnpm --filter @objectstack/lint run check:doc-formula-expressions` |
0 | run after building the build closure of `@objectstack/lint` under
the verify lock |

</details>

<details><summary>The other derived families on 128528c (all exit
0)</summary>

`node scripts/check-closing-keyword-parity.mjs` and its `--self-test`,
`node scripts/check-comment-mask-corpus.mjs` (`24511 files, 0 disagree,
0 unparseable`), `node scripts/ci/plan-test-core-shards.mjs
--self-test`, `pnpm check:ci-filter-parity`, `pnpm
check:cross-package-test-inputs`, `pnpm check:driver-memory-census`,
`pnpm check:gitlink-declared`, `pnpm check:pm-prior-rulings`, `pnpm
check:refd-timer-probe`, `pnpm check:watch-hint-literal`.

Before the last push: `node scripts/check-commit-card-trailers.mjs
--range origin/main..HEAD` exit 0, three commit messages, no card
relation and no model identifier in the trailer pair.

</details>

<details><summary>The overlap check answers exit 1 against one open pull
request, objectstack-ai#38812; the reading is below</summary>

`node scripts/pm/overlap-check.mjs` on `128528c5`:

- Against `main` (`d97aaaea9a`): `origin/main: merges cleanly`.
- Against the open pull request objectstack-ai#38812 (a draft opened after this one,
head `f3cd7dba76`, one file, 17 lines added to ADR-0161): `VERDICT
overlap exit 1`, with the conflict named in the ADR-0161 file. No other
open pull request shares a file with this branch.

What the conflict is made of, measured on the two heads:

- Both add to the header list of dated notes in ADR-0161, at the same
place, under its sixth line. This branch adds two lines, "a seventh
dated note" and "an eighth dated note". objectstack-ai#38812 adds one line, and it
also says "a seventh dated note".
- That is the only conflict hunk. The notes themselves sit apart and
merge: this branch's under K7 and under Consequences, the other's under
K8 with a cross-reference at K1.

So this overlap is real, and it is more than text: the two pull requests
number their notes from the same count. Whichever lands second has to
merge `main`, keep all three header lines, and renumber its own. See the
acceptance notes.

An earlier reading, on `f7bae5cfb`, answered 1 against the approvals
trunk, objectstack-ai#38497. That pull request has since ended without a merge
(2026-12-01T01:02Z), and the check no longer lists it.

</details>

Not run locally: the repository test project behind `test:repo`, and
every package suite. CI runs them on the pull request and on the merge
group. Every other family CI runs is read from this pull request's check
runs, not re-run here.

## Acceptance notes

- **Changeset.** None, and the pull request carries `skip-changeset`.
`docs/adr/**` ships in no package.
- **Governed surface.** `docs/adr/**` lands on the maintainer's
approval. This pull request stays a draft; the seat arranges the review
at the tier this surface owes and hands it over.
- **Why this one ends the card.** The card says it ends when its pull
request merges. Seven rows landed with the first pull request and these
four are the rest, so every row is carried. The card is open and is not
waiting on a decision.
- **Claim binding.** The claim amendment, 7296007044, names this branch
on a line spelled `Branch (round 2):`, which the guard "The card this PR
closes must claim this branch" does not read. The seat restated the
claim in the shape the guard reads (comment 7296908473 on the card), and
the guard is green on this pull request.
- **Landing order against objectstack-ai#38812.** Both pull requests add header lines
to ADR-0161 at the same place, and both call their note the seventh; the
overlap check answers 1 for that file. Whichever lands second merges
`main`, keeps all three header lines and renumbers its own. If this one
lands second, its two lines become the eighth and the ninth. If objectstack-ai#38812
lands second, its line becomes the ninth. The seats set the order: this
pull request first, by claim stamp (seat 2's `Notify: serial · objectstack-ai#38676
behind objectstack-ai#38438`, mailbox objectstack-ai#38766 comment 7297489558); objectstack-ai#38812 renumbers its
line after this lands.
- **Seen and left alone.** Outside the four rows, and not changed here.
- ADR-0084's table "What the amendment replaces" has a row on the
cross-package directory that says "In force until it moves". The
amendment of 2026-11-26 moved that entry to Setup, and the menu model on
this tree has no entry kind for it. A candidate row for the next weekly
card.
- The items the first pull request of this card listed under this
heading stand as listed there.

## Verification

### Read first

1.
`docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md`,
the note of 2026-12-01 under the list of Consequences. The highest-risk
hunk: it says a sentence of the record no longer describes `main`, and
it draws the line between the state a build is decided from and the
state that only reports. Check the sentence pair "Where the knowledge
plugin can keep it" and "Otherwise", and the bullet "What decides a
build is unchanged".
2. `docs/adr/0084-application-builder-information-architecture.md`, the
amendment of 2026-12-01 under the table "What the amendment replaces".
It says which of four pull requests did which part, it names the three
sentences that count four entries, and it names a package's menu entries
where the record counts them. Check the four attributions, the three
quoted sentences and the four names.
3. `docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md`,
the note of 2026-12-01. It answers a sentence that the note of the day
before wrote, and its claim of three tiers is read from code with no
test that names them. Check the tier sentence and the list of what the
parse refuses.

### Two-minute check

Run `git diff --numstat origin/main...HEAD` on this branch. Expect three
rows under `docs/adr/`, each with `0` in the removed column, and 43
added lines in total (2, 24 and 17). Then run `pnpm
check:adr-symbol-anchors` and expect exit 0 with a line that contains
`anchors across 165 records resolve`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01WGufzhPdWmTd47Fi2bKYZS)_

<!-- signed: repo:objectstack@os-support-ai · os-support-ai ·
session_01WGufzhPdWmTd47Fi2bKYZS -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
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/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

service-knowledge: the split algorithm version is global, so a change to one strategy rebuilds every source

2 participants