Repository navigation
Description
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Filing gate: ③ maintainer-directed (topic child of #37000) · Source: maintainer (hotlong, cloud project): 「云上需要知识库,用turso」 / 「云端不应该让客户配置向量模型」, recorded on cloud#4993 comment 7218621399 · Spec: objectstack#37000 comment 7218695999
Grading: area:ai · Feature · p2 (topic) · reach: a host that provides the embedder itself (hosted cloud, cloud#5137), so its customers see no embedder fields · evidence: read on main bc17334.
Dedupe: knowledge embedder settings ai manifest test_embedder → 5 (open: #37000 parent only) · knowledge-settings-contribution embedder switch hosted → 1 (open: #37000 parent only) · knowledge hosted turso → 27 (open: #37680 — the Turso settings group's per-organization fallback, a different page; #37306 — optional adapter on knowledge_source; #37734 — reconcile; none touches the ai embedder section).
Reader: area o1-C of seat repo:objectstack#1 claims it after triage's first touch.
维护者速读
- 问题:知识库服务在设置页「AI」里自动加上向量模型(embedder)的字段和「测试向量模型」按钮;云上由平台自己提供向量模型,不该让客户看到、配置这些。
- 做什么:给知识库插件加一个开关(例如
embedderSettings: false),关掉后不加这些字段、不注册测试动作、也不再每次启动打警告。 - 谁受益:云上租户(不会误配向量模型);云端不必靠「复制一份 manifest」这种依赖初始化顺序的绕法。
- 需要你做的:无。
What
Premise re-read on main bc17334: the facts hold; the line numbers moved.
packages/services/service-knowledge/src/knowledge-settings-contribution.ts:145-148(spec: 138-147): when the servedaimanifest is the bundled one (isBundledAiManifest, defined at :82; checked at :144) or already declares the embedder keys, it registerswithAiEmbedderSection(aiSettingsManifest)(:146) and theai/test_embedderaction (:147), and setsoffered.embedder(:148). The else branch (:149-155) warns every boot that the embedder settings are not offered when theaimanifest is not the bundled one or is absent.- The function is
contributeKnowledgeSettings(:107), called fromknowledge-service-plugin.ts:539.KnowledgeServicePluginOptionsis atknowledge-service-plugin.ts:317(enableEventSyncat :340 is the neighbouring switch style).
Problem: a host that provides the embedder itself (hosted cloud, cloud#5137) must not offer the embedder_* fields or ai/test_embedder. Cloud could dodge it by registering a copied ai manifest, but that depends on plugin init order and warns on every boot.
What: a KnowledgeServicePluginOptions switch (e.g. embedderSettings: false, default on), passed to contributeKnowledgeSettings. When off: no embedder fields added, no test_embedder action registered, no warning (the else branch stays silent as well, since the host chose this).
Acceptance
- With the switch off, the
aimanifest has noembedder_*keys andtest_embedderanswers unknown action; no warning is logged at boot. - Default unchanged (switch on or omitted behaves exactly as today).
- The knowledge and Turso settings groups are unaffected.
Parent: #37000.
Activity
objectstack-fleet commentedon Nov 27, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ai · domain:server · Feature · p2 · pm:queue · size S; rationale: a maintainer-directed child of #37000 (「云端不应该让客户配置向量模型」). A plugin option hides the embedder section on hosts that provide the embedder. The filer's p2 stands. Recorded 2026-11-27T13:14Z.
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Claim: PM loop round 8 · area o1-C (epic #37000; area concurrency 8 by the maintainer 2026-11-27T11:26Z) · 2026-11-27T17:19Z
Session:
session_016WV4cwPhGV4g9p1BGQaZbPAccount:
os-elon-muskBranch:
claude/area-o1C-37955Worktree:
objectstack-issue-37955Domain:
domain:serverArea: o1-C
Seat:
repo:objectstack#1File surface:
packages/services/service-knowledge/src/knowledge-settings-contribution.ts(contributeKnowledgeSettings, the embedder branch :144-155) +knowledge-service-plugin.ts(KnowledgeServicePluginOptions:327, the call at :590) + tests,content/docs/ai/knowledge-rag.mdx/ the service README where they name the embedder section, a changeset.Container & model: S,
mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: medium (reason: S; one plugin option threaded to one branch, plus its silence pin)Clause-②: yes
Metadata-protocol: none
Responsibility: objectstack's own code,
packages/services/service-knowledge/src/knowledge-settings-contribution.ts| a host that provides the embedder itself (hosted cloud, cloud#5137) cannot keep the embedder fields andtest_embedderoff theaipage without an init-order workaround that warns every boot | hosted cloud tenants (cloud#5137)Thread-read: 7219246602
Premise: holds, read on origin/main 8d598aa —
isBundledAiManifest:82, checked :144;withAiEmbedderSectionregistered :146,test_embedder:147,offered.embedder:148;KnowledgeServicePluginOptions:327 (enableEventSync:358);contributeKnowledgeSettings(ctx, this.version, this.service):590.Serial constraints cleared: probe overlap-check (both files) against origin/main, PR #38026 (shares the plugin file) and PR #37982 (shares the contribution file): VERDICT clean exit 0. The earlier area order put this behind #37982; re-read at the maintainer's ask, #37982 touches only the Turso test action's registration in this file (2 lines), not the embedder branch, so it does not need to land first. Whichever lands second merges main.
Pre-claim lane:
packages/services/service-knowledge/**⇒domain:server.Pre-claim deps: none open; triage 7219246602 sized it S.
Prior rulings read: card thread 0 rulings (triage 7219246602).
Fold-or-serial: not folded into #37982 (different section of the page, different reader: cloud#5137).
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
os-dev-report
{ "issue": 37955, "status": "done", "branch": "claude/area-o1C-37955", "pr": "https://github.com/objectstack-ai/objectstack/pull/38033", "head": "abb67d175307039f877bb1d66b2e54a24ec41571", "session": "session_016WV4cwPhGV4g9p1BGQaZbP", "premise_still_valid": true, "summary": "KnowledgeServicePluginOptions gains embedderSettings (default true), threaded to contributeKnowledgeSettings as a new optional fourth argument (KnowledgeSettingsContributionOptions, type-exported). false: no embedder_* field or embedder group joins the ai page, ai/test_embedder gets no handler (answers what an undeclared action answers), and the else-branch boot warning is silent too; omitted/true is the old branch unchanged; knowledge page, its actions and Setup entry unaffected. One sentence in content/docs/ai/knowledge-rag.mdx; patch changeset carrying Clause-②: yes / Metadata-protocol: none (copied from the claim). The package README does not name the embedder section, so it is untouched.", "tests": "New pins: a top-level describe in knowledge-settings-contribution.test.ts (real LiteKernel boots with embedderSettings false/true/omitted and a bare kernel) and three cases in knowledge-settings-host-ai.test.ts (warn spy; bundled page, host page with keys, host page without keys, no ai page). LOCAL RUN: NOT MEASURED, reason: the shared verify lock never granted a turn (seven 540s acquisitions under slot so1C-37955-verify, each VERDICT queue-timeout exit 99; holder pid 10811, a sibling seat's issue-37307 dogfood.sh, held 2961s at the last read, earlier pid 18465 another dogfood build). An unlocked two-file vitest run without the build closure failed at module resolution (@objectstack/metadata-core has no dist), i.e. never reached the tests. Ablations (off-branch never taken; plugin not threading the option) scripted but NOT MEASURED for the same reason. CI at abb67d1753: Test Core shards 2,4,7,8,9,10 success, 1,3,5,6 in_progress at report time.", "gates": "dispatch-gates --commands at abb67d1753 (repo objectstack-ai/objectstack): 100 commands derived, all executed unlocked on a loaded box (load ~7); the captured tail shows check:query-options-erasure and check:type-check-debt exit 124 (my 300s timeout, NOT MEASURED) and check:sourcemap-no-sources-content exit 3 (no dist built, NOT MEASURED); earlier lines of the loop output were truncated by my tail, so the local subset reads NOT MEASURED as a whole beyond those; --ran reconciliation not run. overlap-check --pr=38026,37982 at abb67d1753: VERDICT clean exit 0. pre-push commit-card-trailers: pass. CI at abb67d1753: Lint & Repo Gates success, TypeScript Type Check success (Type Check workspace/source/consumer/debt ledger all success), Build Core success, Check Changeset success, Governed Surface Queue Guard success, Dogfood Regression Gate success, Live E2E UI success, Test UI success, Spec property liveness success, PR-body guards success, Test Core in_progress (6/10 shards success, 4 running).", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — git push (branch); fleet-write relay pr_create objectstack-ai/objectstack (POST /repos/objectstack-ai/objectstack/pulls draft + POST issues/38033/assignees os-elon-musk, read-back identical); post-stamped comment on #37955 (this report)", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [], "deviations": "Local test, typecheck and ablation readings are NOT MEASURED (verify lock saturated by sibling dogfood runs for ~75 minutes); delivered on CI readings per the dispatch's allowance. PR body opens with the seat signature line, then Fixes #37955, as the dispatch ordered." }objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
os-dev-report addendum: local measurement at abb67d1 (head not moved)
Under os-verify-lock (VERDICT command-exit 0, held 269s, shared box):
@objectstack/service-knowledge^...: exit 0embedderSettings: falsepins (3 unit, 2 kernel)git status --porcelainempty after the run, HEAD abb67d1objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Close-out · area o1-C · 2026-11-27T19:26Z
Delivered by PR #38033 (merged 0ea3093 at 2026-11-27T19:24Z). The dev's ablation addendum (comment 7226138025: A1 and A2 both red) shows the pins bite, so no pin follow-up is owed. A host that provides the embedder itself (cloud#5137) can now pass
embedderSettings: false. Nothing remains on this card;pm:dispatchedremoved with this comment.