Repository navigation
Commit fd06b7a
docs(knowledge): the 18 to 19 id row names the underscore exception and the dropSource cleanup (#38050)
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Fixes #38022
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 升级到 19 的运维读升级表时,会看到「以下划线开头的知识源 id 要改名并清理旧索引」这一例外,不再被告知「索引原样找回」。
- 为 AI 知识库(epic 37000)的 18 到 19 升级文档补上一处与升级条目不一致的说法。
- 只改文档与报错文案,不影响运行行为,可直接撤回。
- 无。
## What changes
- `content/docs/protocol/knowledge.mdx`: the `id` row of the 18 to 19
table names the underscore exception (`name` refuses it, the source is
rebuilt under a new name) and the `dropSource` cleanup, in the words of
the upgrade entry `knowledge-source-registration-governed`. It states
the memory adapter holds nothing across a restart. The row does not
touch `adapter`, which #38026 made optional (rows and prose near it
re-read on current main; no contradiction).
- N1: the upgrade entry's reason says the adapter keeps the old index
only where its store outlives the process (Turso, pgvector); the memory
adapter holds nothing across a restart.
- N2: the `id` tombstone in `knowledge-source.zod.ts` says the entry's
manual notices still apply after `os migrate meta --from 18`; the
reference page `content/docs/references/ai/knowledge-source.mdx` carries
the same sentence.
- `.changeset/37304-knowledge-source-governed-type.md` is not edited: it
sits in `.changeset/pre/` (consumed by pre mode). A new patch changeset
covers the spec string change.
## Tests
NOT MEASURED: `knowledge-source.test.ts` and
`retired-key-migrate-sentence.test.ts` (the tombstone still ends with
the migrate sentence and still begins with its pinned prefix), because
the verify lock was never acquired in 4 attempts over about 36 minutes
(holder was a dogfood run; VERDICT queue-timeout exit 99).
## Acceptance notes
- NOT MEASURED: `pnpm gen:docs` regeneration (needs the spec build, same
lock). The reference page was edited by one exact-string substitution
mirroring the zod edit; CI `check:generated` is the judge.
<details><summary>Verification</summary>
- check:doc-authoring, check:doc-anchors, check:doc-frontmatter,
check:docs-nav-label, check:docs-image-tag: exit 0.
check:docs-transcript-drift: exit 3, NOT MEASURED (prerequisite).
- overlap-check at d60a6ce: VERDICT clean exit 0 (main, #38043,
#38013, #37963 merge cleanly).
- Two-minute check: open the knowledge protocol page, 18 to 19 table,
`id` row: it names the underscore exception.
</details>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
Co-authored-by: Claude <noreply@anthropic.com>1 parent 206008a commit fd06b7a
5 files changed
Lines changed: 15 additions & 5 deletions
File tree
- .changeset
- content/docs
- protocol
- references/ai
- packages/spec/src
- ai
- migrations/entries/semantic
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
256 | 258 | | |
257 | 259 | | |
258 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments