Skip to content

examples/app-starter and the blank template: a knowledge source over the help articles, served only where knowledge retrieval is enabled #38374

Backlog

Description

@objectstack-fleet

repo:objectstack#8 · sunhaolin · session_017xRBcSSm1UGomShRsemA1N

Filing gate: ③ maintainer-directed. Source: maintainer (the words quoted on #38372, and 「以上都同意」 on shipping the source only after the "not enabled" state exists).
Grading: area:package · Feature · p2 (maintainer-sourced) · reach: as the article card · evidence: read on main c6a1328.

Blocked-by: #38369, #38372

维护者速读

  • 做什么:给基础模板和空白模板里的知识文章加上知识源:配了嵌入参数的私有部署(和云端)可以检索这些文章;没配时安静地不生效。
  • 为什么要等:要先有「没配嵌入参数时知识检索不启用、工具不列出」的行为,否则没配的部署上会多一个调用就失败的检索工具,复制应用包也会被拒。
  • 写法:只索引已发布文章的正文,每个小节切成一段;文章名放在正文第一行的标题里,不把标题字段一起列入(那样会多出一个只有标题的孤立段落)。
  • 要你做的:无。

What

  1. examples/app-starter/src/knowledge/articles.knowledge-source.ts (new) and the template mirror: name biz_articles / blank_articles; no adapter (the deployment's store); source.object the article object; source.content: ['body'] (not title: under markdown a listed title becomes a title-only passage, measured); source.metadataFields: ['category']; source.where: { status: 'published' }; source.split: { strategy: 'markdown' } if service-knowledge: a markdown section that fits maxChars is still cut into several passages #38351 is ruled A and has landed, else { strategy: 'markdown', maxChars: 800, minChars: 800 }.
  2. knowledgeSources wired in both configs; no requires: ['knowledge'].
  3. Parity test holds the source equal in both.
  4. The template's starter.test.ts: one case that with no embedder the stack boots with no warn or error line from knowledge and MCP lists no search_knowledge; one case that registers a small test embedder through extraPlugins and finds a seeded article section by search.
  5. Both READMEs: how to enable search on a self-hosted deployment (save the embedder provider in Settings, restart) and that the article bodies are then sent to that provider.

Acceptance

  • With no embedder: clean boot, no tool, duplicating the package succeeds.
  • With a test embedder: each published article's ## section is one passage whose heading path is [article title, section title]; the draft has no passage.
  • Parity test green; os validate clean on both; publish-starter-marketplace.mjs --dry-run passes.

File surface

examples/app-starter/src/knowledge/** (new), examples/app-starter/objectstack.config.ts, examples/app-starter/test/boot.test.ts, examples/app-starter/README.md; the mirrored files under packages/create-objectstack/src/templates/blank/; packages/create-objectstack/src/blank-template-starter-parity.test.ts; one changeset.

Reader: repo:objectstack#8 after triage's first touch.
Dedupe: as #38372.

Activity

  1. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Triage: lands in examples/app-starter/src/knowledge/articles.knowledge-source.ts (new) and its blank-template mirror in packages/create-objectstack, wired in both configs and held equal by the parity test · area:package · domain:server · Feature · p2 (maintainer-sourced) · pm:blocked (Blocked-by: #38369, #38372, in the body) · size S. Rationale: the knowledge source over the help articles ships only once a deployment with no embedder holds sources unserved (#38369) and the article object exists (#38372), as ruled. Its split choice depends on decision card #38351 (A ⇒ plain markdown, else maxChars = minChars = 800), so the dev reads that card's state at claim. Related: decision card #38352 (package manuals through knowledge search) touches the same retrieval path but not these files.
    Path: none

    Recorded 2026-11-28T16:26Z.

  2. added
    domain:server
    pm:blocked
    on Nov 28, 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:packagedomain:serverpm:blockedpriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions