Repository navigation
fix(settings)!: retire @objectstack/knowledge-ragflow and the Knowledge page's RAGFlow adapter option - #37477
Conversation
…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>
📓 Docs Drift CheckThis PR changes 5 package(s): 19 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 7 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 180 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # 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
|
…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>
|
repo:objectstack#5 · os-bill · session_01Utp6CZmwqAVSYHM1nQUDTq Final green head:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head cb640fb · 2026-11-26T09:08Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: 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 Code read outside the diff, not reviewed: ① Derived judgmentsWhat the diff removes or narrows, read from the tree at the head:
② Semver level
③ Boundary flags
Dogfood battery. Verified from the os-dev report, not from CI. Card comment 7187346085 (by 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). Serial order. #37442 (open, draft, head ④ Design judgmentS1 (should-fix) — the changeset holds No must-fix. Per
Implementing files:
Nits, none of which moves correctness or the contract:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
…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>
|
repo:objectstack#5 · os-bill · session_01Utp6CZmwqAVSYHM1nQUDTq Final head (fix round) · 2026-11-26T10:13ZHead-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: Delta review from 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 ① Derived judgmentsUnchanged from the first round; the delta moves no code, schema, skill, workflow or ADR text.
② Semver level
③ Boundary flags
Dogfood battery, pinned to this head. The newest os-dev report on the card, comment 7188986325 (by 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. Serial order, carried. #37442 is still open at 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 judgmentS1: 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
Implementing files, unchanged by the delta: Nits, all carried as accepted deviations (the seat listed them in 7187921659):
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 维护者速读
席位意见:ACCEPT。收窄范围完整声明,迁移路径清楚,删除的代码都已无人引用。 席位核对Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Security label: |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Approval requested (Tier H: |
Requested by Bill · project thread
Fixes #37004
Clause-②: no (narrowing) — narrowed:
PUT /api/settings/knowledgerefusesadapter: 'ragflow'(400 SETTINGS_VALIDATION, field codeinvalid_option) and refusesragflow_base_url,ragflow_api_keyandragflow_default_dataset(400 UNKNOWN_KEY), where it stored all four;POST /api/settings/knowledge/testanswersadapter = ragflowas an unknown adapter (400 SETTINGS_ACTION_FAILED), where it answered a form checkMetadata-protocol: none
Skills-docs: updated here —
skills/objectstack-ai/SKILL.mdand its eval case 3 teach thepgvectoradapter where they taughtragflow;content/docs/protocol/knowledge.mdx,content/docs/ai/knowledge-rag.mdxandcontent/docs/ai/index.mdxname the adapters this repository builds.维护者速读
What changes
Ruling 7134290286 on the decision card (#36839), R1: the package is retired whole, in one PR, as a patch.
packages/plugins/knowledge-ragflow/is deleted (9 files), with its.changeset/config.jsonfixed-group entry and itspnpm-lock.yamlimporter.knowledge.manifest.tsloses theragflowoption, the RAGFlow group, its three keys and theragflowbranch of "Test connection". Manifestversiongoes 2 → 3 (the spec's "increment when keys are renamed/removed"). The strings go from all eleven locale bundles.content/docs/ai/knowledge-rag.mdx,content/docs/ai/index.mdx,content/docs/protocol/knowledge.mdx,content/docs/plugins/packages.mdx,CONTRIBUTING.md, theservice-knowledgeREADME and package description, theembedder-openaiREADME,packages/spec/llms.txt(78 → 77 published packages).knowledge-source.zod.ts,contracts/knowledge-adapter.tsandcontracts/knowledge-service.ts. No schema, no tombstone, no ADR-0087 conversion:KnowledgeSource.adapterstays a free string.skills/objectstack-ai/SKILL.mdand eval case 3 teachpgvector(H3 below)..github/workflows/lint.yml.Skill size
skills/objectstack-ai/SKILL.mdlinesskills/objectstack-ai/SKILL.mdtokens (ceiling 6801)SKILL.mdlinesNet lines in
skills/**: +0. The eval fixture is measured, not ratcheted (3008 tokens after).git grep -i ragflowafter this PRgit grep -i ragflow -- ':!**/CHANGELOG.md' ':!content/docs/releases/v17/**' ':!docs/audits/**'answers 11 files. Each one:packages/services/service-settings/src/manifests/knowledge.manifest.tsversion: 3packages/services/service-settings/src/manifests/knowledge.manifest.test.tscontent/docs/protocol/knowledge.mdx.changeset/37004-retire-knowledge-ragflow.md.changeset/33933-knowledge-settings-with-service.md.changeset/37292-skill-knowledge-split.mdCHANGELOG.md(root)**/CHANGELOG.mddoes not match the root filedocs/adr/0161-…docs/adr/**stays, apart from one anchor fix (Acceptance notes)content/docs/releases/implementation-status.mdxscripts/test-shard-timings.jsonscripts/partition-test-shards.mjsMeasurement (a): the settings page for an environment whose stored adapter is
ragflowMeasured on the settings service with the old manifest registered first (rows written through the door), then this PR's manifest registered over it.
GET /api/settings/knowledge200. Manifestversion3, adapter optionsmemory,turso.values.adapteris{"value":"ragflow","source":"global"}: served as stored. Value keys served:adapter,turso_url,turso_auth_token,chunk_target,over_fetch,enforce_rls. Noragflow_*key is served; the three stored rows are still in the storePOST /api/settings/knowledge/test(stored values)400 SETTINGS_ACTION_FAILED, "Unknown adapter: ragflow"PUTchunk_target: 900200PUTadapter: 'ragflow'400 SETTINGS_VALIDATION, "Adapter must be one of: memory, turso. Received 'ragflow'.", field codeinvalid_optionPUTragflow_api_key400 UNKNOWN_KEYPUTadapter: 'memory'200; the next read servesmemoryIn the Console (the real
SettingsFieldrendered in jsdom, not a browser): the Adapter select shows nothing for the storedragflow, neither a label nor the "Select…" placeholder.tursoshows 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_keyrow and itssys_secretrow. 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
KnowledgeServicePluginbooted on a kernel with one object source declaringadapter: 'ragflow'and no adapter plugin.infoline:[knowledge] source registered: kb (adapter=ragflow, kind=object). No warning, no errorsearch[], withwarn: [knowledge] source 'kb' references unknown adapter 'ragflow'; skipping.searchWithRefusals{"hits":[],"refused":[]}, same warning. The source is not reported as refusedindexDocument,reindexSourceError(no code, no status):[knowledge] unknown adapter 'ragflow'. Registered: []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:version3 with absence pins for the three keys and the group (non-vacuity:turso_urlis there); adapter options are exactlymemory,turso; one new pin, "answers a stored retired adapter (ragflow) as a failure, complete old keys or not", with a passingtursocall beside it.settings-visibility-declaration.pin.test.ts: the predicate count goes 87 → 83 (the fourvisiblepredicates of the RAGFlow group and its keys).knowledge-settings-default-absent.pin.test.tsandservice-knowledge'sknowledge-settings-contribution.test.ts: the fixture adapter isturso.ragflow-adapter.test.ts) goes with the package.Run under the verify lock on
d3692d0c(after the merge ofmainata46efa8c):pnpm --filter @objectstack/service-settings testpnpm --filter @objectstack/service-knowledge testpnpm --filter @objectstack/embedder-openai testtypecheckofservice-settingsandservice-knowledgeAfter the second merge of
main(cc38a91a), oncb640fb2:service-knowledgeTest Files 14 passed (14), Tests 448 passed (448);service-settings77 files, 1521 tests, unchanged;service-knowledgetypecheck exit 0.No ablation run: the change deletes code and edits prose. The one behaviour that moves, a stored
ragflowreaching "Test connection", has its pin above.Acceptance notes
lint.ymlpremise).DEBTandTEST_DEBTinscripts/check-type-check-coverage.mjsare both{}onmain, so the ledgered closure the step's comment describes was already empty before this card. The comment now says so. The step'srun:line is unchanged; whether the step still earns its place is a workflow question outside this card.adapter: 'pgvector'with nosplitkey. Dropping it would lose the only case covering an object source withwhere,metadataFieldsandrefresh; the in-memory adapter is already case 9.main, nearly all of it the deleted package and its lockfile entries. That is over the 3000-line threshold for a human merge, on top of the governed paths (skills/**,.github/workflows/lint.yml).not-required (runtime-export-retired @objectstack/knowledge-ragflow#*), the disposition ADR-0087 D9 gives a published package deleted at HEAD, with one FROM line naming the package. It wasno-migration-prescription, which refuses a note that carries a prescription. The settings half's argument sits in the marker's reason.check-adr-0087-registrationon78fff74e: exit 0, "verified: @objectstack/knowledge-ragflow#* (package)".adapterConfigrow) named a symbol anchor in the deleted package'ssrc/index.ts, andcheck:adr-symbol-anchorsrefuses an anchor with no tracked file. The cell now names the function and the retired package in prose. No decision text is touched. Agreed with the zone.mainatcc38a91a, no conflict). Its first-build callout incontent/docs/ai/knowledge-rag.mdxlisted RAGFlow among the persistent adapters; that one word is removed here. feat(core): requires knowledge mounts the knowledge service and one vector store #37442 (same zone) is still open:overlap-checkagainst its head andmainanswers clean atcb640fb2. Whichever lands first, the other mergesmainonce. skills/objectstack-ai and the MCP authoring contract teach knowledge_source as metadata: name, an explicit content list, no wildcard, the retired keys, and a create seed #37310 (same zone) rewrites cases 3 and 9 ofskills/objectstack-ai/evals/skills-tools-knowledge.json, the file whose case 3 this PR rewrites; it is coordinated with this card and comes after it.content/docs/releases/implementation-status.mdx(release-owned) andscripts/test-shard-timings.json(generated). Both agreed with the zone.content/docs/plugins/packages.mdx: the Plugins row swapsknowledge-ragflowforknowledge-pgvectorandknowledge-turso, which it did not list, so its count goes 17 → 18.embedder-openaiREADME: its "no knowledge adapter consumes anIEmbedder" paragraph was already untrue (pgvector and turso take one) and is rewritten.packages/spec/llms.txt: 78 → 77 published packages (check:llms-txtcounts the workspace)..changeset/33933-…says clearing the key from Setup removes the stored RAGFlow API key. With the key undeclared that door is gone; this PR's changeset says so and gives the manual deletion. The earlier note is not edited.fileandhttpsource kinds; no adapter in this repository ingests them.ragflow) #37480, one card for both.lint.ymlstep with an empty premise: filed lint.yml: the step whose ledgered-closure premise named knowledge-ragflow now guards an empty ledger (DEBT and TEST_DEBT are both {}) #37482.adapterConfigin v1 "only while an adapter reads it", and after this PR no adapter in the tree does: no card; 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 already carries that removal.Verification
Read first (by risk):
packages/services/service-settings/src/manifests/knowledge.manifest.ts: the removed handler branch. A storedragflownow falls through to the last line,Unknown adapter.skills/objectstack-ai/SKILL.md: three small hunks in Knowledge Sources (RAG); the published text an agent follows..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 --commandsover the 50 changed paths derives 175 commands.--ran: 175 derived, 175 run, 0 NOT-MEASURED, 0 UNRUN, every one exit 0.main, the derivation is the same 175; the 39 that read docs, skills or changesets were run again oncb640fb2, all exit 0. The rest were not repeated (CI runs them).78fff74e: the 18 derived gates that read changesets, ADR anchors or citations were run again, all exit 0.check-skills-token-ratchet(the first wording putSKILL.md13 tokens over its ceiling; trimmed in the same file to 6798, its count before),check:llms-txt(78 → 77 published packages) andcheck:adr-symbol-anchors(the ADR-0161 anchor).check-plugin-teardown-shape --self-testneeds 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.turbo run buildoverpackages/*andpackages/*/*): 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
d3692d0c919f690def1ec29b4021f69a1b3c8932. Closure built withpnpm turbo run build --filter=@objectstack/dogfood(73 of 73 tasks), thenpnpm --filter @objectstack/dogfood testunder 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.main, so the battery was run again oncb640fb2, same commands:VERDICT command-exit 0, same counts.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