Repository navigation
docs(adr): ADR-0161 dated note on item 12, a mounted knowledge service is enabled by configuration - #38401
Conversation
…e is enabled by configuration A third dated note under the table of K8, read with item 12, and a cross-reference under K4. A knowledge service the runtime mounts is enabled when a boot finds an embedder and the deployment's store; until then its sources are held and not served. The three choices the maintainer ruled are recorded in the card's words. The K8 table and every earlier sentence are left as written; no contract member and no settings key is added. Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb Contract-review-claim: session_01FEkQ5oQLfL8thb6wtUHnTb · head f82aec1 · 2026-11-28T23:49Z CONTRACT_REVIEW_TIER review of the ADR-0161 note by an isolated sub-agent, started now. The dev report (card comment 7247665546) carries one open question for the maintainer (move-in); the seat routes it. |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb Contract reviewServed-tier: No must-fix. Three should-fix findings are open on this head (S1, S2, S3), with four nits, and one choice is escalated to the maintainer (move-in). Every statement the note makes about code on What was read. Card #38368 with its three comments; PR #38401 (body, file list, and the net diff against Why the security line reads yes. The added hunks teach when a source's listed fields are sent to an embedding provider (egress, K5), when an author's save is refused and at which doors, and what is listed to administrators. ① Derived judgmentsThe diff itself changes no accept-set and no public surface: it is prose under
② Semver level
③ Boundary flags
④ Design judgmentWhat holds, read in the live tree.
Findings. S1 (should-fix) — The note does not say what happens to a source placed on an adapter the application registered, under a service the runtime mounted. That composition is sanctioned by this record (K4 ◆, item 11: "an adapter that application code registers is never the deployment's by that act alone"), taught by S2 (should-fix) — The note does not say what the lifecycle reap guard does while the service is not enabled. K3 item 3 keeps "the reap guard as landed, and its failure direction", and the header lists it under "Leaves unchanged". The note lists what stops as "built, synced, reconciled or searched", and #38369 reads the state as "no adapter call". Both cannot hold, because the guard's work is an adapter call: S3 (should-fix) — "Not enabled" has two causes, no embedder or the deployment's store not mounted, and the ruled save remedy covers one. "save an embedder provider, restart, then save" is false advice when an embedder is saved and the store is the missing half (the optional N1 (nit) — In the K4 cross-reference, "a source is loaded and listed" sits beside clause 3's "lists it in every N2 (nit) — "Never a boot refusal" is about the state this note declares. N3 (nit) — With this note the record says both "the sync state the service keeps for a source" (the note; true on N4 (nit) — "The deployment's store is mounted" means its adapter is registered. A store that registered and cannot open its database (libSQL with no native build, pgvector without the extension) still counts, so an enabled service can still list a tool whose every call is refused. #38369 names that as out of scope ("a boot probe of the store"). The note could carry the limit beside "A known gap". S1, S2 and S3 each earn a delta review of their fix. The nits can ride the same push or be left as accepted deviations. Implemented-by: VERDICT: PASS |
…r-0161-enabled-by-configuration
The note on a mounted knowledge service that is not enabled records four further ruled points: the package move-in is an author's save and is refused; the state is the whole service's, whichever store a source names; the service registers no reap guard and calls no store, which joins the known gap; and the save refusal names the half that is missing. Four small clarifications ride along: listed means listed to administrators, mounted means the store's adapter is registered, the enabling boot is the one that finds both halves, and the log-line rule is about this state alone. The K8 table and every earlier sentence of the record are left as written. Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb Contract-review-claim: session_01FEkQ5oQLfL8thb6wtUHnTb · head 83e9252 · 2026-11-29T00:54Z Delta CONTRACT_REVIEW_TIER read of S1–S3 (record 7247818861) after the ruling recorded on #38368 (7248214179), by a fresh isolated sub-agent. PR body updated to this head by the area. |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb Contract reviewServed-tier: Delta review from S1, S2 and S3 are closed on this head. No must-fix, no should-fix. The note states the four points ruled on 2026-11-29 as the ruling record states them. Three new nits (N5, N6, N7) are wording and pointers; none changes what the note declares. What moved since round 1. A merge of What was read. Card #38368 with its six comments, among them the decision analysis 7247902437, the ruling record 7248214179 and the dev report on this head 7248402199; PR #38401 (body, file list, the net diff against Why the security line reads yes. The changed hunks teach which saves of a ① Derived judgmentsThe diff still changes no accept-set and no public surface: it is prose under
② Semver level
③ Boundary flagsThe dev report on this head (7248402199) carries no open question. Round 1's one escalated choice, what move-in answers, is ruled (point 1) and written. Each flag of the report:
Three things were noticed for #38369. None is owed in the note.
④ Design judgmentThe three findings of round 1.
The four points against the ruling record. Each bullet carries the number the record gives it. Point 1 (move-in is an author's save, refused, no door value) and point 3 add nothing to the record's words. Point 2 adds the one reading of The store sentence. "Where the deployment's store is not mounted, the refusal says so and says that the boot's log names the reason, and its remedy is "mount the deployment's knowledge store, restart, then save"." It reads true and usable. It gives the author the state, where the cause is written, and three steps in the order of the ruled sentence. "Mount" is the note's own term (item 12 mounts the store; Enabled now says mounted means the adapter is registered). The pointer to the boot's log is true to the code: a runtime boot goes on without its store today when the optional The nits of round 1.
What the patch leaves intact. The maintainer's six sentences are still byte-equal to the card's filing gate, adjacent and in order. The three choices of 2026-11-28 are each still byte-equal to card points 6, 7 and 8, and each appears once. The closing line "The table is left as written; read item 12 with this note." appears once. No sentence of the record outside the note's three places is touched. The ruled remedy for the embedder half is unchanged, and point 4 agrees with it. New at this head. N5 (nit) — In the point 2 bullet, "the third ◆ below" no longer counts to the bullet it means. The ruling record wrote "the third ruled ◆" when the note had three. The note now has seven ◆ bullets, and the third below point 2 is the move-in bullet. The words "mounts the knowledge service itself in N6 (nit) — In the log-line bullet, the sentence added for N2 opens "It is about this state alone", directly after a sentence whose subject is ADR-0078 §4. Read that way it says §4 covers this state alone, and §4 is the general rule for the runtime seam. The sentence means the ruled "Never a boot refusal". The clause after the colon states the operative fact correctly under either reading. N7 (nit) — K3 item 3 is now read with the K8 note, and nothing at K3 points there. K4 has its cross-reference, and the header's Amended line names K4 alone. A reader who meets "an index entry never outlives its row" at K3 has no pointer to its qualification. A cross-reference under K3, in K4's shape, would change no sentence. The note is the reviewed file, so a fix to any nit moves the head and this record would no longer cover it. N5, N6 and N7 are left as accepted deviations, or ride the later revision of the record that carries N3. Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb Final green head for L1: 83e9252. CI on this head: all runs success or expected skip, none failed. Contract review at CONTRACT_REVIEW_TIER: round 1 7247818861 (S1–S3 should-fix), delta 7248551893 PASS on this head, S1–S3 closed, nits N3 and N5–N7 left as accepted deviations for a follow-ups card. Ruling: record 7248214179 on #38368 (1A 2A 3A 4A). Tier H (docs/adr/**): after L1 ACCEPT the area hands it to the seat; the maintainer approves the merge. L1 requested from thread L1-a. |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb 席位核对L1 (thread L1-a, area o5-ai37000) · read 2026-11-29T01:08Z · Head-sha: This is the first L1 record on this PR, a full review. Checklist (l1-face
My readings, at this head
Residuals
Accepted (no action): the four wording departures from the card are each stated in the body with the reading they rest on. Owed before hand-off: nothing. The seat does the Tier H hand-off to the maintainer and records the N3 carrier after merge. |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr 维护者速读
席位意见:同意合并。四点裁决逐条写入(◆ Ruled 2026-11-29),三条应修在同 head 复审中关闭;N3 与 main 上 #38307 的同步状态说法相左,落地后记到下周的 ADR 修订卡。 席位核对 — ACCEPT · repo:objectstack#5 · Head-sha
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr Approval requested (Tier H,
|
…s its sources without an embedder or its deployment store (objectstack-ai#38470) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X6jdZukAJaWgnbQHnPWHxMw)_ Refs objectstack-ai#38369 Clause-②: no (narrowing) Metadata-protocol: narrowed Skills-docs: follow-up objectstack-ai#38475 ## 维护者速读 - 自托管部署如果没配嵌入模型(或部署的知识存储没挂上),知识源现在只列出、不构建、不同步、不检索,智能体工具里也不再出现 `search_knowledge`;启动日志说一次缺了哪一半、怎么补。以前这种部署照样启动构建和同步,工具也列出来,但每次构建和检索都报错。 - 属于知识库检索这条线,执行您对 objectstack-ai#38368 的裁决(四点全按推荐 1A 2A 3A 4A)和 ADR-0161 K8 的日期注记"挂载不等于启用"。这是三单中的第一单:先把"不服务"做实;保存时拒绝(第 2 单)和状态/命令行文字(第 3 单)随后各开一单。 - 只影响运行时自动挂载知识服务、且缺嵌入模型或知识存储的部署;配齐两半的部署、以及宿主自己挂载知识服务的部署行为不变;从不阻止启动;出问题可整单撤回。 - 要你做的:批准这次收窄(按审批流程)。 ## What changes The authority is the ADR-0161 K8 dated note on item 12 (PR objectstack-ai#38401, 0c1b2ff), with ruling 7248214179 (amendment 7248231750, points 1–4) and build notes 7248592159 (points 1–4). This PR is part 1 of the three serial PRs the card names: items 1–2, ruling points 2–3, build notes 1, 2 and 4. Part 2 (the save refusal: item 3, points 1 and 4, build note 3) and part 3 (items 4–5) follow from `main` after this merges. - **Enabled by configuration, read once at boot** (`packages/services/service-knowledge/src/knowledge-service-plugin.ts`). The capability composition (`packages/core/src/capability-composition.ts`) now passes `runtimeComposed: { declared }` beside `deploymentAdapter`; `declared` is true only when the stack lists `knowledge` in `requires`. With `runtimeComposed` set, the plugin reads at `kernel:bootstrapped`, after every store's `start()` registered its adapter: an embedder is available (another plugin registered one, or the saved `ai.embedder_*` settings build one) and the deployment's store is mounted (an adapter of `deploymentAdapter`'s id is registered). Both ⇒ the boot goes on as today. Either missing ⇒ held. A plugin a host mounts (no `runtimeComposed`) is untouched: it serves from the start, as before. - **Held** (`packages/services/service-knowledge/src/knowledge-service.ts`, `KnowledgeService.settleEnablement`). Every source, whichever store it names (point 2: an application-registered store too), is loaded and listed, and never built, synced, reconciled or searched: the boot build, the reload build, the reconcile pass and its job, the record sync (enqueue, upsert, delete and the queued worker), the predicate-write note and the unmounted-adapter report all return. A dropped source keeps its index (a warn line says no store is called). `search`, `rebuildSource` and `reindexSource` throw `heldSourcesError`: status `503`, code `SERVICE_UNAVAILABLE`, and a message naming the missing half and the fix (build note 2). - **No reap guard and no store call while not enabled** (point 3, build note 1). The lifecycle reap guard used to register at `kernel:ready`, before the reading; the lifecycle service has no unregister. A runtime-composed plugin now registers it only once the reading says enabled. Held, a retention sweep deletes on time and calls no store. - **One boot line**, never a boot refusal (ADR-0078 §4). `info` when only a shipped `knowledge_source` mounted the service and nothing was saved; `warn` when the stack declares `requires: ['knowledge']`, when a saved embedder provider builds nothing (a provider saved without its key), or when the store is not mounted. The embedder's own boot line is not also said when held. - **No tool definition while pending or held** (`KnowledgeService.knowledgeTools()` answers `definitions: []`). HTTP MCP reads the definitions per request, so it lists `search_knowledge` only once enabled. - **stdio** (`packages/mcp/src/plugin.ts`, build note 4). The stdio bridge reads the tool in its own `start()`, before the reading, so a runtime-composed service hands out nothing there. `MCPServerPlugin` now registers `search_knowledge` at `kernel:listening` (after every `kernel:bootstrapped` handler) only when the service then hands out its definition. Fail-closed: an unknown state reads as absent, never listed and then withdrawn. The MCP SDK takes a tool after the transport attached and sends `notifications/tools/list_changed`; skill prompts read the served tools at each listing. A host-mounted service's tool still registers in `start()`, once. - **ADR-0087**: `packages/spec/src/migrations/entries/semantic/19.knowledge-service-held-without-embedder-or-store.ts` (notice only, no D2 conversion: the fix is the deployment's configuration, never the item). The changeset carries `registered` with that id. ### Boot window Between `kernel:ready` and `kernel:bootstrapped` the reading is pending. In that window no tool definition is handed out (fail-closed); a record write's sync behaves as today (it embeds through the stand-in embedder, which refuses). Gating starts when the reading settles. No reap guard registers in that window on a runtime-composed plugin. ### Point 2 measurement None of `@objectstack/verify`'s `harness.required-providers` cases reads as held: every one registers an embedder. The file is unchanged and its 16 cases pass. ### Docs `content/docs/ai/knowledge-rag.mdx`: a "Mounted is not enabled" bullet under *Turning it on* (held state, the boot line and its level, the remedy, host-mounted not held), a clause on the "Nothing is configured" embedder bullet, and one sentence under *The `search_knowledge` tool* (not listed while held; on stdio registered after the reading, with `notifications/tools/list_changed`). `content/docs/protocol/knowledge.mdx`: a "Mounted is not enabled" paragraph after *What mounts the service*, and the reap-guard section says a runtime-composed service registers no guard until it is read as enabled. Added after sibling objectstack-ai#38439 (objectstack-ai#38351) merged (f19ee34), with `main` merged in first. `skills/objectstack-ai/SKILL.md` is out of scope: follow-up objectstack-ai#38475 rewrites its knowledge wording once, from `main`, after part 3. ## Tests - `packages/services/service-knowledge/src/__tests__/knowledge-settings-contribution.test.ts`, new describe "a runtime-composed knowledge service is enabled by configuration", booted on `LiteKernel` with a store plugin that counts every call (10 cases): held with no embedder saved (one `info` line, zero store calls after writes and a delete); no `search_knowledge` definition, search answers `503 SERVICE_UNAVAILABLE` naming the missing half, rebuild refused; `requires: ['knowledge']` ⇒ `warn`; a provider saved without its key ⇒ `warn` (build note 3's state, read here; its save refusal is part 2); store not mounted ⇒ `warn`; both halves missing named together; point 2 (an application-registered store is held too); controls: enabled through a host-registered embedder and through saved settings (built, definition handed out); a host-mounted plugin builds as before. - `packages/services/service-knowledge/src/__tests__/reap-guard.test.ts` (point 3, build note 1): held ⇒ `registerReapGuard` never called and the retention sweep deletes `k1`, `k2` on time with no store call; control: enabled ⇒ the guard registers for `['task']` after the reading and de-indexes before the delete. - `packages/mcp/src/mcp-knowledge-tools.test.ts` (build note 4): HTTP lists the tool only once enabled (pending, held: absent; host-mounted: listed from the start); stdio through `MCPServerPlugin` with the boot hooks fired by hand: held is never listed and no `list_changed` is sent; enabled registers at `kernel:listening` with `notifications/tools/list_changed` and the same description; host-mounted registers once in `start()`. - `packages/runtime/src/mcp-knowledge-tools-bridge.test.ts`: the runtime bridge reads the definitions per listing (pending and held `[]`, enabled `['search_knowledge']`). - `packages/core/src/capability-composition.test.ts`: `runtimeComposed: { declared }` is passed, `declared` only when the stack lists the token. - `scripts/engine-double-contract.pinned.json` learns the stdio double's `findOne` pin (the double routes through `assertEngineFindOnePredicate`). ## Verification **Final head `4659f2a369`** (`main` merged twice since `72a9cbfb6a`, for objectstack-ai#38439 and objectstack-ai#38436; plus the docs commit). At that head, under the lock: closure build exit 0; `@objectstack/service-knowledge` `pnpm test` 751 passed; `@objectstack/mcp` `pnpm test` 1655 passed; core 26, runtime 7, verify 16 passed; typecheck exit 0 for service-knowledge, core, mcp and runtime; `check:engine-double-contract`, `check:slot-lookup`, `check-adr-0087-registration` (entry at or above PROTOCOL_MAJOR 19), spec `check:docs`, `check:doc-authoring`, `check-affected-docs`, `check:adr-anchors` exit 0. **Dogfood battery at `4659f2a369`: VERDICT command-exit 0 · Test Files 495 passed, 3 skipped (498) · Tests 4183 passed, 68 skipped (4251) · 0 failed.** CI at `4659f2a369`: 62 check-runs success, 10 skipped, none failed. The readings below were taken at `72a9cbfb6a` and stand where noted. Shared container; every build and test ran through `scripts/pm/os-verify-lock.sh`. <details><summary>Tests and typecheck at 72a9cbf</summary> - Closure build (`pnpm --filter '@objectstack/dogfood^...' --filter '@objectstack/cli...' --filter '@objectstack/lint...' build`): VERDICT command-exit 0. - `@objectstack/service-knowledge` `pnpm test`: Test Files 21 passed, Tests 738 passed; `typecheck` exit 0. - `@objectstack/mcp` `pnpm test`: Test Files 88 passed, Tests 1655 passed; `typecheck` exit 0. - `@objectstack/core` `capability-composition.test.ts`: Tests 26 passed; `typecheck` exit 0. - `@objectstack/runtime` `mcp-knowledge-tools-bridge.test.ts`: Tests 7 passed; `typecheck` exit 0. - `@objectstack/verify` `harness.required-providers.test.ts`: Tests 16 passed (point 2 measurement above; file unchanged). - `@objectstack/cli` `plan.artifact-item-capabilities.test.ts`, `boot-preparation-parity.test.ts`, `migrate-meta-engine-guidance.test.ts`: Tests 44 passed. - `@objectstack/spec` `typecheck` exit 0 (migration registry regenerated with the new entry). - ESLint over every changed `.ts` file: exit 0. </details> <details><summary>Ablation</summary> At `2d6c3dfd` (plugin unchanged since): `scripts/ablation-replace.mjs` replaced `const held = this.settleEnablement(ctx, this.service, embedder);` with `const held = false; void this.settleEnablement;`. The runtime-composed describe went 9 failed / 1 passed (the host-mounted control stayed green). Restored; blob back to HEAD, `git diff HEAD` empty. </details> <details><summary>Dogfood battery at 72a9cbf</summary> `pnpm --filter @objectstack/dogfood test` under the lock: VERDICT command-exit 0 · Test Files 495 passed, 3 skipped (498) · Tests 4183 passed, 68 skipped (4251) · 0 failed. </details> <details><summary>Live positive control (os dev, showcase app)</summary> The showcase mounts `KnowledgeServicePlugin` itself (host-mounted, unchanged by this PR), so for the control its two knowledge plugins and the source's `adapter: 'memory'` were commented out in the worktree only (never committed; restored with `git checkout`), which lets the runtime compose the service with the Turso store. `objectstack dev --seed-admin --log-level info` on a file database, signed in as the seeded admin: - **No embedder saved.** One boot line, `INFO KnowledgeServicePlugin: the knowledge service is not enabled on this deployment: no embedder is configured (no embedder provider is saved — …). Its sources are held: none is built, synced or searched. To enable it, save an embedder provider, then restart. 1 source(s) held: showcase-showcase_task_notes.` (hidden at the default log level, as `info` should be). No build line. `index_status` lists the source with `build: null`. The Knowledge page's rebuild action answers "was not started: [knowledge] the knowledge service is not enabled on this deployment: …". MCP over HTTP: `tools/list` 20 tools, `search_knowledge` absent. - **Embedder saved, restarted.** `PUT /api/settings/ai` saved a `custom` provider pointing at a local OpenAI-compatible stub. The boot registered the embedder, registered the reap guard for `[showcase_task]` after the reading, and built the source: "8 row(s) read, 8 written". MCP `tools/list` 21 tools with `search_knowledge`; a `search_knowledge` call answered hits from `showcase-showcase_task_notes`; the stub logged one call of 8 inputs (build) and one of 1 (search). - The boot also logs `ERROR [knowledge] the start of the build … was not recorded (Duplicate record refused on 'Knowledge Sync State' …)` whenever a build starts, host-mounted or not. That is objectstack-ai#38418 (open, seat 1), not this change. - `index_status` still reads the adapter while held (here: `state: unreadable` with the embedder's reason). Saying "not enabled" there, and in `os knowledge status` / `rebuild`, is card item 4, part 3. </details> <details><summary>Gates at 72a9cbf</summary> `dispatch-gates --ran`: 106 derived families accounted for, 105 run with exit 0, 1 NOT MEASURED: `check:dual-build-cjs-loads` exits 3 (no `dist/` for `@objectstack/studio`, `client-react`, `scenarios`, outside this closure); CI runs it. Among them: `check-adr-0087-registration` (1 declared-breaking changeset, `registered knowledge-service-held-without-embedder-or-store`), `check-changeset-no-major`, `check-empty-changeset`, spec `check:upgrade-guide`, `check:spec-changes`, `check:api-surface`, `check:liveness`, `check:engine-double-contract` (after the stdio double's fix), `check:slot-lookup` (after typing the store plugin), `check:error-status-conformance`, `check:type-check-debt`, `check:nul-bytes`. `check-plugin-teardown-shape --self-test` exit 0 after fetching its pinned fixture commit. `overlap-check` before the push: clean against `main` and against objectstack-ai#38439, objectstack-ai#38435 and objectstack-ai#38268 (objectstack-ai#38418 has no PR yet). </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5m2rYCwPR3qqhnZDfW <!-- signed: repo:objectstack#5 · os-project-manager · session_01FEkQ5m2rYCwPR3qqhnZDfW --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…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>
… 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>
Requested by Leehom · project thread
Fixes #38368
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
One file,
docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md, 22 lines added and none removed againstmain, in three places:**Amended**line, dated 2026-11-28, beside the two that are there. It names both sources of the note: the maintainer's words of 2026-11-28 and the four points he ruled on 2026-11-29. The status line is left as it is.kernel:bootstrappedan embedder is available and the deployment's store is mounted, which means its adapter is registered; read once per boot;ai.embedder_provider, defaultnone;mainhas no such state until the implementation card service-knowledge: a self-hosted deployment with no embedder holds its knowledge sources without serving them, and lists no search_knowledge #38369 lands; "The table is left as written; read item 12 with this note."The K8 table and every earlier sentence of the record are untouched. No file outside
docs/adr/changes.Read first, by risk (one file, three bullets of the K8 note):
maina source on an application's store that reads no embedder is built and searched under a runtime-mounted service, and under this note it is held. The bullet says so and says it is a named part of the narrowing service-knowledge: a self-hosted deployment with no embedder holds its knowledge sources without serving them, and lists no search_knowledge #38369 declares.Tests
No package is touched, so there is no build closure to build and no package test to run. A record is prose: nothing here is ablated. The checks that read the changed file are listed under Verification.
Acceptance notes
The card's acceptance.
git diff origin/main...HEAD --statreads one file, 22 insertions.The contract review's findings on the first head (comment 7247818861 on this pull request), and the ruling that answers them.
What the note says about code, read on
main. The files the note cites are byte-identical atff69bcabb2, where they were first read, and at3579cf136d, which this branch has merged. Every anchor is apath#symbolor a file, as the record's anchor check requires.kernel:bootstrappedhook: it keeps one another plugin registered, else builds one from the saved settings, else registers a stand-in whose every use is refused (packages/services/service-knowledge/src/knowledge-service-plugin.ts#provideEmbedder).embedder_providerdefaults tonone, and a saved default counts as not configured.packages/services/service-settings/src/manifests/ai.manifest.ts#aiEmbedderSettingsSpecifiers).authoredKnowledgeSourceRefusal: the RESTPUT /meta/:type/:name, the dispatcher's same route, and the MCP draft save. The package duplicate door isPOST /packages/:id/duplicate, throughrefuseDuplicatedKnowledgeSources, with the predicate'sduplicatedoor.POST /packages/:id/move-inasks the same predicate with the default door,save.scheduleReconcileregisters a daily job on the job service by default, and an option turns it off. A reconcile walk removes the documents of rows that were deleted, for a store that lists its documents.kernel:ready; the embedder settings section is contributed by the knowledge service itself (contributeKnowledgeSettings). Both halves of the first alternative hold.maina source on such a store builds and is searched with no embedder saved.packages/services/service-knowledge/src/knowledge-reap-guard.ts), and a failed call keeps the row.os servea declared capability whose provider cannot be provided is a hard boot error, and a capability the stack's items mount is read as declared (packages/core/src/capability-composition.ts).Places where the note's wording departs from the card's, each on a reading of
mainor of the ruling record.mainafter the card's evidence commit (pull request feat(service-knowledge): each source's sync state is one durable record, the same on every node #38307;packages/services/service-knowledge/src/knowledge-sync-state.ts). The gap itself stands, for a different reason, and the note states that one: the row holds a source's last build and its failed syncs, and a change that was never attempted is neither.packages/spec/src/kernel/platform-capabilities.ts#PLATFORM_CAPABILITY_TOKENSand quotes the comment's words, "Requested, never always-on".Noted, not filed, and not changed here.
start(), beforekernel:bootstrapped, the event at which the note says the state is read. The implementation card service-knowledge: a self-hosted deployment with no embedder holds its knowledge sources without serving them, and lists no search_knowledge #38369 has to makesearch_knowledgeabsent on that transport too; the note states the outcome and leaves the mechanism to that card.Verification
Two-minute check. Open the Files changed tab: one file, 22 lines added, none removed. The K8 note carries four bullets whose titles begin "◆ Ruled 2026-11-29 (point", and its last line ends with "The table is left as written; read item 12 with this note."
Local checks on head 83e9252 (the 21 commands derived for this diff)
Derived with
node scripts/pm/dispatch-gates.mjs --commandsand reconciled with--ran:✓ dispatch-gates --ran: 21 derived famil(ies) accounted for — 21 run, 0 NOT-MEASUREDEach exit code was captured before any pipe.
node scripts/check-adr-links.mjsnode scripts/check-adr-links.mjs --self-testnode scripts/check-closing-keyword-parity.mjsnode scripts/check-closing-keyword-parity.mjs --self-testnode scripts/check-comment-mask-corpus.mjsnode scripts/ci/plan-test-core-shards.mjs --self-testpnpm --filter @objectstack/lint run check:doc-formula-expressionspnpm check:adr-anchorspnpm check:adr-indexpnpm check:adr-symbol-anchorspnpm check:ci-filter-paritypnpm check:closed-ceremony-textpnpm check:cross-package-test-inputspnpm check:doc-authoringpnpm check:driver-memory-censuspnpm check:gitlink-declaredpnpm check:nul-bytespnpm check:pm-governed-mergespnpm check:pm-prior-rulingspnpm check:refd-timer-probepnpm check:watch-hint-literalVerdict lines the checks print:
check-adr-links: 1268 relative link destination(s) under docs/adr/ resolvecheck-adr-symbol-anchors: 4538 anchors across 164 records resolve, with 0 line anchors survivingadr-index --report: OK — docs/adr/README.md is current, every record parsedcheck-nul-bytes: OK, no raw ASCII control bytesThe repo-wide scans and the full check farm are left to CI.