Skip to content

Knowledge settings: the Turso fields are contributed by the store that reads them, not shown on PostgreSQL deployments #37678

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6Cb4BAjgQ43tqy1DvVJ

Filing gate: ② follow-up out of #37104 (PR #37668, contract record 7202143564 nit N1, seat ACCEPT 7202157381), filed by the owning zone ai-37000 under #37104 at the seat's direction, per the maintainer's standing permission for areas to file their own follow-up cards.
Grading: area:ai · domain:server · Task · p3 (seat-directed) · reach: knowledge settings page · evidence: read.

维护者速读

  • 做什么:设置页里的 Turso 连接字段只在真的用 Turso 存储时出现;平台库是 PostgreSQL 时不显示。
  • 谁受益:PostgreSQL 部署的管理员不会看到一组不起作用的字段。
  • 不做会怎样:PostgreSQL 部署多显示一组字段,说明文字写明不读取;功能不受影响。
  • 需要你做的:无。

What

After PR #37668 the Turso group in packages/services/service-settings/src/manifests/knowledge.manifest.ts is always shown, with a description saying it is read only when the platform database is not PostgreSQL. The store that reads turso_url / turso_auth_token (knowledge-turso) should contribute those fields instead, so a deployment that does not mount it does not show them.

Acceptance

  • On a deployment that mounts pgvector (no knowledge-turso), the Knowledge settings page shows no Turso fields; with knowledge-turso mounted, it shows them and they still reach plugin.ts's reader.
  • Stored Turso values survive either way; tests pin both cases.

Activity

  1. added
    area:ai
    domain:server
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ai · domain:server · Task · priority:p3 · pm:queue · size S; rationale: the Knowledge settings page should show the Turso fields only where the Turso store reads them, not on PostgreSQL deployments. A contract-review nit on PR #37668: p3.

  3. added
    pm:queue
    on Nov 26, 2026
  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

    Parked by seat repo:objectstack#1 (area o1-C, epic #37000 hand-off 7206523866): this card amends files of PR #37668 (the knowledge settings manifest and its changeset / docs note), which is open and unmerged, so its fix would stack on an unmerged PR. Pre-claim deps check failed in o1-C; back to pm:queue when #37668 merges.

    Blocked-by: #37668

  5. added
    pm:blocked
    and removed
    pm:queue
    on Nov 27, 2026
  6. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP

    Claim: PM loop round 3 · area o1-C (epic #37000 follow-ups, hand-off 7206523866) · 2026-11-27T08:46Z
    Session: session_016WV4cwPhGV4g9p1BGQaZbP
    Account: os-elon-musk
    Branch: claude/area-o1C-37678
    Worktree: objectstack-issue-37678
    Domain: domain:server
    Area: o1-C
    Seat: repo:objectstack#1
    File surface: packages/services/service-settings/src/manifests/knowledge.manifest.ts (+ .test.ts), packages/plugins/knowledge-turso/src/plugin.ts (the settings contribution for turso_url / turso_auth_token) + its tests, packages/services/service-knowledge/src/__tests__/knowledge-settings-contribution.test.ts, packages/services/service-settings/src/knowledge-settings-retired-keys.pin.test.ts, the Turso strings in packages/services/service-settings/src/translations/*.ts (all 11 bundles in step, moved with their fields), .changeset/37104-knowledge-settings-readers.md (still pending on main), content/docs/ai/knowledge-rag.mdx, a new changeset. ⛔ No new settings-contribution mechanism if none exists (stop and report); ⛔ no change to the cloud per-organization fallback sentence (#37680).
    Container & model: S/M, mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: high (reason: moves a field group across a package boundary; both mount cases and stored-value survival pinned and ablated)
    Clause-②: no (narrowing) — expected: on a deployment that does not mount knowledge-turso a PUT of turso_url / turso_auth_token becomes 400 UNKNOWN_KEY where it stored them; it owes one contract-review-tier review and goes to the seat. If the dev measures that nothing is refused, the PR drops the arm and states the reading
    Metadata-protocol: none
    Responsibility: objectstack's own code, packages/services/service-settings/src/manifests/knowledge.manifest.ts | the Turso group (:70-85) is always declared, with a description saying it is read only off PostgreSQL | PostgreSQL deployments' admins see fields nothing reads; function unaffected
    Thread-read: 7206756209
    Premise: holds, read not yet measured — on origin/main b620c4b the turso group, turso_url and turso_auth_token are declared in knowledge.manifest.ts:74-85 unconditionally; knowledge-turso/src/plugin.ts reads turso_url from the knowledge settings (:63-70, :287, :326).
    Serial constraints cleared: overlap-check --branch=probe against origin/main b620c4b: VERDICT clean exit 0; #37676 (seat 5) shares content/docs/ai/knowledge-rag.mdx and knowledge-settings-contribution.test.ts and merges cleanly; the dev re-runs overlap-check before every push and queues behind #37676 with Notify: serial on exit 1Pre-claim lane:packages/services/service-settings/, packages/plugins/knowledge-turso/⇒domain:server(file ownership only), built and L1-read in o1-C / L1-a. Pre-claim deps: Blocked-by #37668 — merged 2026-11-27T08:35Z (9f9db81d3c);pm:blocked→pm:dispatchedin this stroke. Prior rulings read:check-prior-rulings.mjs --card 37678 --terms "settings contribution,turso_url,knowledge.manifest,contributes settings": 0 hits, no ruling on the surface; epic #37000 "Rulings that bound every child" apply. Fold-or-serial: folded — #37679 rides this branch and PR (same changeset and the same settings tests; Fixes #37678+Fixes #37679`). #37680 stays parked behind this card (it edits the Turso group text this card moves, and owes a cloud fact).

  7. added
    pm:dispatched
    and removed
    pm:blocked
    on Nov 27, 2026
  8. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
    os-dev-report

    {
      "issue": 37678,
      "folded": [37679],
      "status": "done",
      "branch": "claude/area-o1C-37678",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37902",
      "head": "5c9170a0d8f717030b7f0661e1b00a2cafbe2b7d",
      "session": "session_016WV4cwPhGV4g9p1BGQaZbP",
      "container_model": "Container & model: S/M, `mode:subagent`, model: default tier (`dispatch-gates --tier`: \"no path-derived mandate\"), effort: high (reason: moves a field group across a package boundary; both mount cases and stored-value survival pinned and ablated)",
      "premise_still_valid": true,
      "summary": "#37678: the Turso group, turso_url and turso_auth_token left service-settings' knowledge manifest (version 4 to 5). @objectstack/knowledge-turso now declares them (src/settings-contribution.ts, moved verbatim, the #37680 cloud sentence untouched) and contributes them in KnowledgeTursoPlugin.init() only under urlFromSettings with no url/client, i.e. only where plugin.ts reads them. The contribution uses the existing mechanism, re-registering the namespace manifest with a section as service-knowledge does for the ai embedder section (withAiEmbedderSection + registerManifest); no new mechanism. The Turso copy moved out of all 11 service-settings bundles into knowledge-turso, verified equal to every origin/main value (11 locales, 0 diffs), and is loaded into i18n at kernel:ready. #37679: N2 is done (the pending 37104 changeset now says the PUT is refused whole, with a pin that a retired key plus chunk_target saves nothing; knowledge-rag.mdx did not repeat the sentence). N4's premise is half false: :199-201 posted adapter and is fixed, but :225 is SECRET_SOURCE.adapter 'memory', a required KnowledgeSource field, not a test-door post, so it is left as it is. The other test-door post that still sent adapter (knowledge-settings-default-absent.pin.test.ts:130) now sends turso_url. Clause-2 measured: (narrowing).",
      "tests": "knowledge-turso src/__tests__/settings-contribution.test.ts (new, real LiteKernel + settings service + HTTP door + knowledge service): 11/11 passed. The no-store page has no Turso id and PUT of either key is 400 UNKNOWN_KEY; the store-from-settings page has the group first, PUT 200, and a turso_url saved at kernel:ready is opened by the store (healthCheck ok, file exists); the own-url case shows no field; the copy is complete in 11 locales and gone from the settings bundle. service-settings retired-keys pin: 8/8, adding the N2 whole-body pin and two stored-value survival pins over the real ObjectQL engine. Package runs: knowledge-turso + service-settings + service-knowledge test at 37106cf2ad gave 78/1543, 15/470 and 4/167 passed, VERDICT command-exit 0; knowledge-turso test at final head 5c9170a0d8 gave 4 files/167 passed; typecheck of all three exit 0 (test layers included); verify src/harness.required-providers.test.ts 15/15 (real end-to-end mounted case). Ablations, each landed on disk via ablation-replace and restored to the HEAD blob: A1 deletes the contribution call (4 failed, every with-store pin); A2 puts the group back in the base manifest, rebuilt with the dist marker preflighted (service-settings 14 failed, knowledge-turso 4 failed; restore leg rebuilt with --absent preflight ok); A3 drops unknown keys from a multi-key setMany (only the N2 pin fails: 'adapter: expected 200 to be 400'); A4 makes the contribution unconditional (own-url pin fails); A5 removes the seeded turso_url row (3 survival pins fail).",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at 5c9170a0d8: 26 paths, 114 commands, all run; --ran: 114 derived, 114 run, 0 unrun. Exit codes captured per command before any pipe: 110 exit 0. node scripts/check-empty-changeset.mjs --base origin/main exits 1 (the DELIBERATE CORRECTION class on .changeset/37104-knowledge-settings-readers.md, declared in the PR body, red by design). pnpm check:test-source-alias exited 1 on the first run (new service-settings test import with no alias), fixed in 5c9170a0d8, re-run exit 0. NOT MEASURED locally (exit 3 PREREQUISITE NOT MET, need builds outside this closure): pnpm --filter @objectstack/spec run check:skill-examples and pnpm check:dual-build-cjs-loads, both run by CI's Lint & Repo Gates, which is success.",
      "ci": "Read once at head 5c9170a0d8, all completed. success: Lint & Repo Gates, TypeScript Type Check, Test Core (10/10 shards), Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (16/16), Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Spec property liveness, Validate Package Dependencies, Check PR Size, PR-body guards. failure: Check Changeset, expected (annotation: the 37104 changeset exists on the merge base and was changed; the DELIBERATE CORRECTION class). Its other annotation reads the new changeset's ADR-0087 exemption.",
      "dogfood_battery": "5c9170a0d8 · os-verify-lock: VERDICT command-exit 0 (held 29m53s, shared box) · Test Files 490 passed | 3 skipped (493) · Tests 4144 passed | 68 skipped (4212) · no failures",
      "mcp_calls": "0",
      "api_writes": "3 — via the fleet-write relay (one dispatch, run 45976454922): POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /repos/objectstack-ai/objectstack/issues/37902/assignees (os-elon-musk; read back: 11586 bytes sent = stored, assignee listed, no labels); then this report, POST /repos/objectstack-ai/objectstack/issues/37678/comments via post-stamped. git push x5 (not REST).",
      "open_questions": [
        {
          "question": "On a pgvector deployment the Knowledge page keeps its 'Test connection' button, which checks only the Turso fields the page no longer shows. Should the button move with the Turso group?",
          "options": [
            "A: leave it. With no Turso URL it answers 'No Turso URL configured — where the knowledge store is @objectstack/knowledge-turso ...', which is conditional and true. Cost: none.",
            "B: a follow-up card moves the button (and its knowledgeTestActionHandler registration) into knowledge-turso's contribution, so a pgvector page has no Turso check. Cost: S; it moves the #37679 test-door pin into knowledge-turso and touches the same group #37680 edits.",
            "C: keep the button and make the no-URL answer say that this deployment's store is not Turso. Cost: XS, but the handler cannot see which store is mounted, so it would need a new signal."
          ],
          "recommendation": "B, as a card after #37680 (same group, same text). The button belongs with the fields it checks, and A leaves a control whose only output is about a store this deployment lacks."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #37680 · the moved Turso group description says 'On PostgreSQL ... these fields are not read', a sentence that is now never shown on PostgreSQL. Moved verbatim per the fence; noted, not filed.",
        "carrier: seat (open_questions[0]) · the 'Test connection' button on a pgvector Knowledge page checks fields the page does not show (class a candidate, user-visible). Reach: POST /api/settings/knowledge/test on a no-store page answers the knowledgeTestActionHandler no-URL message (manifest test 'accepts no URL'); not separately measured at the HTTP door on that page. Dedupe words: knowledge test connection pgvector, knowledgeTestActionHandler, Turso button."
      ],
      "deviations": [
        "The first WIP push (272853e830) went out before overlap-check ran. It was run immediately after (VERDICT clean exit 0) and before every later push.",
        "The file surface grew past the claim: packages/plugins/knowledge-turso/src/settings-contribution.ts (new), src/index.ts (exports), package.json (+ @objectstack/service-settings devDependency, tests only) with pnpm-lock.yaml (+3 lines), vitest.config.ts (a source alias, required by check:test-source-alias), and packages/services/service-settings/src/knowledge-settings-default-absent.pin.test.ts:130 (the other test-door post that sent adapter).",
        "Where the copy lives: the claim named only the service-settings bundles. The Turso copy moved INTO knowledge-turso, because service-settings' coverage test refuses copy for undeclared keys and service-settings cannot devDepend on knowledge-turso (a workspace cycle through service-knowledge).",
        "The three-package test run is at 37106cf2ad. The later commits change docs, changesets, a doc comment in knowledge.manifest.ts and knowledge-turso's vitest alias; knowledge-turso was re-run at the final head and CI Test Core is green at the final head. test:repo was not run locally (CI Test Core: success)."
      ]
    }
  9. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP

    Close-out · area o1-C · 2026-11-27T10:59Z

    Delivered by PR #37902 (merged ff63b02): the Turso group, turso_url and turso_auth_token are contributed by @objectstack/knowledge-turso only where it reads them (store from settings, no own url or client); a PostgreSQL page shows none of them and a PUT of either there is 400 UNKNOWN_KEY; stored values are kept. Review follow-ups (Test connection button, a warn on a false contribution, the sys_secret clause) are #37907. Nothing remains on this card; pm:dispatched removed with this comment.

  10. removed
    pm:dispatched
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:serverpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions