@vellumai/assistant 0.10.7-dev.202607092332.9deedf4 → 0.10.7-dev.202607100313.fffdfea

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/ARCHITECTURE.md +1 -2
  2. package/docs/architecture/memory.md +1 -3
  3. package/node_modules/@vellumai/ces-client/node_modules/@vellumai/service-contracts/package.json +0 -2
  4. package/node_modules/@vellumai/ces-client/node_modules/@vellumai/service-contracts/src/__tests__/contracts.test.ts +0 -2
  5. package/node_modules/@vellumai/ces-client/node_modules/@vellumai/service-contracts/src/credential-rpc.ts +3 -5
  6. package/node_modules/@vellumai/ces-client/node_modules/@vellumai/service-contracts/src/index.ts +2 -4
  7. package/node_modules/@vellumai/ces-client/node_modules/@vellumai/service-contracts/src/rpc.ts +4 -447
  8. package/node_modules/@vellumai/gateway-client/node_modules/@vellumai/service-contracts/package.json +0 -2
  9. package/node_modules/@vellumai/gateway-client/node_modules/@vellumai/service-contracts/src/__tests__/contracts.test.ts +0 -2
  10. package/node_modules/@vellumai/gateway-client/node_modules/@vellumai/service-contracts/src/credential-rpc.ts +3 -5
  11. package/node_modules/@vellumai/gateway-client/node_modules/@vellumai/service-contracts/src/index.ts +2 -4
  12. package/node_modules/@vellumai/gateway-client/node_modules/@vellumai/service-contracts/src/rpc.ts +4 -447
  13. package/node_modules/@vellumai/service-contracts/package.json +0 -2
  14. package/node_modules/@vellumai/service-contracts/src/__tests__/contracts.test.ts +0 -2
  15. package/node_modules/@vellumai/service-contracts/src/credential-rpc.ts +3 -5
  16. package/node_modules/@vellumai/service-contracts/src/index.ts +2 -4
  17. package/node_modules/@vellumai/service-contracts/src/rpc.ts +4 -447
  18. package/openapi.yaml +1 -222
  19. package/package.json +1 -1
  20. package/scripts/memory-inspect.ts +2 -8
  21. package/src/__tests__/approval-routes-http.test.ts +0 -8
  22. package/src/__tests__/background-workers-disk-pressure.test.ts +4 -2
  23. package/src/__tests__/compaction-events.test.ts +0 -4
  24. package/src/__tests__/context-search-memory-source.test.ts +0 -1
  25. package/src/__tests__/conversation-agent-loop-disk-pressure.test.ts +0 -1
  26. package/src/__tests__/conversation-agent-loop-inference-profile.test.ts +0 -2
  27. package/src/__tests__/conversation-agent-loop-overflow.test.ts +0 -2
  28. package/src/__tests__/conversation-agent-loop.test.ts +0 -4
  29. package/src/__tests__/conversation-app-control-lifecycle.test.ts +0 -4
  30. package/src/__tests__/conversation-fork-crud.test.ts +18 -5
  31. package/src/__tests__/conversation-fork-retrospective.test.ts +483 -0
  32. package/src/__tests__/conversation-routes-disk-view.test.ts +0 -4
  33. package/src/__tests__/conversation-store.test.ts +0 -10
  34. package/src/__tests__/conversation-summarize-up-to.test.ts +0 -4
  35. package/src/__tests__/credential-execution-api-key-propagation.test.ts +0 -40
  36. package/src/__tests__/credential-execution-client.test.ts +3 -3
  37. package/src/__tests__/credential-execution-managed-contract.test.ts +8 -104
  38. package/src/__tests__/file-write-tool.test.ts +9 -13
  39. package/src/__tests__/graph-extraction-event-date.test.ts +0 -9
  40. package/src/__tests__/injection-block.test.ts +0 -1
  41. package/src/__tests__/job-handler-registration-guard.test.ts +0 -1
  42. package/src/__tests__/lexical-index-dual-write.test.ts +2 -2
  43. package/src/__tests__/llm-resolver.test.ts +0 -1
  44. package/src/__tests__/messages-after-tiebreaker.test.ts +0 -1
  45. package/src/__tests__/playbook-execution.test.ts +2 -26
  46. package/src/__tests__/plugin-import-boundary-guard.test.ts +0 -4
  47. package/src/__tests__/plugin-import-boundary-reverse-guard.test.ts +318 -0
  48. package/src/__tests__/proxy-approval-callback.test.ts +0 -1
  49. package/src/__tests__/rebuild-index-graph-nodes.test.ts +0 -4
  50. package/src/__tests__/send-endpoint-busy.test.ts +0 -12
  51. package/src/__tests__/service-contracts-import-guard.test.ts +4 -9
  52. package/src/__tests__/subagent-fork-spawn.test.ts +0 -37
  53. package/src/__tests__/task-memory-cleanup.test.ts +0 -11
  54. package/src/__tests__/voice-scoped-grant-consumer.test.ts +0 -1
  55. package/src/__tests__/voice-session-bridge.test.ts +0 -56
  56. package/src/__tests__/workspace-migration-009-backfill-conversation-disk-view.test.ts +0 -1
  57. package/src/__tests__/workspace-migration-013-repair-conversation-disk-view.test.ts +0 -1
  58. package/src/__tests__/workspace-migration-028-recover-conversations-from-disk-view.test.ts +0 -1
  59. package/src/__tests__/workspace-migration-129-remove-analyze-conversation-config.test.ts +190 -0
  60. package/src/cli/commands/db/repair-step-conversation-backfill.ts +0 -1
  61. package/src/config/bundled-skills/messaging/tools/messaging-analyze-style.ts +0 -6
  62. package/src/config/bundled-skills/playbooks/tools/playbook-create.ts +0 -3
  63. package/src/config/bundled-skills/playbooks/tools/playbook-delete.ts +0 -3
  64. package/src/config/bundled-skills/playbooks/tools/playbook-list.ts +1 -3
  65. package/src/config/bundled-skills/playbooks/tools/playbook-update.ts +0 -4
  66. package/src/config/call-site-defaults.ts +0 -1
  67. package/src/config/feature-flag-registry.json +0 -16
  68. package/src/config/schema.ts +0 -3
  69. package/src/config/schemas/call-site-catalog.ts +0 -6
  70. package/src/config/schemas/llm.ts +0 -1
  71. package/src/conversations/job-handlers/summarization.ts +0 -2
  72. package/src/daemon/conversation-agent-loop-handlers.ts +0 -1
  73. package/src/daemon/conversation-agent-loop.ts +1 -6
  74. package/src/daemon/conversation-lifecycle.ts +0 -14
  75. package/src/daemon/conversation-turn-finalize.ts +0 -1
  76. package/src/daemon/handlers/shared.ts +1 -2
  77. package/src/export/transcript-formatter.ts +9 -39
  78. package/src/home/conversation-starter-checkpoints.ts +9 -5
  79. package/src/home/job-handlers/conversation-starters.ts +24 -54
  80. package/src/hooks/types.ts +2 -2
  81. package/src/ipc/routes/__tests__/memory-v2-backfill.test.ts +5 -7
  82. package/src/persistence/__tests__/bulk-write-gate.test.ts +165 -0
  83. package/src/persistence/__tests__/immediate-transaction-guard.test.ts +70 -0
  84. package/src/persistence/auto-analysis-constants.ts +4 -13
  85. package/src/persistence/bulk-write-gate.ts +82 -0
  86. package/src/persistence/conversation-bootstrap.ts +3 -3
  87. package/src/persistence/conversation-crud.ts +158 -80
  88. package/src/persistence/conversation-key-store.ts +0 -2
  89. package/src/persistence/conversation-row-batch-delete.ts +16 -1
  90. package/src/persistence/conversation-types.ts +12 -1
  91. package/src/persistence/db-async-query.ts +18 -9
  92. package/src/persistence/db-connection.ts +20 -4
  93. package/src/persistence/db-maintenance.ts +78 -6
  94. package/src/persistence/embeddings/qdrant-client.ts +2 -18
  95. package/src/persistence/fork-message-copy.ts +18 -4
  96. package/src/persistence/jobs-store.ts +3 -86
  97. package/src/persistence/migrations/323-delete-non-default-memory-scopes.test.ts +148 -0
  98. package/src/persistence/migrations/323-delete-non-default-memory-scopes.ts +35 -0
  99. package/src/persistence/schema/conversations.ts +0 -1
  100. package/src/persistence/schema/memory-core.ts +17 -28
  101. package/src/persistence/schema/memory-graph.ts +0 -4
  102. package/src/persistence/schema/tasks.ts +0 -1
  103. package/src/persistence/steps.ts +2 -0
  104. package/src/playbooks/playbook-compiler.ts +2 -10
  105. package/src/plugins/defaults/memory/__tests__/db-maintenance.test.ts +105 -11
  106. package/src/plugins/defaults/memory/__tests__/jobs-store-enqueue-gate.test.ts +7 -62
  107. package/src/plugins/defaults/memory/__tests__/memory-retrospective-job.test.ts +47 -5
  108. package/src/plugins/defaults/memory/__tests__/memory-retrospective-skill-card.test.ts +29 -1
  109. package/src/plugins/defaults/memory/__tests__/memory-retrospective-startup-cleanup.test.ts +133 -70
  110. package/src/plugins/defaults/memory/activation-session-store.ts +1 -1
  111. package/src/plugins/defaults/memory/config.ts +1 -1
  112. package/src/plugins/defaults/memory/context-search/sources/conversations.ts +1 -1
  113. package/src/plugins/defaults/memory/context-search/sources/memory-v2.ts +1 -1
  114. package/src/plugins/defaults/memory/context-search/sources/memory.ts +1 -1
  115. package/src/plugins/defaults/memory/filing-jobs.ts +1 -1
  116. package/src/plugins/defaults/memory/fork-conversation-memory.ts +8 -4
  117. package/src/plugins/defaults/memory/frontmatter.ts +1 -1
  118. package/src/plugins/defaults/memory/graph/__tests__/handle-remember-v2.test.ts +4 -25
  119. package/src/plugins/defaults/memory/graph/bootstrap.ts +12 -18
  120. package/src/plugins/defaults/memory/graph/capability-seed.ts +4 -18
  121. package/src/plugins/defaults/memory/graph/consolidation.ts +7 -14
  122. package/src/plugins/defaults/memory/graph/conversation-graph-memory.ts +1 -3
  123. package/src/plugins/defaults/memory/graph/decay.ts +5 -10
  124. package/src/plugins/defaults/memory/graph/extraction-job.ts +2 -3
  125. package/src/plugins/defaults/memory/graph/extraction.test.ts +1 -9
  126. package/src/plugins/defaults/memory/graph/extraction.ts +1 -8
  127. package/src/plugins/defaults/memory/graph/graph-search.ts +1 -2
  128. package/src/plugins/defaults/memory/graph/injection.test.ts +0 -1
  129. package/src/plugins/defaults/memory/graph/injection.ts +1 -1
  130. package/src/plugins/defaults/memory/graph/narrative.ts +1 -3
  131. package/src/plugins/defaults/memory/graph/pattern-scan.ts +1 -4
  132. package/src/plugins/defaults/memory/graph/retriever.test.ts +0 -19
  133. package/src/plugins/defaults/memory/graph/retriever.ts +6 -14
  134. package/src/plugins/defaults/memory/graph/scoring.test.ts +0 -1
  135. package/src/plugins/defaults/memory/graph/store.test.ts +6 -58
  136. package/src/plugins/defaults/memory/graph/store.ts +5 -43
  137. package/src/plugins/defaults/memory/graph/tool-handlers.test.ts +0 -4
  138. package/src/plugins/defaults/memory/graph/tool-handlers.ts +1 -11
  139. package/src/plugins/defaults/memory/graph/types.ts +0 -3
  140. package/src/plugins/defaults/memory/hooks/init.ts +1 -1
  141. package/src/plugins/defaults/memory/indexer.ts +2 -45
  142. package/src/plugins/defaults/memory/injectors.ts +2 -3
  143. package/src/plugins/defaults/memory/job-handler-registration.ts +0 -4
  144. package/src/plugins/defaults/memory/job-handlers/backfill.ts +0 -1
  145. package/src/plugins/defaults/memory/job-handlers/embedding.test.ts +0 -1
  146. package/src/plugins/defaults/memory/job-handlers/embedding.ts +0 -4
  147. package/src/plugins/defaults/memory/job-handlers/index-maintenance.ts +1 -1
  148. package/src/plugins/defaults/memory/job-handlers.ts +5 -9
  149. package/src/plugins/defaults/memory/jobs/embed-concept-page.ts +1 -1
  150. package/src/plugins/defaults/memory/jobs/embed-pkb-file.test.ts +41 -21
  151. package/src/plugins/defaults/memory/jobs/embed-pkb-file.ts +10 -5
  152. package/src/plugins/defaults/memory/jobs-worker.ts +21 -9
  153. package/src/plugins/defaults/memory/logging.ts +17 -0
  154. package/src/plugins/defaults/memory/memory-retrospective-constants.ts +10 -7
  155. package/src/plugins/defaults/memory/memory-retrospective-enqueue.ts +5 -6
  156. package/src/plugins/defaults/memory/memory-retrospective-fork-boundary.ts +57 -20
  157. package/src/plugins/defaults/memory/memory-retrospective-job.ts +13 -15
  158. package/src/plugins/defaults/memory/memory-retrospective-skill-card.ts +2 -2
  159. package/src/plugins/defaults/memory/memory-retrospective-startup-cleanup.ts +52 -39
  160. package/src/plugins/defaults/memory/memory-retrospective-trigger-check.ts +1 -1
  161. package/src/plugins/defaults/memory/pkb/pkb-index.test.ts +25 -38
  162. package/src/plugins/defaults/memory/pkb/pkb-index.ts +7 -19
  163. package/src/plugins/defaults/memory/pkb/pkb-reconcile.test.ts +46 -28
  164. package/src/plugins/defaults/memory/pkb/pkb-reconcile.ts +4 -9
  165. package/src/plugins/defaults/memory/pkb/pkb-search.test.ts +3 -9
  166. package/src/plugins/defaults/memory/pkb/pkb-search.ts +2 -9
  167. package/src/plugins/defaults/memory/pkb/types.ts +0 -11
  168. package/src/plugins/defaults/memory/rerank-local.ts +1 -1
  169. package/src/plugins/defaults/memory/routes/memory-eval-routes.ts +1 -1
  170. package/src/plugins/defaults/memory/routes/memory-item-routes.test.ts +0 -1
  171. package/src/plugins/defaults/memory/routes/memory-item-routes.ts +3 -11
  172. package/src/plugins/defaults/memory/routes/memory-v2-routes.ts +1 -1
  173. package/src/plugins/defaults/memory/routes/memory-v3-routes.ts +1 -1
  174. package/src/plugins/defaults/memory/startup.ts +2 -3
  175. package/src/plugins/defaults/memory/task-memory-cleanup.ts +1 -1
  176. package/src/plugins/defaults/memory/tools.test.ts +1 -9
  177. package/src/plugins/defaults/memory/tools.ts +0 -1
  178. package/src/plugins/defaults/memory/v2/backfill-jobs.ts +1 -1
  179. package/src/plugins/defaults/memory/v2/cli-command-store.ts +1 -1
  180. package/src/plugins/defaults/memory/v2/consolidation-job.ts +1 -1
  181. package/src/plugins/defaults/memory/v2/frontmatter-sweep.ts +1 -1
  182. package/src/plugins/defaults/memory/v2/injection-events.ts +1 -1
  183. package/src/plugins/defaults/memory/v2/injection.ts +1 -1
  184. package/src/plugins/defaults/memory/v2/memory-v2-startup.ts +1 -1
  185. package/src/plugins/defaults/memory/v2/migration.ts +1 -1
  186. package/src/plugins/defaults/memory/v2/page-index.ts +1 -1
  187. package/src/plugins/defaults/memory/v2/prompts/consolidation.ts +1 -1
  188. package/src/plugins/defaults/memory/v2/prompts/router.ts +1 -1
  189. package/src/plugins/defaults/memory/v2/qdrant.ts +1 -1
  190. package/src/plugins/defaults/memory/v2/reranker.ts +1 -1
  191. package/src/plugins/defaults/memory/v2/router.ts +1 -1
  192. package/src/plugins/defaults/memory/v2/skill-store.ts +1 -1
  193. package/src/plugins/defaults/memory/v2/sweep-job.ts +1 -1
  194. package/src/plugins/defaults/memory/v3/candidate-match.ts +1 -1
  195. package/src/plugins/defaults/memory/v3/dense.ts +1 -1
  196. package/src/plugins/defaults/memory/v3/injector.ts +1 -1
  197. package/src/plugins/defaults/memory/v3/maintain-job.ts +1 -1
  198. package/src/plugins/defaults/memory/v3/orchestrate.ts +1 -1
  199. package/src/plugins/defaults/memory/v3/pool-select.ts +1 -1
  200. package/src/plugins/defaults/memory/v3/prune.ts +1 -1
  201. package/src/plugins/defaults/memory/v3/section-dense-store.ts +1 -1
  202. package/src/plugins/defaults/memory/v3/shadow-plugin.ts +1 -1
  203. package/src/plugins/defaults/memory/worker.ts +1 -1
  204. package/src/runtime/capabilities.ts +1 -1
  205. package/src/runtime/routes/__tests__/bookmark-routes.test.ts +0 -1
  206. package/src/runtime/routes/__tests__/conversation-management-routes.test.ts +0 -1
  207. package/src/runtime/routes/__tests__/conversation-query-routes.test.ts +0 -1
  208. package/src/runtime/routes/conversation-starter-routes.ts +12 -23
  209. package/src/runtime/routes/index.ts +0 -2
  210. package/src/runtime/services/__tests__/auto-analysis-guard.test.ts +1 -8
  211. package/src/runtime/services/__tests__/conversation-serializer.test.ts +0 -1
  212. package/src/runtime/services/auto-analysis-guard.ts +5 -5
  213. package/src/runtime/services/conversation-serializer.ts +2 -3
  214. package/src/tasks/SPEC.md +10 -17
  215. package/src/tools/executor.ts +1 -102
  216. package/src/tools/filesystem/write.ts +0 -2
  217. package/src/tools/tool-types.ts +0 -15
  218. package/src/tools/types.ts +0 -10
  219. package/src/workspace/migrations/028-recover-conversations-from-disk-view.ts +0 -1
  220. package/src/workspace/migrations/129-remove-analyze-conversation-config.ts +59 -0
  221. package/src/workspace/migrations/registry.ts +2 -0
  222. package/node_modules/@vellumai/ces-client/node_modules/@vellumai/service-contracts/src/__tests__/grants.test.ts +0 -686
  223. package/node_modules/@vellumai/ces-client/node_modules/@vellumai/service-contracts/src/grants.ts +0 -184
  224. package/node_modules/@vellumai/ces-client/node_modules/@vellumai/service-contracts/src/rendering.ts +0 -135
  225. package/node_modules/@vellumai/gateway-client/node_modules/@vellumai/service-contracts/src/__tests__/grants.test.ts +0 -686
  226. package/node_modules/@vellumai/gateway-client/node_modules/@vellumai/service-contracts/src/grants.ts +0 -184
  227. package/node_modules/@vellumai/gateway-client/node_modules/@vellumai/service-contracts/src/rendering.ts +0 -135
  228. package/node_modules/@vellumai/service-contracts/src/__tests__/grants.test.ts +0 -686
  229. package/node_modules/@vellumai/service-contracts/src/grants.ts +0 -184
  230. package/node_modules/@vellumai/service-contracts/src/rendering.ts +0 -135
  231. package/src/__tests__/auto-analysis-end-to-end.test.ts +0 -621
  232. package/src/__tests__/auto-analysis-prompt.test.ts +0 -50
  233. package/src/__tests__/config-analysis.test.ts +0 -83
  234. package/src/__tests__/conversation-analysis-routes.test.ts +0 -156
  235. package/src/__tests__/credential-execution-approval-bridge.test.ts +0 -297
  236. package/src/config/schemas/analysis.ts +0 -32
  237. package/src/credential-execution/approval-bridge.ts +0 -320
  238. package/src/daemon/__tests__/conversation-lifecycle-auto-analyze.test.ts +0 -449
  239. package/src/plugins/defaults/memory/__tests__/find-analysis-conversation.test.ts +0 -197
  240. package/src/runtime/routes/conversation-analysis-routes.ts +0 -75
  241. package/src/runtime/services/__tests__/analyze-conversation.test.ts +0 -477
  242. package/src/runtime/services/__tests__/auto-analysis-enqueue.test.ts +0 -386
  243. package/src/runtime/services/__tests__/auto-analysis-prompt.test.ts +0 -53
  244. package/src/runtime/services/__tests__/conversation-analyze-job.test.ts +0 -213
  245. package/src/runtime/services/__tests__/manual-analysis-prompt.test.ts +0 -41
  246. package/src/runtime/services/analyze-conversation.ts +0 -334
  247. package/src/runtime/services/auto-analysis-enqueue.ts +0 -130
  248. package/src/runtime/services/auto-analysis-prompt.ts +0 -55
  249. package/src/runtime/services/conversation-analyze-job.ts +0 -53
@@ -564,14 +564,11 @@ describe("searchPkbFiles", () => {
564
564
  expect(results[1]?.path).toBe("/a.md");
565
565
  });
566
566
 
567
- test("adds memory_scope_id clause when scopeIds provided (both queries)", async () => {
567
+ test("filters carry no memory_scope_id clause — search spans the whole PKB index (both queries)", async () => {
568
568
  hybridResults = [];
569
569
  denseResults = [];
570
570
 
571
- await searchPkbFiles([0.1], { indices: [1], values: [1] }, 5, [
572
- "scope-a",
573
- "scope-b",
574
- ]);
571
+ await searchPkbFiles([0.1], { indices: [1], values: [1] }, 5);
575
572
 
576
573
  const hybridFilter = hybridSearchCalls[0]?.filter as {
577
574
  must: Array<Record<string, unknown>>;
@@ -580,10 +577,7 @@ describe("searchPkbFiles", () => {
580
577
  must: Array<Record<string, unknown>>;
581
578
  };
582
579
  for (const filter of [hybridFilter, denseFilter]) {
583
- const scopeClause = filter.must.find(
584
- (c) => c.key === "memory_scope_id",
585
- ) as { match: { any: string[] } } | undefined;
586
- expect(scopeClause?.match.any).toEqual(["scope-a", "scope-b"]);
580
+ expect(filter.must.map((c) => c.key)).toEqual(["target_type"]);
587
581
  }
588
582
  });
589
583
  });
@@ -11,8 +11,8 @@ import type {
11
11
  QdrantSparseVector,
12
12
  } from "../../../../persistence/embeddings/qdrant-client.js";
13
13
  import { getQdrantClient } from "../../../../persistence/embeddings/qdrant-client.js";
14
- import { getLogger } from "../../../../util/logger.js";
15
14
  import { getMemoryConfig } from "../config.js";
15
+ import { getLogger } from "../logging.js";
16
16
  import type { PkbSearchResult } from "./types.js";
17
17
  import { PKB_TARGET_TYPE } from "./types.js";
18
18
 
@@ -39,7 +39,6 @@ export async function searchPkbFiles(
39
39
  queryVector: number[],
40
40
  sparseVector: QdrantSparseVector | undefined,
41
41
  limit: number,
42
- scopeIds?: string[],
43
42
  ): Promise<PkbSearchResult[]> {
44
43
  // v2 owns the read path when enabled; v2 absorbs PKB as a read source,
45
44
  // so PKB hint search short-circuits to keep traffic off the v1 collection
@@ -57,14 +56,8 @@ export async function searchPkbFiles(
57
56
  // from the same file collapse to a single result.
58
57
  const prefetchLimit = Math.max(limit * 3, limit);
59
58
 
60
- const baseMust: Record<string, unknown>[] = [
61
- { key: "target_type", match: { value: PKB_TARGET_TYPE } },
62
- ...(scopeIds && scopeIds.length > 0
63
- ? [{ key: "memory_scope_id", match: { any: scopeIds } }]
64
- : []),
65
- ];
66
59
  const filter = {
67
- must: baseMust,
60
+ must: [{ key: "target_type", match: { value: PKB_TARGET_TYPE } }],
68
61
  must_not: [{ key: "_meta", match: { value: true } }],
69
62
  };
70
63
 
@@ -21,16 +21,6 @@ export function getPkbRoot(): string {
21
21
  return join(getWorkspaceDir(), "pkb");
22
22
  }
23
23
 
24
- /**
25
- * Sentinel `memory_scope_id` under which ALL PKB points are indexed and
26
- * searched. PKB files are a workspace-shared resource: one copy on disk is
27
- * visible to every conversation in the workspace, so every writer — the
28
- * `remember` tool, file writes, startup reconciliation — pins to this scope
29
- * so search returns a single coherent view of the workspace's knowledge base
30
- * instead of a per-conversation fragment.
31
- */
32
- export const PKB_WORKSPACE_SCOPE = "_pkb_workspace" as const;
33
-
34
24
  export interface PkbSearchResult {
35
25
  path: string;
36
26
  /**
@@ -63,5 +53,4 @@ export interface PkbIndexPayload {
63
53
  mtime_ms: number;
64
54
  chunk_index: number;
65
55
  content_hash: string;
66
- memory_scope_id: string;
67
56
  }
@@ -3,10 +3,10 @@ import { existsSync } from "node:fs";
3
3
 
4
4
  import type { RerankDtype } from "../../../config/schemas/memory-v2.js";
5
5
  import { EmbeddingRuntimeManager } from "../../../persistence/embeddings/embedding-runtime-manager.js";
6
- import { getLogger } from "../../../util/logger.js";
7
6
  import { getEmbeddingModelsDir } from "../../../util/platform.js";
8
7
  import { PromiseGuard } from "../../../util/promise-guard.js";
9
8
  import { workerMemoryEnv } from "../../../util/worker-memory.js";
9
+ import { getLogger } from "./logging.js";
10
10
 
11
11
  const log = getLogger("memory-rerank-local");
12
12
 
@@ -20,8 +20,8 @@ import {
20
20
  type RoutePolicy,
21
21
  } from "../../../../runtime/auth/route-policy.js";
22
22
  import type { RouteDefinition } from "../../../../runtime/routes/types.js";
23
- import { getLogger } from "../../../../util/logger.js";
24
23
  import { getWorkspaceDir } from "../../../../util/platform.js";
24
+ import { getLogger } from "../logging.js";
25
25
  import { runMemoryEval } from "../v3-eval/eval-packets.js";
26
26
  import { type TallyResult, tallyVerdicts } from "../v3-eval/eval-tally.js";
27
27
 
@@ -180,7 +180,6 @@ function insertItem(opts: {
180
180
  narrativeRole: null,
181
181
  partOfStory: null,
182
182
  imageRefs: null,
183
- scopeId: "default",
184
183
  })
185
184
  .run();
186
185
  }
@@ -44,7 +44,6 @@ import {
44
44
  NotFoundError,
45
45
  } from "../../../../runtime/routes/errors.js";
46
46
  import type { RouteDefinition } from "../../../../runtime/routes/types.js";
47
- import { getLogger } from "../../../../util/logger.js";
48
47
  import { embedWithBackend } from "../embeddings.js";
49
48
  import { createNode, deleteNode, getNode, updateNode } from "../graph/store.js";
50
49
  import type {
@@ -54,6 +53,7 @@ import type {
54
53
  MemoryType,
55
54
  NewNode,
56
55
  } from "../graph/types.js";
56
+ import { getLogger } from "../logging.js";
57
57
 
58
58
  const log = getLogger("memory-item-routes");
59
59
 
@@ -118,10 +118,7 @@ function splitContent(content: string): { subject: string; statement: string } {
118
118
  /**
119
119
  * Map a graph node to the client's MemoryItemPayload shape.
120
120
  */
121
- function nodeToPayload(
122
- node: MemoryNode,
123
- scopeLabel: string | null = null,
124
- ): Record<string, unknown> {
121
+ function nodeToPayload(node: MemoryNode): Record<string, unknown> {
125
122
  const { subject, statement } = splitContent(node.content);
126
123
  return {
127
124
  id: node.id,
@@ -144,9 +141,6 @@ function nodeToPayload(
144
141
  stability: node.stability,
145
142
  emotionalCharge: node.emotionalCharge,
146
143
 
147
- scopeId: node.scopeId,
148
- scopeLabel,
149
-
150
144
  // Legacy fields — not applicable to graph nodes
151
145
  accessCount: null,
152
146
  verificationState: null,
@@ -254,7 +248,6 @@ function rowToNode(row: typeof memoryGraphNodes.$inferSelect): MemoryNode {
254
248
  narrativeRole: row.narrativeRole as MemoryNode["narrativeRole"],
255
249
  partOfStory: row.partOfStory,
256
250
  imageRefs: row.imageRefs ? (JSON.parse(row.imageRefs) as ImageRef[]) : null,
257
- scopeId: row.scopeId ?? "default",
258
251
  };
259
252
  }
260
253
 
@@ -524,7 +517,6 @@ async function handleCreateMemoryItem(body: Record<string, unknown>) {
524
517
  narrativeRole: null,
525
518
  partOfStory: null,
526
519
  imageRefs: null,
527
- scopeId: "default",
528
520
  };
529
521
 
530
522
  const created = createNode(newNode);
@@ -725,7 +717,7 @@ export const ROUTES: RouteDefinition[] = [
725
717
  item: z
726
718
  .object({})
727
719
  .passthrough()
728
- .describe("Memory item with scopeLabel and graph metadata"),
720
+ .describe("Memory item with graph metadata"),
729
721
  }),
730
722
  handler: ({ pathParams }) => handleGetMemoryItem(pathParams!.id),
731
723
  },
@@ -19,8 +19,8 @@ import { ACTOR_PRINCIPALS } from "../../../../runtime/auth/route-policy.js";
19
19
  import { RouteError } from "../../../../runtime/routes/errors.js";
20
20
  import type { RouteDefinition } from "../../../../runtime/routes/types.js";
21
21
  import type { RouteHandlerArgs } from "../../../../runtime/routes/types.js";
22
- import { getLogger } from "../../../../util/logger.js";
23
22
  import { getWorkspaceDir } from "../../../../util/platform.js";
23
+ import { getLogger } from "../logging.js";
24
24
  import {
25
25
  type ConceptFrequencyResponse,
26
26
  getConceptFrequencySummary,
@@ -24,7 +24,7 @@ import {
24
24
  type RoutePolicy,
25
25
  } from "../../../../runtime/auth/route-policy.js";
26
26
  import type { RouteDefinition } from "../../../../runtime/routes/types.js";
27
- import { getLogger } from "../../../../util/logger.js";
27
+ import { getLogger } from "../logging.js";
28
28
  import { backfillAllSections } from "../v3/maintain-job.js";
29
29
  import { invalidateLanes } from "../v3/shadow-plugin.js";
30
30
 
@@ -33,10 +33,10 @@ import {
33
33
  enqueueMemoryJob,
34
34
  isMemoryEnabled,
35
35
  } from "../../../persistence/jobs-store.js";
36
- import { getLogger } from "../../../util/logger.js";
37
36
  import { getWorkspaceDir } from "../../../util/platform.js";
38
37
  import { resolveQdrantUrl } from "./embeddings.js";
39
38
  import { startMemoryJobsWorker } from "./jobs-worker.js";
39
+ import { getLogger } from "./logging.js";
40
40
  import { sweepConceptPageFrontmatter } from "./v2/frontmatter-sweep.js";
41
41
  import {
42
42
  maybeRebuildMemoryV2Concepts,
@@ -184,9 +184,8 @@ export async function runMemoryStartup(config: AssistantConfig): Promise<void> {
184
184
  void (async () => {
185
185
  try {
186
186
  const { reconcilePkbIndex } = await import("./pkb/pkb-reconcile.js");
187
- const { PKB_WORKSPACE_SCOPE } = await import("./pkb/types.js");
188
187
  const pkbRoot = join(getWorkspaceDir(), "pkb");
189
- await reconcilePkbIndex(pkbRoot, PKB_WORKSPACE_SCOPE);
188
+ await reconcilePkbIndex(pkbRoot);
190
189
  } catch (err) {
191
190
  log.warn(
192
191
  { err },
@@ -3,7 +3,7 @@ import {
3
3
  rawMemoryRun,
4
4
  rawRun,
5
5
  } from "../../../persistence/raw-query.js";
6
- import { getLogger } from "../../../util/logger.js";
6
+ import { getLogger } from "./logging.js";
7
7
 
8
8
  const log = getLogger("task-memory-cleanup");
9
9
 
@@ -12,7 +12,6 @@ import {
12
12
  } from "bun:test";
13
13
 
14
14
  import type { ToolContext } from "../../../tools/types.js";
15
- import { PKB_WORKSPACE_SCOPE } from "./pkb/types.js";
16
15
 
17
16
  // This test exercises v1 PKB re-index enqueue. `config.memory.v2.enabled`
18
17
  // (default `true`) makes the enqueue path skipped — force it off so the
@@ -31,7 +30,6 @@ let previousWorkspaceEnv: string | undefined;
31
30
  const enqueueCalls: Array<{
32
31
  pkbRoot: string;
33
32
  absPath: string;
34
- memoryScopeId: string;
35
33
  }> = [];
36
34
  let enqueueShouldThrow = false;
37
35
 
@@ -42,11 +40,7 @@ const recallCalls: Array<{
42
40
  let recallContent = "agentic recall answer";
43
41
 
44
42
  mock.module("./jobs/embed-pkb-file.js", () => ({
45
- enqueuePkbIndexJob: (input: {
46
- pkbRoot: string;
47
- absPath: string;
48
- memoryScopeId: string;
49
- }) => {
43
+ enqueuePkbIndexJob: (input: { pkbRoot: string; absPath: string }) => {
50
44
  enqueueCalls.push(input);
51
45
  if (enqueueShouldThrow) {
52
46
  throw new Error("simulated enqueue failure");
@@ -301,12 +295,10 @@ describe("rememberTool.execute — PKB re-index enqueue", () => {
301
295
  expect(enqueueCalls[0]).toEqual({
302
296
  pkbRoot,
303
297
  absPath: bufferPath,
304
- memoryScopeId: PKB_WORKSPACE_SCOPE,
305
298
  });
306
299
  expect(enqueueCalls[1]).toEqual({
307
300
  pkbRoot,
308
301
  absPath: archivePath,
309
- memoryScopeId: PKB_WORKSPACE_SCOPE,
310
302
  });
311
303
  });
312
304
 
@@ -41,7 +41,6 @@ export const rememberTool = {
41
41
  const result = handleRemember(
42
42
  typedInput,
43
43
  context.conversationId,
44
- "default",
45
44
  getConfig(),
46
45
  );
47
46
  return {
@@ -27,9 +27,9 @@ import {
27
27
  import type { AssistantConfig } from "../../../../config/types.js";
28
28
  import { getDb } from "../../../../persistence/db-connection.js";
29
29
  import type { MemoryJob } from "../../../../persistence/jobs-store.js";
30
- import { getLogger } from "../../../../util/logger.js";
31
30
  import { getWorkspaceDir } from "../../../../util/platform.js";
32
31
  import { enqueueEmbedConceptPageJob } from "../jobs/embed-concept-page.js";
32
+ import { getLogger } from "../logging.js";
33
33
  import {
34
34
  computeOwnActivation,
35
35
  selectCandidates,
@@ -22,9 +22,9 @@
22
22
 
23
23
  import { getConfig } from "../../../../config/loader.js";
24
24
  import { generateSparseEmbedding } from "../../../../persistence/embeddings/embedding-backend.js";
25
- import { getLogger } from "../../../../util/logger.js";
26
25
  import { applyCorrectionIfCalibrated } from "../anisotropy.js";
27
26
  import { embedWithBackend } from "../embeddings.js";
27
+ import { getLogger } from "../logging.js";
28
28
  import { buildCliCommandContent } from "./cli-command-content.js";
29
29
  import { invalidatePageIndex } from "./page-index.js";
30
30
  import {
@@ -75,10 +75,10 @@ import {
75
75
  type MemoryJobType,
76
76
  } from "../../../../persistence/jobs-store.js";
77
77
  import { runBackgroundJob } from "../../../../runtime/background-job-runner.js";
78
- import { getLogger } from "../../../../util/logger.js";
79
78
  import { getWorkspaceDir } from "../../../../util/platform.js";
80
79
  import { isProcessAlive } from "../../../../util/process-liveness.js";
81
80
  import { formatBufferTimestamp } from "../graph/tool-handlers.js";
81
+ import { getLogger } from "../logging.js";
82
82
  import { MEMORY_V2_CONSOLIDATION_SOURCE } from "./constants.js";
83
83
  import { resolveConsolidationPrompt } from "./prompts/consolidation.js";
84
84
 
@@ -24,8 +24,8 @@ import { join } from "node:path";
24
24
  import { parse as parseYaml } from "yaml";
25
25
 
26
26
  import type { AssistantConfig } from "../../../../config/schema.js";
27
- import { getLogger } from "../../../../util/logger.js";
28
27
  import { FRONTMATTER_REGEX } from "../frontmatter.js";
28
+ import { getLogger } from "../logging.js";
29
29
  import { listPages } from "./page-store.js";
30
30
  import { ConceptPageFrontmatterSchema } from "./types.js";
31
31
 
@@ -1,6 +1,6 @@
1
1
  import type { DrizzleDb } from "../../../../persistence/db-connection.js";
2
2
  import { getSqliteFrom } from "../../../../persistence/db-connection.js";
3
- import { getLogger } from "../../../../util/logger.js";
3
+ import { getLogger } from "../logging.js";
4
4
 
5
5
  const log = getLogger("memory-v2-injection-events");
6
6
 
@@ -25,8 +25,8 @@
25
25
 
26
26
  import type { AssistantConfig } from "../../../../config/types.js";
27
27
  import type { DrizzleDb } from "../../../../persistence/db-connection.js";
28
- import { getLogger } from "../../../../util/logger.js";
29
28
  import { getWorkspaceDir } from "../../../../util/platform.js";
29
+ import { getLogger } from "../logging.js";
30
30
  import {
31
31
  type MemoryV2ConceptRowRecord,
32
32
  recordMemoryV2ActivationLog,
@@ -8,8 +8,8 @@
8
8
  // test for the gate does not have to mount the entire lifecycle import graph.
9
9
 
10
10
  import type { AssistantConfig } from "../../../../config/schema.js";
11
- import { getLogger } from "../../../../util/logger.js";
12
11
  import { getWorkspaceDir } from "../../../../util/platform.js";
12
+ import { getLogger } from "../logging.js";
13
13
 
14
14
  const log = getLogger("memory-v2-startup");
15
15
 
@@ -30,8 +30,8 @@ import {
30
30
  getSqliteFrom,
31
31
  } from "../../../../persistence/db-connection.js";
32
32
  import { enqueueMemoryJob } from "../../../../persistence/jobs-store.js";
33
- import { getLogger } from "../../../../util/logger.js";
34
33
  import { extractText, userMessage } from "../llm-helpers.js";
34
+ import { getLogger } from "../logging.js";
35
35
  import { deletePage, listPages, slugify, writePage } from "./page-store.js";
36
36
  import type { ConceptPage } from "./types.js";
37
37
 
@@ -16,7 +16,7 @@
16
16
  * concept pages or seeded skill entries change.
17
17
  */
18
18
 
19
- import { getLogger } from "../../../../util/logger.js";
19
+ import { getLogger } from "../logging.js";
20
20
  import { getPageMtimeMs, listPages, readPage } from "./page-store.js";
21
21
 
22
22
  // Dynamic import for `./skill-store.js` happens inside `getPageIndex` so that
@@ -18,8 +18,8 @@
18
18
  * the convention established for the sweep prompt.
19
19
  */
20
20
 
21
- import { getLogger } from "../../../../../util/logger.js";
22
21
  import { getWorkspaceDir } from "../../../../../util/platform.js";
22
+ import { getLogger } from "../../logging.js";
23
23
  import { loadPromptOverride } from "../../prompt-override.js";
24
24
 
25
25
  const log = getLogger("memory-v2-consolidate-prompt");
@@ -22,7 +22,7 @@
22
22
  * same placeholder substitution applies to overrides.
23
23
  */
24
24
 
25
- import { getLogger } from "../../../../../util/logger.js";
25
+ import { getLogger } from "../../logging.js";
26
26
  import {
27
27
  loadPromptOverride,
28
28
  MAX_PROMPT_OVERRIDE_BYTES,
@@ -27,9 +27,9 @@ import { v5 as uuidv5 } from "uuid";
27
27
 
28
28
  import { getConfig } from "../../../../config/loader.js";
29
29
  import type { SparseEmbedding } from "../../../../persistence/embeddings/embedding-types.js";
30
- import { getLogger } from "../../../../util/logger.js";
31
30
  import { getDataDir } from "../../../../util/platform.js";
32
31
  import { resolveQdrantUrl } from "../embeddings.js";
32
+ import { getLogger } from "../logging.js";
33
33
 
34
34
  const log = getLogger("memory-v2-qdrant");
35
35
 
@@ -3,8 +3,8 @@
3
3
  import { createHash } from "node:crypto";
4
4
 
5
5
  import type { AssistantConfig } from "../../../../config/types.js";
6
- import { getLogger } from "../../../../util/logger.js";
7
6
  import { getWorkspaceDir } from "../../../../util/platform.js";
7
+ import { getLogger } from "../logging.js";
8
8
  import { getOrCreateRerankBackend } from "../rerank-local.js";
9
9
  import { readPage } from "./page-store.js";
10
10
 
@@ -42,12 +42,12 @@ import { z } from "zod";
42
42
 
43
43
  import type { AssistantConfig } from "../../../../config/types.js";
44
44
  import type { DrizzleDb } from "../../../../persistence/db-connection.js";
45
- import { getLogger } from "../../../../util/logger.js";
46
45
  import {
47
46
  cachedTextBlock,
48
47
  extractToolUse,
49
48
  type ToolDefinition,
50
49
  } from "../llm-helpers.js";
50
+ import { getLogger } from "../logging.js";
51
51
  import { computeInjectionScores } from "./injection-events.js";
52
52
  import type { PageIndex } from "./page-index.js";
53
53
  import {
@@ -26,9 +26,9 @@ import { listCatalogSkills, listInstalledSkills } from "@vellumai/plugin-api";
26
26
 
27
27
  import { getConfig } from "../../../../config/loader.js";
28
28
  import { generateSparseEmbedding } from "../../../../persistence/embeddings/embedding-backend.js";
29
- import { getLogger } from "../../../../util/logger.js";
30
29
  import { applyCorrectionIfCalibrated } from "../anisotropy.js";
31
30
  import { embedWithBackend } from "../embeddings.js";
31
+ import { getLogger } from "../logging.js";
32
32
  import { invalidatePageIndex } from "./page-index.js";
33
33
  import {
34
34
  backfillKindOnPointsWithPrefix,
@@ -39,7 +39,6 @@ import {
39
39
  conversations,
40
40
  messages,
41
41
  } from "../../../../persistence/schema/index.js";
42
- import { getLogger } from "../../../../util/logger.js";
43
42
  import { getWorkspaceDir } from "../../../../util/platform.js";
44
43
  import {
45
44
  appendBufferAndArchive,
@@ -50,6 +49,7 @@ import {
50
49
  type ToolDefinition,
51
50
  userMessage,
52
51
  } from "../llm-helpers.js";
52
+ import { getLogger } from "../logging.js";
53
53
  import { renderSweepPrompt } from "./prompts/sweep.js";
54
54
 
55
55
  const log = getLogger("memory-v2-sweep");
@@ -29,8 +29,8 @@ import {
29
29
  isAbortError,
30
30
  isTransientEmbeddingError,
31
31
  } from "../../../../persistence/embeddings/embed.js";
32
- import { getLogger } from "../../../../util/logger.js";
33
32
  import { abortableSleep, computeRetryDelay } from "../../../../util/retry.js";
33
+ import { getLogger } from "../logging.js";
34
34
  import { simBatch } from "../v2/sim.js";
35
35
  import { skillSlugFor } from "../v2/skill-store.js";
36
36
 
@@ -17,8 +17,8 @@
17
17
 
18
18
  import type { AssistantConfig } from "../../../../config/types.js";
19
19
  import { isEmbeddingDimensionAvailable } from "../../../../persistence/embeddings/embedding-backend.js";
20
- import { getLogger } from "../../../../util/logger.js";
21
20
  import { embedWithBackend } from "../embeddings.js";
21
+ import { getLogger } from "../logging.js";
22
22
  import {
23
23
  getSectionDenseClient,
24
24
  SECTION_COLLECTION,
@@ -65,12 +65,12 @@ import {
65
65
  queueConversationNotice,
66
66
  } from "../../../../daemon/conversation-notices.js";
67
67
  import { isPersonalMemoryAllowed } from "../../../../daemon/trust-context.js";
68
- import { getLogger } from "../../../../util/logger.js";
69
68
  import {
70
69
  type InjectionBlock,
71
70
  type Injector,
72
71
  type TurnContext,
73
72
  } from "../../../types.js";
73
+ import { getLogger } from "../logging.js";
74
74
  import { wrapMemoryBlock, wrapMemorySpotlightBlock } from "../memory-marker.js";
75
75
  import { isCapabilitySlug } from "./capabilities.js";
76
76
  import { cardBytes } from "./card.js";
@@ -73,9 +73,9 @@ import { EmbeddingBackendUnavailableError } from "../../../../persistence/embedd
73
73
  import { EmbeddingBillingBlockError } from "../../../../persistence/embeddings/embedding-billing-breaker.js";
74
74
  import type { MemoryJob } from "../../../../persistence/jobs-store.js";
75
75
  import { executeDeleteManagedSkill } from "../../../../tools/skills/delete-managed.js";
76
- import { getLogger } from "../../../../util/logger.js";
77
76
  import { getWorkspaceDir } from "../../../../util/platform.js";
78
77
  import { embedWithBackend } from "../embeddings.js";
78
+ import { getLogger } from "../logging.js";
79
79
  import { getPageIndex } from "../v2/page-index.js";
80
80
  import { readPage } from "../v2/page-store.js";
81
81
  import { skillSlugFor } from "../v2/skill-store.js";
@@ -56,7 +56,7 @@
56
56
 
57
57
  import type { AssistantConfig } from "../../../../config/schema.js";
58
58
  import { recordWatchdogEvent } from "../../../../telemetry/watchdog-events-store.js";
59
- import { getLogger } from "../../../../util/logger.js";
59
+ import { getLogger } from "../logging.js";
60
60
  import { denseLaneScored } from "./dense.js";
61
61
  import type { EdgeGraph } from "./edge.js";
62
62
  import { edgeExpand } from "./edge.js";
@@ -57,13 +57,13 @@ import { z } from "zod";
57
57
  import { classifyConversationError } from "../../../../daemon/conversation-error.js";
58
58
  import type { PendingConversationNotice } from "../../../../daemon/conversation-notices.js";
59
59
  import { redactLogString } from "../../../../util/log-redact.js";
60
- import { getLogger } from "../../../../util/logger.js";
61
60
  import { truncate } from "../../../../util/truncate.js";
62
61
  import {
63
62
  cachedTextBlock,
64
63
  extractToolUse,
65
64
  type ToolDefinition,
66
65
  } from "../llm-helpers.js";
66
+ import { getLogger } from "../logging.js";
67
67
  import { loadPromptOverride } from "../prompt-override.js";
68
68
  import { retryForResult } from "./llm-retry.js";
69
69
  import type { MemoryRoutingTurn, SelectedPage, Slug } from "./types.js";
@@ -61,8 +61,8 @@
61
61
  import type { ContentBlock, Message } from "@vellumai/plugin-api";
62
62
 
63
63
  import { getDb, getSqliteFrom } from "../../../../persistence/db-connection.js";
64
- import { getLogger } from "../../../../util/logger.js";
65
64
  import { getMemoryConfig } from "../config.js";
65
+ import { getLogger } from "../logging.js";
66
66
  import { unwrapMemoryBlock, wrapMemoryBlock } from "../memory-marker.js";
67
67
  import {
68
68
  INJECTED_CONCEPT_HEADER_REGEX,
@@ -36,8 +36,8 @@ import {
36
36
  writeEmbeddingCache,
37
37
  } from "../../../../persistence/embeddings/embedding-cache.js";
38
38
  import { embeddingInputContentHash } from "../../../../persistence/embeddings/embedding-types.js";
39
- import { getLogger } from "../../../../util/logger.js";
40
39
  import { embedWithBackend, resolveQdrantUrl } from "../embeddings.js";
40
+ import { getLogger } from "../logging.js";
41
41
  import type { Section } from "./types.js";
42
42
 
43
43
  const log = getLogger("memory-v3-section-dense-store");
@@ -31,12 +31,12 @@ import {
31
31
  import { getConfig } from "../../../../config/loader.js";
32
32
  import type { AssistantConfig } from "../../../../config/schema.js";
33
33
  import { getDb, getSqliteFrom } from "../../../../persistence/db-connection.js";
34
- import { getLogger } from "../../../../util/logger.js";
35
34
  import {
36
35
  getWorkspaceDir,
37
36
  getWorkspacePromptPath,
38
37
  } from "../../../../util/platform.js";
39
38
  import { stripCommentLines } from "../../../../util/strip-comment-lines.js";
39
+ import { getLogger } from "../logging.js";
40
40
  import { getPageIndex } from "../v2/page-index.js";
41
41
  import { readPage, renderPageContent } from "../v2/page-store.js";
42
42
  import { capabilityOrDiskBody } from "./capabilities.js";
@@ -14,10 +14,10 @@ import { existsSync, unlinkSync, writeFileSync } from "node:fs";
14
14
 
15
15
  import { getConfig } from "../../../config/loader.js";
16
16
  import { initializeTools } from "../../../tools/registry.js";
17
- import { getLogger } from "../../../util/logger.js";
18
17
  import { getMemoryWorkerPidPath } from "../../../util/platform.js";
19
18
  import { registerMemoryPluginJobHandlers } from "./job-handler-registration.js";
20
19
  import { startInProcessMemoryJobsWorker } from "./jobs-worker.js";
20
+ import { getLogger } from "./logging.js";
21
21
 
22
22
  const log = getLogger("memory-worker-process");
23
23
 
@@ -72,7 +72,7 @@ export interface CapabilitySet {
72
72
  // --- Data & memory ---
73
73
  /**
74
74
  * May access long-term / cross-conversation memory — both the memory *tools*
75
- * (recall, auto-analysis, retrospection, graph extraction) and *visibility*
75
+ * (recall, retrospection, graph extraction) and *visibility*
76
76
  * of cross-conversation history in assembled context. Untrusted actors are
77
77
  * walled off from both.
78
78
  */
@@ -80,7 +80,6 @@ function seedConversationAndMessage(opts: {
80
80
  updatedAt: now,
81
81
  source: "test",
82
82
  conversationType: "standard",
83
- memoryScopeId: "default",
84
83
  })
85
84
  .run();
86
85
  db.insert(messages)
@@ -109,7 +109,6 @@ function seedConversation(id: string): void {
109
109
  updatedAt: now,
110
110
  source: "test",
111
111
  conversationType: "standard",
112
- memoryScopeId: "default",
113
112
  })
114
113
  .run();
115
114
  }