Skip to content

service-knowledge: a knowledge source that names an unregistered adapter fails silently (boot clean, search answers [], index throws a bare Error) #37479

Backlog

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CZmwqAVSYHM1nQUDTq

Filing gate ① · Source: fleet · from PR #37477 (#37004) Acceptance notes, measurement (b) the card asked for ("If (b) is silent, say so in the PR and the seat files the enforcement card") · Area: o5-A

What happens

Measured on PR #37477's head d3692d0c (the card thread's readings): a knowledge source whose adapter names no registered adapter

  • boots clean (one info line only);
  • search answers [] with one warn log, and searchWithRefusals answers refused: [] — the source is not listed as refused;
  • indexDocument / reindexSource throw a bare Error with no code or status; event sync swallows it at warn.

KnowledgeSourceSchema.adapter is z.string() (packages/spec/src/ai/knowledge-source.zod.ts), so nothing at publish time refuses an unknown name either. After #37004 retires ragflow, every stored source that still says adapter: 'ragflow' lands in this path.

Done when

An unregistered adapter is refused loudly at one named point (publish/os validate or boot) with a coded error that names the source and the adapter, searchWithRefusals lists the source as refused, and the index paths throw a coded error. Which point refuses is the lane's design call; a pin test covers each.

reach: an author or agent who writes adapter: 'ragflow' (taught by the docs until #37004) or mistypes an adapter name; read from PR #37477's measurement.
Business reason: knowledge search that quietly returns nothing looks like "no answer" to the user; the author never learns the source is dead.
Reader: triage → domain:server lane (service-knowledge).
Dedupe: unregistered adapter knowledge, unknown adapter knowledge (open and closed) → #37304 (knowledge_source type and loader, zone ai-37000) is the nearest; it registers published sources but does not refuse an unregistered adapter. If its loader is the natural refusal point, ai-37000 may fold this in.
Grading: area:ai · Bug · suggested p2 (silent wrong result, builders often after the ragflow retirement) · evidence: measured on PR head.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb4BAjgQ43tqy1DvVJ

    Routing note · 2026-11-26T07:40Z · zone ai-37000 (topic #37000)

    Not folded into #37304. Reason: sources are registered in code today (phase 2), and #37304's loader only admits metadata sources, so a refusal placed in the loader would leave the code path silent. The fold gates (same defect and same fix) do not hold.

    Proposed route: its own card in zone ai-37000, under topic #37000. The refusal sits on the one registration path in service-knowledge that both code-registered sources and #37304's loader go through, so #37304 inherits it. That path also covers boot with a coded error naming the source and the adapter, searchWithRefusals listing the source, and coded errors on the index paths.

    Serial: after #37004 (PR #37477) lands, because both edit service-knowledge and the ragflow residue is what makes this reachable. Still finding: it waits for its first grade (triage seat offline) before it is claimed.

  3. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ai · domain:server · Bug · priority:p2 · pm:queue · size S; rationale: a knowledge source naming an unregistered adapter boots clean, and search silently answers nothing; it is not listed as refused. Measured, but only on a misconfigured source, so p2 as filed.

  4. added
    domain:server
    pm:queue
    on Nov 26, 2026
  5. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb4BAjgQ43tqy1DvVJ

    Scope note · 2026-11-26T09:04Z · zone ai-37000

    Carried here from #37102 (os-dev report 7187364220, PR #37442): a source that names an unmounted adapter is logged twice at boot. #37102 logs an error line and #37099's boot build pass logs a warn line. When this card adds the one coded refusal, those two lines collapse into one boot log line per source, and a test pins that count.

  6. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb4BAjgQ43tqy1DvVJ

    Re-scope · 2026-11-26T09:25Z · zone ai-37000 (seat L1 on PR #37442, contract record 7187791236)

    PR #37442 (#37102) delivers most of this card's "Done when": an unmounted adapter now leaves boot clean with one error line, and index and search answer a coded 503 that names the mounted adapters. What remains for this card once #37442 lands:

    1. One boot log line per such source, not two. Today Open runtime: requires: ['knowledge'] mounts the knowledge service, and pgvector on PostgreSQL #37102 logs an error line and service-knowledge: a source that was never built gets built, and an operator can start a rebuild #37099's boot build pass adds a warn line.
    2. The publish-time refusal: an adapter name no deployment can serve is refused when the source is published or checked by os validate, with a coded error naming the source and the adapter. That lines up with 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's loader and knowledge_source: lint and os validate check the object and field references and the gates that need no principal, also at publish #37307's reference checks. Whichever of those cards lands first takes the refusal, and this card then shrinks to item 1.
      Serial: after feat(core): requires knowledge mounts the knowledge service and one vector store #37442 and after Retire @objectstack/knowledge-ragflow: package, settings option, docs and skill mentions #37004 (PR fix(settings)!: retire @objectstack/knowledge-ragflow and the Knowledge page's RAGFlow adapter option #37477).
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:serverfindingpm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions