Skip to content

fix(settings)!: retire @objectstack/knowledge-ragflow and the Knowledge page's RAGFlow adapter option - #37477

Merged
os-zhuang merged 8 commits into
mainfrom
claude/project-thread-rn0sfm
Nov 26, 2026
Merged

os-zhuang merged 8 commits into
mainfrom
claude/project-thread-rn0sfm

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

Fixes #37004

Clause-②: no (narrowing) — narrowed: PUT /api/settings/knowledge refuses adapter: 'ragflow' (400 SETTINGS_VALIDATION, field code invalid_option) and refuses ragflow_base_url, ragflow_api_key and ragflow_default_dataset (400 UNKNOWN_KEY), where it stored all four; POST /api/settings/knowledge/test answers adapter = ragflow as an unknown adapter (400 SETTINGS_ACTION_FAILED), where it answered a form check
Metadata-protocol: none
Skills-docs: updated here — skills/objectstack-ai/SKILL.md and its eval case 3 teach the pgvector adapter where they taught ragflow; content/docs/protocol/knowledge.mdx, content/docs/ai/knowledge-rag.mdx and content/docs/ai/index.mdx name the adapters this repository builds.

维护者速读

  • 用户能看到什么变化:管理员在「知识库」设置页的后端下拉里不再有 RAGFlow 选项和它的三个配置项;以前选过它的环境,下拉显示为空,重新选一个后端保存即可。
  • 为什么做:属于知识库平台边界整理;这个 RAGFlow 对接包发出的请求和对方接口对不上,绑定它的知识源从来搜不到内容,按裁决整包退役而不是修。
  • 出错会怎样:还在用这个对接包的部署,升级后知识源搜索为空且只留一条警告日志;撤回这次合并即可恢复,已保存的配置一条都没删。
  • 要你做什么:去掉它的版本发布之后,在 npm 上给这个包打弃用标记。

What changes

Ruling 7134290286 on the decision card (#36839), R1: the package is retired whole, in one PR, as a patch.

  • Package. packages/plugins/knowledge-ragflow/ is deleted (9 files), with its .changeset/config.json fixed-group entry and its pnpm-lock.yaml importer.
  • Settings page. knowledge.manifest.ts loses the ragflow option, the RAGFlow group, its three keys and the ragflow branch of "Test connection". Manifest version goes 2 → 3 (the spec's "increment when keys are renamed/removed"). The strings go from all eleven locale bundles.
  • Docs. content/docs/ai/knowledge-rag.mdx, content/docs/ai/index.mdx, content/docs/protocol/knowledge.mdx, content/docs/plugins/packages.mdx, CONTRIBUTING.md, the service-knowledge README and package description, the embedder-openai README, packages/spec/llms.txt (78 → 77 published packages).
  • Spec. Comments only, in knowledge-source.zod.ts, contracts/knowledge-adapter.ts and contracts/knowledge-service.ts. No schema, no tombstone, no ADR-0087 conversion: KnowledgeSource.adapter stays a free string.
  • Skill. skills/objectstack-ai/SKILL.md and eval case 3 teach pgvector (H3 below).
  • Scripts and ledgers. Six scripts (comments, one self-test fixture URL, one debt row) and a comment in .github/workflows/lint.yml.

Skill size

Reading Before After
skills/objectstack-ai/SKILL.md lines 487 487
skills/objectstack-ai/SKILL.md tokens (ceiling 6801) 6798 6798
All SKILL.md lines 4961 4961
Ratcheted bundle tokens 199596 199596

Net lines in skills/**: +0. The eval fixture is measured, not ratcheted (3008 tokens after).

git grep -i ragflow after this PR

git grep -i ragflow -- ':!**/CHANGELOG.md' ':!content/docs/releases/v17/**' ':!docs/audits/**' answers 11 files. Each one:

File Hits Why it stays
packages/services/service-settings/src/manifests/knowledge.manifest.ts 4 The retired note beside version: 3
packages/services/service-settings/src/manifests/knowledge.manifest.test.ts 9 Absence pins for the option, the group and the three keys; the stored-retired-adapter pin
content/docs/protocol/knowledge.mdx 1 One "retired" row in the adapter table
.changeset/37004-retire-knowledge-ragflow.md 13 This PR's release note
.changeset/33933-knowledge-settings-with-service.md 1 A pending release note of another change, kept as written
.changeset/37292-skill-knowledge-split.md 2 Same
CHANGELOG.md (root) 3 Release history. The acceptance pathspec **/CHANGELOG.md does not match the root file
docs/adr/0161-… 13 Deliberate history; docs/adr/** stays, apart from one anchor fix (Acceptance notes)
content/docs/releases/implementation-status.mdx 3 Lines 311, 329, 446. Release-owned path, not edited in a code PR; the docs-only follow-up is filed as #37481
scripts/test-shard-timings.json 3 Lines 88, 176, 276. Generated, do-not-hand-edit; the timings refresh workflow drops the rows. The partition self-test passes with them in place
scripts/partition-test-shards.mjs 1 Line 3456, a frozen fixture of the 2026-11-02 refresh

Measurement (a): the settings page for an environment whose stored adapter is ragflow

Measured on the settings service with the old manifest registered first (rows written through the door), then this PR's manifest registered over it.

Door Answer
GET /api/settings/knowledge 200. Manifest version 3, adapter options memory, turso. values.adapter is {"value":"ragflow","source":"global"}: served as stored. Value keys served: adapter, turso_url, turso_auth_token, chunk_target, over_fetch, enforce_rls. No ragflow_* key is served; the three stored rows are still in the store
POST /api/settings/knowledge/test (stored values) 400 SETTINGS_ACTION_FAILED, "Unknown adapter: ragflow"
PUT chunk_target: 900 200
PUT adapter: 'ragflow' 400 SETTINGS_VALIDATION, "Adapter must be one of: memory, turso. Received 'ragflow'.", field code invalid_option
PUT ragflow_api_key 400 UNKNOWN_KEY
PUT adapter: 'memory' 200; the next read serves memory

In the Console (the real SettingsField rendered in jsdom, not a browser): the Adapter select shows nothing for the stored ragflow, neither a label nor the "Select…" placeholder. turso shows its label; an unset value shows the placeholder. The page saves dirty keys only, so editing another field saves; picking an adapter and saving replaces the stored value.

Left behind: the encrypted ragflow_api_key row and its sys_secret row. No settings door clears them once the key is undeclared. The changeset says how to delete them by hand.

Measurement (b): a knowledge source declaring an unregistered adapter

KnowledgeServicePlugin booted on a kernel with one object source declaring adapter: 'ragflow' and no adapter plugin.

Moment Answer
Boot Completes. One info line: [knowledge] source registered: kb (adapter=ragflow, kind=object). No warning, no error
search [], with warn: [knowledge] source 'kb' references unknown adapter 'ragflow'; skipping.
searchWithRefusals {"hits":[],"refused":[]}, same warning. The source is not reported as refused
indexDocument, reindexSource Throw a bare Error (no code, no status): [knowledge] unknown adapter 'ragflow'. Registered: []
Record upsert / delete events Resolve; warn: [knowledge] event-sync failed for source 'kb': … / delete failed …

(b) is silent at boot and on search. It is not changed here; the enforcement card is filed as #37479.

Tests

  • knowledge.manifest.test.ts: version 3 with absence pins for the three keys and the group (non-vacuity: turso_url is there); adapter options are exactly memory, turso; one new pin, "answers a stored retired adapter (ragflow) as a failure, complete old keys or not", with a passing turso call beside it.
  • settings-visibility-declaration.pin.test.ts: the predicate count goes 87 → 83 (the four visible predicates of the RAGFlow group and its keys).
  • knowledge-settings-default-absent.pin.test.ts and service-knowledge's knowledge-settings-contribution.test.ts: the fixture adapter is turso.
  • The package's own test file (ragflow-adapter.test.ts) goes with the package.

Run under the verify lock on d3692d0c (after the merge of main at a46efa8c):

Command Result
pnpm --filter @objectstack/service-settings test Test Files 77 passed (77), Tests 1521 passed (1521)
pnpm --filter @objectstack/service-knowledge test Test Files 13 passed (13), Tests 416 passed (416)
pnpm --filter @objectstack/embedder-openai test Test Files 1 passed (1), Tests 33 passed (33)
typecheck of service-settings and service-knowledge exit 0

After the second merge of main (cc38a91a), on cb640fb2: service-knowledge Test Files 14 passed (14), Tests 448 passed (448); service-settings 77 files, 1521 tests, unchanged; service-knowledge typecheck exit 0.

No ablation run: the change deletes code and edits prose. The one behaviour that moves, a stored ragflow reaching "Test connection", has its pin above.

Acceptance notes

Verification

Read first (by risk):

  1. packages/services/service-settings/src/manifests/knowledge.manifest.ts: the removed handler branch. A stored ragflow now falls through to the last line, Unknown adapter.
  2. skills/objectstack-ai/SKILL.md: three small hunks in Knowledge Sources (RAG); the published text an agent follows.
  3. .changeset/37004-retire-knowledge-ragflow.md: the BREAKING paragraph and the "What to do if you used it" list.

Two-minute check: git grep -il ragflow -- ':!**/CHANGELOG.md' ':!content/docs/releases/v17/**' ':!docs/audits/**' on this branch lists exactly the 11 files in the table above.

Local gates
  • node scripts/pm/dispatch-gates.mjs --commands over the 50 changed paths derives 175 commands. --ran: 175 derived, 175 run, 0 NOT-MEASURED, 0 UNRUN, every one exit 0.
  • After the second merge of main, the derivation is the same 175; the 39 that read docs, skills or changesets were run again on cb640fb2, all exit 0. The rest were not repeated (CI runs them).
  • Review round, on 78fff74e: the 18 derived gates that read changesets, ADR anchors or citations were run again, all exit 0.
  • Three were red on the way and are repaired in this PR, not waived: check-skills-token-ratchet (the first wording put SKILL.md 13 tokens over its ceiling; trimmed in the same file to 6798, its count before), check:llms-txt (78 → 77 published packages) and check:adr-symbol-anchors (the ADR-0161 anchor).
  • check-plugin-teardown-shape --self-test needs a pinned commit a shallow clone lacks; it passed (48 cases) once that commit was fetched.
  • pnpm --filter @objectstack/spec check:generated: exit 0 on the merged tree.
  • Full workspace build (turbo run build over packages/* and packages/*/*): 83 of 83 tasks, exit 0, on the merged tree.
  • check-platform-checklist --changed-from origin/main: exit 0, no anchored file in the change set.
Dogfood battery (owed by the narrowing arm), on the final head
  • Head d3692d0c919f690def1ec29b4021f69a1b3c8932. Closure built with pnpm turbo run build --filter=@objectstack/dogfood (73 of 73 tasks), then pnpm --filter @objectstack/dogfood test under the verify lock, no shard, no path.
  • VERDICT command-exit 0. Test Files 487 passed, 3 skipped (490). Tests 4129 passed, 68 skipped (4197). Duration 2178 s.
  • That head is before the second merge of main, so the battery was run again on cb640fb2, same commands: VERDICT command-exit 0, same counts.
  • Current head 78fff74e1e182c3e9432329e06e8a8a3dbf0b4fd (the review round's changeset commit), same commands: VERDICT command-exit 0. Test Files 487 passed, 3 skipped (490). Tests 4129 passed, 68 skipped (4197). Duration 2270 s.

🤖 Generated with Claude Code

…ge page's RAGFlow adapter option

Delete the package and its changeset fixed-group entry. Remove the ragflow
option, its three keys, its test-connection branch and its strings in the
eleven bundled locales from the knowledge settings manifest (version 3).
Docs, the objectstack-ai skill and its eval, spec comments and the script
ledgers name the adapters this repository builds.

Claude-Session: https://claude.ai/code/session_01Utp6CaUMCSy2q88QhyTB9f
Co-authored-by: Claude <noreply@anthropic.com>
The adapter list added by the retirement put the file 13 tokens over its
ratchet ceiling. The `adapter` row drops its repeated example ids and the
`embedding` row the engines no adapter here serves; the file is 487 lines
and 6798 tokens, as before the retirement.

Claude-Session: https://claude.ai/code/session_01Utp6CaUMCSy2q88QhyTB9f
Co-authored-by: Claude <noreply@anthropic.com>
The package table's heading and prose counted the retired
@objectstack/knowledge-ragflow.

Claude-Session: https://claude.ai/code/session_01Utp6CaUMCSy2q88QhyTB9f
Co-authored-by: Claude <noreply@anthropic.com>
Anchor fix only, no decision text: the row named a symbol anchor in
packages/plugins/knowledge-ragflow/src/index.ts, which this branch deletes,
and check:adr-symbol-anchors refuses an anchor with no tracked file.

Claude-Session: https://claude.ai/code/session_01Utp6CaUMCSy2q88QhyTB9f
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl ci/cd dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation protocol:ai tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 5 package(s): @objectstack/embedder-openai, packages/plugins, @objectstack/service-knowledge, @objectstack/service-settings, @objectstack/spec, touching 31 documentable anchor(s). ⚠️ 12 changed file(s) yielded no anchor (packages/plugins/embedder-openai/README.md, packages/plugins/knowledge-ragflow/CHANGELOG.md, packages/plugins/knowledge-ragflow/LICENSE, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

19 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json f71d488d6f4d7181cc6e075eb956f92489fb87ba.

⛔ 7 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 12 changed file(s) yielded no anchor (packages/plugins/embedder-openai/README.md, packages/plugins/knowledge-ragflow/CHANGELOG.md, packages/plugins/knowledge-ragflow/LICENSE, …) — pages documenting those are invisible to this run
  • 17 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 — 180 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 f71d488d6f4d7181cc6e075eb956f92489fb87ba → packageMentionDocs.

Which tree this was computed on

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

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

⚠️ 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 f71d488d6f4d7181cc6e075eb956f92489fb87ba → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…repo builds

The merge of main brought a callout that listed RAGFlow among the
persistent adapters; that adapter is retired on this branch.

Claude-Session: https://claude.ai/code/session_01Utp6CaUMCSy2q88QhyTB9f
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CZmwqAVSYHM1nQUDTq

Final green head: cb640fb26af60a9583c4f0ea8011e467db239f57 · 2026-11-26T09:03Z

  • CI on this head (card thread's pr-state): 64 success, expected skips only, 0 failed; the 2 pending at the last read are the body-edit re-runs, not a code change.
  • Dogfood battery run on this head: VERDICT command-exit 0; Test Files 487 passed, 3 skipped; Tests 4129 passed, 68 skipped.
  • Dev report: Retire @objectstack/knowledge-ragflow: package, settings option, docs and skill mentions #37004 card (card-37004/report.json). Diff 50 files, +159/−7041.
  • Tier H (skills/**, .github/workflows/lint.yml, one ADR-0161 anchor cell) and over the 3,000-line human-merge threshold. Zone o5-A hands this head to seat repo:objectstack#5 for L1, the contract-tier L2 (Clause-②: no (narrowing)) and the hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head cb640fb · 2026-11-26T09:08Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: cb640fb26af60a9583c4f0ea8011e467db239f57
Local-runs: none
Scope: packages/spec/src/ai/knowledge-source.zod.ts, packages/spec/src/contracts/knowledge-adapter.ts, packages/spec/src/contracts/knowledge-service.ts, docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md, skills/objectstack-ai/SKILL.md, skills/objectstack-ai/evals/skills-tools-knowledge.json, .github/workflows/lint.yml + packages/services/service-settings/src/manifests/knowledge.manifest.ts, packages/services/service-settings/src/manifests/knowledge.manifest.test.ts, packages/services/service-settings/src/knowledge-settings-default-absent.pin.test.ts, packages/services/service-settings/src/settings-visibility-declaration.pin.test.ts, packages/services/service-settings/src/translations/ar.ts, packages/services/service-settings/src/translations/de.ts, packages/services/service-settings/src/translations/en.ts, packages/services/service-settings/src/translations/es-ES.ts, packages/services/service-settings/src/translations/fr.ts, packages/services/service-settings/src/translations/ja-JP.ts, packages/services/service-settings/src/translations/ko.ts, packages/services/service-settings/src/translations/pt-BR.ts, packages/services/service-settings/src/translations/ru.ts, packages/services/service-settings/src/translations/zh-CN.ts, packages/services/service-settings/src/translations/zh-Hant.ts, packages/services/service-knowledge/src/tests/knowledge-settings-contribution.test.ts, packages/services/service-knowledge/README.md, packages/services/service-knowledge/package.json, packages/plugins/embedder-openai/README.md, packages/plugins/knowledge-ragflow/CHANGELOG.md, packages/plugins/knowledge-ragflow/LICENSE, packages/plugins/knowledge-ragflow/README.md, packages/plugins/knowledge-ragflow/package.json, packages/plugins/knowledge-ragflow/src/tests/ragflow-adapter.test.ts, packages/plugins/knowledge-ragflow/src/index.ts, packages/plugins/knowledge-ragflow/tsconfig.json, packages/plugins/knowledge-ragflow/tsconfig.test.json, packages/plugins/knowledge-ragflow/vitest.config.ts, packages/spec/llms.txt, .changeset/config.json, CONTRIBUTING.md, pnpm-lock.yaml, scripts/check-package-naming.mjs, scripts/check-published-readme-links.mjs, scripts/check-test-source-alias.mjs, scripts/check-test-suite-ceilings.mjs, scripts/check-type-check-coverage.mjs, scripts/regen-artifacts.mjs
Security-touching: yes

Inputs read: card #37004 (body and all 9 comments, with claim 7183577180 and amendments 7183625285, 7183708433, 7183820019, 7184370049), ruling 7134290286 on #36839, the PR body, PR comments 7185673233, 7187362838 and 7187483422, the os-dev report (card comment 7187346085 and card-37004/report.json, same payload), the net diff against origin/main (merge base cc38a91ab6), the 79 check-runs on the head, and cards #37479, #37480, #37481, #37482, #37304, #37310 and PR #37442. The narrowing face widens the scope to every path outside the prose faces; .changeset/37004-retire-knowledge-ragflow.md and content/docs/** are read for ② and for agreement only.

Code read outside the diff, not reviewed: packages/plugins/knowledge-pgvector/src/{plugin,pgvector-adapter}.ts, packages/plugins/knowledge-turso/src/{plugin,turso-adapter}.ts, packages/plugins/knowledge-memory/src/index.ts, packages/services/service-knowledge/src/{knowledge-service,knowledge-service-plugin,knowledge-settings-contribution}.ts and split/splitter.ts, packages/services/service-settings/src/{settings-service,settings-routes}.ts, packages/platform-objects/src/system/sys-platform-setting.object.ts, scripts/check-adr-0087-registration.mjs, scripts/pm/label-write.mjs, docs/adr/0087-metadata-protocol-upgrade-contract.md, .github/workflows/ci.yml.

① Derived judgments

What the diff removes or narrows, read from the tree at the head:

  1. A published package, whole. @objectstack/knowledge-ragflow (18.6.0, not private, one . export) leaves the workspace: its nine files, its pnpm-lock.yaml importer and its .changeset/config.json fixed-group entry. Its entry exported KnowledgeRagflowPlugin, KnowledgeRagflowPluginOptions, KnowledgeRagflowAdapter, KnowledgeRagflowAdapterOptions and FetchLike, and registered adapter id ragflow. Right, per ruling R1. At the head git ls-tree finds nothing under the directory, and no package.json, tsconfig, workflow, vitest config or source file imports or names the package or any of the five exports. The only code-file hits left are comments in knowledge.manifest.ts, one frozen fixture line in scripts/partition-test-shards.mjs (3456) and three rows in the generated scripts/test-shard-timings.json. Nothing deleted is still referenced.
  2. A settings accept set at a public door. knowledge.manifest.ts loses the ragflow option of adapter, the ragflow group, the keys ragflow_base_url, ragflow_api_key (encrypted) and ragflow_default_dataset, and the ragflow branch of knowledgeTestActionHandler; version goes 2 to 3. Right, and the declared answers agree with the code: an undeclared key is 400 UNKNOWN_KEY (settings-routes.ts:435), a value outside the option table is invalid_option (settings-service.ts:3679), and a stored ragflow reaches the handler's last line, Unknown adapter, sent as the 400 action-failure answer the PR body names (settings-routes.ts:486). The only reader of the knowledge namespace in the tree is chunk_target (knowledge-service-plugin.ts:474), so "no code ever read this setting" holds.
  3. Eleven locale bundles lose the matching strings and nothing else (the two reflowed options lines in ko.ts and zh-Hant.ts drop only the ragflow entry). Right.
  4. No spec accept set moves. The three packages/spec/src hunks are comments; adapter stays z.string() and adapterConfig stays declared. Metadata-protocol: none is right. packages/spec/llms.txt 78 to 77 follows the workspace.
  5. adapterConfig loses its last in-tree reader. At the head no file under packages/**/src reads a source's adapterConfig (the one other hit is an unrelated plugin-auth comment). The key is still accepted and still handed to whatever adapter is registered, so it is not refused; it has no first-party reader. Right as a consequence of R1, and carried (see ③).
  6. Tests. The new pin (a stored ragflow, with or without its old keys, answers ok: false, with a passing turso call beside it) and the absence pins match the code. The visibility count 87 to 83 matches the four removed visible predicates. The two fixture swaps to turso keep what each test asserts.

② Semver level

  • patch on service-settings, service-knowledge, embedder-openai, spec and skills is right. AGENTS.md step 3: Metadata-protocol: none takes patch, and a non-protocol breaking change ships patch with its BREAKING banner and ADR-0087 disposition. The ruling says "no major". The repo is in changesets pre mode (tag: next) and the five packages sit in the fixed group that a pending major already moves, so the level changes nothing about the version consumers get. The retired package cannot be bumped and is not.
  • Clause-②: no (narrowing) and Metadata-protocol: none are on both the PR body and the changeset, word for word the same, and agree with amendment 7183820019. The title carries !. Check Changeset is green on the head (three runs).
  • The BREAKING paragraph declares both halves, the package and the three settings doors, and gives a path for each: stop registering KnowledgeRagflowPlugin and bind to pgvector, turso, memory or an own IKnowledgeAdapter; change a source's adapter; pick an adapter and save; delete the leftover rows by hand. The hand-deletion path names the right table (sys_platform_setting, the global rung this manifest's scope writes to) and the right handle column (value_enc, a sec_ id), and matches .changeset/33933-… line 23.
  • The ADR-0087 marker is the wrong one: S1 in ④. The gate is green because its prescription detector reads arrows, framed tables and migration headings, and this body's "What to do if you used it" list is plain sentences; Metadata-protocol: none keeps it clear of the outright refusal that narrowed would bring. No registry entry is owed either way.

③ Boundary flags

open_questions is empty. PR author is objectstack-fleet[bot], so no login note. SQL push-down: the diff adds no query, no id materialisation and no in-app join.

Dogfood battery. Verified from the os-dev report, not from CI. Card comment 7187346085 (by objectstack-fleet[bot], signed with thread session session_01Utp6CaUMCSy2q88QhyTB9f, the session amendment 7183625285 names) carries dogfood_battery opening with the full head sha cb640fb26af60a9583c4f0ea8011e467db239f57, then VERDICT command-exit 0, 487 files passed and 3 skipped, 4129 tests passed and 68 skipped. card-37004/report.json holds the same text. CI cannot confirm it: on a pull request the dogfood shard job is skipped by design (ci.yml:2815), so the green Dogfood Regression Gate check-run on this head is the roll-up over a skipped matrix (the skipped run still carries its unexpanded matrix name) and Dogfood Verify CLI is skipped. The report is therefore the only evidence, and it has the shape label-write --land reads. Any commit on top that is not a merge of the base un-pins it.

Check-runs on the head: 66 success, 13 skipped, 0 failed, 0 in progress at the time of reading.

Dev deviations and out-of-scope findings, each answered:

Escalation E1 (security label). Security-touching is yes and is meant. The diff changes credential behaviour: an encrypted settings key leaves the manifest, and with it the product's way to retire the stored value. The PR's own BREAKING paragraph and #37480 already state the facts, so nothing is added here. The seat adds the security label to the PR, and the seat or the maintainer decides whether the credential half of #37480 belongs under security-findings.md section 7 rather than a plain p2 finding. The dev report's security_findings: none does not match this reading.

Serial order. #37442 (open, draft, head abf337bd) shares 14 paths with this PR: knowledge.manifest.ts, the eleven locale files, content/docs/ai/knowledge-rag.mdx and pnpm-lock.yaml. Read hunk by hunk, the two diffs touch different lines everywhere; the closest pairs sit two unchanged lines apart (the turso_url help line against the ragflow_* key deletions in each locale file, and ## Wiring against this PR's callout edit). No merge was run, so a clean textual merge is expected, not measured. #37442 adds no ragflow mention and does not touch the visibility pin. Whichever lands second merges main once and owes its own head record and, if it is this PR, a fresh battery. #37310 is a blocked card with no PR; it rewrites eval cases 3 and 9 and must start from this PR's pgvector case 3. #37304 (blocked, no PR) rewrites the same supportKb block in the skill and lands after. origin/main has moved 11 files past this PR's base and none of them is in this diff.

④ Design judgment

S1 (should-fix) — the changeset holds not-required (no-migration-prescription) for a deleted published package, against ADR-0087. Two rules meet here. ADR-0087's addendum says that category "is refused by a body that carries a migration prescription", and this body carries one: "Stop registering KnowledgeRagflowPlugin and remove the dependency. Bind your sources to…" and "Change the source's adapter" are instructions to rewrite consumer code. ADR-0087 D9, as amended 2026-10-27 on the maintainer's ruling (PR #26365, comment 6439038287), names the disposition for exactly this shape, "a published package deleted at HEAD is retired whole": not-required (runtime-export-retired @objectstack/knowledge-ragflow#*), with one FROM line naming the package. AGENTS.md step 3 separately asks a breaking changeset that removes an export for a FROM to TO mapping and a one-line fix, and the body has the fix only as prose. The marker's own justification argues the settings half alone and is silent on the five retired exports. The gate is green by a detector miss, which is the failure the seventh category was added to close. The outcome does not change (no ledger entry is owed) and nothing ships wrong, which is why the grade stops here. The fix is in the changeset alone: carry the D9 marker with its one FROM line for the package, and keep the settings half's argument beside it; if one marker cannot carry both halves, two changesets, one per half. Not measured here: whether the gate accepts the combined body, since no gate was re-run.

No must-fix.

Per hits file:

  • skills/objectstack-ai/SKILL.md — holds, sentence by sentence. The three adapter packages exist and are published; their default ids are memory, pgvector (pgvector-adapter.ts:180) and turso (turso-adapter.ts:244). All three declare capabilities = { chunks: true }, and the service cuts passages only for such an adapter (knowledge-service.ts:297), so "any other adapter receives whole documents" is true. The default strategy is recursive (splitter.ts:106). The os:check example parses unchanged apart from the adapter string. No hunk teaches permission or credential behaviour.
  • skills/objectstack-ai/evals/skills-tools-knowledge.json, case 3 — holds. The pgvector adapter stores document metadata and applies a metadata-equality filter in SQL (pgvector-adapter.ts:444), so "filter by category at search time" with metadataFields: ['category'] is a real path, which it was not on the retired adapter. The assertions are unchanged and still fit the expected answer. Rewriting rather than dropping the case keeps the only object-source case with where, metadataFields and refresh.
  • .github/workflows/lint.yml — the new clause holds. DEBT and TEST_DEBT are both {} at the head (check-type-check-coverage.mjs:845, :1135), and the gate's closure roots are exactly their keys (:4371), so the closure is empty today. The run: line is untouched.
  • ADR-0161, the adapterConfig cell — holds. The dead anchor is gone, the four keys are the ones the retired extractRagflowOptions read, and "no adapter in the tree reads it now" is true at the head. No decision text moves; K4's rule and row 2 of the execution table are unchanged and now resolve to the removal knowledge_source: admit the governed metadata type with its loader — registry, stack collection, ADR-0087 renames and retirements, the two authoring guards, one name per source #37304 carries.
  • The three packages/spec/src comment hunks — hold. Each names adapters that exist in the tree; no schema, describe() text or type moves.

Implementing files:

  • knowledge.manifest.ts agrees with its own new header paragraph and with the changeset, line for line (see ① item 2). The handler comment's "no adapter package reads this namespace or registers knowledge/test" is true at the head.
  • scripts/check-type-check-coverage.mjs, regen-artifacts.mjs and the four other scripts: comment edits, one self-test URL and one removed ledger row for a file that no longer exists. Type Check · debt ledger and the tooling self-test lanes are green.
  • embedder-openai README — the rewritten paragraph is true: both vector plugins take embedder?: IEmbedder and fall back to the kernel's embedder service, which KnowledgeServicePlugin registers from the ai.embedder_* settings; the memory adapter takes none.
  • content/docs/plugins/packages.mdx — the Plugins row lists 18 names and says 18.

Nits, none of which moves correctness or the contract:

Implemented-by: claude/project-thread-rn0sfm
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对

Head-sha: cb640fb26af60a9583c4f0ea8011e467db239f57
REWORK: L1, seat repo:objectstack#5. Contract record 7187805241 (CONTRACT_REVIEW_TIER, verified on the transcript) reads PASS with one should-fix open, and the queue guard refuses a record while it is open. The narrowing is real, fully declared, and nothing deleted is still referenced.

  1. Shape: open draft against main, 50 files (+159/−7041), Fixes #37004, Clause-②: no (narrowing), Metadata-protocol: none, ! title, patch changeset. Tier H (skills/**, lint.yml, an ADR cell, over 3000 lines). 66 success, 13 expected skips, 0 failed.
  2. Premise: ruling 7134290286 R1. Retire the package whole, in one PR, as a patch.
  3. Owed before ACCEPT:
    • S1. The changeset carries adr-0087: not-required (no-migration-prescription), but its "What to do if you used it" list is a migration prescription, which that category refuses. ADR-0087 D9 (amended 2026-10-27, ruling on PR refactor(ui)!: retire @object-ui/plugin-ai and its three node types #26365) names the disposition for a published package deleted at HEAD: not-required (runtime-export-retired @objectstack/knowledge-ragflow#*) with one FROM line. Carry that marker for the package half and keep the settings half's argument beside it. If one marker cannot carry both, split it into two changesets. Run check-adr-0087-registration on the result.
    • Dogfood battery. The fix is a non-merge commit, so the battery pinned to cb640fb2 no longer covers the head. Re-run it on the new head and update the report. label-write reads it.
    • The same reviewer reads the delta.
  4. Accepted deviations (nits, record only):
  5. Out of scope and where it went:
  6. Landing terms: Tier H plus over 3000 lines. Owed: S1 closed, the battery on the new head, a same-head delta PASS, then the seat's ACCEPT and the hand-off to os-zhuang and hotlong with security.

…ort-retired

The note carries a FROM line for the deleted package, which
no-migration-prescription refuses. ADR-0087 D9 (amended 2026-10-27) gives
a published package deleted at HEAD the `<package>#*` operand with one
FROM line; the settings half's argument stays in the marker's reason.

Claude-Session: https://claude.ai/code/session_01Utp6CaUMCSy2q88QhyTB9f
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CZmwqAVSYHM1nQUDTq

Final head (fix round) · 2026-11-26T10:13Z

Head-sha: 78fff74e1e182c3e9432329e06e8a8a3dbf0b4fd. It is one non-merge commit on cb640fb2 that touches only .changeset/37004-retire-knowledge-ragflow.md. Main was not merged.
CI: 64 success, 11 expected skips, 0 failed. Mergeable: clean.

  • S1: the changeset marker is now not-required (runtime-export-retired @objectstack/knowledge-ragflow#*) with one FROM line. The settings half's argument sits in the marker's reason, in one changeset. check-adr-0087-registration --base origin/main exits 0.
  • Dogfood battery on 78fff74e: VERDICT command-exit 0, 487 test files passed and 3 skipped, 4129 tests passed and 68 skipped.
  • The updated os-dev report is 7188986325 on Retire @objectstack/knowledge-ragflow: package, settings option, docs and skill mentions #37004.
  • One stale figure: the PR body says +159, but the diff is +162/−7041 over 50 files.
    Waiting on the same reviewer's delta read, then the seat's ACCEPT and the Tier H hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 78fff74e1e182c3e9432329e06e8a8a3dbf0b4fd
Local-runs: probe — the delta's one question is whether the ADR-0087 gate verifies the new whole-package marker with the settings half beside it; node scripts/check-adr-0087-registration.mjs --base origin/main --head pr-37477-x was run once, reading git objects only (no checkout, no build; the script and ADR-0087 are byte-identical between the tree it ran from and this head)
Scope: packages/spec/src/ai/knowledge-source.zod.ts, packages/spec/src/contracts/knowledge-adapter.ts, packages/spec/src/contracts/knowledge-service.ts, docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md, skills/objectstack-ai/SKILL.md, skills/objectstack-ai/evals/skills-tools-knowledge.json, .github/workflows/lint.yml + packages/services/service-settings/src/manifests/knowledge.manifest.ts, packages/services/service-settings/src/manifests/knowledge.manifest.test.ts, packages/services/service-settings/src/knowledge-settings-default-absent.pin.test.ts, packages/services/service-settings/src/settings-visibility-declaration.pin.test.ts, packages/services/service-settings/src/translations/ar.ts, packages/services/service-settings/src/translations/de.ts, packages/services/service-settings/src/translations/en.ts, packages/services/service-settings/src/translations/es-ES.ts, packages/services/service-settings/src/translations/fr.ts, packages/services/service-settings/src/translations/ja-JP.ts, packages/services/service-settings/src/translations/ko.ts, packages/services/service-settings/src/translations/pt-BR.ts, packages/services/service-settings/src/translations/ru.ts, packages/services/service-settings/src/translations/zh-CN.ts, packages/services/service-settings/src/translations/zh-Hant.ts, packages/services/service-knowledge/src/tests/knowledge-settings-contribution.test.ts, packages/services/service-knowledge/README.md, packages/services/service-knowledge/package.json, packages/plugins/embedder-openai/README.md, packages/plugins/knowledge-ragflow/CHANGELOG.md, packages/plugins/knowledge-ragflow/LICENSE, packages/plugins/knowledge-ragflow/README.md, packages/plugins/knowledge-ragflow/package.json, packages/plugins/knowledge-ragflow/src/tests/ragflow-adapter.test.ts, packages/plugins/knowledge-ragflow/src/index.ts, packages/plugins/knowledge-ragflow/tsconfig.json, packages/plugins/knowledge-ragflow/tsconfig.test.json, packages/plugins/knowledge-ragflow/vitest.config.ts, packages/spec/llms.txt, .changeset/config.json, CONTRIBUTING.md, pnpm-lock.yaml, scripts/check-package-naming.mjs, scripts/check-published-readme-links.mjs, scripts/check-test-source-alias.mjs, scripts/check-test-suite-ceilings.mjs, scripts/check-type-check-coverage.mjs, scripts/regen-artifacts.mjs
Security-touching: yes

Delta review from cb640fb26af60a9583c4f0ea8011e467db239f57 (record 7187805241) to this head. The delta is one non-merge commit, 78fff74e, whose only parent is cb640fb2. It touches one file, .changeset/37004-retire-knowledge-ragflow.md (+6/−3), a prose face. Every other path in the diff against origin/main is byte-identical to the head record 7187805241 judged, so this record restates those judgments whole and re-reads only what moved. The net diff is 50 files, +162/−7041, merge base still cc38a91ab6.

Inputs read this round: the delta commit, the changeset at the head, the new os-dev report (card comment 7188986325), PR comments 7187805241, 7187921659 and 7189083380, the PR body as it stands, the 75 check-runs on the new head, ADR-0087 D9 with its 2026-10-27 amendment, and the gate's own output. Inputs from the first round (card #37004 and all its comments, ruling 7134290286, cards #37479 to #37482, #37304, #37310, PR #37442) were re-checked only for change: #37442 is still open at abf337bd.

① Derived judgments

Unchanged from the first round; the delta moves no code, schema, skill, workflow or ADR text.

  1. A published package, whole. @objectstack/knowledge-ragflow (18.6.0, not private) leaves the workspace with its lockfile importer and its fixed-group entry. Its entry exported KnowledgeRagflowPlugin, KnowledgeRagflowPluginOptions, KnowledgeRagflowAdapter, KnowledgeRagflowAdapterOptions and FetchLike. Right, per ruling R1. Nothing at the head imports or names the package or its exports; the leftovers are manifest comments, one frozen fixture line and three generated timing rows.
  2. A settings accept set at a public door. The ragflow option, its group, its three keys and its test-connection branch leave knowledge.manifest.ts; version goes 2 to 3. Right, and the declared answers agree with settings-routes.ts and settings-service.ts.
  3. Eleven locale bundles lose the matching strings and nothing else. Right.
  4. No spec accept set moves. Comments only; Metadata-protocol: none is right.
  5. adapterConfig loses its last in-tree reader. Right as a consequence of R1; carried by knowledge_source: admit the governed metadata type with its loader — registry, stack collection, ADR-0087 renames and retirements, the two authoring guards, one name per source #37304.
  6. Tests. The new pin, the absence pins and the 87 to 83 count match the code.

② Semver level

  • patch on the five packages stays right (AGENTS.md step 3; the ruling's "no major"; pre mode with a pending major in the fixed group). The delta changes no bump.
  • Clause-②: no (narrowing) and Metadata-protocol: none are unchanged on the PR body and the changeset and still agree. Check Changeset is green on the new head.
  • The ADR-0087 marker now has D9's form, exactly. The changeset carries one marker, not-required (runtime-export-retired @objectstack/knowledge-ragflow#*) followed by its reason, which is the third operand kind of the 2026-10-27 amendment. The body carries one line of the shape the amendment gives, - FROM `@objectstack/knowledge-ragflow` TO …, naming the package by its package name and no export on a line of its own. The probe answers exit 0 and prints not-required (runtime-export-retired) -- verified: @objectstack/knowledge-ragflow#* (package, packages/plugins/knowledge-ragflow/package.json), so all three predicates hold: the package is a published workspace member at the merge base and absent at the head from the workspace, the workspace globs and the fixed group; no metadata surface names it; and the FROM block names exactly the operand.
  • One marker carrying the settings half is legitimate. AGENTS.md asks for exactly one marker per changeset. D9 says of this category that "the operands named are judged, and the claim's completeness is not", so the marker proves the package half and its reason argues the rest. The settings half retires no export and names no operand; its own argument (a settings manifest is a runtime registration, the doors belong to one namespace, stored rows are untouched) is the one .changeset/33933-… holds for the same class of change, and it owes no ledger entry. The gate read the whole body and found no FROM line out of range and no shape it could not read: the remaining bullets are operator steps and one sentence about a source's adapter, which is the package's own id. Splitting into two changesets is not needed.
  • The BREAKING paragraph, the list of what is gone from the settings page and the hand-deletion path are word for word as before. The fix sentence for the package is now on the FROM line.

③ Boundary flags

open_questions is empty in the new report. PR author is objectstack-fleet[bot]. SQL push-down: nothing in the diff adds a query, an id materialisation or an in-app join.

Dogfood battery, pinned to this head. The newest os-dev report on the card, comment 7188986325 (by objectstack-fleet[bot], signed with thread session session_01Utp6CaUMCSy2q88QhyTB9f, pr naming this pull), opens dogfood_battery with the full sha 78fff74e1e182c3e9432329e06e8a8a3dbf0b4fd, then VERDICT command-exit 0, 487 test files passed and 3 skipped, 4129 tests passed and 68 skipped, held 2272 s. Its head field names the same sha. That is the shape label-write --land reads. As before, CI cannot confirm it: the dogfood shards are skipped on a pull request by design, so the green Dogfood Regression Gate is a roll-up over a skipped matrix. The report is the only evidence.

Check-runs on the new head: 64 success, 11 skipped, 0 unsuccessful, 0 in progress.

Carried from the first round, unchanged:

E1 (security label): answered by the seat, carried. Security-touching stays yes and is meant: the diff still removes an encrypted settings key and with it the product's way to retire the stored value. The seat ruled in comment 7187921659 that #37480 stays a plain card and that the PR takes the security label at the hand-off. Nothing in the delta changes that reading, and no detail is added here.

Serial order, carried. #37442 is still open at abf337bd and shares the same 14 paths; the delta touches none of them. The hunks were read as disjoint in the first round and no merge was run then or now. origin/main has moved 98 files past this PR's merge base and none of them is in this diff. #37310 and #37304 remain blocked cards with no PR.

One stale figure, the dev's own note in 7189083380: the PR body's summary still says +159 where the diff is +162. Prose only.

④ Design judgment

S1: closed

What closed it: the marker is D9's whole-package form, the body has the single FROM line with its one-line fix, and the gate verifies the claim on a checked fact where the earlier marker stood on the detector finding nothing (② above).

No must-fix, no should-fix.

Per hits file, unchanged by the delta and holding as judged on cb640fb2:

  • skills/objectstack-ai/SKILL.md — the three adapter ids, capabilities.chunks on all three, whole documents for any other adapter and recursive as the default all match the code. No hunk teaches permission or credential behaviour.
  • skills/objectstack-ai/evals/skills-tools-knowledge.json, case 3 — the pgvector adapter applies a metadata-equality filter in SQL, so the case's search-time category filter is a real path.
  • .github/workflows/lint.yml — DEBT and TEST_DEBT are both empty and are the closure's only roots.
  • ADR-0161, the adapterConfig cell — the dead anchor is gone and "no adapter in the tree reads it now" is true.
  • The three packages/spec/src comment hunks — each names adapters that exist; no schema moves.

Implementing files, unchanged by the delta: knowledge.manifest.ts agrees with its header and with the changeset; the script edits are comments, one self-test URL and one removed ledger row; the embedder-openai README paragraph is true; the Plugins row lists 18 names and says 18.

Nits, all carried as accepted deviations (the seat listed them in 7187921659):

Implemented-by: claude/project-thread-rn0sfm
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

维护者速读

席位意见:ACCEPT。收窄范围完整声明,迁移路径清楚,删除的代码都已无人引用。

席位核对

Head-sha: 78fff74e1e182c3e9432329e06e8a8a3dbf0b4fd
ACCEPT — L1, seat repo:objectstack#5

  1. Shape: open draft against main, 50 files (+162/−7041), Fixes #37004, Clause-②: no (narrowing), Metadata-protocol: none, ! title, patch changeset. Tier H: skills/**, lint.yml, an ADR cell, and over 3000 lines.
  2. Premise: ruling 7134290286 R1. The package is retired whole in one PR, as a patch, and both halves (the package and three settings doors) are declared with a path in the BREAKING paragraph.
  3. Gates:
    • Delta record 7189168236, from the same reviewer at CONTRACT_REVIEW_TIER and verified on the transcript, reads PASS. S1 is closed: D9's whole-package marker with one FROM line, and check-adr-0087-registration exits 0 ("verified: @objectstack/knowledge-ragflow#*").
    • Dogfood battery pinned to 78fff74e (os-dev report 7188986325): command-exit 0, 4129 passed.
    • Checks at 78fff74e1e: 64 success · 11 expected skip · 0 failed · 0 pending. Mergeable clean.
  4. Accepted deviations (nits):
  5. Out of scope and where it went:
  6. Landing terms: Tier H plus over 3000 lines. The L2 PASS is at CONTRACT_REVIEW_TIER on the same head, with the battery pinned. Security-touching: yes, so the security label goes on. It waits for the maintainer's approval and merge.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Security label: Security-touching: yes per contract record 7189168236 (an encrypted settings key leaves the manifest, and with it the product's door to retire the stored value; #37480 carries it as a plain card per seat ruling 7187921659).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Approval requested (Tier H: skills/**, lint.yml, ADR-0161 cell, >3000 lines; Security-touching: yes). Seat ACCEPT: comment 7189186417. Contract review PASS at CONTRACT_REVIEW_TIER: comment 7189168236, Head-sha 78fff74e1e182c3e9432329e06e8a8a3dbf0b4fd; dogfood battery pinned to that head (7188986325). The maintainer merges.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 26, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 26, 2026 11:30
@os-zhuang
os-zhuang enabled auto-merge November 26, 2026 11:30
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit c349576 Nov 26, 2026
85 of 86 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-rn0sfm branch November 26, 2026 12:01
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…on and switches to it (objectstack-ai#37492)

<!-- claude-projects-attribution: {"github_login":"os-bill"} -->
_Requested by **Bill** · [project
thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wg3zXREECfPtgrM8TPQaxn1v)_

Fixes objectstack-ai#37101

Clause-②: yes (widening)
Metadata-protocol: none

## 维护者速读
- 用 PostgreSQL
存知识库的部署,换了嵌入模型或切分设置后,重建会在旧索引旁边建一套新索引,建好才切过去,旧的分批删掉;以前这种情况会拒绝重建、要运维手工清表。
- 属于「知识库平台」大项的第二阶段,替自建 PostgreSQL 的部署解决换模型后必须手工清索引的问题。
- 出错时最坏是重建期间该知识源检索一直返回「重建中」或旧索引未删干净占空间,不会返回新旧模型混排的错结果;这个包的改动可以直接撤回。
- 无。

## What changes

`@objectstack/knowledge-pgvector` builds a new generation beside the
active one when the index fingerprint changes, and switches to it
(ADR-0161 K7, rules 1 to 4). Before, `beginBuild` under a new
fingerprint was refused and the reindex result carried hand-run SQL that
cleared the source.

- **Generations.** The generation table holds one `active` and at most
one `building` generation per source (two unique partial indexes,
created `IF NOT EXISTS` on the next boot), plus `retired` ones being
deleted. Passage tables are unchanged: they are per vector width and
already keyed by generation.
- **`beginBuild`** takes the builder lock, then: same fingerprint as the
active one, rebuild in place; same as the one under construction, take
it up (resumed with what it holds); otherwise retire any unfinished one
and open a new `building` generation numbered past every generation the
source has. Orphan passages (generation row deleted by hand) are deleted
before any generation opens, as the first generation already did.
- **Writes** go to the generation of the fingerprint they carry: during
a build, the walk and event-sync writes carry the new one and land in
the new generation only. Each write share-locks its generation row
inside its transaction, so a switch or a retirement waits for it, and a
write that finds its generation retired is planned again.
- **Search** under the new fingerprint while its generation is building
answers `KNOWLEDGE_REBUILD_REQUIRED` (409), message "is being rebuilt"
(the same code and wording as knowledge-turso). The ranking statement
holds only while its generation is active (an `EXISTS` on the generation
row in the same statement), and a search that meets a switch runs again,
at most three times; the third answers an error rather than an empty
result.
- **`completeBuild`** (the service calls it after the walk and its
single purge) retires the active generation and activates the new one in
one transaction, then deletes the retired generation's passages in
batches of `deleteBatchSize` rows (default 1000) and its row last. A
deletion that stops is logged at `warn` and finished by the next build;
a retired generation is never read.
- **One builder per source:** a PostgreSQL session advisory lock (key:
64 bits of a hash of schema and source id) held from `beginBuild` to
`completeBuild` on a connection outside the pool
(`PgPoolLike.connectSession`, provided by `poolFromPg`). A second
builder gets `LOCK_CONFLICT` (409, standard catalog), so its walk reads
and embeds nothing. Freed on completion, on process or connection death
(PostgreSQL), after `buildLockIdleMs` (15 minutes) without a call of the
build itself (calls with reason `reindex`; event-sync writes do not hold
it), and on plugin `destroy`. It is a session lock, so the store needs a
direct or session-mode PostgreSQL connection: a transaction-mode pooler
breaks it. When `pg_advisory_unlock` answers false (the session no
longer held the lock), the release is logged at `warn` and names that
requirement. A crashed build is **resumable**: the next build under the
same fingerprint keeps what was written and the walk skips it by
document hash.
- **Fresh database.** Two sessions that ran `CREATE EXTENSION IF NOT
EXISTS vector` at the same moment: the loser failed on the catalogue's
unique key, and `ready()` refused although the extension existed. It now
re-reads the extension after a failed create and refuses only when it is
still missing (pre-existing, seen as a flaky first reindex on a fresh
database while the live suite ran its files in parallel).
- **New exports, all optional (widening):** adapter options
`buildLockIdleMs`, `deleteBatchSize`, `logger`;
`PgPoolLike.connectSession`; `PgvectorKnowledgeAdapter.close()`. The
changeset stays `patch` and carries the same `Clause-②` line.
- No contract member is added: `beginBuild`, `completeBuild`,
`indexStatus.building` and `ctx.index` are ADR-0161 K8 item 8, already
on main. No error code is added. `service-knowledge` needs no change:
its walk already calls `beginBuild`, purges once and calls
`completeBuild`.
- Docs: a "Generations" subsection in
`content/docs/ai/knowledge-rag.mdx`, and one bullet in its pgvector
section. The "Rebuilds" section of
`packages/plugins/knowledge-pgvector/README.md` (it ships in the npm
tarball) and the "Rebuilds" bullet of
`content/docs/protocol/knowledge.mdx` section 4.1 now describe
generations; the hand-run clear-SQL instructions are gone (claim amend
7187694971). All three say the builder lock needs a direct or
session-mode connection.

## Tests

- New file `generations.live-postgres.test.ts` (live PostgreSQL +
pgvector, the package's existing live pattern): same width with the
model changed, through `KnowledgeService` (generation 2 built beside
generation 1; search during the build refused "being rebuilt"; an
event-sync write during the build lands only in generation 2 and is
present after the switch; purge 0; generation 1 deleted; reading
`current`). Also: two concurrent builds (one builds, the other gets
`LOCK_CONFLICT` and embeds nothing); a build whose session is terminated
is resumed by another adapter with its passage kept; the idle release
while event-sync writes keep arriving (they do not extend the lock;
released after `buildLockIdleMs`); batched deletion (5 rows at batch 2 =
3 statements) and abandoning a generation for a third fingerprint.
- New file `builder-lock.test.ts` (no database): a release whose
`pg_advisory_unlock` answers false logs one warning naming the direct or
session-mode connection; one that answers true logs nothing.
- Contract suite: `generations: true` for pgvector (it was `false`,
pending this card).
- `acceptance.live-postgres.test.ts`: two cases that pinned the retired
behaviour (reindex refused with hand-run clear SQL; `beginBuild` under
another fingerprint refused) are rewritten to the new behaviour. The
case that ran the printed clear SQL is removed, because that SQL is no
longer printed. The rebuild-required remedy is pinned to say "complete
reindex" and to carry no `DELETE FROM`, `DROP` or `TRUNCATE`.

## Acceptance notes

- Fixed in this PR (dc620cd): the README "Rebuilds" section and the
protocol section 4.1 "Rebuilds" bullet said the store does not yet build
a second generation and printed clear SQL. Both now describe the
generations behaviour, after the claim amend added the two files to the
surface. Left as is, being generic and still true: protocol section
3.6's sentence about an adapter that does not keep generations.
- The builder lock is held on a dedicated session for the whole build. A
walk that fails on a process that keeps running keeps it until
`buildLockIdleMs` passes; another process is refused `LOCK_CONFLICT`
meanwhile, and that refusal's remedy says when it frees. Fencing a build
that lost its lock mid-walk is objectstack-ai#37465 (service lease), not this PR.
- Carried, not fixed here (seat note 7188645663): N1 (fencing a builder
that lost its lock) goes to objectstack-ai#37465. N2, a `building` generation that
stays after the fingerprint is reverted to the active one, is deleted at
the next build under another fingerprint; until then it holds rows and
is never read. N4, two sweeps of the same retired generation at once,
can leave passage rows behind when one deletes the generation row first;
the sweep no longer sees them (it walks generation rows); they are never
read, and the orphan cleanup deletes them when the source next opens a
generation. N3 (that third error carries no code): giving it
`CONCURRENT_MODIFICATION` (409) pins a code that
`scripts/error-status-unpinned-baseline.json` lists as unpinned, and
`check:error-status-conformance` then requires that row to be removed.
The file is outside the claim surface, so the code was taken back out;
it needs a one-line claim amend. Protocol section 9's table row is
outside the claim surface and left as is.
- A second builder that took over after an idle release writes the same
documents under the same fingerprint into the same generation, so the
index stays correct; only embedding spend is doubled.

## Verification

Read first, by risk: `pgvector-adapter.ts` `completeBuild` and
`sweepRetired` (the switch and the batched delete), `searchAttempt` (the
`EXISTS` guard and the retry), `takeBuilderLock` and
`releaseBuilderLock`.

Two-minute check: with `OS_TEST_POSTGRES_URL` pointing at a PostgreSQL
that has pgvector, run `pnpm --filter @objectstack/knowledge-pgvector
exec vitest run src/__tests__/generations.live-postgres.test.ts`. You
should see 5 passed, among them the idle release under event-sync writes
and the "model changed" case that is refused "being rebuilt" mid-build.

<details><summary>Local test runs (head 06d53aa; PostgreSQL 16.16 +
pgvector 0.8.7, a local instance, fresh database)</summary>

- Package suite with the live files on, `vitest run --maxWorkers=2
--reporter=verbose` under the verify lock: `Test Files 6 passed (6)`,
`Tests 75 passed (75)`, lock VERDICT command-exit 0. All 5 generation
cases and both builder-lock cases passed. Run at tree 06d53aa (the
same tree as d1c735dce, whose commits were reworded only), plus
`not-ready.test.ts` 11/11 with the new race case.
- `pnpm typecheck` and `pnpm build` of the package: exit 0,
check-dts-emitted 2/2.
- Correction: the runs reported at bc0cab4 and dc620cd as "pgvector
0.8" were on pgvector 0.6.0. Every run since fb4146c is on 0.8.7, the
version the CI live job uses.
</details>

<details><summary>Ablations (each restored, git diff empty
afterwards)</summary>

- A: writes no longer go to the generation under construction. Red: 3
failed of 5 (model changed; session died and resumed; batches and third
fingerprint).
- B: the advisory lock answer is ignored. Red: 2 failed of 5 (two
concurrent builds; idle release).
- C: one delete batch only. Red: 1 failed of 5 (batched deletion).
- D (round 3): event-sync calls touch the lock again (`reason` check
removed). Red: 1 failed of 5, the idle release while event-sync writes
arrive.
- E (round 3): no re-read after a failed CREATE EXTENSION. Red: 1 failed
of 11 in `not-ready.test.ts`, the lost-race case.
</details>

<details><summary>Derived gates (dispatch-gates, 102 families over the
whole change)</summary>

`--ran` reconciliation at 06d53aa: 102 derived, 100 run, 2
NOT-MEASURED, 0 unrun. The two are PREREQUISITE NOT MET (exit 3) on this
checkout: `check-plugin-teardown-shape --self-test` (shallow clone) and
`spec check:skill-examples` (client-react not built). This round ran 98
families for the round-3 paths, then 61 again for the adapter and
changeset after the last code change, and 6 more for
`not-ready.test.ts`. One went red in between:
`check:error-status-conformance`, which N3's `CONCURRENT_MODIFICATION`
tripped (see Acceptance notes). It is green after that code was taken
out. `overlap-check`: clean against origin/main 54ea3c8, objectstack-ai#37477 and
objectstack-ai#37442. PR check-runs at 06d53aa: 53 completed, 38 success, 15
skipped, 0 failure. The CI check-runs are the authority. The live
pgvector job (`Temporal Conformance`) runs in the merge queue, not on
the PR.
</details>

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

<!-- signed: repo:objectstack#5 · os-bill ·
session_01Utp6Cb4BAjgQ43tqy1DvVJ -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…e setting no longer offers reads as "no longer available" (objectstack-ai#37536)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu3zQ2AqeghSGpv6Q7VEPDyQ)_

Fixes objectstack-ai#37480

Clause-②: no
Metadata-protocol: none

Ruling record for the card's second half: comment 7190223182 on objectstack-ai#37480
(the maintainer chose B, 「维持现状,只写文档」: stored rows stay, the manual
removal path is documented). No server code changes.

## 维护者速读

- 管理员在设置页看下拉框、单选组或多选组时,如果之前保存的选项已被新版本移除,原来显示空白或一个都没选中,现在显示为「原值(已不可用)」。
- 属于知识库适配器下线后的善后:替保存过已下线选项的管理员解决「看不出配置了什么」的问题。
- 出错时最多是这一项显示不对,保存行为不变,可直接撤回。
- 无。

## What changes

- **Console settings select** (`SettingsField.tsx`, the closed `select`
arm without `valueDomain`): when the stored value is non-empty and not
among the field's current `options`, the list gets one disabled item for
that code, labelled with the new locale key
`console.settingsView.selectValueRetired` (`VALUE (no longer
available)`). Radix shows the selected item's text, so the trigger now
names the stored code instead of reading blank. Picking a current option
is an ordinary declared-key write; the retired item cannot be picked
back. Values among the options and an unset value render as before.
- **Console settings radio** (the `radio` arm of the same file): the
same condition adds one disabled `RadioGroupItem` for the stored code,
first in the group and checked (the group's value is the stored code),
labelled with the same key. Chosen over a read-only line beside the
group so the group itself says what is stored; the current options stay
enabled.
- **Console settings multiselect** (the `multiselect` arm): each stored
array member outside `options` gets one checked checkbox, first in the
grid, labelled with the same key. Measured save behaviour: ticking a
current option builds the next array from the whole stored array
(unchanged from before), so the retired member stays in what is saved,
exactly as it did while it was invisible; the server refuses a write of
that key while the array holds a value outside the options
(`invalid_option`, `settings-service.ts` option check over
`select`/`radio`/`multiselect`), as it already did. So the retired
checkbox is deliberately NOT disabled: unticking it removes the member
from the array (the way to make the field saveable again), and once
removed it leaves the list and cannot be ticked back. A disabled
checkbox would have left the field unsaveable with no way out.
- **Locale key** `console.settingsView.selectValueRetired` in all eleven
`@object-ui/i18n` packs (real translations). The Console's settings
strings live in `ui/packages/i18n/src/locales/*`, so that is where the
key goes (the claim's "Console locale bundles").
- **Docs** (`content/docs/protocol/kernel/config-resolution.mdx`, new
`### Retired keys and options` under *Secrets*): rows stored for a
removed key or option are kept, unused, never deleted; an encrypted
key's `sys_secret` row stays; Setup shows a non-option value as "no
longer available"; removal by hand is deleting the key's row from
`sys_platform_setting` (global-scope manifest) or `sys_setting`, plus
the `sys_secret` row its `value_enc` names. This is the ruling's
documentation half; it touches none of PR objectstack-ai#37477's files.
- Changeset `.changeset/37480-settings-retired-option.md`
(`@object-ui/console`, `@object-ui/i18n`, patch).

Read first: `ui/apps/console/src/pages/settings/SettingsField.tsx` (the
`retired` computation and the extra `SelectItem` / `RadioGroupItem` /
retired checkboxes), then the new test.

Two-minute check: `cd ui/apps/console && pnpm exec vitest run --root
../.. --project @object-ui/console
src/pages/settings/__tests__/SettingsField.retiredOption-37480.test.tsx`
— expect 10 passed.

## Tests

- New
`ui/apps/console/src/pages/settings/__tests__/SettingsField.retiredOption-37480.test.tsx`
renders the real `SettingsField`: stored `ragflow` outside the options
reads `ragflow (no longer available)` under en and the zh-pack text
under zh-CN; controls: a stored value among the options reads its label
with no retired item, and no value still reads the placeholder. Radio:
stored `ragflow` gives a checked, disabled radio named `ragflow (no
longer available)` while `Dify` stays enabled and unchecked; control:
stored `dify` checks its own item, two radios, no retired item.
Multiselect: stored `['ragflow','dify']` shows a checked `ragflow (no
longer available)` checkbox beside a checked `Dify`; ticking `Dify` over
stored `['ragflow']` sends `['ragflow','dify']` (pins the unchanged
keep-on-save); unticking the retired one sends `['dify']`; control:
members all among the options draw only the two option checkboxes.
- Ablation: with the select arm's `retired` condition forced false on
disk, the two select named-state cases fail and the controls pass; with
the radio arm's forced false, only the radio named-state case fails (1
failed, 5 passed); with the multiselect arm's forced false, its
named-state and untick cases fail (2 failed, 8 passed) while the
keep-on-save pin passes, as it pins existing behaviour; each restored
with `git checkout HEAD --`.

## Acceptance notes

- The `radio` arm is in scope (the card's done-when covers every control
that shows a stored option value) and gets the same named state in this
PR. The `multiselect` arm gets the named state too, untickable for the
reason under What changes. Clearing a retired member server-side is not
in this PR (ruling 7190223182 keeps stored rows).
- The second half of the card (clearing an undeclared key or its
`sys_secret` row from a settings door) is decided as "keep, document" by
the ruling above.

## Verification

Head `ec4e9149bb`. Local, targeted (the full farm is CI's):

<details><summary>Console settings tests</summary>

- `vitest run --project @object-ui/console src/pages/settings/` (lock
VERDICT command-exit 0): Test Files 45 passed (45), Tests 498 passed
(498).
- Ablations: select arm 2 failed, 2 passed (4) on the first head; radio
arm 1 failed, 5 passed (6); multiselect arm 2 failed, 8 passed (10);
restored.
</details>

<details><summary>i18n package</summary>

- `pnpm --filter @object-ui/i18n type-check`: exit 0. `pnpm --filter
@object-ui/i18n test`: Test Files 111 passed (111), Tests 2028 passed,
13 skipped.
</details>

<details><summary>Derived gate families</summary>

- `dispatch-gates.mjs --commands` derived set run locally; per-command
exit codes are in the report comment on the card. `check:skill-examples`
client-SDK surface: NOT MEASURED locally (PREREQUISITE NOT MET,
client-react dist has no declarations; this diff adds no TypeScript
example). Console `type-check` is left to CI's `Type Check UI` (needs
every `@object-ui` package built).
</details>

---

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

https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96

<!-- signed: repo:objectstack#2 · os-sales ·
session_01L6bhgVUz5oS8fMgmncxU96 -->

---------

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

<!-- claude-projects-attribution: {"github_login":"os-warren"} -->
_Requested by **Warren** · [project
thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ84BSz1obpkWFoBogsxn7rAx)_

Fixes objectstack-ai#37102

Clause-②: yes
Metadata-protocol: added
Skills-docs: follow-up objectstack-ai#37310

## 维护者速读

- 用户能看到什么变化:应用声明需要“知识检索”后,平台自动装好检索服务和一个向量库(PostgreSQL
项目用同一个数据库,其他数据库用项目本地的一个文件);没有声明的部署前后完全一样。
- 为什么做:属于“知识检索平台化”专题,让本地开发和自建部署不用手工接线就有可用的检索。
- 出错会怎样:只影响声明了该能力的应用;检索源指向没装上的向量库时应用照常启动,检索会明确报错并说明可选的库;回退本改动即可恢复原状。
- 要你做什么:批准一次。本改动在两份对外技能文件里各补了一个能力名(受管的技能文件),需要你批准后才能合并。

## What changes

- **New capability token `knowledge`** in `PLATFORM_CAPABILITY_TOKENS` /
`PLATFORM_CAPABILITY_PROVIDERS` (provider
`@objectstack/service-knowledge`, edition `open`) and in core
`CAPABILITY_PROVIDERS`.
- **Store selection, shared by both boots** (`@objectstack/core`):
`resolveKnowledgeStore` / `resolveCapabilityExtras` +
`KNOWLEDGE_STORE_PROVIDERS`. PostgreSQL (driver `postgres` or a
`postgres(ql)://` URL) → `KnowledgePgvectorPlugin` on the same URL;
`:memory:` → in-memory turso; anything else → `KnowledgeTursoPlugin` on
`knowledge.db` in the data directory (`.objectstack/data/`, or
`<OS_HOME>/data/` when `OS_HOME` is set) with `urlFromSettings`.
`knowledge-memory` is never mounted.
- **`os serve`** reads the primary database it resolved and mounts the
one store; an extra that cannot be imported or constructed now warns
instead of being skipped silently. A host that mounts the service or a
store itself keeps its own (`hasPluginMatching` on the identities).
- **`@objectstack/verify`** `constructServedProviders` takes an optional
`database` (default in-memory SQLite) and mounts the same store as
serve.
- **Unmounted adapter** (`service-knowledge`): service mounts, boot does
not fail; at `kernel:bootstrapped` one `error` line per such source
naming the mounted adapters; index and search of that source answer
`SERVICE_UNAVAILABLE` 503 with the same message (existing code, no new
error code). A multi-source search keeps the other sources' hits and
names the refused one.
- **Carry from objectstack-ai#37107 (comment 7181713320)** (`knowledge-turso`): under
the token the store URL comes from settings (`knowledge.turso_url` /
`turso_auth_token`). `resolveSettingsStoreUrl` holds a saved `file:` URL
to the realpath'd `.objectstack/data/` (symlink escape, `..`, the
directory itself and the platform DB file are refused) and refuses a NUL
or other control character, all before `createClient`. `resolveStoreUrl`
refuses control characters too.
- **The saved store URL is read at `kernel:bootstrapped`, not in
`start()`** (`knowledge-turso`, fix round). The settings service answers
a saved value only once its data engine is bound, in its own
`kernel:ready` hook; a read in `start()` saw the manifest default while
the saved row sat unread, so the store opened the default file whatever
the operator had saved (`check:settings-bind-window` named it;
reproduced on a real kernel, see Verification). Under `urlFromSettings`
the adapter is now registered in `start()` with no database and answers
`SERVICE_UNAVAILABLE` 503; the plugin registers its
`kernel:bootstrapped` handler in `init()`, so it runs ahead of every
handler a plugin registers in `start()`: the knowledge service's
embedder, its reading of unmounted adapters, and the first build of
objectstack-ai#37099 find the store open. A store given `url` or `client` opens in
`start()` as before. The plugin's `optionalDependencies` keep only the
knowledge service: no ordering edge moves a `start()` read past the
settings bind.
- **Rework after contract record 7187791236 (FAIL on M1) and the seat's
REWORK note:**
- **M1, a percent-encoded control character is refused**
(`knowledge-turso`). `resolveStoreUrl` and `resolveSettingsStoreUrl`
tested the raw URL only, so a saved `file:…/k%00.db` passed both; libSQL
decodes the path it opens and its native library ends the process on the
NUL byte, at every boot. Both now read each `%XX` escape as the
character it encodes and refuse a control character in either spelling,
before anything touches the disk or the client. The check is in
`resolveStoreUrl`, so the plugin's own `url` option holds too.
- **S3, `@objectstack/knowledge-turso` is an optional dependency** of
`@objectstack/cli` and `@objectstack/verify` (it was a hard one in the
first round). Its libSQL client is a native module with an `os` / `cpu`
list; as a hard dependency it would refuse the whole CLI install outside
that list. `KNOWLEDGE_STORE_PROVIDERS.turso` and its `CapabilityExtra`
carry `optional: true`. `os serve` already warns when an extra cannot be
imported and boots on; `constructServedProviders` now does the same for
an optional extra (any other provider it cannot load is still a thrown
boot error).
- **S4, the store's file follows `OS_HOME`** (`os start --home` sets
it): `resolveKnowledgeStore` hands the store `stateDir`, and the data
directory is then `<OS_HOME>/data/`, the directory the boot keeps the
default platform database in (`resolveDatabaseStateDir`'s order). The
settings confinement moves with it, so an operator can keep the file on
the volume. Without `OS_HOME` nothing changes. New plugin option
`stateDir`; `dataDirectoryOf` and `defaultStoreUrl` take it as a second
argument. A database named by URL does not move the store (documented).
- Docs (`knowledge-rag.mdx`): where the file is, what more than one
replica means on MySQL, MongoDB or remote libSQL (one local file per
replica, each indexing only its own writes: use a shared `libsql://`
store or PostgreSQL), and an install without the libSQL client.
- Changeset: the sentence about a host-mounted service no longer
overstates (a host that mounts the service gets no store from the
runtime).
- **After the delta record 7193770862 (PASS) and the seat's note
7193780591: the auth token is checked too** (`knowledge-turso`, commit
664bd70). `turso_auth_token` is the second settings value handed to
the libSQL client. A token with a NUL byte, a line break or another
control character is refused in the plugin's one open path (`open()`),
for the saved setting and for the `authToken` option alike, before the
client is created; the store answers `SERVICE_UNAVAILABLE` with a reason
that never quotes the token. It is read as written, with no
percent-decoded reading: the client percent-decodes a URL (an
`authToken` in a URL's query is already covered by M1's check), never
this option, so `%00` in a token is three characters. Probed on the
installed `@libsql/client` 0.18.0 before the change, to know what the
check prevents: on a `file:` URL a NUL or a line break in the token
opens and answers a query (exit 0, no abort: the native open ignores the
token without a sync URL); on `http://` every request is rejected with a
catchable `TypeError` (invalid header value); on `ws://` the connection
was refused before the token was used, so that arm is unmeasured. So no
process abort was found; the check turns a failure at every call into
one refusal that names the setting. N4: the `knowledge.manifest.ts`
jsdoc now names the state directory's data directory and both spellings
of a control character.
- Settings manifest + 11 locales: the `turso_url` example path is now
`file:./.objectstack/data/knowledge.db`.
- Docs: `content/docs/ai/knowledge-rag.mdx` gains "Turning it on:
`requires: ['knowledge']`"; the old "Wiring" section is now "Wiring by
hand".
- **Skills enumeration rows only (Tier H)**, under the enumeration-row
case (ruling A on objectstack-ai#32584): the token's one `CAPABILITY_ROWS` line in
`packages/spec/scripts/lib/platform-catalog.ts` and its regenerated page
`skills/objectstack-project/references/platform-catalog.md`
(`gen:skill-refs`, no hand edit), and the bare `knowledge` token added
to the `@objectstack/service-` + token cell of the `requires:` table in
`skills/objectstack-platform/SKILL.md`. No teaching, examples or evals:
those ride objectstack-ai#37310.
- **Two ceilings, each raised by its row's measured delta and by no
more** (nothing else cut, nothing rides along):
- `skills/objectstack-platform/SKILL.md`
(`scripts/check-skills-token-ratchet.mjs`): priced text 24591 to 24603
bytes (+12), 6148 to 6151 tokens (ceil(24591 / 4) = 6148, ceil(24603 /
4) = 6151). `main`'s row is 6149, with 1 token of headroom since objectstack-ai#37568
took 2 bytes out of the file; that token is absorbed, so the ceiling
moves 6149 to 6151 (+2), pinned at the measurement. History of the
number: on the first three merges of `main` (4925039, cc38a91,
5dbcc02) the base was 24593 priced bytes and the row read 6152 (24605
bytes); objectstack-ai#37568 then landed, and after the fourth merge (758e145) the
row is re-pinned at 6151 (S5 of delta record 7196043543). The delta of
the row itself is 12 bytes throughout.
- the catalog's hand-written text
(`packages/spec/scripts/platform-catalog.test.ts`): 6902 to 6939 bytes
(+37), ceiling 1726 to 1735 tokens, pinned at the measurement. The row
was first shortened from 50 to 37 bytes ("knowledge search and its
vector store").
- **The two rulings the raise path names**, quoted:
- Ruling A on objectstack-ai#32584 (record 6819475461; maintainer, verbatim: 「同意 A」):
"a product PR that adds an authorable `defineStack()` top-level key, or
a live member of a schema symbol bound to a registered exhaustive skills
section, carries the matching skills enumeration row in the same PR.
Only that row; prose, examples and evals still go to the skills
sub-card."
- objectstack-ai#32673 letter A (record 6840575378; maintainer, verbatim: 「32843 32673
同意」): "a PR that adds a metadata key and, under ruling A on objectstack-ai#32584,
carries the matching enumeration row in a published skill may raise that
skill file's token cap by the row's measured delta, and by no more. The
PR body cites ruling A and this ruling. Nothing else in the file is cut
to make room, and no wider raise rides along."
- **Skills readings** on this head against `main` 758e145 (lines;
tokens as the ratchet prices them):
`skills/objectstack-platform/SKILL.md` 421 to 421 lines, 6148 to 6151
tokens; `skills/objectstack-project/references/platform-catalog.md`
(generated) 160 to 161 lines, 2878 to 2898 tokens; all `SKILL.md` files
together 4961 to 4961 lines; the whole shipped bundle reads 299348
tokens, of which this PR adds 23 (3 + 20).
- **`packages/cli/src/utils/boot-preparation-parity.test.ts`**:
`resolveCapabilityExtras` is a `SERVE_ONLY` entry (the declaration boot
reads a row's `extras` itself and composes no knowledge store: a store's
`init()` declares nothing, its tables are its own). Editing the file put
it in `check:test-source-alias`'s changed-file scope, so it now pays six
dynamic imports its step modules reach at collection (six module-top
side-effect imports, the gate's printed remedy).

## Tests

- `packages/verify/src/harness.required-providers.test.ts`: `requires:
['realtime','knowledge']` on SQLite boots the service + turso (not
pgvector), a record write is indexed and `search` finds it, a pgvector
source is refused 503 while boot succeeds; no token → no service and
`settings.getNamespace('knowledge')` rejects
`SETTINGS_UNKNOWN_NAMESPACE`; host-mounted service unchanged.
-
`packages/plugins/knowledge-pgvector/src/__tests__/capability-mount.live-postgres.test.ts`
(new, live cell): the token's resolution on PostgreSQL picks pgvector on
the same URL; a record write is indexed and `search_knowledge` finds it.
**It has not run in CI on any commit of this PR**: the job with a
PostgreSQL service, `temporal-conformance`, does not run on
`pull_request`, and Test Core collects the file with both cases skipped.
Its first CI run is the merge queue (the PR touches
`packages/plugins/knowledge-pgvector/**`, which is in the
`temporal_live` filter). It did run locally in the rework round, against
PostgreSQL 16.15 with pgvector 0.6.0 from the distribution's package (CI
pins pgvector 0.8.7): see Verification.
- `packages/core/src/capability-composition.test.ts`: store selection
arms (pg driver/URL, other DBs, in-memory, env fallback) and extras.
- `packages/plugins/knowledge-turso/src/__tests__/plugin.test.ts`:
`resolveSettingsStoreUrl` (NUL/control, inside, outside, symlink escape,
platform file) and the plugin never reaching a mocked `createClient`
with a refused URL. Fix round: the settings double now answers a saved
value only once bound, as the real service does, and the cases run a
boot in kernel order (`init()`, `start()`, the bind,
`kernel:bootstrapped`). New case: nothing is read and no file is made in
`init()` or `start()`, the mounted adapter answers `SERVICE_UNAVAILABLE`
/ 503 until the boot completes, then the saved file opens and the
default file is never made.
- Rework round, `plugin.test.ts`: `%00`, `%0a`, `%0A`, `%7f`, a
`file://` form and a `libsql://` URL are refused by both resolvers, with
a control (`%20` and a doubly encoded `%2500` are names, not control
characters); a saved `%00` or `%0a` URL never reaches a mocked
`createClient`; a state directory moves the default file and the
confinement.
- Rework round, `harness.required-providers.test.ts`: **a real-kernel
case for the file-database arm** (`constructServedProviders` with a
`file:` database under a temporary `OS_HOME`, a `turso_url` saved from a
`kernel:ready` handler: the store is healthy on the saved file, neither
default file is made, a record write is found by search); **an install
without the store** (the package made unimportable: the service is
constructed, the store is not, one warning); the dependency pin now
requires an `optional` store to be an optional dependency and nothing
else.
- Rework round, `capability-composition.test.ts`: `OS_HOME` is handed to
the file arm as `stateDir`, and to no other arm.
- Token round, `plugin.test.ts`: a token with a NUL byte, a trailing
line break, a CR LF or U+007F never reaches a mocked `createClient`,
through the settings door (on a `libsql://` URL and on a file inside the
data directory) and through the `authToken` option; no log line quotes
the token; controls: a JWT-shaped token and one with `%00` in it reach
the client as written.
-
`packages/services/service-knowledge/src/__tests__/knowledge-service.test.ts`:
boot reading, coded index/search refusals, the plugin hook.
- `packages/cli/test/serve-capability-identity.test.ts`: identity rows
for the service and both stores.

## Acceptance notes

- **Governed (Tier H)**: the diff touches `skills/**`, so this PR stays
draft until the maintainer's approval.
- **File surface**: the claim was widened twice. The take-over claim
(7184318627) lists what the first round measured; claim amendment
7184431271 adds the four files this fix round needed
(`packages/spec/scripts/platform-catalog.test.ts`,
`skills/objectstack-platform/SKILL.md`,
`scripts/check-skills-token-ratchet.mjs`,
`packages/cli/src/utils/boot-preparation-parity.test.ts`), and the
maintainer approved editing them in the card thread.
- **Between `kernel:ready` and `kernel:bootstrapped`** a store whose URL
is the operator's setting has no database yet: a record written by
another plugin's `kernel:ready` handler is not indexed into it (the call
answers 503). The knowledge service's own settings-configured embedder
is provided at the same phase, so a deployment without a host-registered
embedder indexed nothing in that window before either. The first build
of objectstack-ai#37099, now on `main` and merged here, builds the source after the
store has opened and so covers such rows.
- `@objectstack/knowledge-turso` is an **optional** dependency of
`@objectstack/cli` and `@objectstack/verify` (S3). On an install without
it `requires: ['knowledge']` on a non-PostgreSQL database boots with the
service and a warning, and sources naming `turso` answer 503.
- **Accepted nits, not changed** (the seat's record): N1,
`file::memory:` and an empty `wasm-sqlite:` URL take the file arm; N2,
the settings example `file:./.objectstack/data/knowledge.db` is read
from the working directory and names the project's directory, so under
`OS_HOME`, or from another working directory, it is refused with a
message naming the right directory (it fails closed; the example text
lives in the manifest and 11 locales). N3, the `ci.yml` step comment
still says three `*.live-postgres.test.ts` files where there are now
five: `.github/workflows/**` is outside this card's surface, so it is
not edited here.
- The double boot line for a source whose adapter is not mounted, and
the publish-time refusal, are carried by objectstack-ai#37479.
- **objectstack-ai#37099 (PR objectstack-ai#37439) landed first; `main` is merged here and the
first-build path re-checked.** Its after-boot build starts in the
knowledge service's `kernel:bootstrapped` handler and reaches
`getAdapter` through `readIndexState`, inside that method's own `try`.
Read on a real kernel (see Verification): a store whose URL is a saved
setting is open before the build starts (its handler is registered in
`init()`, the service's in `start()`), and the build of its source ends
`done`; a source naming an unmounted adapter is read as `unreadable`, is
not built, and the boot goes on. Such a source is logged twice at boot,
once at `error` by this PR's reading of unmounted adapters and once at
`warn` by the build pass; one line would do (carried by objectstack-ai#37479, not
changed here).
- **Merged with `main` four times** (`scripts/pm/os-regen-merge.sh`, no
rebase): at 4925039 for a GitHub conflict in the `requires:` table row
of `skills/objectstack-platform/SKILL.md` (resolved by keeping `main`'s
provider cell whole and adding the bare `knowledge` token after
`record-context`), at cc38a91 once objectstack-ai#37439 had landed (no conflict), in
the rework round at 5dbcc02 once objectstack-ai#37477 and objectstack-ai#37492 had landed (no
conflict), and at 758e145 for S5 once objectstack-ai#37568 had edited
`skills/objectstack-platform/SKILL.md` (auto-merged, no conflict). After
each, `git diff origin/main` names this PR's 38 files and nothing else;
`gen:skill-refs` and `check:generated` leave the tree clean.
- **Open PRs that will conflict with this one**: objectstack-ai#37422 in
`scripts/check-skills-token-ratchet.mjs`. Whichever lands second
re-measures the `skills/objectstack-platform/SKILL.md` row.

## Verification

First files to read, by risk:
1. `packages/plugins/knowledge-turso/src/plugin.ts`: `init()` /
`start()` / `openFromSettings` (when the store opens, and what it
answers before).
2. `packages/core/src/capability-composition.ts`:
`resolveKnowledgeStore` (which store, with what argument).
3. `packages/services/service-knowledge/src/knowledge-service.ts`:
`getAdapter` / `reportUnmountedAdapters` (the coded refusal).

Two-minute check: `pnpm --filter @objectstack/knowledge-turso exec
vitest run --maxWorkers=2 src/__tests__/plugin.test.ts`: expect 22/22,
including "refuses a percent-encoded control character too" and "reads
the settings at kernel:bootstrapped, never in init() or start()".

<details><summary>Local runs (under scripts/pm/os-verify-lock.sh): the
rework round on 806c55d, the token round on 664bd70, and what ran
again on head c25cc1a</summary>

- `pnpm install --frozen-lockfile`: exit 0. `pnpm turbo run build
--concurrency=2 --filter='./packages/**' --filter='./examples/**'`: exit
0, 85/85 tasks. `gen:skill-refs` then `check:generated`: exit 0, tree
clean.
- `pnpm --filter @objectstack/knowledge-turso test`: exit 0, 3 files,
155/155. `typecheck`: exit 0.
- `pnpm --filter @objectstack/core exec vitest run --maxWorkers=2
src/capability-composition.test.ts`: exit 0, 21/21. `pnpm --filter
@objectstack/core typecheck`: exit 0.
- `pnpm --filter @objectstack/verify exec vitest run --maxWorkers=2
src/harness.required-providers.test.ts`: exit 0, 15/15 (19.0 s of tests
locally; the header's budget is re-derived to 28). `pnpm --filter
@objectstack/verify typecheck`: exit 0.
- `pnpm --filter @objectstack/cli exec vitest run --project unit
--maxWorkers=2 src/utils/boot-preparation-parity.test.ts
test/serve-capability-identity.test.ts
src/commands/knowledge/knowledge.test.ts`: exit 0, 3 files, 143/143.
`pnpm --filter @objectstack/cli typecheck`: exit 0. The rest of the cli
suite is left to CI.
- `pnpm --filter @objectstack/service-knowledge test`: exit 0, 14 files,
452/452. `pnpm --filter @objectstack/service-settings test`: exit 0, 77
files, 1521/1521 (after objectstack-ai#37477's edits to the same manifest and
locales). `scripts/platform-catalog.test.ts` (spec): exit 0, 20/20.
- **The pgvector live cell**, as CI's step runs it:
`OS_TEST_POSTGRES_URL=postgres://postgres:postgres@127.0.0.1:5432/postgres
OS_EXPECT_LIVE_DIALECT_MATRIX=1 pnpm --filter
@objectstack/knowledge-pgvector exec vitest run live-postgres`: exit 0,
5 files, 65/65, none skipped (4 files, 59/59 before the merge of `main`
brought objectstack-ai#37492's file). Server: PostgreSQL 16.15 with the `vector`
extension 0.6.0 (the distribution's `postgresql-16-pgvector`), not CI's
pinned pgvector 0.8.7 image.
- **Ran again on the token commit 664bd70 (it touches
`knowledge-turso`, one comment in the settings manifest, the docs page
and the changeset):** `pnpm --filter @objectstack/knowledge-turso test`:
exit 0, 3 files, 156/156 (`plugin.test.ts` 22/22); its `typecheck`: exit
0; `turbo run build` of `@objectstack/knowledge-turso` and
`@objectstack/service-settings`: exit 0, 20/20 tasks. Everything above
this line was run on 806c55d and not again.
- **After the fourth merge (c25cc1a):** `pnpm install
--frozen-lockfile`: exit 0. `pnpm --filter @objectstack/spec build`,
`gen:skill-refs`, then `pnpm --filter @objectstack/spec
check:generated`: exit 0, tree clean.
`scripts/platform-catalog.test.ts`: exit 0, 20/20 (catalog ceiling 1735
unchanged). `node scripts/check-skills-token-ratchet.mjs`: exit 0,
`skills/objectstack-platform/SKILL.md` 6151 / 6151. No package test was
run again on this head.

</details>

<details><summary>Rework round: each new test turns red without its
fix</summary>

- **M1.** With the decoded read removed from `carriesControlCharacter`
(the raw test alone, as on abf337b): `plugin.test.ts` 2 failed / 19
passed, "refuses a percent-encoded control character too" and "a saved
URL with a NUL byte, or outside the data directory, never reaches the
libSQL client". Restored (byte-identical to the committed file): 21/21.
- **S2, S3, S4.** With `stateDir` and `optional: true` removed from core
and core rebuilt: `harness.required-providers.test.ts` 3 failed / 12
passed. The file-database case answers `{ ok: false }` (the saved file
under `OS_HOME` is outside the app's data directory); the missing-store
case throws the "could not load it" boot error; the dependency pin
reports `@objectstack/knowledge-turso` as not a dependency. Restored and
rebuilt: 15/15.
- **The auth token.** With the `acceptsAuthToken` check removed from
`open()`: `plugin.test.ts` 1 failed / 21 passed, "an auth token with a
control character never reaches the libSQL client, saved or given; the
reason never quotes it". Restored with `git checkout` (the committed
file): 22/22.

</details>

<details><summary>Fix round: reverse verification of the settings read
(one-off, no file kept)</summary>

A throwaway `@objectstack/verify` case booted a real kernel with
`KnowledgeServicePlugin`, `KnowledgeTursoPlugin({ urlFromSettings: true
})` and a plugin that saves `knowledge.turso_url` from its
`kernel:ready` handler (ordered after the settings bind).

- This head: the read in `start()` answers `source: 'default'`; after
the boot the store is healthy on the saved file and `knowledge.db` was
never made. Probe 1/1 green.
- `plugin.ts` restored to 969b372 (the pre-fix file), `knowledge-turso`
rebuilt (dist marker absent): the probe is red, the saved file was never
made and the default `knowledge.db` was opened; `plugin.test.ts` 3
failed / 16 passed (the two saved-URL cases and the new phase case).
- Restored from `HEAD` (blob hash equal, `git diff HEAD` empty), rebuilt
(dist marker present): probe green again.

</details>

<details><summary>The first build of objectstack-ai#37099 on a real kernel, after the
second merge (one-off, no file kept)</summary>

A throwaway `@objectstack/verify` case booted a real kernel with
`KnowledgeServicePlugin`, `KnowledgeTursoPlugin({ urlFromSettings: true
})` and an app plugin that registers an embedder, a source on `turso`, a
source naming the unmounted `pgvector`, and saves `knowledge.turso_url`
from its `kernel:ready` handler. 1/1 green; readings after the boot:

- the `turso` source: `buildRecord` is `{ trigger: 'boot', status:
'done', result: { ok: true, failed: 0 } }`, then `readIndexState`
answers `current` ("same fingerprint, same recipe hash"). The store is
healthy on the saved file and the default `knowledge.db` was never made.
- the `pgvector` source: no build record; `readIndexState` answers `{
state: 'unreadable', due: false }` with the coded refusal's text
("adapter 'pgvector' is not mounted (mounted: turso)"). Boot log: one
`ERROR` line from the reading of unmounted adapters, one `WARN` line "is
not built at boot" from the build pass.

</details>

<details><summary>Derived gates (node scripts/pm/dispatch-gates.mjs
--commands, 166 commands)</summary>

- On this head (c25cc1a, after the fourth merge and the re-pinned
row): the 37 derived commands that read skills, the ratchet, the
catalog, generated artifacts, docs or the changeset ran again, 37/37
exit 0 (among them `check-skills-token-ratchet.mjs` and its self-test,
`check:skill-docs`, `check:skill-examples`, `check:skill-refs`,
`check:skill-identifier-liveness`, `check:skill-links`,
`check:skill-top-level-keys`, `check:ratchet-remedy-authority`). The
other 129 were not run again locally on this head; CI runs them on the
merge.
- `overlap-check` before the push: `origin/main` (758e145) merges
cleanly; exit 1 only for open PR objectstack-ai#37422 (conflict in
`scripts/check-skills-token-ratchet.mjs`).
- Earlier rounds, for the record: 166/166 on the token commit 664bd70;
166/166 on 806c55d (the rework round); 166/166 on 63eba5b before the
first merges; the 56 commands a merge can reach, 56/56, at 64075a7 and
at abf337b.

</details>

## Remaining

- The ceiling-tier contract review owed by `Clause-②: yes`, then the
maintainer's approval (Tier H).
- The pgvector live cell has not run in CI on this PR (it cannot: see
Tests); the merge queue is its first CI run, and a red there ejects the
entry. Locally it passed against pgvector 0.6.0, not CI's 0.8.7.
- The seat re-scopes objectstack-ai#37479 before this lands; the re-pinned ratchet row
(S5) is re-checked by the same contract reviewer.

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

<!-- signed: repo:objectstack#5 · os-bill ·
session_01Utp6CYE8s5v1UX96GEfkcR -->

---------

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

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuKQhn8159SBVy85xb31ZjCh)_

Fixes objectstack-ai#37481

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 是什么:文档改三处。实现状态页不再把已退役的 RAGFlow 适配器(`knowledge-ragflow`)列为随仓发布的插件。
- 为什么:这个包已由 PR objectstack-ai#37477 删除,页面还写着它在,读者会以为能用。
- 出错会怎样:只改文档文字,没有代码和发布面;可直接撤回。
- 要你做的:无。

## What changes

`content/docs/releases/implementation-status.mdx`, three lines, only the
retired name is removed:

- line 311 (AI protocol table, **RAG Pipeline** row): `knowledge-memory`
/ `knowledge-ragflow` / `embedder-openai` plugins → `knowledge-memory` /
`embedder-openai` plugins.
- line 329 (Notes under that table): the `knowledge-memory`,
`knowledge-ragflow`, and `embedder-openai` plugins → the
`knowledge-memory` and `embedder-openai` plugins.
- line 446 (Phase 10 checklist, RAG Pipeline item): the same edit.

This is a docs-only PR, as AGENTS.md's Documentation Guardrails ask for
a factual error on a releases page (`content/docs/releases/` is never
edited in a code PR). No published package changes, so it carries
`skip-changeset`.

Premise, read on `main` 9609c13 before the edit: PR objectstack-ai#37477 has merged
(the card's `Blocked-by: objectstack-ai#37004` is cleared) and no `knowledge-ragflow`
package is left under `packages/plugins`.

## Why

The page told readers a retired adapter ships in this repo.

## Verification

- `git grep -n -i ragflow
content/docs/releases/implementation-status.mdx` returns nothing (exit
1), the card's Done-when.

<details><summary>runs</summary>

Head 2d895db.

`node scripts/pm/dispatch-gates.mjs --commands` derived 52 commands. The
docs and release-page families were run locally, all exit 0:
`check-adr-links`, `check-closing-keyword-parity`,
`check-doc-route-spelling --advisory`, `check-docs-section-name`,
`check-issue-citations`, `check-release-section-coverage` (plain and
`--strict`), `check-section-landing-index`, `check-comment-mask-corpus`,
and `pnpm check:` `doc-anchors`, `doc-authoring`, `doc-frontmatter`,
`docs-redirects`, `docs-single-h1`, `release-notes`,
`release-page-status`, `issue-citations`, `docs-audit-scope`,
`corpus-claim-drift`, `nul-bytes`, `role-word`, `closed-ceremony-text`,
`docs-spec-enumerations`, `skill-identifier-liveness`,
`vendor-version-stamps`, `published-readme-links`, `adr-anchors`.

NOT MEASURED locally, left to CI: `pnpm check:docs-transcript-drift`
answered exit 3 (prerequisite: `@objectstack/lint` is not built in this
container), and the remaining derived commands (spec, lint-package and
`--self-test` checker-health families) were not run, since this diff
touches none of their inputs.

</details>

## Acceptance notes

- The adapters that replaced RAGFlow, `knowledge-pgvector` and
`knowledge-turso`, both live under `packages/plugins` but are not named
on this page. Adding them is outside this card (its Done-when only
removes the retired name), so the three lists now name
`knowledge-memory` and `embedder-openai` only. A follow-up can add them
if the page should list every store.

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(not touched)
- [x] 2. Every name I added uses the casing for its kind. (no names
added)
- [x] 3. No formatter ran. `pnpm lint` was not run locally: the diff
touches no lintable source.
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset. (nothing
publishes; `skip-changeset`)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (not touched)
- [ ] 7. No hand edits to `content/docs/releases/`. Deliberately not
ticked: this is the dedicated docs-only PR that AGENTS.md prescribes for
a factual error on a releases page.
- [x] 8. Title, body and comments are in English. (the 维护者速读 summary is
the seat's Chinese summary for the maintainer)
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.

The branch is `claude/project-thread-yhu54n`, assigned by the platform
rather than the repo's `claude/issue-<n>-…` convention.

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

https://claude.ai/code/session_01L6bhgTYj1Jzqd85E3eG9Ta

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

ci/cd dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue protocol:ai security size/xl 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.

Retire @objectstack/knowledge-ragflow: package, settings option, docs and skill mentions

3 participants