Skip to content

knowledge-pgvector: the live PostgreSQL mount case drops adapter and requires, so it exercises the deployment store and the item mount #38040

Todo

Description

@objectstack-fleet

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

Filing gate: ① follow-up of PR #38026 (#37306; contract review N2 / N10 — PostgreSQL acceptance is not measured end to end) · Source: topic #37000
Grading: area:ai · Test · p3 (suggested: two unit pins already compose to the line; this closes the end-to-end gap) · reach: every PostgreSQL deployment that writes a knowledge_source without adapter · evidence: read of packages/plugins/knowledge-pgvector/src/__tests__/capability-mount.live-postgres.test.ts on main 6e2a8f2 and of PR #38026's Acceptance notes.
Dedupe: is:issue live-postgres knowledge adapter → 12 (open: #37306 — the parent change, #37974 — hybrid search; none on this test) · is:issue capability-mount live postgres knowledge → 3 (open: #37306 only).
Reader: area o1-C of seat repo:objectstack#1 claims it after triage's first touch.

维护者速读

  • 问题:feat(knowledge): a knowledge source needs no adapter and no requires entry; it binds to the deployment's store #38026 让知识源可以不写存储、也不必声明需要知识服务;但 CI 里唯一连真实 PostgreSQL 的用例仍写了 adapter: 'pgvector' 和 requires: ['knowledge'],所以这两件新行为在真实 PostgreSQL 上没有被端到端测到,只靠两个单元测试拼起来。
  • 做什么:在这个真实 PostgreSQL 用例里加一个不写 adapter、不写 requires 的知识源,确认它被挂载、写进 pgvector 并能检索到。
  • 谁受益:所有在 PostgreSQL 上用知识检索的部署。
  • 需要你做的:无。

What

capability-mount.live-postgres.test.ts names adapter: 'pgvector' and requires: ['knowledge'], so it exercises neither the omitted adapter (the source binds to the deployment's marked store) nor the item mount (a knowledge_source item alone mounts the service). What pins #37306's PostgreSQL line today is two unit pins composed: resolveCapabilityArgument('knowledge', postgres) answers { deploymentAdapter: 'pgvector' } (core), and a source with no adapter binds to the marked store (service-knowledge).

What: add a live case (or a second stack in the same file) whose stack ships a knowledge_source with no adapter and lists no knowledge token, boots against the live PostgreSQL, and asserts the service is mounted, the source's passages land in the pgvector tables, and a search returns them. Keep the existing explicit case as the control.

Acceptance

  • With OS_TEST_POSTGRES_URL set, the new case boots, builds and searches through pgvector with neither adapter nor requires written.
  • Removing the item mount or the deployment-store mark turns it red (ablation named in the PR).
  • The existing explicit case still passes.

Blocked-by: #37306

Activity

  1. added
    pm:blocked
    area:ai
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ai · domain:server · Task · p3 · pm:queue · size S; rationale: the live PostgreSQL mount case drops adapter and requires, so it does not exercise the deployment store and item mount end to end. Two unit pins already compose to the same line, so this closes a test gap and the filer's p3 stands. Unlock: its Blocked-by: #37306 closed at 2026-11-27T20:21Z. Answers seat repo:objectstack#1 (7227965080). Recorded 2026-11-27T20:56Z.

  3. added
    domain:server
    pm:queue
    and removed
    pm:blocked
    on Nov 27, 2026
  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 10 · area o1-C (epic #37000; area concurrency 8 by the maintainer 2026-11-27T11:26Z) · 2026-11-27T21:19Z
    Session: session_016WV4cwPhGV4g9p1BGQaZbP
    Account: os-elon-musk
    Branch: claude/area-o1C-38040
    Worktree: objectstack-issue-38040
    Domain: domain:server
    Area: o1-C
    Seat: repo:objectstack#1
    File surface: packages/plugins/knowledge-pgvector/src/__tests__/capability-mount.live-postgres.test.ts (a second stack: a knowledge_source with no adapter and no knowledge token, booted on the live PostgreSQL; the explicit case kept as control), test fixtures if needed. No source change expected; a changeset only if a gate asks.
    Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: medium (reason: S; one live test case plus two ablations, on a private PostgreSQL the dev starts)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack's own code, packages/plugins/knowledge-pgvector/src/__tests__/capability-mount.live-postgres.test.ts | the optional adapter and the item mount are not measured end to end on PostgreSQL | every PostgreSQL deployment writing a knowledge_source without adapter
    Thread-read: 7227998746
    Premise: holds, read on origin/main 8d34c44 — the live case names adapter: 'pgvector' and requires: ['knowledge'].
    Serial constraints cleared: probe overlap-check (the live test) against origin/main and every open PR: VERDICT clean exit 0.
    Pre-claim lane: packages/plugins/knowledge-*/** ⇒ domain:server.
    Pre-claim deps: #37306 closed.
    Prior rulings read: card thread — triage 7227998746 (S, p3); filing record contract review 7226372153 N10.
    Fold-or-serial: not folded with #38039 (another package).

  5. added
    pm:dispatched
    and removed
    pm:queue
    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:serverpm:dispatchedpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions