Repository navigation
Description
repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb
Filing gate: ② a decision only the maintainer can make (whether to build it). Source: fleet — raised by the decision thread that ruled #38368's four points (record 7248214179 on #38368, its "Not ruled" list: "Whether a not-enabled deployment needs a command to drop a leftover index (#38369 refuses os knowledge rebuild in that state): noted in the analysis, not asked, no card filed").
Grading: area:ai · Feature · p3 (fleet-sourced Feature) · reach: a self-hosted deployment that built knowledge indexes, then removed its embedder or store settings · evidence: read on main — the adapters' dropSource exists (packages/plugins/knowledge-memory/src/index.ts, knowledge-pgvector/src/pgvector-adapter.ts, knowledge-turso/src/turso-adapter.ts) and the service calls it only for a removed source (packages/services/service-knowledge/src/knowledge-service.ts, the drop path near its dropSource doc comment); packages/cli/src/commands/knowledge/ holds status.ts and rebuild.ts only.
维护者速读
- 用户能看到什么变化:关掉知识检索(删掉嵌入参数或存储)的自建部署,可以用一条命令清掉存储里留下的旧索引;今天没有办法。
- 为什么做:按 ADR-0161 dated note: a mounted knowledge service is enabled by configuration; until then its sources are held and not served #38368 的裁定,未启用时不碰索引,旧索引里会留下条目,直到重新启用后的每日对账;永远不再启用的部署就一直留着。
- 出错会怎样:不做的话只是存储里多占空间、留着已删数据的条目,期间没人能搜到;做的话误删可以重建恢复。
- 要你做的:决定做不做(推荐暂不做,等真有部署提出)。
What (if built)
An operator command, for example os knowledge drop [SOURCE], that calls the adapter's dropSource for held sources on a deployment whose knowledge service is mounted but not enabled (the #38368 note's state). It needs the store mounted and no embedder; it is refused with a reason when the store is not reachable.
Four axes
- Real business need. Measured: no deployment or example turns knowledge off after building an index today; the state itself lands with service-knowledge: a self-hosted deployment with no embedder holds its knowledge sources without serving them, and lists no search_knowledge #38369. The leftover is invisible (nothing searches it) and is removed by the reconcile if the deployment enables again. The only pull is a deployment that disables knowledge for good and cares about the store's size or about deleted rows' text staying in it.
- Long-term soundness.
dropSourceis already the contract member (ADR-0161 K8 item 4); a command is a thin reader of it, no new member. - Preventing AI mistakes. Neutral: it is an operator action, not metadata an agent writes.
- Startup focus. Recommendation: not now. Re-open when a deployment asks, or fold into the first operator card that touches
os knowledge.
Reader: seat repo:objectstack#5, area o5-ai37000, if the maintainer rules build; otherwise it closes not planned with the ruling.
Related: #38368 (the note), #38369 (refuses os knowledge rebuild while not enabled), #37000.
Dedupe: knowledge dropSource 14 (open: #37000 only) · knowledge leftover index 24 (open: #38368, #38369, unrelated #38150 #37391) · knowledge purge index command 36 (none on this) · os knowledge drop 352 (none on this).
Activity
objectstack-fleet commentedon Nov 29, 2026
triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t
Triage: lands in
packages/cli/src/commands/knowledge/(a drop command besidestatus.tsandrebuild.ts, calling the adapters' existingdropSource) · area:ai · domain:server · Feature · p3 · needs-user-decision kept (a decision card is never moved by triage) · size S. Rationale: a deployment that turns knowledge off has no way to drop the index its store still holds. It was raised from the "not ruled" list of #38368 and is fleet-sourced. It is not a topic child and not pre-authorised, so it is not dispatched and goes on triage's weekly Feature list for the maintainer to pick, fold into a topic or close. The card itself recommends "not now".Recorded 2026-11-29T00:50Z.
objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#5 · os-project-manager · session_01FEkQ5mr5AivC4JTuX2FB6Q
Decision analysis · 2026-11-29T05:07Z · #38416, whether to build an operator command that drops the index a store still holds after a deployment turns knowledge off. Written by the decision thread opened for seat repo:objectstack#5. ⛔ Not a claim and not a ruling: the maintainer rules.
维护者速读
Background
Card #38416 (p3, Feature, area:ai, domain:server, not a topic child) was filed by seat repo:objectstack#5 from the "Not ruled" list of ruling record 7248214179 on #38368: a not-enabled deployment has no command to drop a leftover index, because #38369 refuses
os knowledge rebuildin that state. The card itself recommends "not now". Triage (7248395595) kept it as a decision card for the maintainer to pick, fold or close.Governing text
dropSourceis already a contract member. A drop command reads it; it adds no member, so the closed list (K8 rule 5) is not touched.Protocol statement: no option edits a protocol. B adds a CLI command.
Premises, each with its re-check (read on main
d89d3e23)grep -n "async dropSource" packages/plugins/knowledge-*/src/*.ts(memory, pgvector, turso).grep -n "dropSource" packages/services/service-knowledge/src/knowledge-service.ts(dropMetadataSource). While not enabled the service calls no store (the ruled point 3), so removing the source in that state will not drop it either once service-knowledge: a self-hosted deployment with no embedder holds its knowledge sources without serving them, and lists no search_knowledge #38369 lands.statusandrebuildonly.ls packages/cli/src/commands/knowledge/.grep -n -i "not enabled" packages/cli/src/commands/knowledge/*.tsprints nothing. The state this card is about does not exist in a release today.The question
A deployment that built a knowledge index and then turned knowledge off for good keeps the old index, including text of rows deleted since, with no command to remove it. Is a removal command built now, before any deployment is in that state?
Options, real cost, effort
status,rebuildand their service side together. A command that deletes data, so an L1 read of the confirmation and refusal paths.Business meaning
Four axes
os-decision-facets
① Long-term fit: neutral on timing; the drop is a thin reader of an existing contract member whenever it is built, and waiting leaves nothing to undo.
② Real pull: zero; the not-enabled state is not released and no deployment turns knowledge off after building an index.
③ AI error surface: neutral; an operator command, recoverable by a rebuild.
④ No spread: A adds nothing; B adds a destructive command with no user and a standing upkeep cost.
Prior rulings read: dropsource,leftover,knowledge,drop → 23 hits; ADR-0027 Decision §12, ADR-0041 Decision §5, ADR-0056 D4, ADR-0057 D11, ADR-0061 D6, ADR-0062 D8, ADR-0064 Decision §3, ADR-0067 D5, ADR-0078 Decision §6; thread: none; repo: objectstack-ai/objectstack
Also read, by hand: ADR-0161 K8 note of 2026-11-28 (point 3 and "A known gap"), ruling record 7248214179 on #38368, #38369's body, triage 7248395595. None of the named ADR decisions is about a knowledge index; they match on "drop" or "knowledge" only.
Recommendation
A, not now. End state: the operator kit gains a drop when a deployment needs one; until then the accepted gap in ADR-0161 describes exactly what is left behind and what removes it. Zero pull, so the rule is not to spread.
Not taken. B: a command for a state no release has and no deployment is in.
Self-check: ① alone is neutral on timing; ②③④ flip it: no, ② and ④ set the timing to not now.
Confidence gaps:
statusandrebuildanswers) is still open when a deployment asks, the command could ride it; that is a packaging choice for the seat then, not part of this ruling.After the ruling
pm:blockedwithBlocked-by: #38369, and the area dispatches it when service-knowledge: a self-hosted deployment with no embedder holds its knowledge sources without serving them, and lists no search_knowledge #38369's last PR merges.Related: #38368 (the note), #38369 (the not-enabled state), #37000 (topic), PR #37439 (the existing operator commands).
objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#5 · os-project-manager · session_01FEkQ5mr5AivC4JTuX2FB6Q
Ruling: letter A · maintainer 「A 暂不做,关单」 · recorded 2026-11-29T06:01Z
os-project-manager) tapped option A on the decision card at 2026-11-29T06:01:03Z. The card's question, as he read it: 「定关掉知识检索后清理旧索引的命令做不做」. The option's label, verbatim: 「A 暂不做,关单」. Its one-line consequence on the card, verbatim: 「卡片关闭,有部署提出时重开或并进下一张运维命令的卡;关着时旧索引没人能搜到,重新启用后每日对账会清掉。」 He added no condition.cmsg_01TenzsRopZj4jMbvjX8uz1XDhnaLQdueQRRJsU18ywLAR, decision cardcmsg_01TenzsRopZj4jMbvjX8uz1XERmyp3KcuifFiE8pu7PAsP, option index 0. Analysis: comment 7251068795 on this card.objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr
Closing record · not planned · 2026-11-29T06:06Z