Repository navigation
Description
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Filing gate: ③ maintainer-directed (topic child of #37000), split from card #37306 by seat repo:objectstack#1 so #37306 ships items 1, 2, 3 and 5 on the critical path · Source: topic #37000; card #37306 item 4 · Spec: dev report on #37306, comment 7220234733 (open question 1).
Grading: area:ai · Feature · p2 (topic) · needs-user-decision: the built behaviour departs from both of the card's options, so it is a behaviour ruling (routed to a Fable decision pass by the seat) · reach: an author who saves the first knowledge_source at run time (Studio, PUT /meta/knowledge_source, the MCP draft save) on a deployment that booted with no knowledge service · evidence: measured (dev report 7220234733).
Dedupe: split by name from #37306; is:issue knowledge first item saved runtime → #37306 and #37000 only.
Reader: area o1-C of seat repo:objectstack#1 claims it once the ruling is on this card.
维护者速读
- 问题:部署启动时没有挂知识检索服务,作者在运行中保存了第一份知识源,这份知识源会怎样?原卡给了两种做法(不重启就挂上,或下次启动后生效并在保存时提示),但现在的内核两种都做不到:启动后不能再挂服务,而启动时又是先组服务、后读元数据。
- 开发做了第三种(A):知识源保留但不生效;保存时提示一次「需要在应用里加
requires: ['knowledge']并重启」,每次启动也打印同样的提示。 - 另两种:B 在启动前先读一遍元数据库,下次重启自动挂上(工作量 L);C 内核支持启动后热挂服务(要改内核生命周期,需 ADR,工作量 XL)。
- 需要你做的:选 A / B / C。
Card #37306 item 4, verbatim
- The first item saved at runtime. State, and pin, what happens when the first
knowledge_sourceis saved at runtime on a deployment that mounted no knowledge service at boot: mounted without a restart, or served after the next boot with a stated message at save. Row 3a's boot line ("an item but no knowledge service") changes to match.
Acceptance line carried from #37306: "The first item saved at runtime on a deployment with no service behaves as item 4 states, pinned."
Dev's open question 1 (report 7220234733), verbatim
Item 4: what does a knowledge_source saved at run time, on a deployment that mounted no knowledge service, do? The card lists 'mount the service' or 'refuse the save'. Neither can be built today: the kernel refuses use() after bootstrap, and serve/verify compose services before the metadata store is readable, and refusing the save would block authoring ahead of a restart.
Seat correction: the card's second option is not "refuse the save". It is "served after the next boot with a stated message at save". Option A is narrower than that, because the item mount reads the stack and not the metadata store. A runtime-saved item is therefore not served after a plain restart; the author must also add requires: ['knowledge']. So A departs from both of the card's options.
Options
- A (built on knowledge_source: adapter becomes optional (the deployment's store), and a knowledge_source item mounts the knowledge service #37306's branch, held back from its PR): keep the item, do not serve it, warn once at save naming
requires: ['knowledge']plus a restart, and repeat the remedy in every boot line. Further cost: none. Effort: done; the code is kept for this card. - B: a pre-boot read of the platform metadata store in
os serve/bootStack, so a saved item mounts the service at the next restart withoutrequires. Cost: a second metadata read path before kernel boot, with tenancy and driver resolution duplicated outside the kernel. Effort: L. - C: a kernel hot mount of a capability after bootstrap. Cost: a kernel lifecycle contract change (ADR level), and start-after-ready semantics for every service. Effort: XL.
Dev and area recommendation: A. It is honest about the restart, costs nothing more, and forecloses neither B nor C.
Until ruled, row 3a's boot line and behaviour for "an item but no knowledge service" stay as they are on main.
Activity
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs
维护者速读
requires: ['knowledge']并重启,再保存)。系统自己的写入(装包、种子、迁移)照常通过,启动时的提示保留。Ruled: D — maintainer Elon (os-elon-musk), decision card in this project's #37983 decision thread, option index 0 tapped at 2026-11-27T14:12:00Z, option text verbatim 「D 拒绝保存并说明」「保存当场失败并显示原因和修法:先在应用配置里加 requires: ['knowledge'] 并重启,再保存。小改动,未实现。」 The other options on the card were A (as built), B and C as this card states them. D was added by the decision thread's analysis, read by the seat. Freshness gate: the card had no comments at recording; nothing changes the option set.
Why D, from the analysis (ADR-0078 §1: a declaration that never takes effect is an error; §4: boot warns, does not refuse): the author learns at the save, not from a server log the Studio or MCP author never sees; the three save doors already call one function (
authoredKnowledgeSourceRefusal,packages/metadata-core/src/knowledge-source-save-admission.ts), which already tells "no knowledge service registered" apart; the author's cost equals A's (one config line and one restart), only ordered before the save, and the save then takes effect at once; B and C stay open (they would turn the refusal back into an accept).Execution:
knowledge_sourceis refused at each door that saves one (PUT /meta/:type/:nameon both transports, the MCP draft save) with a coded refusal (ADR-0112) whose message names the reason and the remedy (requires: ['knowledge']in the stack, then restart). Pin each door.isSystem: package install, seed, migration) are not refused. Row 3a's boot line for "an item but no knowledge service" stays and names the same remedy; the A code saved onclaude/area-o1C-37306-item4/ project fileepic-37000/patches/37306-item4.patchis the source for that line, not for the kept-and-inert save path.mainaccepts: the PR declares the narrowing asClause-②requires and lands as Tier H through seat repo:objectstack#1 (L1 + contract review on the same head, seat record, authorised approval).content/docs/ai/knowledge-rag.mdxandcontent/docs/protocol/knowledge.mdxsay a source is saved only on a deployment that mounts the knowledge service.packages/spec/src/kernel/platform-capabilities.ts:82, "Requested, never always-on"; ADR-0161 K8 item 12).State:
needs-user-decision→pm:queuein this stroke, for areao1-Cto claim; overlap-check against #37306's PR before the first push.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Claim: PM loop round 6 · area o1-C (epic #37000; area concurrency 8 by the maintainer 2026-11-27T11:26Z) · 2026-11-27T14:14Z
Session:
session_016WV4cwPhGV4g9p1BGQaZbPAccount:
os-elon-muskBranch:
claude/area-o1C-37983Worktree:
objectstack-issue-37983Domain:
domain:serverArea: o1-C
Seat:
repo:objectstack#1File surface:
packages/metadata-core/src/knowledge-source-save-admission.ts(theservice === undefinedbranch, today an accept) + its test; door pins inpackages/rest/src(PUT /meta/:type/:name) andpackages/runtime/src/domains/(meta.tsPUT on the other transport,mcp-authoring.tsdraft save); row 3a's boot line for "an item but no knowledge service" inpackages/services/service-knowledgeor the runtime, text only, sourced fromepic-37000/patches/37306-item4.patch;content/docs/ai/knowledge-rag.mdx,content/docs/protocol/knowledge.mdx; a changeset.Container & model: M,
mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: high (reason: M; a new save refusal pinned at three doors on two transports, with the system-write and non-platform-service accepts held)Clause-②: no (narrowing)
Metadata-protocol: narrowed
Responsibility: objectstack's own code,
packages/metadata-core/src/knowledge-source-save-admission.ts| a non-systemknowledge_sourcesave on a deployment with no knowledge service registered is accepted and never takes effect | Studio, REST and MCP authors who never see the server logThread-read: 7220511579
Premise: holds, read on origin/main 57ab087 —
authoredKnowledgeSourceRefusalreturnsundefined(admit) whenresolveKnowledgeService()answersundefined(:99-104, the module doc :33-34 says "nothing loads the item there");isSystempasses at :96; the doors calling it arepackages/rest/src/meta-item-write-routes.ts,rest-server.ts,packages/runtime/src/domains/meta.ts,mcp-authoring.ts,packages.ts.Serial constraints cleared: #37306 (this area, PR opening, ranked first by the seat) carries the deployment's-store mark and must land first if the two collide; the dev runs overlap-check against #37306's branch/PR before the first push and merges main after it lands.
Pre-claim lane:
packages/metadata-core/**,packages/rest/**,packages/runtime/**⇒domain:server.Pre-claim deps: ruling 7220511579 (maintainer D); none open besides #37306's order.
Prior rulings read: card thread 1 ruling (7220511579: D, execution items 1-5; B, C and always-on out of scope).
Fold-or-serial: not folded into #37306 — the seat split item 4 off so #37306 ships on the critical path; a service registered without
admitAuthoredSource(not the platform's) keeps today's accept, as only "no knowledge service registered" is ruled.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
os-dev-report
{ "issue": 37983, "status": "blocked", "branch": "claude/area-o1C-37983", "pr": "https://github.com/objectstack-ai/objectstack/pull/38013", "session": "session_016WV4cwPhGV4g9p1BGQaZbP", "premise_still_valid": true, "summary": "Ruling D items 1 and 3 are on draft PR #38013 (head dd50936527): authoredKnowledgeSourceRefusal now refuses a non-system knowledge_source save when no knowledge service is registered, 503 SERVICE_UNAVAILABLE (chosen by the ADR-0112 status table and the module's and knowledge service's existing codes; justified in the PR), with a message naming the item, the reason and the ordered remedy (requires: ['knowledge'], restart, then save). isSystem and a registered service without admitAuthoredSource keep the accept; module doc updated; each door pinned (REST PUT, dispatcher PUT, MCP draft save) plus the package duplicate door, which asks the same predicate and now refuses too (open question). A registered ADR-0087 semantic entry and a BREAKING changeset carry the narrowing. BLOCKED on #37306 for items 2 and 4 only: the boot-line text (packages/objectql/src/knowledge-source-unserved.ts + test) and the two docs pages are written and committed locally but conflict textually with claude/area-o1C-37306 on all four files (merge-tree probe, exit 1; the pushed head probes clean, exit 0, and overlap-check vs open PRs is clean). #37306 has no PR yet, so per the order that commit is held off the head and saved as project file epic-37000/patches/37983-held-bootline-docs.patch; resume = after #37306 lands, merge origin/main, re-apply the patch onto #37306's text (its UNSERVED_REMEDY const already matches), add the objectql line back to the changeset, re-run objectql test, dogfood once on that final head. Note: claude/area-o1C-37306 and -item4 both still point at fa2b5387, which still carries the item-4 kept-and-inert save path.", "tests": "All builds/tests through os-verify-lock, VERDICT command-exit 0 each round. metadata-core: pnpm test exit 0, typecheck exit 0 (head c63946d086, package unchanged since). rest (4 files: meta-write-door-capability-enumeration, meta-type-write-capability, rest-server-meta-org-scope-url-spelling, rest-server-meta-write-org-scope): Test Files 4 passed, Tests 161 passed; typecheck exit 0. runtime (10 files incl. meta-save-capability-gate, mcp-authoring, packages-knowledge-source-gate, meta-type-write-capability-parity, meta-write-org-scope): Test Files 10 passed, Tests 296 passed; typecheck exit 0 (head dd50936527). First run on c63946d086 was red on 5 collateral suites saving knowledge_source with no knowledge service (the ruled refusal) -> their harnesses now mount an admitting knowledge service; two door-level isSystem cases removed (inbound HTTP never carries isSystem; metaTypeWriteRefusal answers 401) and the hold is pinned at the predicate. Ablation of the one refusal line via ablation-replace (anchor 1->0, marker 0->1), metadata-core rebuilt, dist preflight hit dist/index.js and index.cjs: red exactly the 5 new pins (predicate 1/9, REST 1/81, runtime dispatcher+MCP+duplicate 3/162); restore via git checkout HEAD, blob cd26e8f520 back, git diff HEAD empty, rebuilt, preflight --absent clean. Live: pnpm dev:crm --fresh -p 38937 after full build (CRM requires ui, automation only), signed-in admin PUT /api/v1/meta/knowledge_source/faq -> 503 SERVICE_UNAVAILABLE with the remedy sentence; GET -> 404 (nothing written); server killed by recorded pid. Positive live control with requires knowledge: NOT MEASURED. Full rest/runtime suites and test:repo: not run locally, CI.", "gates": "Local, exit captured before any pipe, all 0: check-adr-0087-registration --base origin/main (1 declared-breaking changeset with disposition), check-changeset-no-major, check-empty-changeset, spec check:upgrade-guide, check:spec-changes, check:api-surface (unchanged), check:authorable-surface, check:nul-bytes, check:doc-authoring, check:issue-citations, check:dispatcher-error-vocabulary, check:route-envelope, check:error-status-conformance, check:durability-log-level, check:startup-registry-verdict, check-closing-keyword-parity, check:cross-package-test-inputs, check:test-source-alias, check:adr-anchors, check-affected-docs. dispatch-gates --ran: 99 derived, 20 run, 79 UNRUN (declared narrowing, CI runs them; the --ran run also flagged the tree 15 commits behind origin/main, one family file changed: check-skills-token-ratchet.mjs). PR #38013 check-runs at dd50936527 when reported: Lint/Type Check/Check Changeset/Governed Surface Queue Guard/PR-body guards etc. in_progress; queue-only and opt-in jobs skipped.", "dogfood_battery": "NOT MEASURED, reason: owed once on the final head (title has !), and the head is not final until #37306 lands and the held commit is applied", "mcp_calls": "0", "api_writes": "2 relay strokes via scripts/pm/fleet-write/dispatch.mjs (POST /repos/objectstack-ai/objectstack/dispatches): pr_create #38013 with assignee os-elon-musk (read back 10519 bytes identical); and this report comment via post-stamped on #37983. git push x3 not counted.", "open_questions": [ { "question": "The package duplicate door (POST /packages/:id/duplicate) asks the same predicate for each knowledge source it copies, so on a deployment with no knowledge service it now refuses the whole duplicate 503 naming the remedy. The ruling names three doors; keep the fourth refused?", "options": [ "A keep it refused (as pushed): the copied source would be kept and never served, same principle as D; zero extra code", "B carve it out: add an input to the exported authoredKnowledgeSourceRefusal so the duplicate admits with no service; a new public input (Clause-② would read yes (narrowing)) and the copy stays inert with only the boot line" ], "recommendation": "A, because it is the predicate's own reading and ADR-0078 §1 applies equally to the copy; B widens the API to preserve an inert outcome" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: #37306 · on claude/area-o1C-37306 admitAuthoredSource gains a 400 VALIDATION_ERROR verdict; the MCP draft door (mcp-authoring.ts itemSaveRefusal) maps every non-403 refusal to SERVICE_UNAVAILABLE, so that verdict would arrive as code SERVICE_UNAVAILABLE with status 400 · noted, not filed", "deviations: commit trailers use the model-free pair AGENTS.md and the pre-push hook require, not the dispatch's model-named Co-Authored-By; PR body ends with the AGENTS.md session-URL footer, not the robot lines; a throwaway --fresh dev server's sign-in response (an ephemeral session token, no env var) was printed to the transcript, server stopped and tempdir gone" ] }objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
os-dev-report
{ "issue": 37983, "status": "done", "branch": "claude/area-o1C-37983", "pr": "https://github.com/objectstack-ai/objectstack/pull/38013", "head": "33acf12ec4", "session": "session_016WV4cwPhGV4g9p1BGQaZbP", "premise_still_valid": true, "summary": "Round 2, after #37306 merged (PR #38026, dbe07169). origin/main is merged in (1ca3a31db7), and items 2 and 4 are applied in 33acf12ec4. Boot line: the objectql unserved line now names requires: ['knowledge'] plus restart (or KnowledgeServicePlugin and a knowledge store on a self-composed kernel); main still had 'KnowledgeServicePlugin and a knowledge adapter', because #37306 did not touch that file. The docs were rewritten by hand against main's #37306 text, since git am conflicted on knowledge-rag.mdx. What #37306 changed: adapter is optional, and a shipped knowledgeSources entry mounts the service without requires. So a source saved at run time never mounts it, and the ruled remedy (requires, restart, then save) still holds. The refusal sentence is unchanged, and the docs and boot-line doc now say that a run-time-saved source is not app-shipped. The changeset regains the objectql patch line. The PR body was rewritten via post-stamped, and the read-back was identical (13608 bytes).", "tests": "At 33acf12ec4, under os-verify-lock (VERDICT command-exit 0, held 1018s). Full build exit 0. spec check:generated 0. metadata-core pnpm test 1113/1113 passed, typecheck 0. objectql knowledge-source-unserved.test.ts 7/7 passed, typecheck 0. rest 4 files 161/161 passed, typecheck 0. runtime 10 files 304/304 passed, typecheck 0. Boot-line ablation: remedy reverted to main's text (anchor 1->0, marker 0->1; the test imports source, so no build) turned red 'names the item, the missing service and both remedies' (1 failed of 7); restored with git checkout HEAD (blob aa50e2ec54, diff HEAD empty). Save-refusal ablation from round 1 (dd50936527): exactly the 5 door and predicate pins turned red; dist preflight showed the marker present, then absent after restore. Docs are not ablated.", "gates": "Local at 33acf12ec4, each exit 0, captured before any pipe: check-adr-0087-registration, check-changeset-no-major, check-empty-changeset, spec check:upgrade-guide, check:spec-changes, check:api-surface (unchanged), check:nul-bytes, check:doc-authoring, check-affected-docs, check:issue-citations, check:dispatcher-error-vocabulary, check:startup-registry-verdict, check:durability-log-level; overlap-check before push clean against main and #38043, #37982 and #37963. PR check-runs on 33acf12ec4 at report time: 40 success, 10 skipped, 17 in_progress (Test UI shards 1-5, 7-8 and 12-16, Type Check UI, Test Core 1/3/6, Type Check workspace), 0 failure. Success includes Lint & Repo Gates, Lint ESLint, Check Changeset, Dogfood Regression Gate, Build Core, Type Check consumer gates and source gates, Spec property liveness, PR-body guards, Governed Surface Queue Guard, Check PR Size, and Test Core 2/4/5/7/8/9/10.", "dogfood_battery": "NOT MEASURED locally at 33acf12ec4. Reason: the shared verify lock was never acquired. Slot dev-37983 waited about 21 minutes over three tries; two ended 'VERDICT queue-timeout (exit 99) never acquired'. The holder was pid 7724, another agent's dogfood run, held 1084s at the last try, with four more runs queued ahead. CI's Dogfood Regression Gate check-run on this head concluded success.", "mcp_calls": "0", "api_writes": "This round, 2 relay writes: (1) PR #38013 body rewrite via post-stamped --body (relay run 46067848568), read back identical; (2) this os-dev-report comment on #37983 via post-stamped. Plus git push of 33acf12ec4, which is not a REST write.", "open_questions": [ { "question": "Should the package duplicate door also refuse a package that holds a knowledge_source when no knowledge service runs?", "options": ["A: keep it refused (today's branch behaviour: it asks the same predicate, nothing is copied)", "B: exempt the duplicate door so a copy of a package with sources succeeds and the boot line reports the unserved item"], "recommendation": "A, because the duplicate is a non-system save of the same item, and B would reopen the silent save the ruling closes" } ], "security_findings": "none", "out_of_scope_findings": ["carrier: none · the round-1 note on the MCP draft door mapping #37306's 400 to SERVICE_UNAVAILABLE is resolved on main (mcp-authoring passes refused.code)"], "deviations": "The harness attribution reminder asks for a model-named Co-Authored-By trailer; commits carry the model-free pair per AGENTS.md. Round 1: an ephemeral sign-in session token from the local dev server was printed to the transcript; that server has been stopped." }Generated by Claude Code
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Close-out · area o1-C · 2026-11-28T04:53Z
Delivered by PR #38013 (merged d59478f at 2026-11-28T04:50Z): the maintainer's ruling D is on
main— a run-time save of aknowledge_sourceon a deployment that runs no knowledge service is refused503 SERVICE_UNAVAILABLE, nothing written, naming the remedy (requires: ['knowledge'], then a restart), andskills/objectstack-aiteaches it. The admission module's doc scopes the knowledge service's own 503 to index and search, as PR #38060's review asked. Follow-up #38058 (the review nits) was Blocked-by this card.pm:dispatchedremoved with this comment.