Skip to content

docs(knowledge): the 18 to 19 id row names the underscore exception and the dropSource cleanup - #38050

Draft
objectstack-fleet[bot] wants to merge 1 commit into
mainfrom
claude/area-o1C-38022
Draft

objectstack-fleet[bot] wants to merge 1 commit into
mainfrom
claude/area-o1C-38022

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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 feat(knowledge): a knowledge source needs no adapter and no requires entry; it binds to the deployment's store #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.
Verification

🤖 Generated with Claude Code

https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP

…nd the dropSource cleanup

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

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/spec, touching 1 documentable anchor(s).

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/protocol/knowledge.mdx (via KnowledgeSourceSchema (symbol, a top-level const))
What this run could not see
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 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; 124 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 — 177 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 8d34c4404f951410083a6caebd6ad8003ea3423d → packageMentionDocs.

Which tree this was computed on

This run read content/docs from b0789340ae80f0f067be925a0ce7136896501e41 — the merge of head d60a6cef7d2588f8bb68abdaf2b38f47e77568cf into base 8d34c4404f951410083a6caebd6ad8003ea3423d, 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 b0789340ae80f0f067be925a0ce7136896501e41 && git checkout b0789340ae80f0f067be925a0ce7136896501e41
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 8d34c4404f951410083a6caebd6ad8003ea3423d d60a6cef7d2588f8bb68abdaf2b38f47e77568cf && git checkout -B drift-repro 8d34c4404f951410083a6caebd6ad8003ea3423d && git merge --no-ff d60a6cef7d2588f8bb68abdaf2b38f47e77568cf

node scripts/docs-audit/affected-docs.mjs --json 8d34c4404f951410083a6caebd6ad8003ea3423d

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

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 8d34c4404f951410083a6caebd6ad8003ea3423d → pass the list as
args.docs, on the commit named under Which tree this was computed on.

This branch has not been deployed

No deployments
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 protocol:ai size/s 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.

Review follow-up of PR #38015: the knowledge_source id-to-name docs name the underscore exception

2 participants