Repository navigation
fix(knowledge-turso)!: Test connection comes with the Turso fields it checks; the group text drops the cloud fallback - #37982
Conversation
…rn on no contribution; group description Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
📓 Docs Drift CheckThis PR changes 3 package(s): 9 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 4 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 12 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 0ce64f1caef7acb80d60b036dc4dd271e56f242f && git checkout 0ce64f1caef7acb80d60b036dc4dd271e56f242f
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f72f335393f40e27194c56911e6de46052cb6f4c b1ef64de442a994555ffb1d1f429fa9e35e441d6 && git checkout -B drift-repro f72f335393f40e27194c56911e6de46052cb6f4c && git merge --no-ff b1ef64de442a994555ffb1d1f429fa9e35e441d6
node scripts/docs-audit/affected-docs.mjs --json f72f335393f40e27194c56911e6de46052cb6f4c
|
…owledge page a real boot has Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · head 9509b99 · 2026-11-27T16:48Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Inputs read: card #37907 (body, 4 comments, the claim 7217144305 and the dev report 7223647773 included), folded card #37680 (body, 6 comments, the cloud fact 7217205358 and the claim 7217241951 included), PR #37982 (body, 2 comments, 27 files, net diff against the merge base 73d5e34), the 54 check-runs on the head, the log of the failed first attempt of Test Core (8/10), and for context the record 7215949880 on PR #37902. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe narrowing makes the settings contract's standing refusal real and takes no delivered capability away. The capability is a form check of two fields. Where the two fields are on the page because their one reader put them there, the check is beside them and answers as before. Where they are not, the check read nothing that deployment reads and opened no connection, and its door now gives the answer every action without a handler gets. That is "delivered where read, retired where not", decided by the party that knows whether it reads the keys, the same shape PR #37902 gave the fields themselves. Tried to break it:
S1 (should-fix) — a host that registers its own Nits (none affects correctness or the contract): N1 — the declaration's strict spelling is N2 — the warning's consequence clause ("nothing can be saved there and the store opens its default file") is false in two of the cases it fires for. With no knowledge service mounted the store never opens at all, and N3 — the pending 37678 note says the plugin "loads the same strings, in the same eleven locales"; after this PR the eleven descriptions differ from the ones that note moved. Both notes ship together and the new one says what changed, so it reads true as that note's own step. Left as is. N4 — the collision test in N5 — the import line sends a service-settings consumer to a package it may not have installed, one whose dependency is a native libSQL client (the entry imports that client as a type only, so the import itself loads nothing native). One clause in the changeset would say so. The two structural types duplicate service-settings' own on a permanent surface. N6 — the report's account of the six timeouts is slightly too broad (see ③). No action on the tree. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): REWORK at head 席位核对Contract review. Record 7223849938 at this head is PASS at the contract tier ( What the next head needs.
Rulings on the area's questions.
Next: a new head, then a delta L2 on S1 (and N2 if touched), then a delta L1, then the seat's Tier H handoff. |
… (contract review S1, N1, N5) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · head 7add85f · 2026-11-27T16:58Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Delta of record 7223849938 (head ① Derived judgmentsUnchanged: no path outside the prose faces moved. Each new sentence of the changeset, against the code at this head:
② Semver level
③ Boundary flags
④ Design judgmentUnchanged from record 7223849938: the narrowing makes the settings contract's standing refusal real and takes no delivered capability away. The one hole found there, a host page that carries the fields and the button with no handler behind it, is now stated in the migration text with its one-line remedy. That is the prose route the earlier record named as sufficient: the plugin leaving a host page exactly as written is the documented behaviour, and the host now knows what that costs and how to restore it. S1 (should-fix): closed No must-fix, no should-fix. Nits carried from record 7223849938, none affecting correctness or the contract: N1 — answered on both carriers (see ②). N2 — the warning's consequence clause is still untrue in two of the cases it fires for; not worse on this head. Accepted deviation. N3 — left as is. N4 — accepted deviation. N5 — answered (see ①). N6 — no action on the tree. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · head 6c858a1 · 2026-11-27T17:02Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Second delta of record 7223849938 (head ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentUnchanged from record 7223849938: the narrowing makes the settings contract's standing refusal real and takes no delivered capability away. The merge moved none of the code that judgment was made on. S2 (should-fix) — the Nits carried from records 7223849938 and 7223949181, none affecting correctness or the contract: N2 — the warning's consequence clause is untrue in two of the cases it fires for; not worse on this head. Accepted deviation. N3 — the consumed note's "loads the same strings" sentence; left as is, and now published. N4 — accepted deviation. N6 — no action on the tree. Implemented-by: VERDICT: PASS |
…e consumed 37678 note is left as main has it (contract review S2) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): REWORK at head 席位核对Contract review. Delta record 7224029827 at this head: PASS at the contract tier ( What changed under the PR. Main's Next head, prose only:
Amending the two published CHANGELOG entries is release-owned (AGENTS.md) and goes in a separate docs-only PR if wanted, not this one. Next: a new head, a delta L2 on S2, green CI including Check Changeset, a delta L1, then the seat's Tier H handoff. |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · head 29ed1f4 · 2026-11-27T17:08Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Third delta of record 7223849938 (head ① Derived judgments
② Semver levelUnchanged from record 7223949181: ③ Boundary flags
④ Design judgmentUnchanged from record 7223849938: the narrowing makes the settings contract's standing refusal real and takes no delivered capability away. Nothing since has moved the code that judgment was made on. The one release-text question the merge raised is settled the way the card routes it, with no edit to a consumed note and no side effect on the stable cut's fold. S2 (should-fix): closed No must-fix, no should-fix. Nits carried from the earlier records, none affecting correctness or the contract: N2 — the warning's consequence clause is untrue in two of the cases it fires for; not worse on this head. Accepted deviation. N3 — the consumed note's "loads the same strings" sentence; published as is. N4 — accepted deviation. N6 — no action on the tree. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT (delta) at head 席位核对Gates. Check-runs at 29ed1f4: 41 success, 17 expected skip, 0 failed. The one Contract review. Delta record 7224135133 at this head: PASS at the contract tier (
Not owed here. The two published Landing: narrowing, so it goes through the seat's Tier H handoff. |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record · 2026-11-27T17:36Z · PR #37982 (Fixes #37907, Fixes #37680) · head 维护者速读
Seat opinion: land. 席位核对 — ACCEPT · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Approval request · @os-zhuang — the Knowledge page's Turso "Test connection" action now ships with the Turso fields it checks: a page without the Turso group has no such action, and POST |
…before; Test connection is pinned where it now lives The embedderSettings pin in service-knowledge compared knowledge/test with knowledgeTestActionHandler imported from service-settings, which no longer exports it: knowledge-turso contributes the action with its Turso fields. The service-knowledge pin now judges knowledge/test against the default mount and an undeclared control; knowledge-turso pins its group and its Test connection beside a knowledge service mounted with the option off. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 46090924814 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
我批准了,你改完可以自主落地 |
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP Queue red: cause and fix · new head Cause. Deterministic, not load. Main's Fix (test-only, commit
Merge. Verification at
Contract: none touched. The change is two test files. No published schema, export, changeset or governed rule text changes, and the PR body is unchanged. |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs CI reading · 2026-11-28T02:10Z · head The shard's tests ran to completion green: the log reads "Attested: test-2-of-10 ran to completion with every step green (run 46095431003, attempt 1)". The only error is the next step, |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record addendum · 2026-11-28T04:06Z · PR #37982 · head 席位核对 — ACCEPT · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Correction to the seat record 7233707059 · 2026-11-28T04:07Z Item 3 says |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · b1ef64d · 2026-11-28T04:34Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Fourth delta of record 7223849938 (head ① Derived judgments
② Semver levelUnchanged from record 7223949181: ③ Boundary flags
④ Design judgmentUnchanged from record 7223849938: the narrowing makes the settings contract's standing refusal real and takes no delivered capability away. This round is that design meeting a feature main added in the meantime, and it held without a code change: an option that switches off the embedder section of the No must-fix, no should-fix. Nits, none affecting correctness or the contract: N2 — the warning's consequence clause is untrue in two of the cases it fires for; not worse on this head. Accepted deviation. N3 — the consumed note's "loads the same strings" sentence; published as is. N4 — accepted deviation. N6 — no action on the tree. N7 — the header comment of the service-knowledge settings test (line 7) still says a kernel that mounts the service offers "both test actions"; since this PR it offers one, and the cases below say so. Carried from the full-review head, not introduced by this delta. A comment only; fix when the file is next touched. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Reconciling the approval head in seat record 7233707059 · 2026-11-28T04:40Z Review 6094972364 (os-zhuang, APPROVED) was submitted at 2026-11-28T01:44Z, when the head was |
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Fixes #37907
Fixes #37680
Clause-②: yes (narrowing)
Metadata-protocol: none
Skills-docs: none — no skill under
skills/**teaches the Knowledge page's test action,knowledgeTestActionHandleror the Turso group's text.维护者速读
What changes
testaction_button andknowledgeTestActionHandlermove from@objectstack/service-settings(manifest declaration, handler, package export) and@objectstack/service-knowledge(registration) into@objectstack/knowledge-turso's settings contribution. The button is now the last entry of the Turso group, right afterturso_auth_token, andcontributeKnowledgeTursoSettingsregisters the handler only where it adds the group. So:url/client: the page has no Test connection, andPOST /api/settings/knowledge/testanswers400 SETTINGS_ACTION_FAILED(no handler registered), the same envelope as an action no page declares;200, as before.settings.knowledge.actions.test), intoknowledgeTursoSettingsTranslations, same strings, all 11 locales in step.@objectstack/service-settingsno longer exportsknowledgeTestActionHandler;@objectstack/knowledge-tursodoes (plusKNOWLEDGE_TURSO_TEST_ACTIONand two structural types). The migration line is in the changeset.KnowledgeTursoPlugin.init()warns once whencontributeKnowledgeTursoSettingsreturns false underopensFromSettings(), naming the consequence (nothing can be saved there, the store opens its default file, path given) and the fix. The function now answers whether the page carries BOTH Turso keys, so a host page declaring one group id without the keys also warns.content/docs/ai/knowledge-rag.mdx(the Settings → Knowledge bullet) now gives the tidy-up for a PostgreSQL deployment that saved the two Turso keys, naming thesys_secretrow theturso_auth_tokenrow's handle points at. The card's else-branch: the 37678 note is no longer pending (see below).knowledge.dbbecause the page renders the string as plain text.content/docs/ai/knowledge-rag.mdxsays Test connection comes with the two fields.No changeset correction
The 37678 note (PR #37902) was consumed by main's version pass (#37661): it now lives at
.changeset/pre/37678-knowledge-turso-settings-group.mdand its text is published in the19.0.0-next.1CHANGELOG sections of@objectstack/knowledge-tursoand@objectstack/service-settings. Earlier heads of this PR edited its tidy sentence as a DELIBERATE CORRECTION of a pending note; contract record 7224029827 (S2) showed that edit no longer reaches any reader before the stable cut and would keep the whole19.0.0-next.1section at that cut. This head leaves the consumed note byte-identical to main and puts thesys_secretclause on the docs page instead, as card #37907 routes it for a note that is no longer pending. The two published CHANGELOG entries are release-owned and are not touched here. This PR's own note is.changeset/37907-knowledge-turso-test-connection.md(patch on the three packages, one ADR-0087 marker, BREAKING paragraph for three readers).Tests
See the report on #37907 for the run log at the final head. New and moved pins:
packages/plugins/knowledge-turso/src/__tests__/settings-contribution.test.ts(real LiteKernel, real settings service and HTTP door, real knowledge service): no-store page has no action_button and the test door answers the undeclared-action envelope (control:never_declared); store-from-settings page carriesturso, turso_url, turso_auth_token, testin front and the door answers 200 where the control is 400; own-url page has no action; copy carries the action label in 11 locales and the settings bundle no longer does; the description pin (PostgreSQL named once,knowledge.dbnamed, no cloud or "not read" clause, in the fallback and 11 locales); the handler unit pins moved from service-settings; the N2 pins (no settings service and a host page withtestbut no keys each warn once; a contributed page and an own-url store say nothing).testand its door answers as an undeclared action.Acceptance notes
knowledgeTestActionHandlerleaving@objectstack/service-settings' entry is a removed export of a published package; the dispatch order and the card name the handler's move, and the changeset carries the FROM/TO import line. Flagged for the seat with the narrowing.versionstays 5: an action_button carries no key, and the spec's bump rule is about keys.Verification
Two-minute check:
pnpm --filter @objectstack/knowledge-turso exec vitest run src/__tests__/settings-contribution.test.ts— every describe green, including "has no Test connection" and "answers Test connection with the Turso check".Read first:
packages/plugins/knowledge-turso/src/settings-contribution.ts(contributeKnowledgeTursoSettings: registration order and the new both-keys return),packages/plugins/knowledge-turso/src/plugin.ts(init()warn),.changeset/37907-knowledge-turso-test-connection.md.🤖 Generated with Claude Code
https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP