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

In progress

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
Blocked-by: #39346, #38479

维护者速读

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

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
  3. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Unlock · pm:blocked → pm:queue · 2026-12-01T12:43Z

  4. added
    pm:queue
    and removed
    pm:blocked
    on Dec 1, 2026
  5. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CY1DVmttnuNH77G3ht

    Claim: PM loop round 1 · 2026-12-03T11:59Z
    Session: session_01Utp6CY1DVmttnuNH77G3ht
    Account: os-bill
    Branch: claude/issue-38374-starter-knowledge-source
    Worktree: objectstack-issue-38374
    Domain: domain:server
    Seat: repo:objectstack@os-bill
    Area: package-1203
    File surface: examples/app-starter/src/knowledge/articles.knowledge-source.ts (new), examples/app-starter/objectstack.config.ts, examples/app-starter/test/boot.test.ts, examples/app-starter/README.md, packages/create-objectstack/src/templates/blank/src/knowledge/articles.knowledge-source.ts (new), packages/create-objectstack/src/templates/blank/objectstack.config.ts, packages/create-objectstack/src/templates/blank/starter.test.ts, packages/create-objectstack/src/templates/blank/README.md, packages/create-objectstack/src/blank-template-starter-parity.test.ts, one changeset. Stop on any other breach and explain in the report.
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7311559519
    Premise: holds — read at origin/main dc4a2cd: both blockers closed (#38369, #38372); the article object exists in both trees (examples/app-starter/src/objects/article.object.ts, packages/create-objectstack/src/templates/blank/src/objects/article.object.ts); #38351 closed completed by PR #38439 (ruling A landed), so source.split is { strategy: 'markdown' } per the card's own branch; no knowledgeSources in app-starter yet.
    Pre-claim lane: domain:server (examples + packages/create-objectstack); this seat keeps it.
    Pre-claim deps: #38369, #38372 closed; #38351 closed completed.
    Prior rulings read: card cites the maintainer's 「以上都同意」 (#38372) and Warren's unlock 「38374 解锁入队」 (7311559519); the dev runs check-prior-rulings.mjs on its surface before the first edit.
    Serial constraints cleared: check-handover.mjs --inflight --card=38374 → no overlap read (path-less claims #38415, #35238 read by hand: no repository file). No sibling card in flight on these files.

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 3, 2026
  7. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CY1DVmttnuNH77G3ht
    os-dev-report

    {
      "issue": 38374,
      "status": "blocked",
      "branch": "claude/issue-38374-starter-knowledge-source",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39340",
      "session": "session_01Utp6CY1DVmttnuNH77G3ht",
      "premise_still_valid": true,
      "summary": "Draft PR #39340 at ca114a34 implements What 1-5: biz_articles / blank_articles (content ['body'], no adapter, where status published, metadataFields ['category'], split markdown), wired in both configs without requires knowledge; the parity test holds the two sources equal, with a control; the template starter.test.ts has a no-embedder case and a test-embedder case; boot.test.ts adds a held-host boot where the installed Starter duplicates; both READMEs and one patch changeset are updated. Mechanism hypotheses measured on main: the markdown split v2 keeps a section that fits as one passage (splitter.ts, SPLIT_ALGORITHM_VERSION markdown 2), and #38369's held state, empty tool list and unrefused duplicate door are all present. BLOCKED on one acceptance line: with no embedder, a fresh boot prints one WARN from knowledge. The seed's article writes reach the record-sync queue before settleEnablement runs at kernel:bootstrapped; resolveRecordSync checks only this.held, so the batch goes to the turso adapter, which has no embedder yet, and the boot prints 'WARN [knowledge] a batch of 4 record syncs of source blank-blank_articles failed (knowledge-turso has no embedder ...)'. The fix is in packages/services/service-knowledge, outside this card's surface, so it is not fixed here. The template's no-embedder case stays red until it lands. Everything else is green and can land once that fix does.",
      "tests": "At ca114a34, under os-verify-lock (VERDICT command-exit 0): pnpm --filter @objectstack/example-starter test passed, Test Files 2 passed, Tests 17 passed. example-starter typecheck exit 0. create-objectstack vitest src/blank-template-starter-parity.test.ts passed, Tests 15 passed. create-objectstack typecheck exit 0. The template starter.test.ts, run from a copy of the template against this checkout's packages (Scaffold E2E is the CI home): 5 passed, 1 failed. The failure is the no-embedder log assertion, which received the WARN line quoted in summary; the embedder case is green (search_knowledge listed, each published section found under [title, section], the draft's sections never answer). The template tsc --noEmit in a scaffold of this branch installed from the registry exits 0, and an injected type error exits 2 as the control. os validate: Starter 'Validation passed' exit 0, blank template copy 'Validation passed' exit 0. publish-starter-marketplace.mjs --dry-run after the Starter build exits 0, with bundle 'knowledgeSources 1'. No ablation: no previously tested behaviour changed.",
      "gates": "Local, the derived list (dispatch-gates --commands, tree ca114a34): 68 derived. 65 exited 0, captured before any pipe. 3 are NOT MEASURED: check-plugin-teardown-shape --self-test exit 3 (shallow clone cannot reach its pinned fixture), check:dual-build-cjs-loads exit 3 (dist missing outside the Starter closure), check:i18n-coverage exit 3 (app-showcase's service-print has no dist). Each prints PREREQUISITE / COULD NOT MEASURE. --ran reconciliation: '68 derived, 65 run, 3 NOT-MEASURED, 0 UNRUN'. overlap-check: VERDICT clean exit 0 against origin/main 23e859ae. CI check-runs: NOT MEASURED, the report was delivered before CI converged. Scaffold E2E (paths packages/create-objectstack/**) is expected red on the no-embedder case until the blocker lands.",
      "mcp_calls": "0",
      "api_writes": "2 relay strokes: fleet-write pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /repos/objectstack-ai/objectstack/issues/39340/assignees os-bill) and post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/38374/comments); plus git push of the branch",
      "classifier_refusals": [],
      "open_questions": [
        {
          "question": "On a host that runs no knowledge service (it installs the Starter through the marketplace and ships no source of its own), duplicating the installed Starter is now refused 503, naming biz_articles. Before this PR the duplicate succeeded. Should the duplicate door copy a knowledge source when no service runs, as it does while a service is held?",
          "options": [
            "A: the duplicate door treats 'no knowledge service' like 'held': it copies the source unserved (platform card in metadata-core / runtime packages.ts)",
            "B: keep the refusal as designed; the remedy text stands, and a marketplace host that wants duplicates adds requires knowledge"
          ],
          "recommendation": "A. The source is inert without a service, and the duplicate copies data the author already holds. The refusal blocks an ordinary copy on every self-hosted marketplace install of the Starter. Either way, this is a platform contract question outside this card."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: public door, a fresh scaffold's pnpm dev / pnpm test boot (no embedder) prints 'WARN [knowledge] a batch of 4 record syncs of source blank-blank_articles failed (knowledge-turso has no embedder ...)' and calls the store adapter, against #38369's 'zero adapter calls across boot and a record write' · evidence: packages/services/service-knowledge/src/knowledge-service-record-sync.ts resolveRecordSync skips only when this.held is set, which happens in settleEnablement at kernel:bootstrapped, so seed writes before then are synced to the adapter; reproduced by the template starter.test.ts no-embedder case on PR #39340 · Blocked-by for #38374 · dedupe words: knowledge held record sync seed boot, enablementPending record sync, knowledge-turso has no embedder batch, settleEnablement seed",
        "class: a · reach: public door, POST /api/v1/packages/com.example.starter-copy/duplicate on the installed Starter answers success:false, copiedCount 13, failedCount 3. Each of the three seeds is refused: 'seed/starter_second_..._seed failed spec validation: Unrecognized key(s) on this seed: name' · evidence: measured in examples/app-starter/test/boot.test.ts during this run (probe, not committed); pre-existing and unrelated to knowledge · dedupe words: duplicate package seed unrecognized key name, duplicatePackage seed failed spec validation, starter duplicate failedCount"
      ]
    }
  8. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6Cbi2zhSrfupi1Zt6V8

    Decision analysis · 2026-12-03T13:38Z · decision thread for seat repo:objectstack@os-bill (os-dev report 7379691385, draft PR #39340 on hold)

    维护者速读

    • 问题:基础模板带上知识源之后,没有知识服务的自建环境(自己的应用没带知识源、也没声明要知识检索,只是从市场装了基础模板)里,管理员点「创建副本」会整包被拒,提示去改服务器配置并重启;加知识源之前这里能复制。有知识服务但没配嵌入参数的环境不受影响,照常复制。
    • 选项:A 复制照常成功,知识源跟着复制过去但不生效,和它在原包里一样,以后环境配好知识服务,原包和副本一起生效;代价是这类环境上没有知识服务可问,所以不核对复制的人自己有没有权限检索这些内容(管理知识源的权限照常要),约两个小 PR。B 维持拒绝,这类环境要先在服务器配置里声明知识检索并重启才能复制基础模板,以后每个带知识源的市场应用都一样;不写代码,只把这张卡的验收条改成「有知识服务的环境上复制成功」。
    • 推荐 A:您定的方向是「同一套元数据到处能装,环境配没配置决定搜不搜」,这张卡当初也把「复制应用包被拒」列为要避免的结果;装包已放行,没配嵌入参数时复制也已放行,只剩这一种环境因为一条用不上的知识源挡住整个应用的复制。
    • 不定会怎样:基础模板知识源的 PR 继续搁置,后面排队的模板多语言三张卡也跟着等。

    Served-tier: CONTRACT_REVIEW_TIER
    Analysed-by: sub-agent of session_01Utp6Cbi2zhSrfupi1Zt6V8

    Background

    Card #38374 gives the Starter and the blank template a knowledge source over their help articles (biz_articles / blank_articles). Draft PR #39340 (head ca114a3) builds it. Its report (7379691385) raises one platform question outside the card's surface: on a host that runs no knowledge service, duplicating the installed Starter is now refused 503 SERVICE_UNAVAILABLE naming biz_articles; before the PR the Starter held no source, so the duplicate door asked nothing. The card's acceptance reads "With no embedder: clean boot, no tool, duplicating the package succeeds".

    Three deployment states exist, and only the third is in question:

    State Install Author's save of a source Duplicate of a package holding a source
    Service enabled yes judged for the author judged for the caller
    Service mounted, not enabled ("held": no embedder or no store) yes, held refused 503 copied, held, if the caller passes the author gates
    No knowledge service yes, inert, boot warn names it refused 503 (ruling D) refused 503

    Only a writable base can be duplicated (a code package answers DUPLICATE_SOURCE_NOT_A_BASE), so the Starter is duplicated only where it was installed from the marketplace. That is the path the refusal sits on.

    The report's two other findings are separate defects and not part of this decision: a boot warn from record sync before the held state settles (service-knowledge), and the duplicate of the installed Starter answering failedCount: 3 on its seeds.

    Governing text

    • ADR-0161 K8, dated note of 2026-11-28 on item 12 (docs/adr/0161-*.md, line 422): the maintainer's words 「也就是同一套元数据,企业版和社区版运行结果不一样」「平台没有知识服务时,知识源不应该启用啊。」; "So one set of metadata ships to every deployment, and what a self-hosted deployment has configured decides whether it searches."
    • Same note, ◆ "an author's save" (line 430). Ruled, in quotes: "The package duplicate door is not refused then." The note's own prose after it: "What it answers where no knowledge service is registered, and to a caller who may not search what a source indexes, is unchanged". Option A changes the first half of that sentence, so it owes a dated note of its own.
    • Ruling D on knowledge: what a knowledge_source saved at run time does on a deployment that mounted no knowledge service (split from #37306 item 4) #37983 (record 7220511579, maintainer Elon, 2026-11-27): 「D 拒绝保存并说明」. Execution item 1 names three doors ("PUT /meta/:type/:name on both transports, the MCP draft save"); item 2 exempts the engine's writes. Its reason: "the author learns at the save, not from a server log the Studio or MCP author never sees". Item 5 puts a pre-boot metadata read and an always-on service out of scope.
    • The fourth door. The contract review on PR feat(metadata-core)!: a knowledge source is saved only on a deployment that mounts the knowledge service #38013 (record 7228262724) kept the duplicate refused ("its reasoning (ADR-0078 §1) applies to the copy equally; a carve-out needs a new input on an exported function, which the ruling did not order") and escalated it: "the refusal blocks the duplicate of a whole package (objects, pages, flows) because it holds one source". The hand-off named it "for your judgement"; os-zhuang merged the PR on 2026-11-28. So B is the standing state and passed a maintainer's merge with the door named, but the question was never put with options, and no record gives a reason beyond the review's.
    • ADR-0078 §1: "Parsed, unmarked, silently inert is prohibited". §4: the runtime seam "warns and never throws ... an inert field must not kill a boot thousands of healthy objects share." The prohibition is on silence, not on inertness.
    • packages/objectql/src/knowledge-source-unserved.ts, header: "a package may ship a source to a deployment that chose not to run retrieval, and its objects, pages and flows must keep serving there."
    • ADR-0070 D4: "Duplicate: clone a base into a new writable package (the Airtable "duplicate base" gesture)."
    • Card examples/app-starter and the blank template: a knowledge source over the help articles, served only where knowledge retrieval is enabled #38374 速读, maintainer-directed: the source waits for the not-enabled state because otherwise 「复制应用包也会被拒」. Card service-knowledge: a self-hosted deployment with no embedder holds its knowledge sources without serving them, and lists no search_knowledge #38369 速读: 「复制应用包照常」. Both name a refused duplicate as the outcome to avoid on an unconfigured deployment; both were written about the no-embedder case.

    Protocol

    No spec key changes under either option. A relaxes a refusal that migration entry 19 declares (its surface names "a package duplicate that copies one") and that content/docs/protocol/knowledge.mdx states; it is a widening of what is accepted, and it changes a sentence of ADR-0161's record, so it owes a dated note (Tier H) before the code. B changes nothing.

    Premises (each with a re-check; read at ccc0838)

    1. The duplicate door refuses on a no-service host, pinned. grep -n "a host with no knowledge service refuses a duplicate" packages/runtime/src/domains/packages-knowledge-source-gate.test.ts → line 324.
    2. The refusal is one branch of one predicate, reached with door: 'duplicate'. grep -n "return noKnowledgeServiceRefusal" packages/metadata-core/src/knowledge-source-save-admission.ts → line 263; grep -n "door: 'duplicate'" packages/runtime/src/domains/packages.ts → line 666, in refuseDuplicatedKnowledgeSources (line 635), called at line 4219.
    3. While held the duplicate is not refused, and the author gates are still judged for the caller. grep -n "this.held && options?.door !== 'duplicate'" packages/services/service-knowledge/src/knowledge-service-admission.ts → line 249; the identity, adapter, reference and permission arms follow it (lines 252 to 430).
    4. With no service nothing judges those author gates: they live in the service (admitAuthoredSource), and the predicate returns at line 263 before reaching it. The capability gate (manage_knowledge_sources beside manage_metadata) is the dispatcher's and needs no service: grep -n "refuseKnowledgeSourcePackageWrite(deps, _context" -A2 packages/runtime/src/domains/packages.ts | grep "Duplicating" → the call at line 4195.
    5. A duplicate copies a source as its package holds it; the caller supplies only the target id, name and namespace, so the copy lists the fields the installed original lists. grep -n "sourcePackageId: id" -A5 packages/runtime/src/domains/packages.ts → line 4224. The search gates are asked again of every searcher: sed -n 9,16p packages/metadata-core/src/knowledge-source-save-admission.ts.
    6. A source installed after boot never mounts the service; the mount reads the stack. grep -n "The items this line" -A5 packages/objectql/src/knowledge-source-unserved.ts → line 26. So the no-service state lasts until an operator edits the stack.
    7. The Starter's own install test models this host: grep -n "const HOST" -A8 examples/app-starter/test/boot.test.ts → line 35, a stack with a manifest and no requires; grep -n "bootStack(HOST" examples/app-starter/test/boot.test.ts → line 89, with MarketplaceInstallLocalPlugin. PR feat(examples): the Starter help articles as a knowledge source, in the blank template too #39340 adds a second boot with requires: ['knowledge'] to show a duplicate that answers 200 with the source among copied.
    8. Only a base duplicates: grep -n "DUPLICATE_SOURCE_NOT_A_BASE" packages/runtime/src/domains/packages.ts → line 1947; the route comment at lines 4179 to 4186 says a code package has no rows to clone.
    9. Hosts not affected: a stack that ships a source or declares the token mounts the service (grep -n 'by `knowledgeSources`' packages/core/src/capability-composition.ts → line 92) and is held or enabled. The cloud is out of scope by the maintainer's word in the note (「云端不需要管」); whether it runs the service was not read here.
    10. B's remedy has a standing cost: a host that adds the token only to duplicate gets a mounted store it does not use and a warn at every boot. grep -n "Ruled: the log line" docs/adr/0161-*.md → line 433 ("warn when the stack lists requires: ['knowledge']").
    11. Pull, measured: this card and its blocked PR. gh api -X GET search/issues -f q='repo:objectstack-ai/objectstack is:issue is:open "no knowledge service" duplicate' → 3 hits, none a customer host in the third state. How many self-hosted deployments install marketplace packages without declaring knowledge is not measurable from the repo.
    12. The duplicate answer has no notice channel: grep -n "DuplicatePackageResponseSchema = " -A14 packages/spec/src/api/package-lifecycle.zod.ts → line 487: success, counts, targetPackageId, copied, failed. The held-state duplicate is equally silent to its caller today.
    13. Workload precedents, read from the PRs: ADR dated note PR docs(adr): ADR-0161 dated note on item 12, a mounted knowledge service is enabled by configuration #38401 (+22/−0, 1 file, Tier H); the held-state refusal with its duplicate exemption, PR feat(service-knowledge)!: an author's knowledge source save is refused while the knowledge service is not enabled #38599 (+429/−16, 12 files); the no-service refusal, PR feat(metadata-core)!: a knowledge source is saved only on a deployment that mounts the knowledge service #38013 (+375/−56, 24 files). grep -rn -i duplicate skills/objectstack-ai | grep -i knowledge → none, so no skill text teaches the duplicate refusal.

    The question in one sentence

    Should one knowledge source that cannot run on a deployment stop an administrator from copying the whole app that carries it?

    Options × real cost × workload

    What What people see Workload
    A On a host with no knowledge service the duplicate door copies each source unserved, as it does while the service is held. Author saves (the three doors and move-in) stay refused: ruling D stands. The caller is not asked the author-may-search gate there, because nothing on that host can judge it. "Create a copy" of the Starter, and of any marketplace app with a source, works on every host. The copy's source is inert like the original's; the caller is told nothing at the door, and from the next boot the log names both with the remedy. When the operator later mounts and configures the service, both are built. domain:skills then domain:server · 2 PRs. (1) A dated note under ADR-0161 K8, Tier H; precedent #38401, +22. (2) The predicate branch and its now-dead duplicate wording, the pin at line 324 flipped, two module docblocks, three sentences of the protocol docs page, entry 19's surface text, a changeset. No exact precedent; the nearest is #38599 (+429, 12 files), which carried the mirror exemption together with a new refusal, so expect well under it. Not measured.
    B Keep the refusal. Card #38374's acceptance line is narrowed to hosts that mount the service; the Starter README says a host must declare knowledge before the Starter can be duplicated. On such a host the administrator is told to edit the server's stack file and restart before any copy of the Starter can be made, for a search feature they did not ask for; the host then carries an unused store and a boot warn (premise 10). The same holds for every later marketplace app that ships a source. No platform PR · a card-text edit and one README sentence inside PR #39340, which keeps its extra boot.

    Considered and not offered.

    1. Copy the package without its source and say so: the copy would lose search for good when the deployment enables retrieval later, and the answer has no field to say it (premise 12).
    2. Let an installed source mount the service at the next boot: ruling D's item 5 puts the pre-boot metadata read out of scope, and it would not help before the restart.
    3. A notice field on the duplicate answer naming the unserved copies: a protocol addition with one consumer; the held-state duplicate is silent in the same way and was ruled so.
    4. Move the author gates out of the knowledge service so a no-service host can judge the caller: it relocates ADR-0161 K4's guard two for a check that protects nothing here until an operator enables retrieval (see ③). It is the complete answer to A's concession, and it is a larger contract change than this question carries; named in the confidence gaps.

    Business translation. A: photocopying a binder is allowed even if one chapter needs a projector the office has not bought; the chapter waits in both binders. B: the photocopier refuses the binder until the office buys the projector.

    Four axes (business stance)

    • Long-term fit (①) — End state two years out: most marketplace apps carry a knowledge source over their help or policy content, as the Starter now does, and the platform's stated model is one set of metadata for every deployment, with configuration deciding what runs. Mainstream platforms model it that way: a Salesforce package installs and its apps clone in an org without the Knowledge or Einstein licence, the feature staying off until enabled; a Power Platform solution with a capability-bound component imports and copies, the component inactive until its connection exists. None refuses to copy the whole app. Under A the lifecycle verbs agree (install, duplicate while held, duplicate with no service all carry the source along, inert), and the line that remains is ruling D's own: a person authoring a new source where nothing can serve it is told at once. Under B one inert item vetoes a lifecycle verb on everything around it, on the only path where the Starter can be duplicated, and the case widens with every package that ships a source. A removes a special case; B keeps one and lets it grow.
    • Real business need (②) — Measured pull is this card and its blocked PR (premise 11). The affected host is a self-hosted deployment that installs from the marketplace and has not declared knowledge, which the Starter's own install test models. Duplicating an installed starter is how it becomes the customer's own app. Thin today; grows with packaged sources.
    • AI-error-proofing (③) — B's case, stated fully: a copy made at a door by a person or an agent is a new declaration that does nothing, and under A that caller hears nothing; the only statement is a server log they may never see, which is the reason ruling D refused the save. Against it: ruling D's mistake is an author declaring a capability and never learning it is dead. A duplicate declares nothing new: the source came by the engine's write, the caller cannot change it (premise 5), the boot log already names the original, no search tool is listed on that host so nothing callable fails, and the held-state duplicate is silent in the same way by ruling. A new source written there is still refused loudly. What A gives up is a permission check, not a loud failure: on a no-service host the caller is not asked whether they may search what the source indexes. The exposure is bounded: the capability gate is still asked; the copy lists the same fields as an installed source that was never judged for an author either; nothing is built or sent to an embedder until an operator mounts the service and saves a provider; and every search still asks the searcher's own gates, so a caller who could not read a field cannot search it afterwards. Who sees what if this is wrong: nobody at the door; an index over the copy's own records that a caller without field access caused to exist, readable only by those with access.
    • Startup focus (④) — B costs nothing. A is two small PRs, one of them a note, adds no key, no door value and no gate, and deletes a refusal branch and its wording. Neither spreads surface.

    os-decision-facets
    ① Long-term fit: A makes install, duplicate-while-held and duplicate-with-no-service agree (the source rides along inert), leaving only ruling D's line on newly authored sources; B keeps a special case where one inert item vetoes a whole-package copy, widening with every marketplace app that ships a source.
    ② Business pull: this card and its blocked PR, on self-hosted hosts that install from the marketplace without declaring knowledge (the Starter's own install-test host); no customer report; grows with packaged sources.
    ③ AI-error-proofing: B is the loud answer at the door; A keeps the loud refusal for authored saves and lists no search tool, and gives up the author-may-search check for a copy on a no-service host (capability gate kept, fields unchanged from the installed source, nothing embedded until an operator enables retrieval, search gates still asked).
    ④ Startup focus: B is zero platform code; A is two small PRs (an ADR note and one predicate branch with its texts), no new key, door or gate.
    Prior rulings read: duplicate, knowledge source, no knowledge service, held, 37983, 38368, 38369 → 3 hits (ruling D 7220511579 on #37983; ruling 1A–4A 7248214179 on #38368; contract review 7228262724 with the seat hand-offs on PR #38013, merged with the fourth door named); ADR-0161 K8 note on item 12, ADR-0078 §1 §4, ADR-0070 D4; coordinator/rulings.md 0 hits; thread: none

    Recommendation: A

    Self-check: 只看①选 A;②③④ 是否翻转:否。

    ② is thin and ④ favours doing nothing; they set the order (the note first, the code after, PR #39340 landing behind both) and do not move the letter. ③ names a permission concession. It does not flip the letter, because the check it drops guards nothing on that host until an operator's later decision and the search-time gates remain; but it is a permission boundary, so it is put to the maintainer as an explicit term of A, in the 速读 and below, not left implied. The workload gap (nothing against two PRs) is named here because it is large; the ① readings are not close.

    Not taken. B: it is consistent with ruling D's wording ("each door that saves one") and it is the loud answer, and it has stood since PR #38013 merged. It is not taken because it stops a whole-app copy for an item the caller did not write and cannot make work, on the only path where the Starter can be copied; because the maintainer's later words (2026-11-28) and two cards he read name a refused duplicate as the outcome to avoid; and because its remedy leaves the host with a store and a boot warning it does not want.

    Confidence gaps. (a) How many self-hosted deployments are in the third state is not measured. (b) The platform comparisons are from general knowledge of those products, not re-read. (c) Whether the copy carries the original's field-level rules onto its renamed objects was not read; the bound in ③ rests on the search-time gates, which do not depend on it. (d) Whether a source copied on a no-service host should be judged for its copier when the service is first mounted is not designed; an installed source is not judged for an author either. Option 4 above is the full answer if the maintainer wants the check kept. (e) Whether a landed migration entry's text may be edited or a new entry is owed was not read. (f) The cloud's composition was not read. None moves the letter.

    Execution after the ruling

    • A. The seat files one platform card (area:package, domain:server, with a domain:skills note PR first). Ruled terms: (1) on a host where no knowledge service is registered, door: 'duplicate' is not refused for that reason and each source is copied unserved; a scoped-factory miss (knowledgeServiceNotInScope) and a service that cannot be resolved keep their refusals. (2) The save doors and move-in are unchanged: ruling D stands. (3) The author-may-search gate is not asked for a duplicate on such a host, since nothing there can judge it; the capability gate is. The dated note says so in a sentence, with the bound from ③. (4) No notice field is added to the duplicate answer; the boot line stays the statement. (5) Entry 19's surface, content/docs/protocol/knowledge.mdx (the paragraph "A deployment with no knowledge service saves no source"), the two docblocks and the pin at line 324 drop the duplicate from the no-service refusal; the dev follows the migration ledger's rule on editing a landed entry and says which it was. Named, falsifiable premise, verified before the first edit: on the Starter's install-test host (no requires), POST /packages/:id/duplicate of the installed Starter answers 503 today; after the change it answers 200 with the source among copied, and PUT /meta/knowledge_source/x there still answers 503. Ban: if the change needs a new door value, a new exported input, or touches the save doors, the dev reports a fork; no fallback to B. PR feat(examples): the Starter help articles as a knowledge source, in the blank template too #39340 stays on hold behind that card and the record-sync defect card; its requires: ['knowledge'] boot may stay as the held-state case, and a no-requires duplicate case is added.
    • B. The seat edits examples/app-starter and the blank template: a knowledge source over the help articles, served only where knowledge retrieval is enabled #38374's acceptance line to "on a host that mounts the knowledge service", PR feat(examples): the Starter help articles as a knowledge source, in the blank template too #39340 adds the README sentence, and the PR waits only on the record-sync defect.
    • Either letter: the seat files the two defect cards from report 7379691385. The duplicate's success stays false on the Starter until the seed defect is fixed, so "duplicating the package succeeds" is read as "answers 200 with the source copied" until then.

    Related

    #37983 (ruling D), #38368 and #38369 (the held state), PR #38013, PR #38599, PR #38401, PR #39340; follow-ups owed from report 7379691385 whatever the letter: the record-sync boot warn (service-knowledge) and the seed name refusal on duplicate.

  9. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6Cbi2zhSrfupi1Zt6V8

    Ruled · 2026-12-03T14:05Z · A · the duplicate door on a host with no knowledge service (decision 7380145720)

    The maintainer's answer, in this card's decision thread at 2026-12-03T14:05Z: Bill chose the option 「A 放行复制,知识源不生效」 on the decision card that asked 「裁定:没有知识服务的自建环境,复制市场装的基础模板要不要放行」. The option's consequence line as he read it, verbatim: 「副本带着知识源但不生效,配好知识服务后一起生效;这类环境不核对复制者的检索权限。约两个小 PR。」 The card offered A and B with A recommended. It is a tap on a card: it answers what the card asked and nothing else. Freshness: re-read through 7380145720, the newest comment, which has no later edit; the card body was last changed before the analysis.

    Governing text: ADR-0161 K8, the dated note of 2026-11-28 on item 12 (◆ "an author's save", and the sentence after it on the duplicate door where no knowledge service is registered); ruling D on #37983 (record 7220511579), which stands; ADR-0078 §1 and §4.

    • A — on a host where no knowledge service is registered, the package duplicate copies each knowledge source unserved.
      1. door: 'duplicate' is not refused for that reason. A scoped-factory miss (knowledgeServiceNotInScope) and a service that cannot be resolved keep their refusals.
      2. The save doors and the package move-in are unchanged: ruling D stands, and an author's save there is still refused 503.
      3. The author-may-search gate is not asked for a duplicate on such a host, since nothing there can judge it. The capability gate (manage_knowledge_sources beside manage_metadata) is still asked. This concession was on the option he chose. The dated note states it in a sentence, with its bound: the copy lists the fields of the installed source, nothing is built or embedded until an operator mounts and configures the service, and every search still asks the searcher's own gates.
      4. No notice field is added to the duplicate answer; the boot line stays the statement.
      5. Migration entry 19's surface, content/docs/protocol/knowledge.mdx (the paragraph "A deployment with no knowledge service saves no source"), the module docblocks and the pin in packages/runtime/src/domains/packages-knowledge-source-gate.test.ts drop the duplicate from the no-service refusal. The dev follows the migration ledger's rule on a landed entry and says which it was.
    • Order. A dated note under ADR-0161 K8 first (Tier H), then the code PR. PR feat(examples): the Starter help articles as a knowledge source, in the blank template too #39340 stays on hold behind that platform card and the record-sync defect card; it gains a duplicate case on a host with no requires, and its requires: ['knowledge'] boot may stay as the held-state case.
    • Premise the dev verifies before the first edit (7380145720): on the Starter's install-test host (no requires), POST /packages/:id/duplicate of the installed Starter answers 503 today; after the change it answers 200 with the source among copied, and PUT /meta/knowledge_source/x there still answers 503. If the change needs a new door value, a new exported input, or touches the save doors, the dev reports a fork. It does not fall back to B.
    • Either way owed (report 7379691385): two defect cards, the record-sync boot warn in service-knowledge and the seed name refusal on duplicate. Until the seed defect is fixed, "duplicating the package succeeds" in this card's acceptance reads "answers 200 with the source copied".
    • Not taken: B (keep the refusal and narrow this card's acceptance line).

    State: the seat repo:objectstack@os-bill executes: it files the platform card and the two defect cards and sets this card's blockers and labels. This thread wrote no label.

  10. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Ruling recorded, serial wait: 2026-12-03T14:12Z · ruled A (7380897321).

  11. added
    pm:blocked
    and removed
    pm:dispatched
    on Dec 3, 2026
  12. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Unlock: 2026-12-04T04:53Z · pm:blocked → pm:queue. The newest Blocked-by: line names #39346 and #38479; both are closed completed (#38479 by PR #39414 at 2026-12-04T00:13Z, #39346 by PR #39383 at 2026-12-04T04:52Z). Draft PR #39340 holds this card's earlier work; the next claim re-reads its premise on main before resuming from it.

  13. added
    pm:queue
    and removed
    pm:blocked
    on Dec 4, 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:queuepriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions