Skip to content

service-knowledge: a self-hosted deployment with no embedder holds its knowledge sources without serving them, and lists no search_knowledge #38369

Description

@objectstack-fleet

repo:objectstack#8 · sunhaolin · session_017xRBcSSm1UGomShRsemA1N

Filing gate: ③ maintainer-directed. Source: maintainer (the words quoted on the ADR note card #38368, including 「以上都同意」 on its three ◆ choices).
Grading: area:ai · Feature · p2 (maintainer-sourced) · reach: every self-hosted deployment that serves an app shipping a knowledge_source with no embedder saved · evidence: read from the code on main c6a1328 — packages/services/service-knowledge/src/knowledge-service-plugin.ts registers UnconfiguredEmbedder at kernel:bootstrapped and keeps the service and its tool; packages/mcp/src/mcp-http-tools.ts registers search_knowledge whenever the service defines it, so today such a deployment lists a tool every call of which fails.
Blocked-by: #38368

维护者速读

  • 做什么:没配嵌入参数(或存储没挂上)的私有部署,知识源留着但不生效:不建索引、不搜,MCP 里不再列出知识检索工具,设置页写明未启用;配好并重启后自动启用。
  • 为什么:今天这种部署上工具照常列出、每次调用都失败,智能体看到的不是应用真能做的;基础模板要带知识源,必须先有这一步。
  • 影响:这种部署上保存知识源会被当场拒绝并说明怎么修(今天是保存成功、之后建索引失败);复制应用包照常;属于收窄,按审批走。
  • 要你做的:无(实现后按收窄由审批人批准)。

What

  1. resolveCapabilityArgument('knowledge', …) (packages/core/src/capability-composition.ts) hands the service one more option beside deploymentAdapter, marking it runtime-composed. A plugin constructed without it behaves exactly as today.
  2. With the option, provideEmbedder records the outcome. Not enabled = no embedder available, or the deployment's store not mounted. Then: no boot build, no record sync, no reconcile job, no adapter call; knowledgeTools().definitions is empty; search and searchWithRefusals answer 503 SERVICE_UNAVAILABLE with the remedy; the unplaceable-source error line is folded into one line whose level follows the ADR note.
  3. The save predicate (packages/metadata-core/src/knowledge-source-save-admission.ts, around admitAuthoredSource) refuses a non-system save while not enabled for door: 'save'; door: 'duplicate' goes on. The existing no-service refusal gains "and save an embedder provider".
  4. The Knowledge settings page's index_status answer and os knowledge status state "not enabled", the reason and the number of held sources; os knowledge rebuild is refused with the remedy.
  5. The ai embedder section's help text says that saving a provider and restarting sends each knowledge source's listed fields to it.
  6. Docs in the same PR: content/docs/ai/knowledge-rag.mdx, content/docs/protocol/knowledge.mdx. skills/objectstack-ai/SKILL.md in its own governed PR.

Acceptance (each pinned)

  • Runtime-composed, a shipped source, no embedder: service and store mounted, state not enabled, zero adapter calls across boot and a record write, exactly one log line, at info.
  • Same with requires: ['knowledge'], or a provider saved without a key: the line is warn and names the reason; the boot succeeds.
  • Neither MCP transport lists search_knowledge when not enabled; both list it when an embedder is registered by a plugin or built from settings.
  • The three save doors refuse with the stated remedy and write nothing; the duplicate door copies the package.
  • A host-composed KnowledgeServicePlugin with no embedder behaves byte for byte as on main.
  • packages/verify/src/harness.required-providers.test.ts keeps its existing build-and-search case green unchanged.
  • The composition parity suites (capability-composition.test.ts, plan.artifact-item-capabilities.test.ts, boot-preparation-parity.test.ts, standalone-stack.test.ts) change only for the added option.
  • Live: os dev on an app with one source and no embedder shows the page state and no tool; after saving a provider and restarting, the source builds and the tool is listed (positive control measured, not assumed).
  • Declared as a narrowing: ADR-0087 registration, Metadata-protocol: narrowed, a BREAKING changeset, as PR feat(metadata-core)!: a knowledge source is saved only on a deployment that mounts the knowledge service #38013 did.

File surface

  • packages/core/src/capability-composition.ts (+ test)
  • packages/services/service-knowledge/src/knowledge-service-plugin.ts, knowledge-service.ts, knowledge-tools.ts, knowledge-build-actions.ts, knowledge-source-admission.ts (+ tests)
  • packages/metadata-core/src/knowledge-source-save-admission.ts (+ test)
  • door pins: packages/rest/src/meta-write-door-capability-enumeration.test.ts, packages/runtime/src/domains/meta-save-capability-gate.test.ts, packages/runtime/src/domains/mcp-authoring.test.ts, packages/runtime/src/domains/packages-knowledge-source-gate.test.ts
  • packages/runtime/src/mcp-knowledge-tools-bridge.test.ts, packages/mcp/src/mcp-knowledge-tools.test.ts (tests only)
  • packages/verify/src/harness.required-providers.test.ts
  • packages/cli/src/commands/knowledge/status.ts, rebuild.ts (+ test)
  • packages/services/service-settings/src/manifests/ai.manifest.ts and its translations
  • packages/objectql/src/knowledge-source-unserved.ts (remedy text)
  • the two docs pages; a changeset; the ADR-0087 entry

Not in scope: an always-on service; a pre-boot settings read; hot enabling without a restart; a boot probe of the store; cloud.
Known open item, not built here: on PostgreSQL without the vector extension the failure still surfaces at first table creation, not at boot.

Related: #37000 (knowledge platform topic), #37983, PR #38013, #38346.
Reader: triage routes it to the lane holding #37000; the self-hosted Starter knowledge example waits on it.
Dedupe: as on #38368.

Activity

  1. added
    priority:p2
    area:ai
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Triage: lands in packages/core/src/capability-composition.ts, packages/services/service-knowledge/src/knowledge-service-plugin.ts, packages/metadata-core/src/knowledge-source-save-admission.ts, the MCP tool registration and the os knowledge commands · area:ai · domain:server · Feature · p2 (maintainer-sourced) · pm:blocked (Blocked-by: #38368, in the body) · size L. Rationale: carries out the ruling recorded on #38368: a self-hosted deployment with no embedder or no store holds its sources unserved and lists no search_knowledge. Today it lists a tool every call of which fails, which breaks AI core feature ④ ("what MCP exposes is what the application really can do"). The new save refusal is a narrowing that is ruled; the PR declares Clause-②: yes (narrowing) and goes to the approver. Size L (five packages), so split before dispatch. The cut follows the card's numbered items: service enablement and tool absence (1–2), save refusal (3), status, CLI and settings text (4–5). The first PR carries the seam. It waits on the ADR note #38368, which it cites as its authority.
    Path: none

    Recorded 2026-11-28T16:18Z.

  3. added
    domain:server
    pm:blocked
    on Nov 28, 2026
  4. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb

    Card amended by ruling — the maintainer ruled the four open points of the note #38368 builds on: record 7248214179 on #38368, 「全按推荐(1A 2A 3A 4A)」. The ADR note on PR #38401 is being patched to that text. This card carries the four points as written there; each is pinned, and points 2 and 3 are named parts of the declared narrowing.

    Ruling-ref: 1A · 「全按推荐(1A 2A 3A 4A)」

    1. POST /packages/:id/move-in of a package-less knowledge_source is an author's save: refused while not enabled, with the save's remedy. It already asks the predicate with door: 'save', so item 3 yields it; add its door pin (packages/runtime/src/domains/packages-knowledge-source-gate.test.ts). No door value is added to KnowledgeSourceSaveDoor.

    Ruling-ref: 2A · 「全按推荐(1A 2A 3A 4A)」
    2. The enabled state is the whole service's. Every source of a runtime-mounted service is held while not enabled, whichever store it names, including a store the application registered. An application whose store embeds on its own mounts the knowledge service itself in plugins[]. Part of the declared narrowing. The acceptance line "packages/verify/src/harness.required-providers.test.ts keeps its existing build-and-search case green unchanged" is read with this point: a case that places a source on an application-registered store under a runtime-composed service now reads held; the dev measures which case that is and moves it to the ruled behaviour (or to a host-mounted composition), naming it in the PR body.

    Ruling-ref: 3A · 「全按推荐(1A 2A 3A 4A)」
    3. While not enabled the service registers no lifecycle reap guard and calls no store: a retention sweep deletes rows on time. An entry left in a store that holds an earlier index is searched by nobody while not enabled, and the reconcile after enabling or an operator rebuild removes it. Part of the declared narrowing (it is a change to what K3 item 3 promises for a not-enabled service). Pin: a retention sweep on a held source's object deletes on time with zero adapter calls.

    Ruling-ref: 4A · 「全按推荐(1A 2A 3A 4A)」
    4. The refusal names the half that is missing. No embedder: "save an embedder provider, restart, then save" (ruled, unchanged). The deployment's store not mounted: the refusal says so and that the boot log names the reason, then mount it, restart, save. Both missing: both. This refines item 3's "gains 'and save an embedder provider'" and the save-door acceptance line ("the stated remedy"): pin each half. The note's final store sentence on PR #38401 is the wording source.

    Still pm:blocked on #38368 (Blocked-by unchanged). Not ruled, filed separately: a command to drop a leftover index on a not-enabled deployment.

  5. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb

    For the implementation (from the contract review of the ADR note, delta record 7248551893 on PR #38401, section ③). Nothing is owed in the note; each is a point this card's build meets, read on main by the reviewer and not re-measured here:

    1. The lifecycle reap guard registers at kernel:ready on main, before the enabled state is read at kernel:bootstrapped, and the lifecycle service has no unregister. Point 3 of the amendment above (no reap guard while not enabled) needs registration to wait for that reading.
    2. The direct search refusal's remedy should name the missing half too, as the save refusal does (point 4).
    3. A provider saved without its key falls under the ruled "save an embedder provider, restart, then save" sentence; the refusal may add the cause without changing the ruled words.
    4. Carried from the dev report on ADR-0161 dated note: a mounted knowledge service is enabled by configuration; until then its sources are held and not served #38368 (7247665546): the stdio MCP bridge reads the knowledge service for its tool in its own start() (packages/mcp/src/plugin.ts), before kernel:bootstrapped; search_knowledge must be absent on that transport too.
  6. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb
    Claim: PM loop round 1 · 2026-11-29T01:38Z
    Session: session_01FEkQ5oQLfL8thb6wtUHnTb
    Account: os-project-manager
    Branch: claude/issue-38369-knowledge-held-not-served
    Worktree: objectstack-issue-38369
    Domain: domain:server
    Seat: repo:objectstack#5
    Area: o5-ai37000
    File surface: the card's "File surface" list as written (packages/core/src/capability-composition.ts (+ test); packages/services/service-knowledge/src/knowledge-service-plugin.ts, knowledge-service.ts, knowledge-tools.ts, knowledge-build-actions.ts, knowledge-source-admission.ts (+ tests); packages/metadata-core/src/knowledge-source-save-admission.ts (+ test); the four door pins; packages/runtime/src/mcp-knowledge-tools-bridge.test.ts, packages/mcp/src/mcp-knowledge-tools.test.ts; packages/verify/src/harness.required-providers.test.ts; packages/cli/src/commands/knowledge/status.ts, rebuild.ts (+ test); packages/services/service-settings/src/manifests/ai.manifest.ts and its translations; packages/objectql/src/knowledge-source-unserved.ts; content/docs/ai/knowledge-rag.mdx, content/docs/protocol/knowledge.mdx; changesets; the ADR-0087 entry), plus packages/mcp/src/plugin.ts (build note 4 of 7248592159: the stdio bridge reads the tool in its own start()) (stop on breach; explain in the report). skills/objectstack-ai/SKILL.md is not in it: its own governed card after the build.
    Container & model: L, mode:thread, model: default (dispatch-gates --tier at 0c1b2ff, "Model tier — no path-derived mandate"; a ruled narrowing with design judgement, so not floor), effort: high (L, five packages)
    Clause-②: no
    Metadata-protocol: narrowed
    Responsibility: n/a — not a defect card
    Thread-read: 7248592159
    Premise: holds at 0c1b2ff — knowledge-service-plugin.ts registers UnconfiguredEmbedder (class at :124, registered at :1073) at kernel:bootstrapped (:690) and schedules the reconcile there (:729–730); the reap guard registers at kernel:ready (:744); resolveCapabilityArgument hands knowledge only { deploymentAdapter } (capability-composition.ts:297–298); mcp-http-tools.ts registers search_knowledge wherever the service defines it (:3699) and the stdio bridge reads the service in plugin.ts (:213); the save predicate's doors are in knowledge-source-save-admission.ts. The ADR-0161 K8 dated note (PR #38401, merged 0c1b2ff) is the authority.
    Serial constraints cleared: check-handover --inflight at 0c1b2ffe: 2 overlaps, both handled. (1) #38351 (this area's card thread) claims the two docs pages: the docs edits queue behind #38351's merge (main merged in first), no push to those pages before it. (2) #38184 (seat repo:objectstack#6) claims packages/services/service-settings/** wide, and its open PR #38255 touches no file there (EXCESS on the reconcile): false overlap, overlap-check before every push that touches ai.manifest.ts. #38418 (p1, re-seated seat 1) is on knowledge-sync-state.ts, outside this surface: overlap-check before every push touching service-knowledge.
    Pre-claim lane: packages/services/**, packages/core/** ⇒ domain:server (file ownership only); in this area by the seat's order (area o5-ai37000, #38369 after #38368 merges).
    Pre-claim deps: Blocked-by: #38368, closed (PR #38401 merged as 0c1b2ff); pm:blocked removed in this stroke.
    Prior rulings read: record 7248214179 on #38368 「全按推荐(1A 2A 3A 4A)」 (amended onto this card, 7248231750); the maintainer on #38368 「以上都同意」 on its three ◆ choices; ruling D on #37983 (record 7220511579) 「D 拒绝保存并说明」 with its item 5 (the service never always-on); ADR-0161 K8 dated note of #38368. check-prior-rulings --card 38369: 0 ruling comments on the thread; ADR hits read, none conflicts with the ruled route.
    Narrowing: tool absence while not enabled, sources held, no reap guard, and the save refusal. PR bodies and changesets declare Clause-②: no (narrowing) and Metadata-protocol: narrowed, with a BREAKING changeset and an ADR-0087 entry, as PR #38013 did. A full dogfood run at the final head, one contract-review-tier review on the final head, and the seat lands it.
    Split: size L, cut as triage named it (7242143436). PR 1 is items 1–2 (enablement seam, held sources, tool absence on both transports, amendment points 2–3, build notes 1, 2 and 4). PR 2 is item 3 (save refusal, amendment points 1 and 4, build note 3). PR 3 is items 4–5 (status, CLI, settings text). They run serially in one card thread, each on main after the one before it merges. Scope review: exempt (maintainer source, ruled route).

  7. added
    pm:dispatched
    and removed
    pm:blocked
    on Nov 29, 2026
  8. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb

    Claim amended (7248923747), branch only. The card thread (session session_01FEkQ5m2rYCwPR3qqhnZDfW, served claude-opus-5-5 at effort high, matching the claim's Container & model line) may push only to its platform branch, so the PRs' head is that branch. The local worktree keeps the claimed name.
    Branch: claude/project-thread-mu3i0t
    Recorded 2026-11-29T01:45Z.

  9. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb
    Claim: PM loop round 1 · 2026-11-29T03:55Z
    Session: session_01FEkQ5oQLfL8thb6wtUHnTb
    Account: os-project-manager
    Branch: claude/project-thread-mu3i0t
    Worktree: objectstack-issue-38369
    Domain: domain:server
    Seat: repo:objectstack#5
    Area: o5-ai37000
    File surface: the card's "File surface" list as written (packages/core/src/capability-composition.ts (+ test); packages/services/service-knowledge/src/knowledge-service-plugin.ts, knowledge-service.ts, knowledge-tools.ts, knowledge-build-actions.ts, knowledge-source-admission.ts (+ tests); packages/metadata-core/src/knowledge-source-save-admission.ts (+ test); the four door pins; packages/runtime/src/mcp-knowledge-tools-bridge.test.ts, packages/mcp/src/mcp-knowledge-tools.test.ts; packages/verify/src/harness.required-providers.test.ts; packages/cli/src/commands/knowledge/status.ts, rebuild.ts (+ test); packages/services/service-settings/src/manifests/ai.manifest.ts and its translations; packages/objectql/src/knowledge-source-unserved.ts; content/docs/ai/knowledge-rag.mdx, content/docs/protocol/knowledge.mdx; changesets; the ADR-0087 entry), plus packages/mcp/src/plugin.ts (build note 4 of 7248592159: the stdio bridge reads the tool in its own start()) (stop on breach; explain in the report). skills/objectstack-ai/SKILL.md is not in it: its own governed card after the build.
    Container & model: L, mode:thread, model: default (dispatch-gates --tier at 0c1b2ff, "Model tier — no path-derived mandate"; a ruled narrowing with design judgement, so not floor), effort: high (L, five packages)
    Clause-②: no
    Metadata-protocol: narrowed
    Responsibility: n/a — not a defect card
    Thread-read: 7248999781
    Premise: holds at 0c1b2ff — knowledge-service-plugin.ts registers UnconfiguredEmbedder (class at :124, registered at :1073) at kernel:bootstrapped (:690) and schedules the reconcile there (:729–730); the reap guard registers at kernel:ready (:744); resolveCapabilityArgument hands knowledge only { deploymentAdapter } (capability-composition.ts:297–298); mcp-http-tools.ts registers search_knowledge wherever the service defines it (:3699) and the stdio bridge reads the service in plugin.ts (:213); the save predicate's doors are in knowledge-source-save-admission.ts. The ADR-0161 K8 dated note (PR #38401, merged 0c1b2ff) is the authority.
    Serial constraints cleared: check-handover --inflight at 0c1b2ffe: 2 overlaps, both handled. (1) #38351 (this area's card thread) claims the two docs pages: the docs edits queue behind #38351's merge (main merged in first), no push to those pages before it. (2) #38184 (seat repo:objectstack#6) claims packages/services/service-settings/** wide, and its open PR #38255 touches no file there (EXCESS on the reconcile): false overlap, overlap-check before every push that touches ai.manifest.ts. #38418 (p1, re-seated seat 1) is on knowledge-sync-state.ts, outside this surface: overlap-check before every push touching service-knowledge.
    Pre-claim lane: packages/services/**, packages/core/** ⇒ domain:server (file ownership only); in this area by the seat's order (area o5-ai37000, #38369 after #38368 merges).
    Pre-claim deps: Blocked-by: #38368, closed (PR #38401 merged as 0c1b2ff); pm:blocked removed in this stroke.
    Prior rulings read: record 7248214179 on #38368 「全按推荐(1A 2A 3A 4A)」 (amended onto this card, 7248231750); the maintainer on #38368 「以上都同意」 on its three ◆ choices; ruling D on #37983 (record 7220511579) 「D 拒绝保存并说明」 with its item 5 (the service never always-on); ADR-0161 K8 dated note of #38368. check-prior-rulings --card 38369: 0 ruling comments on the thread; ADR hits read, none conflicts with the ruled route.
    Narrowing: tool absence while not enabled, sources held, no reap guard, and the save refusal. PR bodies and changesets declare Clause-②: no (narrowing) and Metadata-protocol: narrowed, with a BREAKING changeset and an ADR-0087 entry, as PR #38013 did. A full dogfood run at the final head, one contract-review-tier review on the final head, and the seat lands it.
    Split: size L, cut as triage named it (7242143436). PR 1 is items 1–2 (enablement seam, held sources, tool absence on both transports, amendment points 2–3, build notes 1, 2 and 4). PR 2 is item 3 (save refusal, amendment points 1 and 4, build note 3). PR 3 is items 4–5 (status, CLI, settings text). They run serially in one card thread, each on main after the one before it merges. Scope review: exempt (maintainer source, ruled route).

    This re-posts claim 7248923747 with the card thread's platform branch (amendment 7248999781); the card thread was served claude-opus-5-5 at effort high.

  10. 20 remaining items

  11. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmPDtfMCw4FJfyFfQ7v

    Claim amendment 2 — #38369 PR 3, split in two (seat route B, on dev report 7281219171)
    Session: session_01ADHkmPDtfMCw4FJfyFfQ7v
    Why: overlap-check.mjs at 11207f9620 exits 1 on packages/services/service-knowledge/src/knowledge-build-actions.ts against open PRs #38722, #38730 and #38732 (#38692 phase 1a, seat 2); every other file merges cleanly. The seat split PR 3.
    PR 3a, now — File surface: packages/services/service-settings/src/manifests/ai.manifest.ts (the embedder section's help text only) and packages/services/service-settings/src/translations/*.ts; packages/cli/src/commands/knowledge/status.ts, rebuild.ts (docblock), packages/cli/src/utils/knowledge-actions.ts (answer types), packages/cli/src/commands/knowledge/knowledge.test.ts; the two docs pages named in 7280445429 (status/rebuild sentences only); the help-text pins (a new test file beside the manifest, or the existing ai.manifest.test.ts); .changeset/38369-held-status-cli.md. NOT knowledge-build-actions.ts and nothing else under packages/services/service-knowledge/src/. The CLI reads an enablement field the server does not send yet; the PR body says why that is harmless (the field is optional and only added; absent, the CLI prints as today).
    PR 3b, after #38722 AND #38761 land — File surface: knowledge-build-actions.ts (the index_status answer and the rebuild refusal) + src/__tests__/held-status-38369.test.ts, plus the PR 2 L1 carry-overs from record 7257956376: N1 and N2 (packages/services/service-knowledge/src/knowledge-service.ts, src/__tests__/knowledge-settings-contribution.test.ts) and N6 (packages/objectql/src/knowledge-source-unserved.ts, the remedy text). knowledge-service.ts is also edited by #38761's round 4 (S1 docblocks), hence the second wait. .changeset/38369-held-status.md.
    Container & model: unchanged (M, mode:subagent, model: opus, effort: high). Clause-②: yes (widening) stays on 3b; 3a declares what its own changeset reads (help text + CLI output: Clause-②: no unless the changeset gate reads the CLI line otherwise).
    Anchor: backup branch claude/issue-38369-held-status-and-rebuild-wip@11207f9620; PR 3a goes out from claude/issue-38369-held-status-and-rebuild, PR 3b from a new branch claude/issue-38369-held-index-status after both waits clear.

  12. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmPDtfMCw4FJfyFfQ7v
    os-dev-report

    {
      "issue": 38369,
      "status": "done",
      "branch": "claude/issue-38369-held-status-and-rebuild",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38786",
      "session": "session_01ADHkmPDtfMCw4FJfyFfQ7v",
      "premise_still_valid": true,
      "summary": "PR 3a (claim amendment 2), draft #38786, head b4b6e97de5, Part of #38369. os knowledge status reads an optional enablement field of the index_status answer and, when present, prints 'knowledge service: not enabled — N source(s) held, none built, synced or searched' and the reason first. The server does not send the field until PR 3b, and an answer without it prints exactly as today. rebuild.ts changes in its docblock only. On main a held rebuild already exits 1 with the service's remedy sentence; that is now pinned for both answer shapes. The ai embedder group's help text, in the declaration, the English copy and all 10 other locales, says that once a provider is saved and the server restarted, each source's listed content fields are sent to it for every matched row, billed. Docs: one sentence in knowledge-rag.mdx. The protocol page sentence was dropped because it conflicted textually with open PR #38730 (overlap-check exit 1 on it, clean after). Nothing under packages/services/service-knowledge/src/ is in this PR; the server half stays on claude/issue-38369-held-status-and-rebuild-wip@11207f9620 for 3b. Measurement for the seat (item 3): MEASURED. On main, with the service held and its store mounted (no-embedder case), one index_status read calls the store adapter's indexStatus once per source. Path: knowledge-build-actions.ts:335 (index: await service.readIndexState) -> knowledge-service.ts:584-585 -> knowledge-service-indexing.ts:708 adapterFor, :712 await adapter.indexStatus(ctx). Held and enabled controls each read calls=['indexStatus']. The held answer reads due:true 'it is built anew' although nothing will build it. Against the settleEnablement docblock (knowledge-service.ts:216 'no member calls a store for them: no build (boot, reload, reconcile or an operator's), no record sync, no index drop'): the general clause 'no member calls a store' is contradicted. The enumeration after the colon lists only writes, so if the colon is read as exhaustive it is not. It was measured with a throwaway test, which was deleted and never committed.",
      "tests": "At b4b6e97de5 under os-verify-lock. cli: vitest src/commands/knowledge/knowledge.test.ts 15 passed (12 existing + 3 new: enablement present prints the not-enabled line and reason first; absent prints the exact previous lines; held rebuild exits 1 with the server sentence in both answer shapes; plus a no-'knowledge service:' assertion on the existing case); cli typecheck (tsc + check:test-typecheck) exit 0. service-settings: vitest ai.manifest.test.ts + settings-translation-coverage.test.ts 2 files / 204 passed (new describe: declaration + en carry the sentence; every locale names restart and bill); typecheck exit 0. Ablation: status.ts restored to main -> 'a held service (the answer carries enablement)...' failed (1 failed / 14 passed); restored, tree clean. eslint over changed .ts exit 0. Builds: service-settings^... VERDICT 0 (253s); cli^... via turbo 69/69 tasks VERDICT 0 (356s); cli itself VERDICT 0.",
      "gates": "dispatch-gates --ran at b4b6e97d: 104 derived, 101 run exit 0, 3 NOT MEASURED, 0 UNRUN (VERDICT ✓). The 3: check:skill-examples (client-react dist absent), check:dual-build-cjs-loads (scenarios/studio dist absent), check:i18n-coverage (app-showcase config cannot lint without service-print dist). check:i18n, check:i18n-walk-parity and check:nul-bytes exit 0 after the CLI build. check:query-options-erasure timed out at 300s once on a loaded box; rerun exit 0 (412s). overlap-check before push: VERDICT clean exit 0 (origin/main 59faf74c, #38732). CI check-runs: not read (PR just opened).",
      "mcp_calls": "0",
      "api_writes": "6 total in this session — git push of the empty work branch (probe); git push of the -wip backup branch; report comment 7281219171 (post-stamped, run 46437729125); git push of claude/issue-38369-held-status-and-rebuild (f576dee5..b4b6e97d); relay pr_create #38786 (run 46451752012, draft, assignee os-steve, body read back byte-identical); this report comment via post-stamped.mjs",
      "classifier_refusals": [],
      "open_questions": [
        { "question": "The held index_status read reaches the store and can say a build is due while nothing will build it. Should PR 3b skip readIndexState while held (no store call), which needs a held index state value in knowledge-build.ts, outside 3b's surface, or keep the reading additive as now?", "options": ["A: 3b keeps it additive; the store read is accepted as a read, not a breach", "B: widen 3b's surface to knowledge-build.ts and answer a held reading with no store call"], "recommendation": "B, because a held answer saying 'it is built anew' misleads and the docblock's general clause says no member calls a store; it is a small change in the same PR that already rewrites the held answer." }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "deviations": [
        "Order conflict, reported rather than silently resolved: the round-2 order said to run long builds with run_in_background and wait. The os-dev standing rule forbids moving any foreground command to the background. I followed the standing rule: every build ran in the foreground with a timeout below the cap, and each one fit.",
        "The PR body's first line is 'Part of #38369', not the seat signature. The relay's PR-body rule puts the signature in the last-line trailer, which is there; no separate pair of attribution lines was written ahead of it.",
        "Two commits on the PR branch: the second one only drops the protocol-page sentence, after overlap-check named #38730.",
        "Worktree /home/user/objectstack-issue-38369 has been removed (node_modules first, then a plain git worktree remove). 3b starts from the remote -wip branch."
      ]
    }
  13. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmPDtfMCw4FJfyFfQ7v

    Claim amendment 3 — #38369 PR 3b starts (both waits of amendment 2 cleared: #38722 and #38761 merged)
    Session: session_01ADHkmPDtfMCw4FJfyFfQ7v
    File surface, in addition to the PR 3b line of amendment 2 (7281263878): packages/services/service-knowledge/src/knowledge-build.ts (seat route B on the held index_status measurement: while the service is held, index_status answers a held reading and makes 0 adapter.indexStatus calls; the misleading "built anew" text goes), and content/docs/protocol/knowledge.mdx (the one sentence dropped from PR 3a at b4b6e97de5 after overlap-check met #38730, now merged). Every other 3b path stands as amendment 2 names it.
    Overlap: check-handover --inflight meets the #38692 claim's packages/services/service-knowledge/src/**; its only open pull, #38732, touches knowledge-tools.ts, outside this surface. overlap-check on the 3b branch decides before push, as area-lease.md rules.
    Container & model: unchanged (M, mode:subagent, model: opus, effort: high). Clause-②: yes (widening); the seat runs the L2.
    Anchor: from claude/issue-38369-held-status-and-rebuild-wip@11207f9620, rebuilt on main, on new branch claude/issue-38369-held-index-status.

  14. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmPDtfMCw4FJfyFfQ7v

    Queue kick audit — zone o3-K · 2026-11-30T16:38Z
    Head-sha: b4b6e97de5 (unchanged). Queue build 46459284513, base 09eea107, triage 7284950580.
    Signature: @objectstack/organizations src/elevated-organization-wall.writes.wall.test.ts > "a write whose bag clears the tenant key is refused 403": SandboxError: failed to install the query argument encoder: InternalError: interrupted (packages/runtime/src/sandbox/quickjs-runner.ts:1672, reached through objectql/src/hook-wrappers.ts:396). New in the 24 h ledger (this PR only). Sibling #38221 (closed) was the same suite timing out under CI load.
    First read, the three facts of landing-operations.md:

    • ① Import closure against the diff: NOT disjoint. The test boots @objectstack/verify, whose harness mounts SettingsServicePlugin; service-settings/src/manifests/index.ts imports ai.manifest.ts, whose help text and 11 locale strings this PR edits. The edit is string constants only; no code path changes.
    • ② Queue base, same shard: main push CI 46462109657 at 09eea107, Test Core (11/12) success.
    • ③ First error is the QuickJS interrupt handler (CPU budget / wall ceiling), the timeout class, not an assertion.
      Disposition: a new signature with ① not met, so the zone does NOT re-enqueue. Handed to the seat with this reading. Auto-merge is off; the PR stays ready.
  15. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmPDtfMCw4FJfyFfQ7v
    os-dev-report

    {
      "issue": 38369,
      "status": "done",
      "branch": "claude/issue-38369-held-index-status",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38796",
      "session": "session_01ADHkmPDtfMCw4FJfyFfQ7v",
      "premise_still_valid": true,
      "summary": "PR 3b, draft #38796, head 142f3f6659, base c8b1dbb3, Part of #38369. It merges cleanly with main 6cc2024e, which now includes #38786. Rebuilt on main's knowledge-build-actions.ts, which carries the retrieval-mode fields from #38722/#38730. While the service is held: index_status answers each source's index as the new KnowledgeIndexState 'held' (heldIndexReading in knowledge-build.ts; not due), never calls readIndexState, so 0 adapter.indexStatus calls (seat route B), and no 'built anew' text; it adds enablement {state 'not-enabled', reason (heldSourcesText), embedder?, store?, heldSources}; its message leads with the reason and the held count. The rebuild action answers the service's own heldSourcesError as ok:false 'Rebuild of source X is refused: ...' and adds no second refusal path. heldReading is an optional member of KnowledgeBuildActionsService, so host-mounted and enabled services answer byte for byte as before. Carry-overs: N1 (null identity, asserting the held 503 ahead of the identity check), N2 (admitAuthoredSource jsdoc: door decides whether the held refusal applies), N6 (the unserved boot line names 'then save an embedder provider and restart again'). The protocol docs sentence is back. Changeset .changeset/38369-held-status.md: service-knowledge minor, objectql patch, Clause-②: yes (widening), Metadata-protocol: none.",
      "tests": "At 142f3f6659 under os-verify-lock. pnpm --filter @objectstack/service-knowledge test: 29 files / 879 passed; typecheck (tsc + check:test-typecheck) exit 0. objectql: vitest knowledge-source-unserved.test.ts 7 passed; typecheck exit 0. New held-status-38369.test.ts has 7 cases, including the counting-store pin: held with a data engine bound gives index state 'held', not due, 0 indexStatus calls; the enabled control gives 1 call (new-fingerprint). Ablation 1: index_status reverted to always call readIndexState gave 'held, the store mounted: ... never called' FAIL (1 failed / 6 passed). Ablation 2: heldOf forced undefined made the four held pins FAIL (4 failed / 3 passed). Both restored; git status clean. Closure build (turbo service-knowledge^... + objectql^...): 19/19 tasks, VERDICT 0, 172s. eslint over the changed .ts files: exit 0.",
      "gates": "dispatch-gates --ran at 142f3f66: 105 derived, 102 run exit 0, 3 NOT MEASURED, 0 UNRUN (VERDICT ✓). The 3: check:skill-examples (no client-react dist); check:dual-build-cjs-loads (no scenarios/studio dist); check:type-check-debt (its --re-measure starts a whole-workspace turbo build that outran the cap; my outer timeout left that build orphaned; I killed the three PIDs I had recorded; the lock showed no holder and no stray process was left; exit 3). overlap-check: clean before the push (origin/main c8b1dbb3, 0 PR heads), and clean again against main 6cc2024e (#38791 merges cleanly). CI check-runs: not read (PR just opened).",
      "mcp_calls": "0",
      "api_writes": "4 this round: the git push probe of claude/issue-38369-held-index-status; git push c8b1dbb3..142f3f66; relay pr_create #38796 (run 46470579986, draft, assignee os-steve, body read back byte-identical); this report comment via post-stamped.mjs",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: N2's remaining stale lines are in packages/metadata-core/src/knowledge-source-save-admission.ts (:185 'the token, a restart, then the save'; door docs at :84 and :115). That file is outside amendments 2 and 3, so it was not edited; it is named in the PR's Acceptance notes."
      ],
      "deviations": [
        "The round-3 order said to run long builds with run_in_background. The os-dev standing rule forbids that, so every build and gate ran in the foreground under the cap. One gate (check:type-check-debt) set off a whole-workspace build that outran the cap and was orphaned when my timeout fired; I killed it by its recorded PIDs and confirmed the lock was free.",
        "The PR body's first line is 'Part of #38369', as the relay's PR-body rule asks; the signature is in the last-line trailer. No harness attribution comment was written.",
        "The 'held' detail text and the held-index pin live in the action and knowledge-build.ts; knowledge-service-indexing.ts (where 'built anew' is worded) is outside the fence and unchanged. An enabled service's new-fingerprint reading keeps that text, where it is true.",
        "The 3b branch has two commits; the second only narrows a changeset sentence to what this release's CLI prints.",
        "The worktree has been removed. The backup branch claude/issue-38369-held-status-and-rebuild-wip@11207f9620 is still on the remote. Its work is now in #38786 (merged) and #38796. Delete it once #38796 lands."
      ]
    }
  16. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

    2026-11-30T18:31Z · Seat repo:objectstack#3 closes this card as completed. Every planned PR is merged: PR 1 #38470 (a mounted knowledge service holds its sources), PR 2 #38599 (a source save is refused while the service is held), PR 3a #38786 (os knowledge status and the settings help text), and PR 3b #38796 (index_status and rebuild say when the service is held; contract review 7287148901). Each PR said Part of, so none closed the card. Stale doc lines in packages/metadata-core/src/knowledge-source-save-admission.ts are named in 7287148901 and left uncarded under the maintainer's no-new-cards order.

  17. removed
    pm:dispatched
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:aidomain:serverpriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions