evermatter 0.202.0__py3-none-any.whl

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 (900) hide show
  1. evermatter-0.202.0.dist-info/METADATA +713 -0
  2. evermatter-0.202.0.dist-info/RECORD +900 -0
  3. evermatter-0.202.0.dist-info/WHEEL +4 -0
  4. evermatter-0.202.0.dist-info/entry_points.txt +4 -0
  5. evermatter-0.202.0.dist-info/licenses/LICENSE +105 -0
  6. evermatter-0.202.0.dist-info/licenses/src/exomem/_licenses/Apache-2.0.txt +202 -0
  7. exomem/__init__.py +14 -0
  8. exomem/__main__.py +5531 -0
  9. exomem/_collection_types/planning.yaml +65 -0
  10. exomem/_collection_types/records.yaml +23 -0
  11. exomem/_held_fs_posix.py +1034 -0
  12. exomem/_held_fs_windows.py +1405 -0
  13. exomem/_hooks/exomem-capture-nudge.sh +11 -0
  14. exomem/_hooks/exomem-continuation-checkpoint.sh +8 -0
  15. exomem/_hooks/exomem-retrieve-nudge.sh +11 -0
  16. exomem/_hooks/exomem_capture_nudge.py +1396 -0
  17. exomem/_hooks/exomem_continuation_checkpoint.py +4702 -0
  18. exomem/_hooks/exomem_local_credentials.py +187 -0
  19. exomem/_hooks/exomem_retrieve_nudge.py +4255 -0
  20. exomem/_licenses/Apache-2.0.txt +202 -0
  21. exomem/_licenses/pi-heif-1.4.0/LICENSE.txt +30 -0
  22. exomem/_licenses/pi-heif-1.4.0/LICENSES_bundled.txt +15 -0
  23. exomem/_licenses/pi-heif-1.4.0/README.md +21 -0
  24. exomem/_licenses/rawpy-0.28.0/LICENSE.LibRaw.txt +458 -0
  25. exomem/_licenses/rawpy-0.28.0/LICENSE.txt +21 -0
  26. exomem/_licenses/rawpy-0.28.0/README.md +22 -0
  27. exomem/_sample_vault/Knowledge Base/Entities/Concepts/Local First Knowledge.md +14 -0
  28. exomem/_sample_vault/Knowledge Base/Evidence/Warranty/Receipts/2026-06-30-laptop-receipt.md +9 -0
  29. exomem/_sample_vault/Knowledge Base/Notes/Insights/Retrieval needs owned files.md +25 -0
  30. exomem/_sample_vault/Knowledge Base/Notes/Research/Sample/Sample architecture.md +24 -0
  31. exomem/_sample_vault/Knowledge Base/Sources/Sessions/2026-06-30-sample-session.md +12 -0
  32. exomem/_sample_vault/Knowledge Base/_Schema/SKILL.md +25 -0
  33. exomem/_sample_vault/Knowledge Base/_Schema/project-keys.yaml +7 -0
  34. exomem/_sample_vault/Knowledge Base/index.md +11 -0
  35. exomem/_sample_vault/Knowledge Base/log.md +7 -0
  36. exomem/_scaffold/Entities/index.md +17 -0
  37. exomem/_scaffold/Notes/index.md +25 -0
  38. exomem/_scaffold/Sources/index.md +17 -0
  39. exomem/_scaffold/_Governance/README.md +40 -0
  40. exomem/_scaffold/_Schema/SKILL.md +392 -0
  41. exomem/_scaffold/_Schema/activation-conventions.yaml +203 -0
  42. exomem/_scaffold/_Schema/context-roles.yaml +208 -0
  43. exomem/_scaffold/_Schema/examples/context-learning/incident-collection.md +59 -0
  44. exomem/_scaffold/_Schema/examples/workflow-contracts/companion-example.md +12 -0
  45. exomem/_scaffold/_Schema/project-keys.yaml +60 -0
  46. exomem/_scaffold/_Schema/references/audit-checks.md +135 -0
  47. exomem/_scaffold/_Schema/references/before-writing.md +104 -0
  48. exomem/_scaffold/_Schema/references/context-learning.md +88 -0
  49. exomem/_scaffold/_Schema/references/engagement.md +404 -0
  50. exomem/_scaffold/_Schema/references/frontmatter.md +292 -0
  51. exomem/_scaffold/_Schema/references/governance.md +175 -0
  52. exomem/_scaffold/_Schema/references/importing.md +101 -0
  53. exomem/_scaffold/_Schema/references/mutation-results.md +298 -0
  54. exomem/_scaffold/_Schema/references/operation-routing.md +302 -0
  55. exomem/_scaffold/_Schema/references/operations.md +1137 -0
  56. exomem/_scaffold/_Schema/references/page-types.md +766 -0
  57. exomem/_scaffold/_Schema/references/planning-records.md +296 -0
  58. exomem/_scaffold/_Schema/references/profiles.md +93 -0
  59. exomem/_scaffold/_Schema/references/recall.md +363 -0
  60. exomem/_scaffold/_Schema/references/semantic-authoring.md +52 -0
  61. exomem/_scaffold/_Schema/references/supersession.md +149 -0
  62. exomem/_scaffold/_Schema/references/vault-care.md +243 -0
  63. exomem/_scaffold/_Schema/references/vocabulary.md +124 -0
  64. exomem/_scaffold/_Schema/references/write-scope.md +192 -0
  65. exomem/_scaffold/_Schema/references/writing.md +585 -0
  66. exomem/_scaffold/_Schema/relation-registry.yaml +2 -0
  67. exomem/_scaffold/_Schema/semantic-language-registry.yaml +3 -0
  68. exomem/_scaffold/_Schema/source-taxonomy.yaml +46 -0
  69. exomem/_scaffold/_Schema/traversal-profiles.yaml +2 -0
  70. exomem/_scaffold/_Schema/workflow-skills/exomem-capture/SKILL.md +273 -0
  71. exomem/_scaffold/_Schema/workflow-skills/exomem-continue/SKILL.md +154 -0
  72. exomem/_scaffold/_Schema/workflow-skills/exomem-curate/SKILL.md +170 -0
  73. exomem/_scaffold/_Schema/workflow-skills/exomem-defrag/SKILL.md +151 -0
  74. exomem/_scaffold/_Schema/workflow-skills/exomem-ingest/SKILL.md +201 -0
  75. exomem/_scaffold/_Schema/workflow-skills/exomem-media/SKILL.md +158 -0
  76. exomem/_scaffold/_Schema/workflow-skills/exomem-reflect/SKILL.md +150 -0
  77. exomem/_scaffold/_Schema/workflow-skills/exomem-research/SKILL.md +152 -0
  78. exomem/_scaffold/_Schema/workflow-skills/exomem-review/SKILL.md +208 -0
  79. exomem/_scaffold/_Schema/workflow-skills/index.yaml +65 -0
  80. exomem/_scaffold/index.md +21 -0
  81. exomem/_scaffold/log.md +7 -0
  82. exomem/_service/exomem-recall-canary.service +11 -0
  83. exomem/_service/exomem-recall-canary.timer +10 -0
  84. exomem/_sidecars/diarizer/pyproject.toml +49 -0
  85. exomem/_sidecars/diarizer/uv.lock +2263 -0
  86. exomem/_sidecars/diarizer/worker.py +167 -0
  87. exomem/accel.py +295 -0
  88. exomem/access.py +356 -0
  89. exomem/access_log.py +198 -0
  90. exomem/activation.py +542 -0
  91. exomem/activation_conventions.py +1075 -0
  92. exomem/activation_manifest.py +876 -0
  93. exomem/activation_result.py +75 -0
  94. exomem/activity.py +325 -0
  95. exomem/add.py +2056 -0
  96. exomem/adopt.py +1492 -0
  97. exomem/adoption_consume.py +293 -0
  98. exomem/adoption_plan.py +1369 -0
  99. exomem/adoption_proposals.py +1394 -0
  100. exomem/adoption_run.py +4253 -0
  101. exomem/advisory_handoff.py +61 -0
  102. exomem/agent_refusal.py +344 -0
  103. exomem/append_to_file.py +297 -0
  104. exomem/archive_members.py +630 -0
  105. exomem/artifact_broker.py +353 -0
  106. exomem/artifact_lifecycle.py +99 -0
  107. exomem/artifact_recovery.py +547 -0
  108. exomem/artifact_role_review.py +354 -0
  109. exomem/artifact_role_state.py +999 -0
  110. exomem/asr_facts.py +78 -0
  111. exomem/asr_runtime.py +297 -0
  112. exomem/attention.py +1254 -0
  113. exomem/audit.py +8475 -0
  114. exomem/audit_fix.py +900 -0
  115. exomem/auth_sessions.py +1670 -0
  116. exomem/auto_quiet.py +217 -0
  117. exomem/automatic_collection.py +426 -0
  118. exomem/backfill.py +643 -0
  119. exomem/backoff.py +22 -0
  120. exomem/bm25.py +1054 -0
  121. exomem/bootstrap_core.py +411 -0
  122. exomem/brief_watermarks.py +137 -0
  123. exomem/call_ledger.py +1044 -0
  124. exomem/call_spans.py +564 -0
  125. exomem/canary_systemd.py +385 -0
  126. exomem/capabilities.py +220 -0
  127. exomem/capture_attempts.py +560 -0
  128. exomem/capture_backfill.py +201 -0
  129. exomem/capture_carrier.py +131 -0
  130. exomem/capture_inventory.py +439 -0
  131. exomem/capture_metadata.py +387 -0
  132. exomem/capture_method.py +108 -0
  133. exomem/capture_sweep.py +938 -0
  134. exomem/catalogue_prewarm.py +221 -0
  135. exomem/cell_deletion_grant.py +136 -0
  136. exomem/cell_identity.py +85 -0
  137. exomem/cell_init.py +265 -0
  138. exomem/cell_media_census.py +32 -0
  139. exomem/cell_traffic.py +250 -0
  140. exomem/cf_access.py +69 -0
  141. exomem/chance_band.py +41 -0
  142. exomem/claims.py +2002 -0
  143. exomem/cli_ops.py +738 -0
  144. exomem/cli_progress.py +60 -0
  145. exomem/client_artifacts.py +2402 -0
  146. exomem/client_config.py +397 -0
  147. exomem/clip_image.py +78 -0
  148. exomem/clip_index.py +746 -0
  149. exomem/clip_query.py +70 -0
  150. exomem/cloud_artifact_transport.py +273 -0
  151. exomem/cloud_cell.py +295 -0
  152. exomem/cloud_containment.py +129 -0
  153. exomem/cloud_download_client.py +171 -0
  154. exomem/cloud_export.py +360 -0
  155. exomem/cloud_export_client.py +175 -0
  156. exomem/cloud_export_steps.py +432 -0
  157. exomem/cloud_grant.py +277 -0
  158. exomem/cloud_health.py +112 -0
  159. exomem/cloud_import.py +601 -0
  160. exomem/cloud_import_client.py +704 -0
  161. exomem/cloud_import_envelope.py +78 -0
  162. exomem/cloud_import_job.py +536 -0
  163. exomem/cloud_import_windows.py +1221 -0
  164. exomem/cloud_operator_portability.py +261 -0
  165. exomem/cloud_origin.py +358 -0
  166. exomem/cloud_plugin_evals.py +796 -0
  167. exomem/cloud_plugins.py +411 -0
  168. exomem/collection_candidate.py +351 -0
  169. exomem/collection_claims.py +350 -0
  170. exomem/collection_profiles.py +55 -0
  171. exomem/collection_refs.py +175 -0
  172. exomem/collection_store/__init__.py +9 -0
  173. exomem/collection_store/admission.py +1713 -0
  174. exomem/collection_store/aliases.py +163 -0
  175. exomem/collection_store/authority.py +618 -0
  176. exomem/collection_store/bulk_inputs.py +256 -0
  177. exomem/collection_store/capability.py +182 -0
  178. exomem/collection_store/census.py +421 -0
  179. exomem/collection_store/chain.py +83 -0
  180. exomem/collection_store/connection.py +912 -0
  181. exomem/collection_store/conversion.py +363 -0
  182. exomem/collection_store/curation_step.py +325 -0
  183. exomem/collection_store/custody.py +181 -0
  184. exomem/collection_store/cutover.py +604 -0
  185. exomem/collection_store/derived_rows.py +1335 -0
  186. exomem/collection_store/edit_back.py +1098 -0
  187. exomem/collection_store/export.py +1012 -0
  188. exomem/collection_store/field_admission.py +387 -0
  189. exomem/collection_store/filenames.py +226 -0
  190. exomem/collection_store/governance.py +2506 -0
  191. exomem/collection_store/handoff_state.py +67 -0
  192. exomem/collection_store/held_sources.py +59 -0
  193. exomem/collection_store/history.py +1051 -0
  194. exomem/collection_store/import_document.py +264 -0
  195. exomem/collection_store/import_modes.py +19 -0
  196. exomem/collection_store/import_recommendations.py +113 -0
  197. exomem/collection_store/import_time.py +147 -0
  198. exomem/collection_store/importer.py +4492 -0
  199. exomem/collection_store/index_migrations.py +522 -0
  200. exomem/collection_store/inspection.py +299 -0
  201. exomem/collection_store/inventory.py +125 -0
  202. exomem/collection_store/legacy.py +865 -0
  203. exomem/collection_store/legacy_import.py +1048 -0
  204. exomem/collection_store/legacy_originals.py +262 -0
  205. exomem/collection_store/log_view.py +219 -0
  206. exomem/collection_store/migration.py +1233 -0
  207. exomem/collection_store/migrations/env.py +15 -0
  208. exomem/collection_store/migrations/versions/10_historical.py +14 -0
  209. exomem/collection_store/migrations/versions/11_history_binding.py +14 -0
  210. exomem/collection_store/migrations/versions/12_detached_authority.py +14 -0
  211. exomem/collection_store/migrations/versions/13_projection_exposure.py +11 -0
  212. exomem/collection_store/migrations/versions/14_item_key_scheme.py +14 -0
  213. exomem/collection_store/migrations/versions/15_vault_store.py +14 -0
  214. exomem/collection_store/migrations/versions/16_vault_store_reads.py +14 -0
  215. exomem/collection_store/migrations/versions/17_item_references.py +14 -0
  216. exomem/collection_store/migrations/versions/18_source_dependencies.py +14 -0
  217. exomem/collection_store/migrations/versions/19_retractable_rows.py +14 -0
  218. exomem/collection_store/migrations/versions/1_historical.py +14 -0
  219. exomem/collection_store/migrations/versions/20_derivation_queue.py +14 -0
  220. exomem/collection_store/migrations/versions/2_historical.py +14 -0
  221. exomem/collection_store/migrations/versions/3_historical.py +14 -0
  222. exomem/collection_store/migrations/versions/4_historical.py +14 -0
  223. exomem/collection_store/migrations/versions/5_historical.py +14 -0
  224. exomem/collection_store/migrations/versions/6_historical.py +14 -0
  225. exomem/collection_store/migrations/versions/7_historical.py +14 -0
  226. exomem/collection_store/migrations/versions/8_historical.py +14 -0
  227. exomem/collection_store/migrations/versions/9_historical.py +14 -0
  228. exomem/collection_store/multirow.py +34 -0
  229. exomem/collection_store/native_enum.py +34 -0
  230. exomem/collection_store/native_identity.py +78 -0
  231. exomem/collection_store/native_json.py +58 -0
  232. exomem/collection_store/native_layout.py +105 -0
  233. exomem/collection_store/native_metadata.py +311 -0
  234. exomem/collection_store/native_migrations.py +262 -0
  235. exomem/collection_store/native_numbers.py +45 -0
  236. exomem/collection_store/native_operands.py +186 -0
  237. exomem/collection_store/native_projections.py +190 -0
  238. exomem/collection_store/native_rows.py +455 -0
  239. exomem/collection_store/native_tables.py +74 -0
  240. exomem/collection_store/native_temporal.py +288 -0
  241. exomem/collection_store/owner.py +348 -0
  242. exomem/collection_store/ownership.py +537 -0
  243. exomem/collection_store/preflight.py +355 -0
  244. exomem/collection_store/preview.py +876 -0
  245. exomem/collection_store/query_freshness.py +111 -0
  246. exomem/collection_store/query_indexes.py +184 -0
  247. exomem/collection_store/reader.py +167 -0
  248. exomem/collection_store/record_inputs.py +269 -0
  249. exomem/collection_store/reference_declarations.py +79 -0
  250. exomem/collection_store/reference_index.py +333 -0
  251. exomem/collection_store/references.py +104 -0
  252. exomem/collection_store/replica.py +1264 -0
  253. exomem/collection_store/rollups.py +412 -0
  254. exomem/collection_store/row_binding.py +95 -0
  255. exomem/collection_store/runtime.py +2711 -0
  256. exomem/collection_store/schema.py +1425 -0
  257. exomem/collection_store/snapshot.py +502 -0
  258. exomem/collection_store/source_dependencies.py +580 -0
  259. exomem/collection_store/summary.py +236 -0
  260. exomem/collection_store/tables.py +81 -0
  261. exomem/collection_store/takeover.py +483 -0
  262. exomem/collection_store/tokens.py +131 -0
  263. exomem/collection_store/typed_storage.py +778 -0
  264. exomem/collection_store/types.py +352 -0
  265. exomem/collection_store/version_sources.py +198 -0
  266. exomem/collection_store/views.py +1163 -0
  267. exomem/collection_store/writer.py +3990 -0
  268. exomem/command_surface.py +1755 -0
  269. exomem/commands.py +16894 -0
  270. exomem/compact_tokenizer.py +371 -0
  271. exomem/compile_proposal.py +230 -0
  272. exomem/compiled_history.py +604 -0
  273. exomem/context_catalogue.py +1683 -0
  274. exomem/context_fit.py +391 -0
  275. exomem/context_intents.py +92 -0
  276. exomem/context_pack.py +1329 -0
  277. exomem/context_refs.py +50 -0
  278. exomem/context_roles.py +868 -0
  279. exomem/context_task.py +1074 -0
  280. exomem/context_views.py +2181 -0
  281. exomem/contradiction_stance.py +511 -0
  282. exomem/corpus_aware.py +1432 -0
  283. exomem/create_directory.py +193 -0
  284. exomem/create_file.py +549 -0
  285. exomem/cuda_containment.py +213 -0
  286. exomem/curation.py +7041 -0
  287. exomem/curation_examples.py +167 -0
  288. exomem/curation_witness.py +145 -0
  289. exomem/currency_boundary.py +36 -0
  290. exomem/dataset_values.py +939 -0
  291. exomem/deferred_index.py +3082 -0
  292. exomem/deferred_write_advisory.py +863 -0
  293. exomem/delete_directory.py +992 -0
  294. exomem/delete_file.py +1118 -0
  295. exomem/demo.py +281 -0
  296. exomem/deploy_provenance.py +164 -0
  297. exomem/derived_drain.py +1080 -0
  298. exomem/derived_receipts.py +3464 -0
  299. exomem/diarizer_sidecar.py +102 -0
  300. exomem/dimension_display.py +466 -0
  301. exomem/doctor.py +4334 -0
  302. exomem/document_containers.py +676 -0
  303. exomem/document_forms.py +127 -0
  304. exomem/document_identity.py +621 -0
  305. exomem/domain_profiles.py +285 -0
  306. exomem/dotenv_guard.py +91 -0
  307. exomem/download_links.py +59 -0
  308. exomem/dreamer.py +936 -0
  309. exomem/dreamer_delta.py +232 -0
  310. exomem/dreamer_families.py +2888 -0
  311. exomem/dreamer_policy.py +247 -0
  312. exomem/dreamer_store.py +1214 -0
  313. exomem/due_state.py +5124 -0
  314. exomem/duplicate_audit.py +298 -0
  315. exomem/duplicate_fold.py +744 -0
  316. exomem/duplicates.py +346 -0
  317. exomem/durable_write.py +46 -0
  318. exomem/edge_ingress.py +204 -0
  319. exomem/edit.py +1393 -0
  320. exomem/edit_operations.py +396 -0
  321. exomem/embedding_backend.py +1148 -0
  322. exomem/embedding_index.py +4411 -0
  323. exomem/embeddings.py +3246 -0
  324. exomem/enroll_speaker.py +81 -0
  325. exomem/entity_candidates.py +325 -0
  326. exomem/entity_evidence.py +643 -0
  327. exomem/entity_recurrence.py +1908 -0
  328. exomem/entity_registry.py +204 -0
  329. exomem/entity_types.py +1097 -0
  330. exomem/env_compat.py +48 -0
  331. exomem/envelope.py +473 -0
  332. exomem/episode_capture.py +445 -0
  333. exomem/episode_compile.py +103 -0
  334. exomem/episode_coverage.py +225 -0
  335. exomem/episode_fold.py +524 -0
  336. exomem/episode_materials.py +321 -0
  337. exomem/episode_memory.py +625 -0
  338. exomem/episode_model.py +795 -0
  339. exomem/episode_nudge.py +152 -0
  340. exomem/episode_reconciliation.py +320 -0
  341. exomem/episode_recovery.py +651 -0
  342. exomem/episode_store.py +484 -0
  343. exomem/episode_workflow.py +1148 -0
  344. exomem/epistemic_dimensions.py +290 -0
  345. exomem/epistemic_graph.py +17831 -0
  346. exomem/eval_metrics.py +57 -0
  347. exomem/eval_report.py +217 -0
  348. exomem/evidence_reuse.py +162 -0
  349. exomem/evolution.py +361 -0
  350. exomem/extract.py +1949 -0
  351. exomem/extraction_parts.py +882 -0
  352. exomem/fastmcp_types.py +38 -0
  353. exomem/favicon.ico +0 -0
  354. exomem/file_watcher.py +3114 -0
  355. exomem/find.py +9915 -0
  356. exomem/find_candidates.py +1276 -0
  357. exomem/find_corpus.py +1139 -0
  358. exomem/find_parts.py +192 -0
  359. exomem/find_policy.py +857 -0
  360. exomem/find_results.py +299 -0
  361. exomem/find_types.py +1077 -0
  362. exomem/fold_leaf.py +371 -0
  363. exomem/foreground_activity.py +238 -0
  364. exomem/foreground_priority.py +521 -0
  365. exomem/frame_stack.py +52 -0
  366. exomem/freshness.py +2598 -0
  367. exomem/frontmatter_update.py +71 -0
  368. exomem/fusion.py +83 -0
  369. exomem/generated_fragment_store.py +1350 -0
  370. exomem/get_frontmatter.py +76 -0
  371. exomem/get_page.py +388 -0
  372. exomem/governance/__init__.py +115 -0
  373. exomem/governance/admission_memo.py +155 -0
  374. exomem/governance/artifact_census.py +889 -0
  375. exomem/governance/authorization_custody.py +3955 -0
  376. exomem/governance/authorization_request.py +337 -0
  377. exomem/governance/authorization_serving_membership.py +928 -0
  378. exomem/governance/authorization_session_authority.py +1090 -0
  379. exomem/governance/authorization_session_lifecycle.py +865 -0
  380. exomem/governance/authorization_sessions.py +294 -0
  381. exomem/governance/authorization_transport.py +807 -0
  382. exomem/governance/bridges.py +1140 -0
  383. exomem/governance/catalog_publication.py +2227 -0
  384. exomem/governance/companion_backfill.py +411 -0
  385. exomem/governance/companions.py +507 -0
  386. exomem/governance/compile.py +68 -0
  387. exomem/governance/connector_boundary.py +934 -0
  388. exomem/governance/credential_carrier.py +122 -0
  389. exomem/governance/decisions.py +424 -0
  390. exomem/governance/egress.py +10076 -0
  391. exomem/governance/graph_producer.py +317 -0
  392. exomem/governance/inspection.py +217 -0
  393. exomem/governance/legacy_v3_placement.py +586 -0
  394. exomem/governance/lifecycle.py +2278 -0
  395. exomem/governance/membership.py +754 -0
  396. exomem/governance/operations.py +383 -0
  397. exomem/governance/page_admission.py +316 -0
  398. exomem/governance/policy.py +2351 -0
  399. exomem/governance/principal.py +633 -0
  400. exomem/governance/projected_graph.py +398 -0
  401. exomem/governance/projected_retrieval.py +1345 -0
  402. exomem/governance/projection_authorization.py +375 -0
  403. exomem/governance/projection_gc.py +84 -0
  404. exomem/governance/projection_measurement_store.py +1108 -0
  405. exomem/governance/projection_runtime.py +2280 -0
  406. exomem/governance/projection_store.py +1739 -0
  407. exomem/governance/projection_timing.py +926 -0
  408. exomem/governance/projections.py +1115 -0
  409. exomem/governance/projector_refresh.py +89 -0
  410. exomem/governance/raw_protection.py +249 -0
  411. exomem/governance/receipts.py +2451 -0
  412. exomem/governance/recovery.py +1522 -0
  413. exomem/governance/schema_downmigration.py +1627 -0
  414. exomem/governance/schema_migration.py +2655 -0
  415. exomem/governance/schema_v4.py +3232 -0
  416. exomem/governance/scrubber.py +1015 -0
  417. exomem/governance/store.py +1382 -0
  418. exomem/governance/tokens.py +646 -0
  419. exomem/governance/tool.py +6949 -0
  420. exomem/governance/transaction.py +199 -0
  421. exomem/governance/transcript_banks.py +119 -0
  422. exomem/graph_drain.py +1002 -0
  423. exomem/graph_publication.py +155 -0
  424. exomem/graph_read_publication.py +567 -0
  425. exomem/graph_sync.py +4231 -0
  426. exomem/guards.py +79 -0
  427. exomem/held_fs.py +1002 -0
  428. exomem/held_operation.py +226 -0
  429. exomem/held_uploads.py +523 -0
  430. exomem/homes.py +254 -0
  431. exomem/icon.svg +9 -0
  432. exomem/image_codecs.py +160 -0
  433. exomem/image_tags.py +175 -0
  434. exomem/image_view.py +385 -0
  435. exomem/import_rename.py +240 -0
  436. exomem/import_selection.py +301 -0
  437. exomem/import_stage.py +513 -0
  438. exomem/import_upload.py +378 -0
  439. exomem/import_windows.py +526 -0
  440. exomem/index_paths.py +220 -0
  441. exomem/index_sync.py +2611 -0
  442. exomem/indexes.py +1265 -0
  443. exomem/init.py +558 -0
  444. exomem/install_hook.py +2871 -0
  445. exomem/install_info.py +296 -0
  446. exomem/install_skill.py +298 -0
  447. exomem/issued_cursor.py +21 -0
  448. exomem/item_keys.py +213 -0
  449. exomem/kbdir.py +213 -0
  450. exomem/knowledge_packs.py +655 -0
  451. exomem/latency_watch.py +742 -0
  452. exomem/layout.py +628 -0
  453. exomem/layout_report.py +88 -0
  454. exomem/lease_coordinator.py +955 -0
  455. exomem/lexstore.py +14071 -0
  456. exomem/lifecycle_statuses.py +324 -0
  457. exomem/link.py +1155 -0
  458. exomem/link_summary.py +42 -0
  459. exomem/list_directory.py +359 -0
  460. exomem/list_inbound_links.py +78 -0
  461. exomem/list_trash.py +225 -0
  462. exomem/local_import.py +606 -0
  463. exomem/local_ingress.py +351 -0
  464. exomem/local_transfer_client.py +78 -0
  465. exomem/log_events.py +201 -0
  466. exomem/logging_config.py +299 -0
  467. exomem/maintenance_jobs.py +1522 -0
  468. exomem/markdown_regions.py +366 -0
  469. exomem/markdown_relations.py +247 -0
  470. exomem/media_allowance.py +308 -0
  471. exomem/media_b2_store.py +253 -0
  472. exomem/media_bindings.py +1038 -0
  473. exomem/media_brakes.py +416 -0
  474. exomem/media_capacity.py +435 -0
  475. exomem/media_collect.py +194 -0
  476. exomem/media_drain_record.py +95 -0
  477. exomem/media_edge.py +846 -0
  478. exomem/media_edge_b2.py +433 -0
  479. exomem/media_edge_protocol.py +37 -0
  480. exomem/media_edge_store.py +206 -0
  481. exomem/media_engines.py +161 -0
  482. exomem/media_jobs.py +3767 -0
  483. exomem/media_manifest.py +180 -0
  484. exomem/media_models.json +227 -0
  485. exomem/media_models.py +45 -0
  486. exomem/media_preview_child.py +99 -0
  487. exomem/media_previews.py +532 -0
  488. exomem/media_processing.py +2194 -0
  489. exomem/media_protection.py +134 -0
  490. exomem/media_protection_budget.py +242 -0
  491. exomem/media_protection_work.py +356 -0
  492. exomem/media_publication.py +42 -0
  493. exomem/media_replicas.py +2779 -0
  494. exomem/media_slot_client.py +132 -0
  495. exomem/media_slot_lease.py +361 -0
  496. exomem/media_store.py +4975 -0
  497. exomem/media_types.py +156 -0
  498. exomem/media_worker.py +3607 -0
  499. exomem/media_worker_child.py +118 -0
  500. exomem/memory_context.py +394 -0
  501. exomem/memory_refs.py +2121 -0
  502. exomem/memory_schema.py +3192 -0
  503. exomem/method_use.py +161 -0
  504. exomem/metrics.py +308 -0
  505. exomem/mode.py +503 -0
  506. exomem/model_cache.py +144 -0
  507. exomem/model_reaper.py +264 -0
  508. exomem/move_file.py +2635 -0
  509. exomem/multi_edit.py +276 -0
  510. exomem/multipart_upload.py +101 -0
  511. exomem/mutation_journal.py +191 -0
  512. exomem/mutation_lock.py +3449 -0
  513. exomem/mutation_terminal.py +3626 -0
  514. exomem/mutation_timings.py +119 -0
  515. exomem/name_drift.py +601 -0
  516. exomem/native_copy_custody.py +291 -0
  517. exomem/note.py +2629 -0
  518. exomem/note_cohesion.py +258 -0
  519. exomem/note_types.py +625 -0
  520. exomem/obs_cli.py +209 -0
  521. exomem/observe_memory.py +1892 -0
  522. exomem/obsidian_links.py +263 -0
  523. exomem/ocr_facts.py +66 -0
  524. exomem/ocr_models.py +406 -0
  525. exomem/onnx_asr_runtime.py +531 -0
  526. exomem/operation_entries.py +1254 -0
  527. exomem/operation_schema.py +154 -0
  528. exomem/origin_bindings.py +493 -0
  529. exomem/original_conversion.py +461 -0
  530. exomem/original_fixity.py +1501 -0
  531. exomem/original_pool.py +383 -0
  532. exomem/originals.py +758 -0
  533. exomem/overview.py +509 -0
  534. exomem/ownership_review.py +361 -0
  535. exomem/ownership_rotation.py +497 -0
  536. exomem/package_skills.py +453 -0
  537. exomem/packs/business.json +98 -0
  538. exomem/packs/creative.json +98 -0
  539. exomem/packs/health-athletic.json +115 -0
  540. exomem/packs/legal-warranty.json +89 -0
  541. exomem/packs/personal-records.json +123 -0
  542. exomem/packs/technical.json +101 -0
  543. exomem/page_fields.py +214 -0
  544. exomem/page_ids.py +72 -0
  545. exomem/page_lineage.py +295 -0
  546. exomem/page_names.py +586 -0
  547. exomem/passage_evidence.py +742 -0
  548. exomem/passage_matrix.py +93 -0
  549. exomem/passage_terms.py +382 -0
  550. exomem/path_mentions.py +157 -0
  551. exomem/pending_recall.py +934 -0
  552. exomem/personal_eviction.py +133 -0
  553. exomem/personalize.py +332 -0
  554. exomem/plan_memory.py +357 -0
  555. exomem/plan_progress.py +566 -0
  556. exomem/planning.py +2130 -0
  557. exomem/planning_values.py +290 -0
  558. exomem/pointer_write.py +684 -0
  559. exomem/positions.py +318 -0
  560. exomem/preserve.py +2522 -0
  561. exomem/prior_claims.py +371 -0
  562. exomem/prior_extraction.py +124 -0
  563. exomem/privacy_log.py +253 -0
  564. exomem/private_state.py +86 -0
  565. exomem/procedure_approval.py +886 -0
  566. exomem/procedure_approval_operation.py +363 -0
  567. exomem/process_memory.py +160 -0
  568. exomem/product_invoke.py +261 -0
  569. exomem/profile_selection.py +134 -0
  570. exomem/project_keys.py +583 -0
  571. exomem/prominence.py +1015 -0
  572. exomem/prominence_preferences.py +288 -0
  573. exomem/promotion_proof.py +358 -0
  574. exomem/promotion_revert.py +517 -0
  575. exomem/promotions.py +680 -0
  576. exomem/provenance.py +851 -0
  577. exomem/public_artifact_privacy.py +768 -0
  578. exomem/public_surface.py +732 -0
  579. exomem/public_tools.py +1219 -0
  580. exomem/published_admission.py +182 -0
  581. exomem/query_compat.py +195 -0
  582. exomem/query_data.py +750 -0
  583. exomem/query_engine/__init__.py +1 -0
  584. exomem/query_engine/buckets.py +284 -0
  585. exomem/query_engine/cursors.py +282 -0
  586. exomem/query_engine/errors.py +15 -0
  587. exomem/query_engine/indexes.py +109 -0
  588. exomem/query_engine/ir.py +210 -0
  589. exomem/query_engine/legacy.py +54 -0
  590. exomem/query_engine/native_sql.py +202 -0
  591. exomem/query_engine/ordered_seeks.py +139 -0
  592. exomem/query_engine/packed.py +84 -0
  593. exomem/query_engine/reductions.py +595 -0
  594. exomem/query_engine/reference_report.py +153 -0
  595. exomem/query_engine/reference_resolution.py +287 -0
  596. exomem/query_engine/reference_rows.py +680 -0
  597. exomem/query_engine/route.py +356 -0
  598. exomem/query_engine/row_predicates.py +121 -0
  599. exomem/query_engine/runtime.py +576 -0
  600. exomem/query_engine/scalars.py +205 -0
  601. exomem/query_engine/selected_values.py +220 -0
  602. exomem/query_engine/sqlite.py +215 -0
  603. exomem/query_engine/typed_rows.py +470 -0
  604. exomem/query_engine/typed_sql.py +280 -0
  605. exomem/query_engine/validation.py +910 -0
  606. exomem/query_log.py +490 -0
  607. exomem/ranking_config.py +252 -0
  608. exomem/read_next_action.py +106 -0
  609. exomem/readiness.py +436 -0
  610. exomem/recall_canary.py +773 -0
  611. exomem/recall_migration.py +775 -0
  612. exomem/recall_policy.py +560 -0
  613. exomem/recall_space.py +431 -0
  614. exomem/recall_timing.py +309 -0
  615. exomem/recap_folder.py +62 -0
  616. exomem/reclassification_preview.py +286 -0
  617. exomem/reclassify_source.py +1744 -0
  618. exomem/reconcile.py +1383 -0
  619. exomem/record_formats.py +4023 -0
  620. exomem/record_governance.py +3495 -0
  621. exomem/record_history.py +309 -0
  622. exomem/record_item_cache.py +151 -0
  623. exomem/record_memory.py +922 -0
  624. exomem/record_source_custody.py +192 -0
  625. exomem/records.py +6277 -0
  626. exomem/records_disposition.py +484 -0
  627. exomem/recover_from_trash.py +1597 -0
  628. exomem/referent_resolution.py +603 -0
  629. exomem/referent_runtime.py +306 -0
  630. exomem/registry_history.py +640 -0
  631. exomem/relation_barrier.py +190 -0
  632. exomem/relation_census.py +1864 -0
  633. exomem/relation_endpoints.py +143 -0
  634. exomem/relation_options.py +156 -0
  635. exomem/relation_queue.py +1596 -0
  636. exomem/relation_registry.py +1932 -0
  637. exomem/relation_review.py +4653 -0
  638. exomem/relation_sensor.py +767 -0
  639. exomem/relation_vocabulary.py +302 -0
  640. exomem/relayout/__init__.py +6 -0
  641. exomem/relayout/alternatives.py +233 -0
  642. exomem/relayout/disclosure.py +949 -0
  643. exomem/relayout/facts.py +135 -0
  644. exomem/relayout/inventory.py +293 -0
  645. exomem/relayout/links.py +366 -0
  646. exomem/relayout/plan.py +442 -0
  647. exomem/relayout/pointers.py +134 -0
  648. exomem/relayout/render.py +169 -0
  649. exomem/relayout/sampled.py +20 -0
  650. exomem/relayout_record.py +171 -0
  651. exomem/relocate.py +1051 -0
  652. exomem/remote_oauth_storage.py +266 -0
  653. exomem/remote_setup_wizard.py +682 -0
  654. exomem/rename_journal.py +144 -0
  655. exomem/replace.py +747 -0
  656. exomem/repoint_links.py +522 -0
  657. exomem/request_budget.py +419 -0
  658. exomem/request_latency_contract.json +66 -0
  659. exomem/request_latency_contract.py +90 -0
  660. exomem/reserved_paths.py +5285 -0
  661. exomem/resource_status.py +367 -0
  662. exomem/restore_journal.py +204 -0
  663. exomem/retained_inputs.py +275 -0
  664. exomem/retrieval_explain.py +785 -0
  665. exomem/retrieval_models.py +192 -0
  666. exomem/review_context.py +580 -0
  667. exomem/review_ids.py +136 -0
  668. exomem/review_pass.py +461 -0
  669. exomem/review_state.py +1661 -0
  670. exomem/runtime_readiness.py +891 -0
  671. exomem/runtime_resources.py +871 -0
  672. exomem/scene_frames.py +719 -0
  673. exomem/schema.py +196 -0
  674. exomem/semantic_authoring.py +830 -0
  675. exomem/semantic_blocks.py +545 -0
  676. exomem/semantic_census.py +959 -0
  677. exomem/semantic_contract.py +7242 -0
  678. exomem/semantic_drain.py +468 -0
  679. exomem/semantic_index.py +1098 -0
  680. exomem/semantic_kinds.py +153 -0
  681. exomem/semantic_labels.py +338 -0
  682. exomem/semantic_language_registry.py +2161 -0
  683. exomem/semantic_segments.py +371 -0
  684. exomem/semantic_unit_read.py +235 -0
  685. exomem/semantic_units.py +2445 -0
  686. exomem/semantic_writes.py +6498 -0
  687. exomem/sensed_model.py +2400 -0
  688. exomem/sensing.py +1044 -0
  689. exomem/sensing_ledger.py +408 -0
  690. exomem/sensing_llm.py +480 -0
  691. exomem/sensing_nli.py +302 -0
  692. exomem/sensor_worker.py +800 -0
  693. exomem/sensor_worker_child.py +67 -0
  694. exomem/served_context.py +290 -0
  695. exomem/server.py +1524 -0
  696. exomem/server_assets.py +602 -0
  697. exomem/server_auth.py +438 -0
  698. exomem/server_rest.py +719 -0
  699. exomem/server_runtime.py +1467 -0
  700. exomem/server_transfer.py +1905 -0
  701. exomem/server_transport.py +69 -0
  702. exomem/service_ingress.py +761 -0
  703. exomem/service_manager.py +2536 -0
  704. exomem/service_standby.py +1312 -0
  705. exomem/service_upgrade.py +822 -0
  706. exomem/session_oauth.py +568 -0
  707. exomem/session_units.py +135 -0
  708. exomem/session_validation_cache.py +232 -0
  709. exomem/set_frontmatter_field.py +679 -0
  710. exomem/set_take.py +222 -0
  711. exomem/setup_wizard.py +1185 -0
  712. exomem/sidecar_repair.py +245 -0
  713. exomem/sidecar_store.py +467 -0
  714. exomem/skills_context.py +212 -0
  715. exomem/source_capture.py +456 -0
  716. exomem/source_closure.py +472 -0
  717. exomem/source_corrections.py +407 -0
  718. exomem/source_coverage.py +377 -0
  719. exomem/source_custody.py +686 -0
  720. exomem/source_eraser.py +455 -0
  721. exomem/source_erasure.py +59 -0
  722. exomem/source_imports.py +540 -0
  723. exomem/source_inspection.py +287 -0
  724. exomem/source_native_custody.py +737 -0
  725. exomem/source_original_custody.py +166 -0
  726. exomem/source_payload_custody.py +173 -0
  727. exomem/source_pointers.py +305 -0
  728. exomem/source_result_attribution.py +248 -0
  729. exomem/source_result_custody.py +691 -0
  730. exomem/source_taxonomy.py +1303 -0
  731. exomem/speaker_assignment.py +51 -0
  732. exomem/speaker_attribution.py +203 -0
  733. exomem/stack_sites.py +53 -0
  734. exomem/stance.py +148 -0
  735. exomem/state_migration.py +2592 -0
  736. exomem/state_paths.py +475 -0
  737. exomem/structure_promotion.py +89 -0
  738. exomem/structured_collections.py +4101 -0
  739. exomem/structured_files.py +1011 -0
  740. exomem/structured_filters.py +2927 -0
  741. exomem/studio/adoption-model.v1.js +386 -0
  742. exomem/studio/adoption.v1.js +1351 -0
  743. exomem/studio/api.v1.js +69 -0
  744. exomem/studio/app.v4.js +893 -0
  745. exomem/studio/app.v6.js +1053 -0
  746. exomem/studio/index.html +309 -0
  747. exomem/studio/manifest.json +16 -0
  748. exomem/studio/model.v1.js +35 -0
  749. exomem/studio/model.v2.js +81 -0
  750. exomem/studio/state.v2.js +39 -0
  751. exomem/studio/studio-icon.v1.svg +5 -0
  752. exomem/studio/styles.v3.css +169 -0
  753. exomem/sync_providers.py +87 -0
  754. exomem/tag_variants.py +785 -0
  755. exomem/temporal.py +183 -0
  756. exomem/text_scripts.py +289 -0
  757. exomem/thread_dump.py +91 -0
  758. exomem/title_occupancy.py +100 -0
  759. exomem/tool_surface.py +76 -0
  760. exomem/tool_surface_contract.json +16 -0
  761. exomem/topic_brief.py +1081 -0
  762. exomem/topic_carrier_considerations.py +587 -0
  763. exomem/topic_carriers.py +346 -0
  764. exomem/transcript_passages.py +203 -0
  765. exomem/trash_metadata.py +657 -0
  766. exomem/traversal_profiles.py +444 -0
  767. exomem/tui/__init__.py +15 -0
  768. exomem/tui/app.py +368 -0
  769. exomem/tui/backend.py +658 -0
  770. exomem/tui/format.py +91 -0
  771. exomem/tui/screens/__init__.py +27 -0
  772. exomem/tui/screens/adopt.py +231 -0
  773. exomem/tui/screens/ask.py +626 -0
  774. exomem/tui/screens/base.py +168 -0
  775. exomem/tui/screens/capture.py +393 -0
  776. exomem/tui/screens/continue_.py +183 -0
  777. exomem/tui/screens/first_run.py +1046 -0
  778. exomem/tui/screens/home.py +392 -0
  779. exomem/tui/screens/packs.py +138 -0
  780. exomem/tui/screens/review.py +495 -0
  781. exomem/tui/screens/settings.py +174 -0
  782. exomem/tui/screens/status.py +225 -0
  783. exomem/tui/theme.py +411 -0
  784. exomem/tui/widgets.py +477 -0
  785. exomem/unit_corrections.py +283 -0
  786. exomem/unit_edges.py +33 -0
  787. exomem/upkeep.py +1151 -0
  788. exomem/upload_handoff.py +421 -0
  789. exomem/upload_sessions.py +1082 -0
  790. exomem/upload_stage.py +359 -0
  791. exomem/upload_tokens.py +360 -0
  792. exomem/usage.py +309 -0
  793. exomem/vault.py +11821 -0
  794. exomem/vault_backup.py +1262 -0
  795. exomem/vault_backup_cli.py +132 -0
  796. exomem/vault_portability.py +2365 -0
  797. exomem/vault_skills.py +94 -0
  798. exomem/vault_store/__init__.py +5 -0
  799. exomem/vault_store/availability.py +258 -0
  800. exomem/vault_store/batch.py +633 -0
  801. exomem/vault_store/binaries.py +409 -0
  802. exomem/vault_store/cli_fence.py +190 -0
  803. exomem/vault_store/derivation.py +640 -0
  804. exomem/vault_store/derive.py +457 -0
  805. exomem/vault_store/directory.py +136 -0
  806. exomem/vault_store/governed.py +222 -0
  807. exomem/vault_store/graph_state.py +83 -0
  808. exomem/vault_store/held.py +514 -0
  809. exomem/vault_store/importer.py +1256 -0
  810. exomem/vault_store/marker.py +524 -0
  811. exomem/vault_store/media.py +214 -0
  812. exomem/vault_store/migrate.py +781 -0
  813. exomem/vault_store/mode.py +355 -0
  814. exomem/vault_store/ownership.py +219 -0
  815. exomem/vault_store/projection.py +55 -0
  816. exomem/vault_store/projector.py +1580 -0
  817. exomem/vault_store/read.py +1253 -0
  818. exomem/vault_store/rederive.py +365 -0
  819. exomem/vault_store/release.py +164 -0
  820. exomem/vault_store/resident_catalogue.py +84 -0
  821. exomem/vault_store/rollback.py +535 -0
  822. exomem/vault_store/targets.py +399 -0
  823. exomem/vault_store/vectors.py +462 -0
  824. exomem/vault_store/verify.py +169 -0
  825. exomem/vault_store/write.py +1447 -0
  826. exomem/vecstore.py +300 -0
  827. exomem/vector_index_common.py +51 -0
  828. exomem/video_frames.py +300 -0
  829. exomem/video_frames_worker.py +428 -0
  830. exomem/view_lag.py +320 -0
  831. exomem/viewer_map.py +477 -0
  832. exomem/vocabulary/__init__.py +80 -0
  833. exomem/vocabulary/bootstrap.py +140 -0
  834. exomem/vocabulary/contract.py +1061 -0
  835. exomem/vocabulary/instances.py +476 -0
  836. exomem/vocabulary/packs/core/belief-levels.yaml +13 -0
  837. exomem/vocabulary/packs/core/dimensions.yaml +73 -0
  838. exomem/vocabulary/packs/core/document-forms.yaml +25 -0
  839. exomem/vocabulary/packs/core/domains.yaml +16 -0
  840. exomem/vocabulary/packs/core/entity-types.yaml +44 -0
  841. exomem/vocabulary/packs/core/homes.yaml +7 -0
  842. exomem/vocabulary/packs/core/inference-modes.yaml +14 -0
  843. exomem/vocabulary/packs/core/kinds.yaml +49 -0
  844. exomem/vocabulary/packs/core/modalities.yaml +13 -0
  845. exomem/vocabulary/packs/core/note-types.yaml +96 -0
  846. exomem/vocabulary/packs/core/page-fields.yaml +37 -0
  847. exomem/vocabulary/packs/core/planning-values.yaml +49 -0
  848. exomem/vocabulary/packs/core/relations.yaml +45 -0
  849. exomem/vocabulary/packs/core/source-kinds.yaml +85 -0
  850. exomem/vocabulary/packs/core/statuses.yaml +26 -0
  851. exomem/vocabulary/packs/core/sync-providers.yaml +81 -0
  852. exomem/vocabulary/packs/core/topic-carriers.yaml +6 -0
  853. exomem/vocabulary/packs/core/traversal-profiles.yaml +25 -0
  854. exomem/vocabulary/packs/core/verdicts.yaml +13 -0
  855. exomem/vocabulary/registry.py +976 -0
  856. exomem/vocabulary/usage.py +320 -0
  857. exomem/vocabulary_admission.py +95 -0
  858. exomem/vocabulary_application.py +569 -0
  859. exomem/vocabulary_authority.py +1770 -0
  860. exomem/vocabulary_auxiliaries.py +461 -0
  861. exomem/vocabulary_control.py +305 -0
  862. exomem/vocabulary_delivery.py +304 -0
  863. exomem/vocabulary_delta.py +246 -0
  864. exomem/vocabulary_effects.py +582 -0
  865. exomem/vocabulary_entities.py +112 -0
  866. exomem/vocabulary_evidence.py +466 -0
  867. exomem/vocabulary_fold.py +94 -0
  868. exomem/vocabulary_gate.py +385 -0
  869. exomem/vocabulary_gate_evidence.py +280 -0
  870. exomem/vocabulary_notice_index.py +72 -0
  871. exomem/vocabulary_notifications.py +222 -0
  872. exomem/vocabulary_projection.py +518 -0
  873. exomem/vocabulary_provenance.py +615 -0
  874. exomem/vocabulary_questions.py +197 -0
  875. exomem/vocabulary_receipts.py +44 -0
  876. exomem/vocabulary_recovery.py +155 -0
  877. exomem/vocabulary_resolution.py +765 -0
  878. exomem/vocabulary_review.py +592 -0
  879. exomem/vocabulary_review_index.py +689 -0
  880. exomem/vocabulary_signals.py +150 -0
  881. exomem/vocabulary_state.py +580 -0
  882. exomem/vocabulary_workflow.py +560 -0
  883. exomem/voice_embed.py +180 -0
  884. exomem/voice_profiles.py +171 -0
  885. exomem/warmup.py +856 -0
  886. exomem/workflow_contracts.py +1385 -0
  887. exomem/workflow_skills.py +213 -0
  888. exomem/working_set.py +6988 -0
  889. exomem/working_set_anaphora.py +794 -0
  890. exomem/working_set_conversation.py +571 -0
  891. exomem/working_set_currency.py +229 -0
  892. exomem/working_set_heat.py +2471 -0
  893. exomem/working_set_index.py +3461 -0
  894. exomem/working_set_learning.py +591 -0
  895. exomem/working_set_resolve.py +3261 -0
  896. exomem/working_set_runtime.py +3170 -0
  897. exomem/working_set_state.py +665 -0
  898. exomem/write_intake.py +1537 -0
  899. exomem/writer_lease.py +9761 -0
  900. kb_mcp/__init__.py +69 -0
@@ -0,0 +1,713 @@
1
+ Metadata-Version: 2.5
2
+ Name: evermatter
3
+ Version: 0.202.0
4
+ Summary: Local knowledge substrate for owned markdown/Obsidian vaults, exposed through MCP, REST, and CLI with multimodal OCR/ASR/CLIP search
5
+ Project-URL: Homepage, https://evermatter.ai
6
+ Project-URL: Documentation, https://github.com/substrate-systems/evermatter/blob/main/QUICKSTART.md
7
+ Project-URL: Source, https://github.com/substrate-systems/evermatter
8
+ Project-URL: Changelog, https://github.com/substrate-systems/evermatter/blob/main/CHANGELOG.md
9
+ Project-URL: Issues, https://github.com/substrate-systems/evermatter/issues
10
+ Author-email: Hugo Ander <founder@substratesystems.io>
11
+ License-Expression: FSL-1.1-ALv2 AND Apache-2.0
12
+ License-File: LICENSE
13
+ License-File: src/exomem/_licenses/Apache-2.0.txt
14
+ Keywords: agent-memory,ai-agents,claude,hybrid-search,knowledge-base,markdown,mcp,mcp-server,obsidian,rag,semantic-search
15
+ Classifier: Development Status :: 4 - Beta
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Operating System :: Microsoft :: Windows
18
+ Classifier: Operating System :: POSIX :: Linux
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
23
+ Classifier: Topic :: Text Processing :: Indexing
24
+ Requires-Python: >=3.11
25
+ Requires-Dist: aiofile<4,>=3.12.3
26
+ Requires-Dist: alembic<2,>=1.20
27
+ Requires-Dist: charset-normalizer<4,>=3.4
28
+ Requires-Dist: fastmcp==4.0.3
29
+ Requires-Dist: filelock<4,>=3.29
30
+ Requires-Dist: fsspec[http]==2026.4.0
31
+ Requires-Dist: httpx2<3,>=2.12
32
+ Requires-Dist: httpx>=0.27
33
+ Requires-Dist: ijson<4,>=3.5.1
34
+ Requires-Dist: jsonschema<5,>=4.23
35
+ Requires-Dist: markdown-it-py==4.2.0
36
+ Requires-Dist: numpy>=1.26
37
+ Requires-Dist: pathspec<2,>=1.1.1
38
+ Requires-Dist: pyjwt[crypto]>=2.8
39
+ Requires-Dist: python-dotenv>=1.0
40
+ Requires-Dist: python-multipart>=0.0.9
41
+ Requires-Dist: python-slugify>=8.0
42
+ Requires-Dist: pyyaml>=6.0
43
+ Requires-Dist: rank-bm25>=0.2.2
44
+ Requires-Dist: referencing<0.38,>=0.37
45
+ Requires-Dist: rpds-py<0.31,>=0.30
46
+ Requires-Dist: snowballstemmer>=2.2
47
+ Requires-Dist: sqlalchemy<3,>=2.1.4
48
+ Requires-Dist: sse-starlette<4,>=3.4
49
+ Requires-Dist: tzdata>=2026.2
50
+ Requires-Dist: uvicorn>=0.47
51
+ Requires-Dist: watchdog>=4.0
52
+ Provides-Extra: diarization
53
+ Requires-Dist: speechbrain>=1.0; extra == 'diarization'
54
+ Provides-Extra: embeddings
55
+ Requires-Dist: onnx>=1.17; extra == 'embeddings'
56
+ Requires-Dist: onnxruntime>=1.20; extra == 'embeddings'
57
+ Requires-Dist: pi-heif==1.4.0; extra == 'embeddings'
58
+ Requires-Dist: pillow>=11.1.0; extra == 'embeddings'
59
+ Requires-Dist: rawpy<0.29,>=0.28; (sys_platform != 'darwin' or platform_machine != 'x86_64') and extra == 'embeddings'
60
+ Requires-Dist: sentence-transformers>=2.7; extra == 'embeddings'
61
+ Requires-Dist: sqlite-vec>=0.1.6; extra == 'embeddings'
62
+ Requires-Dist: torch>=2.12; extra == 'embeddings'
63
+ Provides-Extra: embeddings-onnx
64
+ Requires-Dist: huggingface-hub>=0.24; extra == 'embeddings-onnx'
65
+ Requires-Dist: onnxruntime>=1.20; extra == 'embeddings-onnx'
66
+ Requires-Dist: sqlite-vec>=0.1.6; extra == 'embeddings-onnx'
67
+ Requires-Dist: tokenizers>=0.20; extra == 'embeddings-onnx'
68
+ Provides-Extra: frame-codecs
69
+ Requires-Dist: av<19,>=11; extra == 'frame-codecs'
70
+ Requires-Dist: pi-heif==1.4.0; extra == 'frame-codecs'
71
+ Requires-Dist: pillow>=11.1.0; extra == 'frame-codecs'
72
+ Requires-Dist: rawpy<0.29,>=0.28; (sys_platform != 'darwin' or platform_machine != 'x86_64') and extra == 'frame-codecs'
73
+ Provides-Extra: image-codecs
74
+ Requires-Dist: pi-heif==1.4.0; extra == 'image-codecs'
75
+ Requires-Dist: pillow>=11.1.0; extra == 'image-codecs'
76
+ Requires-Dist: rawpy<0.29,>=0.28; (sys_platform != 'darwin' or platform_machine != 'x86_64') and extra == 'image-codecs'
77
+ Provides-Extra: media
78
+ Requires-Dist: av<19,>=11; extra == 'media'
79
+ Requires-Dist: ctranslate2<5,>=4.6.3; extra == 'media'
80
+ Requires-Dist: defusedxml>=0.7.1; extra == 'media'
81
+ Requires-Dist: faster-whisper>=1.1; extra == 'media'
82
+ Requires-Dist: markitdown[docx,pptx,xlsx]>=0.1.1; extra == 'media'
83
+ Requires-Dist: nvidia-cublas-cu12<13,>=12.8.4.1; (sys_platform == 'linux' or sys_platform == 'win32') and extra == 'media'
84
+ Requires-Dist: nvidia-cuda-runtime-cu12<13,>=12.8.90; (sys_platform == 'linux' or sys_platform == 'win32') and extra == 'media'
85
+ Requires-Dist: nvidia-cudnn-cu12<10,>=9.5.0.50; (sys_platform == 'linux' or sys_platform == 'win32') and extra == 'media'
86
+ Requires-Dist: odfdo>=3.26; extra == 'media'
87
+ Requires-Dist: onnx-asr[cpu]==0.12.0; extra == 'media'
88
+ Requires-Dist: pi-heif==1.4.0; extra == 'media'
89
+ Requires-Dist: pillow>=11.1.0; extra == 'media'
90
+ Requires-Dist: pypdf<8,>=7.1; extra == 'media'
91
+ Requires-Dist: pypdfium2<6,>=5.15; extra == 'media'
92
+ Requires-Dist: rawpy<0.29,>=0.28; (sys_platform != 'darwin' or platform_machine != 'x86_64') and extra == 'media'
93
+ Requires-Dist: striprtf>=0.0.33; extra == 'media'
94
+ Provides-Extra: media-cpu
95
+ Requires-Dist: av<19,>=11; extra == 'media-cpu'
96
+ Requires-Dist: defusedxml>=0.7.1; extra == 'media-cpu'
97
+ Requires-Dist: markitdown[docx,pptx,xlsx]>=0.1.1; extra == 'media-cpu'
98
+ Requires-Dist: odfdo>=3.26; extra == 'media-cpu'
99
+ Requires-Dist: onnx-asr[cpu]==0.12.0; extra == 'media-cpu'
100
+ Requires-Dist: pi-heif==1.4.0; extra == 'media-cpu'
101
+ Requires-Dist: pillow>=11.1.0; extra == 'media-cpu'
102
+ Requires-Dist: pypdf<8,>=7.1; extra == 'media-cpu'
103
+ Requires-Dist: pypdfium2<6,>=5.15; extra == 'media-cpu'
104
+ Requires-Dist: rawpy<0.29,>=0.28; (sys_platform != 'darwin' or platform_machine != 'x86_64') and extra == 'media-cpu'
105
+ Requires-Dist: striprtf>=0.0.33; extra == 'media-cpu'
106
+ Provides-Extra: media-mlx
107
+ Requires-Dist: mlx-whisper>=0.4; (sys_platform == 'darwin' and platform_machine == 'arm64') and extra == 'media-mlx'
108
+ Provides-Extra: nli
109
+ Requires-Dist: sentence-transformers>=3.0; extra == 'nli'
110
+ Requires-Dist: torch>=2.12; extra == 'nli'
111
+ Provides-Extra: reranker-onnx
112
+ Requires-Dist: sentence-transformers[onnx]>=5.5.1; extra == 'reranker-onnx'
113
+ Provides-Extra: tui
114
+ Requires-Dist: textual>=5.0; extra == 'tui'
115
+ Provides-Extra: vision
116
+ Requires-Dist: transformers>=4.40; extra == 'vision'
117
+ Description-Content-Type: text/markdown
118
+
119
+ # Evermatter (formerly Exomem)
120
+
121
+ <!-- mcp-name: io.github.substrate-systems/evermatter -->
122
+
123
+ [![PyPI](https://img.shields.io/pypi/v/evermatter.svg)](https://pypi.org/project/evermatter/)
124
+ [![Python](https://img.shields.io/badge/python-%3E%3D3.11-3776ab.svg)](https://pypi.org/project/evermatter/)
125
+ [![CI](https://github.com/substrate-systems/evermatter/actions/workflows/ci.yml/badge.svg)](https://github.com/substrate-systems/evermatter/actions/workflows/ci.yml)
126
+ [![License: FSL-1.1-ALv2](https://img.shields.io/badge/license-FSL--1.1--ALv2-blue.svg)](LICENSE)
127
+
128
+ Durable memory with sources, proof, history, and review for MCP-capable agents.
129
+
130
+ Evermatter turns an owned Markdown/Obsidian vault into a local knowledge substrate
131
+ for Codex, Claude Code, Cursor, chatbots, CLI agents, and any client that can
132
+ call MCP tools. Your files stay plain, local, portable, and editable outside the
133
+ server.
134
+
135
+ ```text
136
+ agent -> MCP tools -> exomem -> your Markdown / Obsidian vault
137
+ ```
138
+
139
+ ## Prove it in 30 seconds
140
+
141
+ ```bash
142
+ uvx evermatter demo
143
+ ```
144
+
145
+ One command, no install, no config, no vault of your own needed:
146
+
147
+ ```text
148
+ Evermatter demo — bundled sample vault, keyword mode, fully local
149
+ vault: /tmp/exomem-demo-XXXXXX
150
+
151
+ 1. doctor: PASS (0.8s)
152
+ 2. find "retrieval": PASS (0.1s)
153
+ - Knowledge Base/Sources/Sessions/2026-06-30-sample-session.md
154
+ - Knowledge Base/Notes/Insights/Retrieval needs owned files.md
155
+ 3. get retrieval insight: PASS (0.0s)
156
+ - title: Retrieval needs owned files
157
+ - type: insight
158
+ - excerpt: Local-first knowledge tools should retrieve from files the user already owns.
159
+ 4. audit: PASS (0.0s)
160
+
161
+ demo PASS — total 1.0s. This is your proof: agents search files you own.
162
+ Next: connect your own vault with `exomem setup`
163
+ ```
164
+
165
+ Runs fully local and read-only against a sample vault bundled in the package.
166
+ Add `--keep` to leave that copy on disk afterward and open it in Obsidian.
167
+
168
+ ## Install in one line
169
+
170
+ **Mac / Linux** — paste into Terminal:
171
+
172
+ ```bash
173
+ curl -fsSL https://raw.githubusercontent.com/substrate-systems/evermatter/main/scripts/install.sh | sh
174
+ ```
175
+
176
+ **Windows** — paste into PowerShell:
177
+
178
+ ```powershell
179
+ irm https://raw.githubusercontent.com/substrate-systems/evermatter/main/scripts/install.ps1 | iex
180
+ ```
181
+
182
+ Either one installs `uv`, installs Evermatter, and walks you through `exomem setup`,
183
+ which wires up **every agent client on the machine** — Claude Code and Codex both
184
+ get the MCP server, all ten skills, and the capture/retrieve hooks.
185
+
186
+ Safe to run again later — it skips whatever's already done. If it can't prompt
187
+ you interactively (e.g. run from another script), it prints the exact command to
188
+ run next instead of guessing. Prefer to run each step yourself? See below or the
189
+ full manual walkthrough in
190
+ [QUICKSTART.md](https://github.com/substrate-systems/evermatter/blob/main/QUICKSTART.md).
191
+
192
+ ### Claude Code: install as a plugin
193
+
194
+ The plugin carries the skills and hooks. Its MCP entry is an optional shared
195
+ HTTP URL; it deliberately does **not** auto-start a full stdio server in every
196
+ Claude Code session:
197
+
198
+ ```
199
+ /plugin marketplace add substrate-systems/evermatter
200
+ /plugin install exomem@exomem
201
+ ```
202
+
203
+ Then choose the route. If you already run Evermatter as a service for phone or
204
+ hosted access, reuse that one authenticated core:
205
+
206
+ ```bash
207
+ exomem setup --vault "/path/to/vault" --mcp-url https://<host>/mcp
208
+ ```
209
+
210
+ For local-only use, run `exomem setup --vault "/path/to/vault" --stdio`.
211
+ Stdio is intentionally explicit because each client session owns its process
212
+ and can load its own embedding runtime. When updating from an older plugin,
213
+ run `/plugin update exomem@exomem`, then `/reload-plugins` or restart Claude
214
+ Code before rerunning setup.
215
+
216
+ ### claude.ai and ChatGPT
217
+
218
+ Neither platform can install skills programmatically — upload is manual. Build
219
+ the archives, then upload them in the client's settings:
220
+
221
+ ```bash
222
+ exomem package-skills # writes dist/skills/*.zip (all ten)
223
+ ```
224
+
225
+ Point the client at your server as a connector (see
226
+ [docs/remote-quickstart.md](docs/remote-quickstart.md)). Neither platform has a
227
+ hook system, so capture there is skill-driven rather than automatic.
228
+
229
+ ## Set it up in 5 minutes
230
+
231
+ ```bash
232
+ uv tool install evermatter==<version>
233
+ exomem setup --vault "/path/to/your/Obsidian"
234
+ ```
235
+
236
+ Replace `<version>` with the newest release on
237
+ [PyPI](https://pypi.org/project/evermatter/). An existing install named `exomem`
238
+ keeps upgrading under that name: rerun the one-line installer or
239
+ `uv tool upgrade exomem`, and do not install `evermatter` beside it.
240
+ `exomem --version --json` is a model-free provenance check, so it also works in
241
+ the intentional lean CLI paired with a fuller managed service.
242
+
243
+ One command does the whole local setup: the wizard scans your vault and shows
244
+ what's already there, initializes `Knowledge Base/`, runs the `doctor`
245
+ preflight, registers the server with every client it detects (Claude Code and
246
+ Codex), and installs the skills into each. Last, it offers Evermatter's learning
247
+ instruction for each client's `CLAUDE.md` or `AGENTS.md`, and writes it only if
248
+ you agree. The instruction asks the agent to recall Evermatter before a task and
249
+ save what it learns.
250
+
251
+ If cwd `.env` or the process contains `EXOMEM_BASE_URL`, setup registers its
252
+ canonical `/mcp` endpoint with Claude Code and Codex so they share the existing
253
+ service. Otherwise it uses the explicit local stdio fallback. Use `--mcp-url`
254
+ to choose a service directly, `--stdio` to force local stdio, and
255
+ `--replace-client-registration` when you deliberately want to replace an
256
+ existing manual route. Native clients handle OAuth; setup never stores bearer
257
+ tokens.
258
+
259
+ Config files it did not create are treated as yours: it merges rather than
260
+ overwrites, backs the file up first, and prints the diff.
261
+
262
+ Already have a vault full of notes? That's the normal case: `adopt` gives a
263
+ scan-first, read-only report of what's there, suggested knowledge packs, and
264
+ safe copy/compile-planning next actions. Evermatter only ever writes under `Knowledge Base/` — your
265
+ existing files stay untouched unless you explicitly copy or compile selected material. See
266
+ [QUICKSTART.md § Already have a vault full of notes?](QUICKSTART.md#already-have-a-vault-full-of-notes)
267
+ for the full contract, including daily-notes vaults. Re-running `setup` is
268
+ safe; completed steps report `[skipped]`. Non-interactive:
269
+ `exomem setup --yes --vault "/path" --lean` (add `--learning-instruction` to
270
+ place the learning instruction as well).
271
+
272
+ The individual steps (`exomem init` / `doctor` / `install-skill` /
273
+ `install-hook`, plus `claude mcp add`) still exist as the manual path — see
274
+ [QUICKSTART.md](QUICKSTART.md).
275
+
276
+ The skill installs under the Claude Code name `exomem` — the same name as the
277
+ connector, so skill, server, and tools all read as one product. The skill is
278
+ recommended for Claude Code —
279
+ the server gives Claude the tools, the skill is what makes it use them. Hooks
280
+ are local-client reliability helpers for Claude Code and Codex: a read-side
281
+ reminder before answers, a write-side reminder at natural stopping points, and
282
+ a shared local continuation checkpoint around compaction. The checkpoint stores
283
+ bounded structural evidence (repository state, artifact hashes/counts, and
284
+ transcript provenance hashes), never conversation, tool, summary, or artifact
285
+ content. It needs no MCP connection or Evermatter credential.
286
+ The read-side hook suppresses obvious control/status prompts like `continue`,
287
+ `merge it`, and `are you done?`, and can optionally upgrade that reminder to real
288
+ retrieved KB content (`EXOMEM_RETRIEVE_INJECT=1`, opt-in; the legacy
289
+ `KB_RETRIEVE_INJECT` name still works) — or, with
290
+ `EXOMEM_RETRIEVE_INJECT=working_set`, to a compiled `recall_context` packet
291
+ under a data header, bounded by `EXOMEM_RETRIEVE_INJECT_MAX_CHARS` (default
292
+ 4,000). For Codex, run
293
+ `exomem install-hook --client codex`; for Claude Code, `exomem install-hook` —
294
+ see
295
+ [QUICKSTART.md § 7](QUICKSTART.md#7-recommended-make-the-kb-automatic-both-directions).
296
+ Both clients checkpoint on manual or automatic `PreCompact` and reinject on
297
+ `SessionStart(compact|resume)`; Claude also checkpoints on `SessionEnd`. Pinned
298
+ Codex CLI 0.144.3 has no `SessionEnd` hook, so Evermatter does not invent one.
299
+ Other MCP clients can still use the server. If they do not support Skills,
300
+ have them call `bootstrap()` once at the start of the session; it returns the
301
+ same compact operating contract through MCP, including when to search, when to
302
+ save, workflow-skill discovery, upload guidance, and performance profiles. It
303
+ also teaches the authoring loop: search first, draft the typed note, run
304
+ `suggest_links`, write with the right tool, inspect warnings/suggestions, then
305
+ report the path.
306
+
307
+ How eagerly it does that is tunable: four prominence levels (`off` / `light` /
308
+ `balanced` / `maximal`), set with `exomem prominence <level>` or pasted into a web
309
+ assistant's custom instructions. Clients with hooks default to `balanced`; web and
310
+ hosted default to `maximal`, because nothing there re-arms the check between turns.
311
+ See [docs/prominence.md](docs/prominence.md) for the levels and the copy-paste
312
+ blocks.
313
+
314
+ For client-specific assistant instructions, see
315
+ [docs/ai-assistant-guide.md](docs/ai-assistant-guide.md). For the boundary
316
+ between Evermatter and a chat product's built-in memory, see
317
+ [docs/vs-built-in-memory.md](docs/vs-built-in-memory.md).
318
+
319
+ Full local setup is in [QUICKSTART.md](QUICKSTART.md). Remote/mobile setup is
320
+ in [docs/remote-quickstart.md](docs/remote-quickstart.md) and
321
+ [docs/deployment.md](docs/deployment.md).
322
+
323
+ Remote OAuth uses GitHub once to prove the configured login plus immutable user
324
+ ID, then issues an Evermatter-owned durable session. Operators can inspect and revoke
325
+ those sessions with `exomem auth sessions`, `exomem auth revoke <session-id>`,
326
+ and `exomem auth revoke --all`; session administration is never an MCP tool.
327
+
328
+ The product model is intentionally simple: built-in AI memory remembers preferences and routing, while Evermatter stores durable governed knowledge with sources, proof, history, decisions, records, and review. See [docs/product-model.md](docs/product-model.md) for the full mental model, [docs/records.md](docs/records.md) for human-owned longitudinal Records, [docs/tui.md](docs/tui.md) for the interactive terminal UI (`exomem tui`, optional `tui` extra), [docs/review-studio.md](docs/review-studio.md) for the packaged browser review loop, [docs/epistemic-inbox.md](docs/epistemic-inbox.md) for daily review and relation repair, [docs/knowledge-packs.md](docs/knowledge-packs.md) for pack/admin details, and [docs/workflow-skills.md](docs/workflow-skills.md) for the named agent workflows.
329
+
330
+ For development, or to run the sample vault from a checkout instead of a
331
+ package install:
332
+
333
+ ```bash
334
+ git clone https://github.com/substrate-systems/evermatter.git
335
+ cd evermatter
336
+ uv sync
337
+ uv run exomem demo
338
+ ```
339
+
340
+ ## Connect your agent
341
+
342
+ | Client | How |
343
+ | --- | --- |
344
+ | Claude Code | `exomem setup` registers it for you (see above) |
345
+ | Codex CLI | `codex mcp add` plus optional `exomem install-hook --client codex` - see [docs/ai-assistant-guide.md#codex-cli](docs/ai-assistant-guide.md#codex-cli) |
346
+ | claude.ai or hosted chat | Remote MCP/connector - see [docs/remote-quickstart.md](docs/remote-quickstart.md) and [docs/ai-assistant-guide.md#hosted-chat-clients](docs/ai-assistant-guide.md#hosted-chat-clients) |
347
+ | Any MCP client | Generic stdio config - see below and [docs/ai-assistant-guide.md#generic-stdio-mcp-clients](docs/ai-assistant-guide.md#generic-stdio-mcp-clients); call `bootstrap()` first |
348
+ | Docker (no Python) | One `docker run` line — see below and [docs/docker.md](docs/docker.md) |
349
+
350
+ <details>
351
+ <summary>Codex CLI</summary>
352
+
353
+ ```bash
354
+ codex mcp add exomem --env EXOMEM_VAULT_PATH="/path/to/vault" -- exomem --transport stdio
355
+ ```
356
+
357
+ Optional local hooks, using the same Evermatter scripts as Claude Code:
358
+
359
+ ```bash
360
+ exomem install-hook --client codex
361
+ ```
362
+
363
+ Verify deployed Claude Code/Codex hooks without changing anything:
364
+
365
+ ```bash
366
+ exomem install-hook --check
367
+ ```
368
+
369
+ For the `AGENTS.md` instruction block and the "do not search every tiny prompt"
370
+ policy, see [docs/ai-assistant-guide.md](docs/ai-assistant-guide.md).
371
+
372
+ Or add it directly to `~/.codex/config.toml`:
373
+
374
+ ```toml
375
+ [mcp_servers.exomem]
376
+ command = "exomem"
377
+ args = ["--transport", "stdio"]
378
+ env = { EXOMEM_VAULT_PATH = "/path/to/vault" }
379
+ ```
380
+
381
+ </details>
382
+
383
+ <details>
384
+ <summary>Any MCP client (generic stdio)</summary>
385
+
386
+ ```json
387
+ {"mcpServers": {"exomem": {"command": "exomem", "args": ["--transport", "stdio"], "env": {"EXOMEM_VAULT_PATH": "/path/to/vault"}}}}
388
+ ```
389
+
390
+ After connecting, ask the agent to call `bootstrap()` before using the KB. Claude
391
+ Skills are still the best UX where available, but `bootstrap()` lets generic MCP
392
+ clients learn Evermatter's search/save/upload contract without a separate skill file,
393
+ including the write loop for compiled notes.
394
+ See [docs/ai-assistant-guide.md](docs/ai-assistant-guide.md) for the copyable
395
+ standing instruction.
396
+
397
+ </details>
398
+
399
+ <details>
400
+ <summary>Docker (no Python on the host)</summary>
401
+
402
+ > **Images moved.** Releases publish to `ghcr.io/substrate-systems/evermatter`.
403
+ > The old `ghcr.io/artexis10/exomem` tags stop at the last release before the
404
+ > rename and receive no updates. Change the image name in your `docker run`
405
+ > lines and compose files to keep upgrading.
406
+
407
+ ```bash
408
+ claude mcp add exomem -- docker run -i --rm -v "/path/to/vault:/vault" -e EXOMEM_VAULT_PATH=/vault ghcr.io/substrate-systems/evermatter:latest --transport stdio
409
+ ```
410
+
411
+ Use `:latest` for the lean keyword/BM25 image, `:ml` for CPU hybrid search, or
412
+ `:cuda` for NVIDIA/Linux CUDA capability. CUDA images still boot CPU-default at
413
+ idle; opt into GPU residency with `EXOMEM_MODE=performance` when you want it.
414
+ The image also runs as an always-on remote server via `docker compose` with a
415
+ tunnel sidecar — see [docs/docker.md](docs/docker.md). Windows users with a live
416
+ vault should usually prefer the native install (WSL2 bind mounts miss live
417
+ file-watch events). macOS cannot serve a vault today: exomem's held-filesystem
418
+ substrate, which every governed write acquires a reserved-path root through, has
419
+ a Linux backend and a Windows backend and no darwin implementation, so `exomem`
420
+ refuses there and `exomem doctor` says why.
421
+
422
+ </details>
423
+
424
+ The first start downloads search models in the background — `find` works
425
+ immediately with keyword ranking and upgrades to semantic search automatically
426
+ once the models land. Run `exomem warm` to pre-download them ahead of time.
427
+
428
+ ## Resource modes
429
+
430
+ Evermatter is CPU-first by default so an idle server does not quietly occupy GPU
431
+ memory. Control the machine footprint without editing code:
432
+
433
+ ```bash
434
+ exomem mode quiet # low-resource: no heavy warm-up, evict caches, defer semantic reindex
435
+ exomem mode normal # default: CPU steady-state, warm CPU caches allowed
436
+ exomem mode performance # explicit opt-in for GPU-capable bulk/model work
437
+ exomem status --resources --json
438
+ ```
439
+
440
+ Use `quiet` before gaming or other foreground workloads. Keyword/BM25 freshness,
441
+ file-change freshness, inbound links, and resolver state stay live; expensive
442
+ semantic/CLIP reindex work can be deferred and is reported in resource status.
443
+ Run `exomem index` or `kb reconcile` later to heal deferred semantic work.
444
+
445
+ Automatic quiet switching is optional. Its watcher skips GPU pressure queries
446
+ when you select `quiet` manually, pin a mode with `EXOMEM_MODE`, or disable
447
+ `EXOMEM_AUTO_QUIET`. Automatic quiet still monitors pressure so it can restore
448
+ the previous mode.
449
+
450
+ On affected WSL/NVIDIA systems, repeated Linux `nvidia-smi` processes can grow
451
+ the Windows driver's kernel memory and disrupt foreground work.
452
+ [Microsoft WSL issue #12756](https://github.com/microsoft/WSL/issues/12756)
453
+ records a reproduction. For older Evermatter versions, a service configured with
454
+ `EXOMEM_AUTO_QUIET=0` stops its watcher after that service restarts.
455
+ An empty `CUDA_VISIBLE_DEVICES` also disables GPU work and GPU headroom queries.
456
+ These settings do not require a Windows reboot; existing driver state may remain.
457
+
458
+ ## What it does
459
+
460
+ - **Searches the vault you already own.** Markdown stays in place; exomem does
461
+ not import copies into a proprietary note store.
462
+ - **Adopts messy vaults safely.** `adopt` starts with a read-only report and
463
+ explicit copy and compile-planning options, so originals remain archival until you choose.
464
+ - **Retrieves across text and media.** Markdown, PDFs, Office docs, images,
465
+ screenshots, audio, and video can become searchable through local extraction.
466
+ - **Keeps sources separate from conclusions.** Raw captures, compiled notes,
467
+ entities, evidence, and superseded conclusions live in typed folders.
468
+ - **Surfaces review work.** Audit and attention queues can show unprocessed
469
+ sources, stale notes, broken links, and close-by claims worth reviewing.
470
+ - **Measures, never judges.** The server does deterministic work: search,
471
+ extraction, ranking, embeddings, file writes, and graph checks. Reasoning stays
472
+ in the client model.
473
+
474
+ ## Why use it
475
+
476
+ Most AI note tools make you move into their app or ingest your files into their
477
+ store. exomem works the other way around: agents come to your vault.
478
+
479
+ | Compared with | Difference |
480
+ | --- | --- |
481
+ | Doc-chat / RAG apps | exomem works over live files instead of imported copies. |
482
+ | Basic MCP note servers | exomem adds typed knowledge operations, multimodal extraction, audit queues, and CLI/REST parity. |
483
+ | Memory hidden inside one assistant | exomem is client-agnostic: use the same vault from Claude Code, Codex, Cursor, scripts, or a custom chatbot. |
484
+
485
+ For a deeper point-in-time comparison, see
486
+ [docs/comparison-engraph.md](docs/comparison-engraph.md). The reproducible
487
+ graph-only comparison with Basic Memory is in
488
+ [docs/comparison-basic-memory-graph.md](docs/comparison-basic-memory-graph.md).
489
+ For the practical boundary with chat products' own memory features, see
490
+ [docs/vs-built-in-memory.md](docs/vs-built-in-memory.md).
491
+
492
+ **Measured retrieval quality — and speed.** Retrieval is graded by a
493
+ reproducible golden-set eval harness, not asserted, and latency is measured
494
+ per lane at corpus scale: hybrid `find()` runs sub-second end-to-end at
495
+ 50,000 notes (864 ms on the reference desktop, hot cache off), with the
496
+ keyword/BM25 lanes served from an FTS5 sidecar index in milliseconds —
497
+ built into stdlib SQLite, so it works on the lean install too. Methodology
498
+ and numbers in [docs/benchmarks.md](docs/benchmarks.md).
499
+
500
+ ## Simple front door
501
+
502
+ Agents should route normal user requests through simple actions first, then use the typed tools underneath.
503
+
504
+ | Action | Use when the user says | Backed by |
505
+ | --- | --- | --- |
506
+ | Save | "remember this", "log this", "this is a decision" | `add`, `note`, `link`, `preserve` |
507
+ | Adopt/import | "make this old vault usable", "import my notes safely" | `adopt`, `overview` |
508
+ | Ask | "what do we know about X?", "show the sources" | `find`, `get` |
509
+ | Prove | "save this for the warranty case", "show the evidence" | `preserve`, upload/download, `find` |
510
+ | Review | "what needs cleanup?", "what is stale?" | `attention`, `audit`, `propose_compilation` |
511
+ | Update | "this replaced the old conclusion", "fix that note" | `edit`, `replace`, `reconcile` |
512
+ | Connect | "link this to X", "what should this cite?" | `link`, `suggest_links` |
513
+ | Plan | "save this feature idea", "file this bug for later", "what matters this week" | `plan_memory` with `inspect`, `create`, `query`, `add`, `update`, or `triage` |
514
+ | Record | "log this session", "record this measurement", "update the mileage" | `record_memory` with `inspect`, `create`, `query`, `append`, or `update` |
515
+
516
+ ## Core tools
517
+
518
+ exomem exposes typed MCP tools for common knowledge-base work:
519
+
520
+ | Tool | Purpose |
521
+ | --- | --- |
522
+ | `recall_context` | Compile durable context for a raw turn, with no query: returns a map or resolves which anchors the turn is about, with a bounded working-memory packet, or abstains. |
523
+ | `episode_memory` | Record a bounded recap of what a conversation worked on, decided and left open, so the next session on any client sees it first; inspect an episode's revisions. |
524
+ | `find` | Search notes, sources, entities, and evidence with type/project/tag filters. |
525
+ | `get` | Read a full page or frontmatter. |
526
+ | `add` | Capture a raw source page. |
527
+ | `note` | Create compiled notes: research note, insight, failure, pattern, experiment, or production log. |
528
+ | `edit` | Patch an existing compiled page. |
529
+ | `replace` | Supersede an old conclusion with a new one and preserve the link between them. |
530
+ | `preserve` | Store binary or text evidence append-only. |
531
+ | `audit` | Check graph and corpus health. |
532
+ | `attention` | Surface review queues such as stale notes, close-by claims, and unprocessed sources. |
533
+ | `overview` | Bounded, read-only structure report of the vault or a subtree — works outside `Knowledge Base/` and before `init`. |
534
+ | `adopt` | Existing-vault adoption: scan-only by default; can save a manifest, copy selected legacy text files as Sources, or return a compile plan while preserving originals. |
535
+ | `record_memory` | One front door for human-owned observed state: inspect, create, query, append, or targeted update a governed Record collection. |
536
+ | `plan_memory` | One front door for human-owned intended future state: inspect, create, query, add, update, or triage a Planning collection. |
537
+
538
+ Tier-2 tools cover governance administration and filesystem escape hatches such
539
+ as listing directories, creating files, moving pages, trashing files, and
540
+ recovering from trash. Set
541
+ `EXOMEM_DISABLE_TIER2=1` if you want a smaller tool surface.
542
+
543
+ Every write records durable history in `Knowledge Base/log.md`. Service calls
544
+ also go to `logs/exomem.log`.
545
+
546
+ ## One operation, three doors
547
+
548
+ Every operation is declared once and exposed through:
549
+
550
+ - **MCP** for agents.
551
+ - **CLI** for terminal and scripts.
552
+ - **REST** for personal HTTP integrations when `EXOMEM_REST_API_KEY` is set.
553
+
554
+ Examples:
555
+
556
+ ```bash
557
+ kb find "project handoff" --mode keyword
558
+ kb find "stale decision" --json
559
+ kb get "Notes/Insights/Retrieval needs owned files" --json
560
+ kb note --note-type insight --title "Agents need durable context" \
561
+ --content "# Agents need durable context"
562
+ ```
563
+
564
+ ```bash
565
+ curl -s -X POST http://127.0.0.1:8765/api/find \
566
+ -H "Authorization: Bearer $EXOMEM_REST_API_KEY" \
567
+ -H "Content-Type: application/json" \
568
+ -d '{"query": "project handoff", "mode": "keyword"}'
569
+ ```
570
+
571
+ CLI and REST share the same JSON envelope:
572
+
573
+ ```json
574
+ {"success": true, "data": []}
575
+ ```
576
+
577
+ ## Multimodal by default, resident only while working
578
+
579
+ The native release-service command installs the `standard` profile: local
580
+ embeddings, PDFs/Office documents, OCR bindings, ASR, and CLIP. Heavy models are
581
+ not loaded at service startup. Media jobs enter a durable queue, run serially in
582
+ one disposable child process, and the child exits after five idle minutes so its
583
+ RAM and MPS/MLX/CUDA state return to the host.
584
+
585
+ Manual/source installs can select the same capabilities directly:
586
+
587
+ ```bash
588
+ uv sync --extra embeddings
589
+ uv sync --extra media
590
+ ```
591
+
592
+ - `embeddings`: local text embeddings plus CLIP image search.
593
+ - `media`: OCR for images, PDF extraction, Office document extraction, and
594
+ faster-whisper ASR for audio/video.
595
+
596
+ CSV, TSV and JSON evidence uploads get dataset source cards for discovery and
597
+ exact queries. YAML, JSONL, XML and TOML exports get bounded text previews.
598
+ These paths need no optional extras; see [source formats](docs/source-formats.md)
599
+ for limits and governance behavior.
600
+
601
+ `lean` and `hybrid` remain available for constrained machines. Generated image
602
+ captioning and speaker diarization are advanced opt-ins, not requirements for
603
+ the standard multimodal path.
604
+
605
+ System tools: Tesseract is required for image OCR. On Windows:
606
+
607
+ ```powershell
608
+ winget install --id UB-Mannheim.TesseractOCR -e
609
+ ```
610
+
611
+ GPU acceleration is useful but not required. Steady-state torch models default to
612
+ CPU in `normal` and `quiet`; `performance` is the explicit opt-in for capable
613
+ NVIDIA CUDA or Apple Silicon MPS/Metal paths. See
614
+ [docs/deployment.md](docs/deployment.md) for CUDA, Blackwell, Apple Silicon,
615
+ diarization, and remote-service details.
616
+
617
+ ## Configuration
618
+
619
+ The server reads environment variables or a `.env` file. The main ones are:
620
+
621
+ | Variable | Purpose |
622
+ | --- | --- |
623
+ | `EXOMEM_VAULT_PATH` | Vault root containing the governed folder (default `Knowledge Base/`). |
624
+ | `EXOMEM_KB_DIRNAME` | Name of the governed folder inside the vault (default `Knowledge Base`). |
625
+ | `EXOMEM_DISABLE_EMBEDDINGS` | `1` forces keyword/BM25-only search. |
626
+ | `EXOMEM_RECALL_MODEL` | Names the recall encoder. Default: `BAAI/bge-m3` on a personal server and a cloud cell, `BAAI/bge-base-en-v1.5` on a hosted cell. A vault whose vectors came from another model is re-embedded in the background. |
627
+ | `EXOMEM_RECALL_REEMBED` | `off` builds no new sidecar. A personal server keeps serving the old sidecar with its model; a cell keeps dense recall off. |
628
+ | `EXOMEM_DISABLE_TIER2` | `1` hides Tier-2 filesystem tools. |
629
+ | `EXOMEM_REST_API_KEY` | Enables authenticated REST routes. |
630
+ | `EXOMEM_DISABLE_MEDIA_EXTRACTION` | `1` skips server-side OCR/ASR/PDF/Office extraction. |
631
+ | `EXOMEM_DISABLE_CLIP` | `1` disables CLIP image search. |
632
+ | `EXOMEM_MODE` | Hard-pin resource mode: `quiet`, `normal`, or `performance`. Env wins over config. |
633
+ | `EXOMEM_QUIET_MODE` | Legacy truthy alias for `quiet` when `EXOMEM_MODE` is unset. |
634
+ | `EXOMEM_AUTO_QUIET` | `1` enables optional non-torch GPU-pressure auto-quiet switching (default off). |
635
+ | `EXOMEM_DEVICE` / `EXOMEM_TORCH_DEVICE` | Force all torch models to `cuda`, `mps`, or `cpu`. Normally leave unset and use `exomem mode`. |
636
+ | `EXOMEM_MPS_FP16` | On Apple Silicon, run bge/CLIP in fp16 on the Metal GPU — ~half the memory, faster encodes (default on; set `0` to keep fp32). |
637
+ | `EXOMEM_VIDEO_SCENE_FRAMES` | Set to enable video scene detection + persisted, OCR'd scene-frame JPEGs (default off). |
638
+ | `EXOMEM_VIDEO_SCENE_THRESHOLD` | Scene-boundary hash threshold in bits of 64 (default 10). |
639
+ | `EXOMEM_VIDEO_SCENE_MIN_SECS` | Minimum scene duration in seconds; closer boundaries merge (default 4). |
640
+ | `EXOMEM_SEMANTIC_SEGMENTS` | Set to enable timed transcripts + semantic segment retrieval for audio/video (default off). |
641
+ | `EXOMEM_WHISPER_MODEL` | faster-whisper model size for ASR, such as `base` or `small`. |
642
+ | `EXOMEM_ASR_BACKEND` | ASR engine: `mlx` (Apple Silicon Metal GPU, needs the `media-mlx` extra) or `faster-whisper` (CUDA/CPU). Default auto-selects MLX on Apple Silicon, else faster-whisper. |
643
+ | `EXOMEM_ASR_LANGUAGE` | Language code to force for speech transcripts, such as `et`. Unset means the engine detects the language on speech. A `reprocess` request with a `language` takes precedence. A code the speech model does not publish fails the job. |
644
+ | `EXOMEM_MLX_WHISPER_MODEL` | HF repo for the MLX ASR model (default `mlx-community/whisper-large-v3-mlx`; use `mlx-community/whisper-large-v3-turbo` for speed). |
645
+ | `EXOMEM_TESSERACT_CMD` | Path to the `tesseract` binary if not auto-discovered. |
646
+ | `EXOMEM_CLAIM_LEVEL` | `1` enables the claim-level subsystem (default off). |
647
+ | `EXOMEM_CLAIM_POLARITY_NLI` | `1` opts into the frozen stance verifier (default off). It still runs only if the exact repository-pinned revision and declared artifact manifest are resident and verified. |
648
+ | `EXOMEM_CONTRADICTION_TOP_N` | Caps the surfaced contradiction queue and therefore verifier enrichment (default `40`; `0` is uncapped). This is the sole polarity-work bound. |
649
+
650
+ `EXOMEM_CLAIM_NLI_MODEL` is **retired**. Model identity comes only from the
651
+ in-repo pin registry; a value left in it selects nothing and is reported as
652
+ ignored by `exomem doctor`.
653
+
654
+ The shipped pin is the multilingual
655
+ [`MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7`](https://huggingface.co/MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7)
656
+ checkpoint at one exact upstream revision. Its admission fixtures check English,
657
+ German, French, Estonian, and mixed English/Estonian examples. That is bounded
658
+ evidence for those examples, not a promise of equal quality across every language
659
+ in the model card. Its labels are NLI relations: `contradict`, `duplicate`,
660
+ `refine`, or `neutral`. `neutral` includes unrelated, compatible, and uncertain
661
+ pairs; it never means “proved unrelated.”
662
+
663
+ ### Degradation modes
664
+
665
+ Optional tiers are absent by default and degrade to silence, not to a
666
+ substitute. What "absent" means, per tier:
667
+
668
+ | Tier | Install | When absent |
669
+ | --- | --- | --- |
670
+ | Semantic search | `--extra embeddings` | Keyword/BM25 retrieval; every surface still answers. |
671
+ | Media extraction | `--extra media` | Server-side OCR/ASR/PDF extraction is skipped; the model-driven upload `text` path still works. |
672
+ | Vector KNN (`sqlite-vec`) | with `embeddings` | Exact in-memory scan over the same vectors; identical results, more work. |
673
+ | Frozen stance verifier | `--extra nli` | Review-queue entries carry **no** model polarity label — never a differently-produced label under the verifier's name. Write responses, rankings, and every other surface are byte-identical to a build with no verifier tier at all; only `exomem doctor` names the absence. The verifier runs only under an exact pinned revision and artifact-manifest digest, a versioned label map, and a green bounded multilingual fixture set, and it labels review-queue entries only. Hosted cells do not install or enable it. |
674
+
675
+ Legacy `EXOMEM_*` names (from the project's former working name, exomem) remain
676
+ honored: each is promoted to its `EXOMEM_*` equivalent at startup, with an
677
+ explicitly set `EXOMEM_*` value winning on conflict. `import exomem` and
678
+ `python -m exomem` likewise keep working as deprecated aliases.
679
+
680
+ Remote-only variables and full deployment notes are in
681
+ [docs/deployment.md](docs/deployment.md).
682
+
683
+ ## Project status
684
+
685
+ exomem is packaged on PyPI, uses Release Please for versioning, and follows the
686
+ lightweight SemVer policy in [docs/release.md](docs/release.md). The public CLI
687
+ entry point is `exomem`; `kb` is the short daily-driver alias for knowledge-base
688
+ operations.
689
+
690
+ ## License
691
+
692
+ The server, CLI and everything not listed below, except third-party files that carry their own
693
+ licence, are source-available under the
694
+ [Functional Source License, Version 1.1, ALv2 Future License](LICENSE) (FSL-1.1-ALv2).
695
+ Self-hosting is free, and so is every other use except a commercial product or service that
696
+ competes with it or with a service we offer using it. Each version becomes Apache-2.0 two
697
+ years after it is published. Earlier versions stay AGPL-3.0-or-later;
698
+ [the licence change](docs/licensing/licence-change.md) says what changed and from which release.
699
+
700
+ | Path | Licence |
701
+ |---|---|
702
+ | `plugins/` (the Claude Code and Evermatter Cloud client plugins) | Apache-2.0, see [`plugins/claude-code/LICENSE`](plugins/claude-code/LICENSE) |
703
+ | `src/exomem/_scaffold/` (the starter skill and vault scaffold) | Apache-2.0, see [`src/exomem/_licenses/Apache-2.0.txt`](src/exomem/_licenses/Apache-2.0.txt) |
704
+ | `infra/topolvm/` | Apache-2.0, upstream's own licence |
705
+
706
+ The plugin hooks under `plugins/claude-code/hooks/` are copies of `src/exomem/_hooks/`. The
707
+ source stays FSL-1.1-ALv2; the copies the plugin ships are Apache-2.0.
708
+
709
+ Evermatter Cloud offers its source from the app and from the MCP handshake, which names the
710
+ running release and this repository. The names Evermatter and Substrate Systems follow
711
+ [TRADEMARK.md](TRADEMARK.md). Contributions need a signed [CLA](CLA.md).
712
+
713
+ [docs/cloud-security-model.md](docs/cloud-security-model.md) lists Evermatter Cloud's security claims and the evidence behind each one, with its limits.