Repository navigation
feat(examples): the Starter and blank template help articles as a knowledge source, served only where retrieval is enabled - #39617
Conversation
… the blank template too Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CY1DVmttnuNH77G3ht
…dder, and found by search with one Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CY1DVmttnuNH77G3ht
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CY1DVmttnuNH77G3ht
…nowledge service copies the source unserved Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibxcR6c7HbmBNjEvJHy
📓 Docs Drift Check3 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. What this run could not see
Coarse fallback — 1 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 914a06b53556b238d9add6fe96a13a631e6b2ca8 && git checkout 914a06b53556b238d9add6fe96a13a631e6b2ca8
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 1589bd854bee9cb801c1119608c3bbce257aa571 8e4654c40447414b087a2583edd3f88be3663fa1 && git checkout -B drift-repro 1589bd854bee9cb801c1119608c3bbce257aa571 && git merge --no-ff 8e4654c40447414b087a2583edd3f88be3663fa1
node scripts/docs-audit/affected-docs.mjs --json 1589bd854bee9cb801c1119608c3bbce257aa571 |
…hat it declares a source Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibxcR6c7HbmBNjEvJHy
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv L1-a · ACCEPT · #39617 @
Not governed, not Tier H. The zone lands it. |
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibxRrrjrsQAWAcsbV46 Landing · 2026-12-04T11:04Z · zone ot-p1 · head
State: ready + auto-merge through the merge queue under the maintainer's standing landing line on seat post #39520 (「复审通过的 PR 座位自己落地」). On MERGED, |
Requested by Tesla · project thread
Fixes #38374
Clause-②: no
Metadata-protocol: none
维护者速读
Supersedes draft PR #39340 (seat os-bill, head ca114a3): its three commits are cherry-picked onto current main unchanged, plus one new test case.
What changes
examples/app-starter/src/knowledge/articles.knowledge-source.ts(new) and its blank-template mirror:biz_articles/blank_articlesover the article object.source.content: ['body'](nottitle), noadapter,source.where: { status: 'published' },source.metadataFields: ['category'],source.split: { strategy: 'markdown' }(service-knowledge: a markdown section that fits maxChars is still cut into several passages #38351 was ruled A and landed in PR feat(service-knowledge): under the markdown split, a section that fits is one passage #38439, so the plain markdown split, nomaxChars/minCharspair).knowledgeSources; neither addsrequires: ['knowledge'].starter.test.ts: a no-embedder case (noWARN/ERRORline mentioning knowledge during the boot; MCP lists record tools but nosearch_knowledge) and an embedder case (a small word-hash embedder throughextraPlugins; every published##section is found under[article title, section title]; the draft's sections never answer).boot.test.ts, two new boots: a host that asks for knowledge with no embedder (the installed copy duplicates, its source copied and held, no tool listed), and, new in this PR, a host with no knowledge service at all (norequires): the duplicate answers 200 withsuccess: true,failed: [], and the source amongcopied, per ruling A (7380897321).create-objectstack, patch), kept from feat(examples): the Starter help articles as a knowledge source, in the blank template too #39340 and re-read against the final diff.Tests
Local runs at 30cab79
starter.test.ts, run from a copy of the template against this checkout's packages: 6 passed, including "with no embedder: the boot is quiet about it, and AI clients are offered no search_knowledge" (was red on feat(examples): the Starter help articles as a knowledge source, in the blank template too #39340 with the record-sync WARN; fixed by PR fix(service-knowledge): a record write before the boot reads a runtime-composed knowledge service calls no store #39414) and the embedder case.pnpm --filter @objectstack/example-starter test: Test Files 3 passed, Tests 21 passed, including "on a host with no knowledge service: duplicating the installed starter succeeds, the source copied unserved and no seed refused" (PR fix(knowledge): on a deployment with no knowledge service, duplicating a package copies its knowledge sources unserved #39383 for the door, package duplicate: every seed of the installed Starter is refused "Unrecognized key(s) on this seed: name", so the copy answers success:false #39341 for the seeds).pnpm --filter create-objectstack exec vitest run --maxWorkers=2 src/blank-template-starter-parity.test.ts: exit 0.pnpm --filter create-objectstack typecheck,pnpm --filter @objectstack/example-starter typecheck: exit 0.Acceptance notes
enablementSettledinknowledge-service-record-sync.ts, service-knowledge: pin a record write between boot and the enablement reading on a held deployment (after #38369 PR #38470) #38479), so the seed's article writes on a held deployment reach no store; the dispatch's wording "skips while enablement is pending" reads as "waits, then finds the source held".Verification
objectstack validateon the Starter and on a copy of the blank template: "Validation passed", exit 0 each.node scripts/ci/publish-starter-marketplace.mjs --dry-runafter building the Starter: exit 0, bundleknowledgeSources 1.check:dual-build-cjs-loadsandcheck:i18n-coverage(exit 3, dist outside the Starter closure),check:query-options-erasureandcheck:type-check-debt(stopped by a 280 s local timeout). CI runs all four.--ranreconciliation: 0 UNRUN.starter.test.ts.Read first:
examples/app-starter/test/boot.test.ts(the last describe, new here),packages/create-objectstack/src/templates/blank/starter.test.ts(the two knowledge cases),packages/create-objectstack/src/blank-template-starter-parity.test.ts.Two-minute check:
pnpm --filter @objectstack/example-starter test. Expected: 21 passed, including "duplicating the installed starter succeeds, the source copied unserved and no seed refused".🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibxcR6c7HbmBNjEvJHy