agent-memory-bridge 0.32.1__tar.gz

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 (311) hide show
  1. agent_memory_bridge-0.32.1/LICENSE +21 -0
  2. agent_memory_bridge-0.32.1/MANIFEST.in +4 -0
  3. agent_memory_bridge-0.32.1/PKG-INFO +236 -0
  4. agent_memory_bridge-0.32.1/README.md +204 -0
  5. agent_memory_bridge-0.32.1/benchmark/README.md +376 -0
  6. agent_memory_bridge-0.32.1/benchmark/adversarial-memory-cases.json +262 -0
  7. agent_memory_bridge-0.32.1/benchmark/belief-activation-stress-pack.json +308 -0
  8. agent_memory_bridge-0.32.1/benchmark/belief-reviewed-samples.json +893 -0
  9. agent_memory_bridge-0.32.1/benchmark/classifier-reviewed-samples.json +98 -0
  10. agent_memory_bridge-0.32.1/benchmark/corpus/01-storage-decision.md +19 -0
  11. agent_memory_bridge-0.32.1/benchmark/corpus/02-fts-sanitizer.md +17 -0
  12. agent_memory_bridge-0.32.1/benchmark/corpus/03-handoff-signal.md +14 -0
  13. agent_memory_bridge-0.32.1/benchmark/corpus/04-codex-obsidian-context.md +17 -0
  14. agent_memory_bridge-0.32.1/benchmark/corpus/05-sqlite-timeout-recovery.md +17 -0
  15. agent_memory_bridge-0.32.1/benchmark/corpus/06-api-review-ready.md +17 -0
  16. agent_memory_bridge-0.32.1/benchmark/corpus/07-context-handoff-guide.md +17 -0
  17. agent_memory_bridge-0.32.1/benchmark/corpus/08-review-queue-policy.md +17 -0
  18. agent_memory_bridge-0.32.1/benchmark/corpus/09-release-cutover-ready.md +17 -0
  19. agent_memory_bridge-0.32.1/benchmark/corpus/10-context-compaction-checklist.md +17 -0
  20. agent_memory_bridge-0.32.1/benchmark/latest-adversarial-memory-report.json +618 -0
  21. agent_memory_bridge-0.32.1/benchmark/latest-calibration-report.json +703 -0
  22. agent_memory_bridge-0.32.1/benchmark/latest-hybrid-retrieval-report.json +992 -0
  23. agent_memory_bridge-0.32.1/benchmark/latest-memory-evolution-report.json +861 -0
  24. agent_memory_bridge-0.32.1/benchmark/latest-procedure-governance-report.json +1378 -0
  25. agent_memory_bridge-0.32.1/benchmark/latest-proof-report.json +156 -0
  26. agent_memory_bridge-0.32.1/benchmark/latest-report.json +620 -0
  27. agent_memory_bridge-0.32.1/benchmark/latest-review-queue-report.json +12 -0
  28. agent_memory_bridge-0.32.1/benchmark/latest-review-workflow-report.json +13 -0
  29. agent_memory_bridge-0.32.1/benchmark/latest-signal-contention-report.json +64 -0
  30. agent_memory_bridge-0.32.1/benchmark/latest-task-brief-report.json +13 -0
  31. agent_memory_bridge-0.32.1/benchmark/latest-task-memory-report.json +622 -0
  32. agent_memory_bridge-0.32.1/benchmark/latest-v0.19-adoption-proof-report.json +348 -0
  33. agent_memory_bridge-0.32.1/benchmark/latest-v0.20-clean-room-proof-report.json +236 -0
  34. agent_memory_bridge-0.32.1/benchmark/latest-v0.20-clean-room-proof-transcript.md +97 -0
  35. agent_memory_bridge-0.32.1/benchmark/latest-v0.21-governed-change-report.json +4734 -0
  36. agent_memory_bridge-0.32.1/benchmark/memory-evolution-cases.json +279 -0
  37. agent_memory_bridge-0.32.1/benchmark/procedure-governance-cases.json +326 -0
  38. agent_memory_bridge-0.32.1/benchmark/questions.json +79 -0
  39. agent_memory_bridge-0.32.1/benchmark/task-memory-cases.json +273 -0
  40. agent_memory_bridge-0.32.1/benchmark/v0.19-fixture-manifest.json +143 -0
  41. agent_memory_bridge-0.32.1/benchmark/v0.21-governed-change-manifest.json +657 -0
  42. agent_memory_bridge-0.32.1/pyproject.toml +68 -0
  43. agent_memory_bridge-0.32.1/scripts/_source_imports.py +13 -0
  44. agent_memory_bridge-0.32.1/scripts/apply_live_source_cutover.py +71 -0
  45. agent_memory_bridge-0.32.1/scripts/benchmark_default_recall_eligibility.py +58 -0
  46. agent_memory_bridge-0.32.1/scripts/build_demo_cast.py +61 -0
  47. agent_memory_bridge-0.32.1/scripts/check_mcp_boundary_coverage.py +71 -0
  48. agent_memory_bridge-0.32.1/scripts/check_onboarding_contract.py +28 -0
  49. agent_memory_bridge-0.32.1/scripts/check_public_surface.py +17 -0
  50. agent_memory_bridge-0.32.1/scripts/check_release_contract.py +38 -0
  51. agent_memory_bridge-0.32.1/scripts/closeout_session.py +30 -0
  52. agent_memory_bridge-0.32.1/scripts/create_profile_archive_snapshot.py +52 -0
  53. agent_memory_bridge-0.32.1/scripts/demo_terminal.py +188 -0
  54. agent_memory_bridge-0.32.1/scripts/demo_v0_5.py +112 -0
  55. agent_memory_bridge-0.32.1/scripts/import_profile_memory.py +98 -0
  56. agent_memory_bridge-0.32.1/scripts/preview_task_memory.py +49 -0
  57. agent_memory_bridge-0.32.1/scripts/recall_first.py +34 -0
  58. agent_memory_bridge-0.32.1/scripts/reproduce_default_recall_eligibility.py +93 -0
  59. agent_memory_bridge-0.32.1/scripts/rollback_live_source_cutover.py +75 -0
  60. agent_memory_bridge-0.32.1/scripts/run_activation_stress_pack.py +63 -0
  61. agent_memory_bridge-0.32.1/scripts/run_adversarial_benchmark.py +53 -0
  62. agent_memory_bridge-0.32.1/scripts/run_benchmark.py +29 -0
  63. agent_memory_bridge-0.32.1/scripts/run_classifier_calibration.py +77 -0
  64. agent_memory_bridge-0.32.1/scripts/run_deterministic_proof.py +19 -0
  65. agent_memory_bridge-0.32.1/scripts/run_healthcheck.py +60 -0
  66. agent_memory_bridge-0.32.1/scripts/run_mcp_legacy_compat.py +173 -0
  67. agent_memory_bridge-0.32.1/scripts/run_mcp_reliability_proof.py +189 -0
  68. agent_memory_bridge-0.32.1/scripts/run_mem_bridge_service.py +4 -0
  69. agent_memory_bridge-0.32.1/scripts/run_memory_evolution_benchmark.py +45 -0
  70. agent_memory_bridge-0.32.1/scripts/run_procedure_governance_benchmark.py +52 -0
  71. agent_memory_bridge-0.32.1/scripts/run_review_queue_benchmark.py +27 -0
  72. agent_memory_bridge-0.32.1/scripts/run_review_workflow_benchmark.py +27 -0
  73. agent_memory_bridge-0.32.1/scripts/run_signal_contention_benchmark.py +43 -0
  74. agent_memory_bridge-0.32.1/scripts/run_task_brief_benchmark.py +27 -0
  75. agent_memory_bridge-0.32.1/scripts/run_task_memory_benchmark.py +53 -0
  76. agent_memory_bridge-0.32.1/scripts/run_v019_adoption_proof.py +39 -0
  77. agent_memory_bridge-0.32.1/scripts/run_v020_clean_room_proof.py +61 -0
  78. agent_memory_bridge-0.32.1/scripts/run_v021_governed_change_proof.py +43 -0
  79. agent_memory_bridge-0.32.1/scripts/run_watcher_healthcheck.py +45 -0
  80. agent_memory_bridge-0.32.1/scripts/summarize_telemetry.py +50 -0
  81. agent_memory_bridge-0.32.1/scripts/sync_now.py +57 -0
  82. agent_memory_bridge-0.32.1/scripts/sync_profile_source_root.py +78 -0
  83. agent_memory_bridge-0.32.1/scripts/sync_session_notes.py +25 -0
  84. agent_memory_bridge-0.32.1/scripts/verify_stdio.py +17 -0
  85. agent_memory_bridge-0.32.1/scripts/watch_codex_sessions.py +55 -0
  86. agent_memory_bridge-0.32.1/scripts/write_live_source_manifest.py +42 -0
  87. agent_memory_bridge-0.32.1/setup.cfg +4 -0
  88. agent_memory_bridge-0.32.1/src/agent_mem_bridge/__init__.py +1 -0
  89. agent_memory_bridge-0.32.1/src/agent_mem_bridge/__main__.py +4 -0
  90. agent_memory_bridge-0.32.1/src/agent_mem_bridge/archive_snapshot.py +175 -0
  91. agent_memory_bridge-0.32.1/src/agent_mem_bridge/classifier.py +227 -0
  92. agent_memory_bridge-0.32.1/src/agent_mem_bridge/cli.py +1204 -0
  93. agent_memory_bridge-0.32.1/src/agent_mem_bridge/client_config.py +313 -0
  94. agent_memory_bridge-0.32.1/src/agent_mem_bridge/codex_rollout.py +833 -0
  95. agent_memory_bridge-0.32.1/src/agent_mem_bridge/command_provider.py +250 -0
  96. agent_memory_bridge-0.32.1/src/agent_mem_bridge/consolidation.py +989 -0
  97. agent_memory_bridge-0.32.1/src/agent_mem_bridge/context_evaluation.py +344 -0
  98. agent_memory_bridge-0.32.1/src/agent_mem_bridge/context_manifest.py +791 -0
  99. agent_memory_bridge-0.32.1/src/agent_mem_bridge/contradiction.py +82 -0
  100. agent_memory_bridge-0.32.1/src/agent_mem_bridge/cross_client_activation.py +271 -0
  101. agent_memory_bridge-0.32.1/src/agent_mem_bridge/current_release_contract.py +99 -0
  102. agent_memory_bridge-0.32.1/src/agent_mem_bridge/database_maintenance.py +769 -0
  103. agent_memory_bridge-0.32.1/src/agent_mem_bridge/durable_data_policy.py +86 -0
  104. agent_memory_bridge-0.32.1/src/agent_mem_bridge/dynamic_state.py +978 -0
  105. agent_memory_bridge-0.32.1/src/agent_mem_bridge/embedding_index.py +516 -0
  106. agent_memory_bridge-0.32.1/src/agent_mem_bridge/embedding_scheduler.py +268 -0
  107. agent_memory_bridge-0.32.1/src/agent_mem_bridge/enrichment_rules.py +53 -0
  108. agent_memory_bridge-0.32.1/src/agent_mem_bridge/evidence_inspect.py +466 -0
  109. agent_memory_bridge-0.32.1/src/agent_mem_bridge/exporters.py +81 -0
  110. agent_memory_bridge-0.32.1/src/agent_mem_bridge/failure_report.py +152 -0
  111. agent_memory_bridge-0.32.1/src/agent_mem_bridge/filesystem_safety.py +70 -0
  112. agent_memory_bridge-0.32.1/src/agent_mem_bridge/first_run.py +320 -0
  113. agent_memory_bridge-0.32.1/src/agent_mem_bridge/governance_trigger.py +185 -0
  114. agent_memory_bridge-0.32.1/src/agent_mem_bridge/healthcheck.py +218 -0
  115. agent_memory_bridge-0.32.1/src/agent_mem_bridge/index_health.py +144 -0
  116. agent_memory_bridge-0.32.1/src/agent_mem_bridge/knowledge_explorer.py +911 -0
  117. agent_memory_bridge-0.32.1/src/agent_mem_bridge/learning_candidates.py +297 -0
  118. agent_memory_bridge-0.32.1/src/agent_mem_bridge/learning_policy.py +255 -0
  119. agent_memory_bridge-0.32.1/src/agent_mem_bridge/lineage.py +174 -0
  120. agent_memory_bridge-0.32.1/src/agent_mem_bridge/log_maintenance.py +35 -0
  121. agent_memory_bridge-0.32.1/src/agent_mem_bridge/mcp_boundary.py +196 -0
  122. agent_memory_bridge-0.32.1/src/agent_mem_bridge/onboarding.py +531 -0
  123. agent_memory_bridge-0.32.1/src/agent_mem_bridge/onboarding_contract.py +281 -0
  124. agent_memory_bridge-0.32.1/src/agent_mem_bridge/paths.py +779 -0
  125. agent_memory_bridge-0.32.1/src/agent_mem_bridge/poll_cursor.py +67 -0
  126. agent_memory_bridge-0.32.1/src/agent_mem_bridge/procedure_governance.py +248 -0
  127. agent_memory_bridge-0.32.1/src/agent_mem_bridge/profile_assembly.py +146 -0
  128. agent_memory_bridge-0.32.1/src/agent_mem_bridge/profile_bundle.py +144 -0
  129. agent_memory_bridge-0.32.1/src/agent_mem_bridge/profile_migration.py +417 -0
  130. agent_memory_bridge-0.32.1/src/agent_mem_bridge/project_init.py +229 -0
  131. agent_memory_bridge-0.32.1/src/agent_mem_bridge/promotion.py +264 -0
  132. agent_memory_bridge-0.32.1/src/agent_mem_bridge/promotion_governance.py +493 -0
  133. agent_memory_bridge-0.32.1/src/agent_mem_bridge/proof.py +375 -0
  134. agent_memory_bridge-0.32.1/src/agent_mem_bridge/provenance.py +68 -0
  135. agent_memory_bridge-0.32.1/src/agent_mem_bridge/public_surface.py +214 -0
  136. agent_memory_bridge-0.32.1/src/agent_mem_bridge/query.py +1137 -0
  137. agent_memory_bridge-0.32.1/src/agent_mem_bridge/recall_eligibility.py +164 -0
  138. agent_memory_bridge-0.32.1/src/agent_mem_bridge/recall_first.py +312 -0
  139. agent_memory_bridge-0.32.1/src/agent_mem_bridge/record_projection.py +438 -0
  140. agent_memory_bridge-0.32.1/src/agent_mem_bridge/reflex.py +1098 -0
  141. agent_memory_bridge-0.32.1/src/agent_mem_bridge/relation_metadata.py +88 -0
  142. agent_memory_bridge-0.32.1/src/agent_mem_bridge/release_contract.py +1791 -0
  143. agent_memory_bridge-0.32.1/src/agent_mem_bridge/repository.py +966 -0
  144. agent_memory_bridge-0.32.1/src/agent_mem_bridge/repository_bootstrap.py +306 -0
  145. agent_memory_bridge-0.32.1/src/agent_mem_bridge/repository_snapshot_store.py +371 -0
  146. agent_memory_bridge-0.32.1/src/agent_mem_bridge/retrieval_feedback.py +1059 -0
  147. agent_memory_bridge-0.32.1/src/agent_mem_bridge/review_queue.py +472 -0
  148. agent_memory_bridge-0.32.1/src/agent_mem_bridge/review_workflow.py +252 -0
  149. agent_memory_bridge-0.32.1/src/agent_mem_bridge/revisions.py +342 -0
  150. agent_memory_bridge-0.32.1/src/agent_mem_bridge/run_consolidation.py +1105 -0
  151. agent_memory_bridge-0.32.1/src/agent_mem_bridge/run_ledger.py +2422 -0
  152. agent_memory_bridge-0.32.1/src/agent_mem_bridge/run_outcome_authority.py +39 -0
  153. agent_memory_bridge-0.32.1/src/agent_mem_bridge/run_projection.py +735 -0
  154. agent_memory_bridge-0.32.1/src/agent_mem_bridge/run_verification_receipts.py +404 -0
  155. agent_memory_bridge-0.32.1/src/agent_mem_bridge/schema.py +2793 -0
  156. agent_memory_bridge-0.32.1/src/agent_mem_bridge/server.py +1338 -0
  157. agent_memory_bridge-0.32.1/src/agent_mem_bridge/service.py +321 -0
  158. agent_memory_bridge-0.32.1/src/agent_mem_bridge/service_health.py +94 -0
  159. agent_memory_bridge-0.32.1/src/agent_mem_bridge/service_lock.py +166 -0
  160. agent_memory_bridge-0.32.1/src/agent_mem_bridge/session_closeout.py +113 -0
  161. agent_memory_bridge-0.32.1/src/agent_mem_bridge/setup_apply.py +921 -0
  162. agent_memory_bridge-0.32.1/src/agent_mem_bridge/setup_planner.py +473 -0
  163. agent_memory_bridge-0.32.1/src/agent_mem_bridge/signals.py +703 -0
  164. agent_memory_bridge-0.32.1/src/agent_mem_bridge/source_sync.py +137 -0
  165. agent_memory_bridge-0.32.1/src/agent_mem_bridge/state_io.py +42 -0
  166. agent_memory_bridge-0.32.1/src/agent_mem_bridge/stdio_probe.py +441 -0
  167. agent_memory_bridge-0.32.1/src/agent_mem_bridge/storage.py +1204 -0
  168. agent_memory_bridge-0.32.1/src/agent_mem_bridge/structured_record.py +111 -0
  169. agent_memory_bridge-0.32.1/src/agent_mem_bridge/sync_notes.py +116 -0
  170. agent_memory_bridge-0.32.1/src/agent_mem_bridge/task_brief.py +551 -0
  171. agent_memory_bridge-0.32.1/src/agent_mem_bridge/task_memory.py +1407 -0
  172. agent_memory_bridge-0.32.1/src/agent_mem_bridge/telemetry.py +224 -0
  173. agent_memory_bridge-0.32.1/src/agent_mem_bridge/telemetry_summary.py +287 -0
  174. agent_memory_bridge-0.32.1/src/agent_mem_bridge/watcher.py +597 -0
  175. agent_memory_bridge-0.32.1/src/agent_mem_bridge/watcher_health.py +90 -0
  176. agent_memory_bridge-0.32.1/src/agent_memory_bridge.egg-info/PKG-INFO +236 -0
  177. agent_memory_bridge-0.32.1/src/agent_memory_bridge.egg-info/SOURCES.txt +309 -0
  178. agent_memory_bridge-0.32.1/src/agent_memory_bridge.egg-info/dependency_links.txt +1 -0
  179. agent_memory_bridge-0.32.1/src/agent_memory_bridge.egg-info/entry_points.txt +2 -0
  180. agent_memory_bridge-0.32.1/src/agent_memory_bridge.egg-info/requires.txt +13 -0
  181. agent_memory_bridge-0.32.1/src/agent_memory_bridge.egg-info/top_level.txt +1 -0
  182. agent_memory_bridge-0.32.1/tests/test_activation_stress.py +106 -0
  183. agent_memory_bridge-0.32.1/tests/test_adversarial_benchmark.py +164 -0
  184. agent_memory_bridge-0.32.1/tests/test_archive_snapshot.py +61 -0
  185. agent_memory_bridge-0.32.1/tests/test_belief_observation.py +338 -0
  186. agent_memory_bridge-0.32.1/tests/test_belief_replay.py +918 -0
  187. agent_memory_bridge-0.32.1/tests/test_belief_review.py +112 -0
  188. agent_memory_bridge-0.32.1/tests/test_benchmarking.py +275 -0
  189. agent_memory_bridge-0.32.1/tests/test_calibration.py +70 -0
  190. agent_memory_bridge-0.32.1/tests/test_classifier.py +157 -0
  191. agent_memory_bridge-0.32.1/tests/test_cli_config.py +142 -0
  192. agent_memory_bridge-0.32.1/tests/test_cli_doctor.py +150 -0
  193. agent_memory_bridge-0.32.1/tests/test_cli_first_run.py +251 -0
  194. agent_memory_bridge-0.32.1/tests/test_cli_service.py +530 -0
  195. agent_memory_bridge-0.32.1/tests/test_cli_verify.py +88 -0
  196. agent_memory_bridge-0.32.1/tests/test_codex_rollout.py +415 -0
  197. agent_memory_bridge-0.32.1/tests/test_command_provider.py +161 -0
  198. agent_memory_bridge-0.32.1/tests/test_consolidation.py +1364 -0
  199. agent_memory_bridge-0.32.1/tests/test_context_evaluation.py +470 -0
  200. agent_memory_bridge-0.32.1/tests/test_context_manifest.py +381 -0
  201. agent_memory_bridge-0.32.1/tests/test_contradiction.py +50 -0
  202. agent_memory_bridge-0.32.1/tests/test_cross_client_activation.py +515 -0
  203. agent_memory_bridge-0.32.1/tests/test_cutover_dashboard.py +331 -0
  204. agent_memory_bridge-0.32.1/tests/test_database_maintenance.py +481 -0
  205. agent_memory_bridge-0.32.1/tests/test_default_recall_eligibility.py +879 -0
  206. agent_memory_bridge-0.32.1/tests/test_dynamic_state.py +478 -0
  207. agent_memory_bridge-0.32.1/tests/test_embedding_index.py +460 -0
  208. agent_memory_bridge-0.32.1/tests/test_embedding_scheduler.py +234 -0
  209. agent_memory_bridge-0.32.1/tests/test_evidence_inspect.py +278 -0
  210. agent_memory_bridge-0.32.1/tests/test_failure_report.py +82 -0
  211. agent_memory_bridge-0.32.1/tests/test_first_use_memory_loop.py +123 -0
  212. agent_memory_bridge-0.32.1/tests/test_forget_lineage.py +463 -0
  213. agent_memory_bridge-0.32.1/tests/test_governance_trigger.py +165 -0
  214. agent_memory_bridge-0.32.1/tests/test_governed_change_task_context.py +521 -0
  215. agent_memory_bridge-0.32.1/tests/test_healthcheck.py +96 -0
  216. agent_memory_bridge-0.32.1/tests/test_knowledge_explorer.py +1091 -0
  217. agent_memory_bridge-0.32.1/tests/test_learning_candidates.py +211 -0
  218. agent_memory_bridge-0.32.1/tests/test_learning_policy.py +215 -0
  219. agent_memory_bridge-0.32.1/tests/test_lineage.py +78 -0
  220. agent_memory_bridge-0.32.1/tests/test_live_cutover.py +51 -0
  221. agent_memory_bridge-0.32.1/tests/test_log_maintenance.py +26 -0
  222. agent_memory_bridge-0.32.1/tests/test_mcp_boundary.py +450 -0
  223. agent_memory_bridge-0.32.1/tests/test_mcp_raw_wire.py +699 -0
  224. agent_memory_bridge-0.32.1/tests/test_memory_evolution_benchmark.py +197 -0
  225. agent_memory_bridge-0.32.1/tests/test_onboarding_contract.py +166 -0
  226. agent_memory_bridge-0.32.1/tests/test_paths.py +235 -0
  227. agent_memory_bridge-0.32.1/tests/test_procedure_governance.py +261 -0
  228. agent_memory_bridge-0.32.1/tests/test_procedure_governance_benchmark.py +167 -0
  229. agent_memory_bridge-0.32.1/tests/test_profile_assembly.py +75 -0
  230. agent_memory_bridge-0.32.1/tests/test_profile_bundle.py +44 -0
  231. agent_memory_bridge-0.32.1/tests/test_profile_migration.py +216 -0
  232. agent_memory_bridge-0.32.1/tests/test_project_init.py +513 -0
  233. agent_memory_bridge-0.32.1/tests/test_project_why_task_memory.py +540 -0
  234. agent_memory_bridge-0.32.1/tests/test_promotion_governance.py +290 -0
  235. agent_memory_bridge-0.32.1/tests/test_proof.py +45 -0
  236. agent_memory_bridge-0.32.1/tests/test_property_invariants.py +34 -0
  237. agent_memory_bridge-0.32.1/tests/test_public_surface.py +85 -0
  238. agent_memory_bridge-0.32.1/tests/test_recall_first.py +395 -0
  239. agent_memory_bridge-0.32.1/tests/test_record_projection.py +219 -0
  240. agent_memory_bridge-0.32.1/tests/test_reflex.py +440 -0
  241. agent_memory_bridge-0.32.1/tests/test_release_candidate.py +305 -0
  242. agent_memory_bridge-0.32.1/tests/test_release_contract.py +1605 -0
  243. agent_memory_bridge-0.32.1/tests/test_repository_bootstrap.py +190 -0
  244. agent_memory_bridge-0.32.1/tests/test_repository_snapshot_activation.py +383 -0
  245. agent_memory_bridge-0.32.1/tests/test_review_queue.py +172 -0
  246. agent_memory_bridge-0.32.1/tests/test_review_workflow.py +133 -0
  247. agent_memory_bridge-0.32.1/tests/test_revisions.py +301 -0
  248. agent_memory_bridge-0.32.1/tests/test_rollback_cutover.py +103 -0
  249. agent_memory_bridge-0.32.1/tests/test_run_consolidation.py +1042 -0
  250. agent_memory_bridge-0.32.1/tests/test_run_ledger.py +1375 -0
  251. agent_memory_bridge-0.32.1/tests/test_run_memory_attribution.py +1025 -0
  252. agent_memory_bridge-0.32.1/tests/test_runtime_package_boundary.py +109 -0
  253. agent_memory_bridge-0.32.1/tests/test_session_closeout.py +39 -0
  254. agent_memory_bridge-0.32.1/tests/test_setup_apply.py +718 -0
  255. agent_memory_bridge-0.32.1/tests/test_setup_planner.py +443 -0
  256. agent_memory_bridge-0.32.1/tests/test_signal_contention_benchmark.py +56 -0
  257. agent_memory_bridge-0.32.1/tests/test_signal_hardening.py +166 -0
  258. agent_memory_bridge-0.32.1/tests/test_source_sync.py +43 -0
  259. agent_memory_bridge-0.32.1/tests/test_state_io.py +82 -0
  260. agent_memory_bridge-0.32.1/tests/test_stdio_feedback.py +150 -0
  261. agent_memory_bridge-0.32.1/tests/test_stdio_integration.py +274 -0
  262. agent_memory_bridge-0.32.1/tests/test_stdio_probe.py +37 -0
  263. agent_memory_bridge-0.32.1/tests/test_storage.py +1247 -0
  264. agent_memory_bridge-0.32.1/tests/test_sync_notes.py +34 -0
  265. agent_memory_bridge-0.32.1/tests/test_task_brief.py +283 -0
  266. agent_memory_bridge-0.32.1/tests/test_task_memory.py +356 -0
  267. agent_memory_bridge-0.32.1/tests/test_task_memory_benchmark.py +144 -0
  268. agent_memory_bridge-0.32.1/tests/test_telemetry.py +112 -0
  269. agent_memory_bridge-0.32.1/tests/test_telemetry_summary.py +167 -0
  270. agent_memory_bridge-0.32.1/tests/test_v0141_hardening.py +867 -0
  271. agent_memory_bridge-0.32.1/tests/test_v019_adoption_proof.py +154 -0
  272. agent_memory_bridge-0.32.1/tests/test_v020_clean_room_proof.py +166 -0
  273. agent_memory_bridge-0.32.1/tests/test_v021_governed_change_proof.py +246 -0
  274. agent_memory_bridge-0.32.1/tests/test_v021_manifest.py +137 -0
  275. agent_memory_bridge-0.32.1/tests/test_v0223_correctness.py +288 -0
  276. agent_memory_bridge-0.32.1/tests/test_v0230_embedding_reliability.py +589 -0
  277. agent_memory_bridge-0.32.1/tests/test_v0250_feedback.py +509 -0
  278. agent_memory_bridge-0.32.1/tests/test_v0250_migrations.py +652 -0
  279. agent_memory_bridge-0.32.1/tests/test_v0250_recall_receipts.py +237 -0
  280. agent_memory_bridge-0.32.1/tests/test_v0250_retrieval_capabilities.py +191 -0
  281. agent_memory_bridge-0.32.1/tests/test_v0252_context_semantic.py +216 -0
  282. agent_memory_bridge-0.32.1/tests/test_v0252_effective_feedback.py +363 -0
  283. agent_memory_bridge-0.32.1/tests/test_v0252_snapshot_receipt.py +224 -0
  284. agent_memory_bridge-0.32.1/tests/test_v026_dual_era.py +315 -0
  285. agent_memory_bridge-0.32.1/tests/test_v0272_governed.py +496 -0
  286. agent_memory_bridge-0.32.1/tests/test_v027_episode_schema.py +757 -0
  287. agent_memory_bridge-0.32.1/tests/test_watcher.py +781 -0
  288. agent_memory_bridge-0.32.1/tests/test_watcher_health.py +66 -0
  289. agent_memory_bridge-0.32.1/tools/__init__.py +1 -0
  290. agent_memory_bridge-0.32.1/tools/evidence/__init__.py +1 -0
  291. agent_memory_bridge-0.32.1/tools/evidence/_temporary_store.py +50 -0
  292. agent_memory_bridge-0.32.1/tools/evidence/activation_stress.py +344 -0
  293. agent_memory_bridge-0.32.1/tools/evidence/adversarial_benchmark.py +412 -0
  294. agent_memory_bridge-0.32.1/tools/evidence/belief_observation.py +423 -0
  295. agent_memory_bridge-0.32.1/tools/evidence/belief_replay.py +462 -0
  296. agent_memory_bridge-0.32.1/tools/evidence/belief_review.py +287 -0
  297. agent_memory_bridge-0.32.1/tools/evidence/benchmarking.py +347 -0
  298. agent_memory_bridge-0.32.1/tools/evidence/calibration.py +294 -0
  299. agent_memory_bridge-0.32.1/tools/evidence/cutover_dashboard.py +790 -0
  300. agent_memory_bridge-0.32.1/tools/evidence/live_cutover.py +134 -0
  301. agent_memory_bridge-0.32.1/tools/evidence/memory_evolution_benchmark.py +474 -0
  302. agent_memory_bridge-0.32.1/tools/evidence/p2d_pre_move_module_inventory.json +453 -0
  303. agent_memory_bridge-0.32.1/tools/evidence/procedure_governance_benchmark.py +437 -0
  304. agent_memory_bridge-0.32.1/tools/evidence/rollback_cutover.py +149 -0
  305. agent_memory_bridge-0.32.1/tools/evidence/signal_contention_benchmark.py +249 -0
  306. agent_memory_bridge-0.32.1/tools/evidence/task_memory_benchmark.py +309 -0
  307. agent_memory_bridge-0.32.1/tools/evidence/v019_adoption_proof.py +587 -0
  308. agent_memory_bridge-0.32.1/tools/evidence/v020_clean_room_proof.py +799 -0
  309. agent_memory_bridge-0.32.1/tools/evidence/v021_governed_change_proof.py +1207 -0
  310. agent_memory_bridge-0.32.1/tools/evidence/v031_release_smoke.py +951 -0
  311. agent_memory_bridge-0.32.1/tools/evidence/v032_release_smoke.py +463 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 zzhang82 and Agent Memory Bridge contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,4 @@
1
+ recursive-include benchmark *.json *.md
2
+ recursive-include scripts *.py
3
+ include tools/__init__.py
4
+ recursive-include tools/evidence *.py *.json
@@ -0,0 +1,236 @@
1
+ Metadata-Version: 2.4
2
+ Name: agent-memory-bridge
3
+ Version: 0.32.1
4
+ Summary: Local-first shared project memory for AI coding agents over MCP
5
+ License-Expression: MIT
6
+ Project-URL: Homepage, https://github.com/zzhang82/Agent-Memory-Bridge
7
+ Project-URL: Repository, https://github.com/zzhang82/Agent-Memory-Bridge
8
+ Project-URL: Issues, https://github.com/zzhang82/Agent-Memory-Bridge/issues
9
+ Project-URL: Documentation, https://github.com/zzhang82/Agent-Memory-Bridge#readme
10
+ Keywords: mcp,memory,agents,sqlite,fts,local-first,stdio
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Requires-Python: >=3.11
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE
19
+ Requires-Dist: mcp==2.0.0
20
+ Provides-Extra: dev
21
+ Requires-Dist: build<2,>=1.2; extra == "dev"
22
+ Requires-Dist: hypothesis<7,>=6.130; extra == "dev"
23
+ Requires-Dist: mypy<2,>=1.15; extra == "dev"
24
+ Requires-Dist: pip-audit<3,>=2.9; extra == "dev"
25
+ Requires-Dist: PyYAML<7,>=6.0; extra == "dev"
26
+ Requires-Dist: pytest<10,>=9.0.3; extra == "dev"
27
+ Requires-Dist: pytest-cov<8,>=6; extra == "dev"
28
+ Requires-Dist: ruff<1,>=0.12; extra == "dev"
29
+ Requires-Dist: setuptools>=83; extra == "dev"
30
+ Requires-Dist: twine<7,>=6; extra == "dev"
31
+ Dynamic: license-file
32
+
33
+ <p align="center">
34
+ <img src="assets/amb-hero.png" alt="Agent Memory Bridge — local project memory for coding agents" width="100%" />
35
+ </p>
36
+
37
+ <h1 align="center">Agent Memory Bridge</h1>
38
+
39
+ <p align="center"><strong>Local project memory for coding agents.</strong></p>
40
+
41
+ <p align="center">
42
+ Code tells AMB what the project is.<br />
43
+ You tell AMB why it is that way.
44
+ </p>
45
+
46
+ <p align="center"><a href="README.zh-CN.md">简体中文</a></p>
47
+
48
+ <p align="center">
49
+ <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP_Server-Enabled-4A90E2?logo=protocolsdotio&logoColor=white" alt="MCP Server" /></a>
50
+ <a href="https://github.com/zzhang82/Agent-Memory-Bridge/actions/workflows/ci.yml"><img src="https://github.com/zzhang82/Agent-Memory-Bridge/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
51
+ <a href="https://github.com/zzhang82/Agent-Memory-Bridge/releases"><img src="https://img.shields.io/github/v/release/zzhang82/Agent-Memory-Bridge?logo=github&color=2ea44f" alt="GitHub Release" /></a>
52
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-2ea44f.svg" alt="MIT License" /></a>
53
+ <a href="pyproject.toml"><img src="https://img.shields.io/badge/python-3.11%2B-3776AB.svg" alt="Python 3.11+" /></a>
54
+ </p>
55
+
56
+ ## When a new session lacks project context
57
+
58
+ | Common project-memory problem | With AMB |
59
+ |---|---|
60
+ | Project context must be reconstructed | Repository **WHAT** is derived and inspectable after Project Init |
61
+ | Decisions live in old chats or tool-specific memory | Explicit project **WHY** stays with the project |
62
+ | Prior reasoning is hard to audit | Inspect explains why relevant context surfaced |
63
+ | Knowledge is tied to one client | Supported MCP clients can use the same configured local AMB home |
64
+
65
+ AMB keeps useful project context outside the chat so a new session, another agent, or another MCP-compatible tool using the same configured AMB home can pick it up. It stays local and inspectable; it does not silently learn from every conversation.
66
+
67
+ ## Quick Start
68
+
69
+ AMB requires **Python 3.11+**, Git, and an MCP-compatible coding client that can launch a local stdio server.
70
+
71
+ Current source version: `0.32.1`
72
+
73
+ Published releases: see [GitHub Releases](https://github.com/zzhang82/Agent-Memory-Bridge/releases)
74
+
75
+ For the `0.32.1` release line, the normal install route is PyPI. GitHub Releases remains the publication authority for source tags and release notes; an exact source checkout can still be installed with `pip install -e .` for development or audit work.
76
+
77
+ ### 1. Install and connect AMB
78
+
79
+ Replace `<venv-python>` with the Python executable inside `.amb-venv` for your operating system.
80
+
81
+ ```bash
82
+ python -m venv .amb-venv
83
+ <venv-python> -m pip install agent-memory-bridge==0.32.1
84
+ <venv-python> -m agent_mem_bridge setup --client generic
85
+ ```
86
+
87
+ Use the rendered client configuration, then reload the client.
88
+
89
+ ### 2. Initialize the project
90
+
91
+ ```bash
92
+ <venv-python> -m agent_mem_bridge project init .
93
+ ```
94
+
95
+ Project Init detects the local Git repository, proposes a namespace such as `project:my-app`, and waits for confirmation. It then derives current repository WHAT and opens the Human-first Explore view. It does not automatically learn decisions.
96
+
97
+ ### 3. Tell your connected coding agent one decision
98
+
99
+ > Remember that we decided not to add Redis because this project is intentionally local-first and single-node.
100
+
101
+ The connected agent uses AMB's existing public memory tools to store the explicit decision and reason. AMB does not infer a durable decision from the code or archive the whole conversation.
102
+
103
+ ### 4. Open a new session, then Explore or Inspect
104
+
105
+ ```bash
106
+ <venv-python> -m agent_mem_bridge explore \
107
+ --namespace project:my-app
108
+
109
+ <venv-python> -m agent_mem_bridge inspect \
110
+ --namespace project:my-app \
111
+ --query "Should we add Redis?"
112
+ ```
113
+
114
+ Explore answers “What does AMB currently know about this project?” Inspect answers “Why did this information surface for this question?” Both are local and read-only.
115
+
116
+ This is a conceptual view, not verbatim CLI output:
117
+
118
+ ```text
119
+ CODE / WHAT CONVERSATION / WHY
120
+ ──────────────────── ──────────────────────────
121
+ Runtime: Python >=3.11 Decision: Do not add Redis
122
+ Package: my-app Reason: local-first,
123
+ Tests: pytest single-node project
124
+ ```
125
+
126
+ **Code tells AMB WHAT the project is.**
127
+
128
+ **Conversations teach AMB WHY it is that way.**
129
+
130
+ <details>
131
+ <summary>Refresh and troubleshooting boundaries</summary>
132
+
133
+ Repository WHAT comes from a clean Git commit. If HEAD changes or the worktree is dirty, AMB will not present an old snapshot as current truth. Refresh is not automatic. Rerun the explicit primitive:
134
+
135
+ ```bash
136
+ <venv-python> -m agent_mem_bridge bootstrap-repo . \
137
+ --namespace project:<name>
138
+ ```
139
+
140
+ Refreshing repository WHAT leaves durable project WHY unchanged. Explore is CLI-only, not MCP tool #18, and it does not rank context for the model.
141
+
142
+ `first-run` remains optional guided help; it is not the modern Project Learning entrypoint:
143
+
144
+ ```bash
145
+ <venv-python> -m agent_mem_bridge first-run --namespace project:my-app --query "What should I remember?"
146
+ ```
147
+
148
+ Use health checks only when setup is uncertain:
149
+
150
+ ```bash
151
+ <venv-python> -m agent_mem_bridge doctor
152
+ <venv-python> -m agent_mem_bridge verify
153
+ ```
154
+
155
+ </details>
156
+
157
+ ## Why AMB?
158
+
159
+ Repository facts and human decisions are not the same thing.
160
+
161
+ | CODE / WHAT | CONVERSATION / WHY |
162
+ |---|---|
163
+ | Derived from the repository | Explicitly taught by a person through a connected agent |
164
+ | Rebuildable from current clean code | Durable across sessions and tools using the same configured AMB home |
165
+ | Describes the project's current shape | Preserves decisions, constraints, and reasons |
166
+ | Refreshed explicitly when code changes | Revised through auditable memory operations |
167
+
168
+ The public product model stays simple: **CODE / WHAT** and **CONVERSATION / WHY**.
169
+
170
+ ## Integrations
171
+
172
+ AMB works through local stdio MCP. Generic MCP clients are supported; Codex is the reference workflow; Claude Code, Claude Desktop, Cursor, and Cline are documented; and Antigravity, OpenCode, and Hermes have locally tested configuration paths.
173
+
174
+ Integration labels are deliberately narrow and do not imply client certification. See [Integrations](docs/INTEGRATIONS.md) for current setup instructions and boundaries.
175
+
176
+ ## Want the details?
177
+
178
+ | Read | For |
179
+ |---|---|
180
+ | [Architecture](docs/ARCHITECTURE.md) | System shape and data flow |
181
+ | [Authority model](docs/AUTHORITY-CONTRACT.md) | Durable authority, derived views, correction, and audit rules |
182
+ | [Knowledge Explorer](docs/KNOWLEDGE-EXPLORER.md) | Human-first read-only project view |
183
+ | [Production Status](docs/PRODUCTION-STATUS.md) | Current implementation facts, evidence, and known limits |
184
+ | [Integrations](docs/INTEGRATIONS.md) | Client-specific local MCP setup |
185
+ | [Install for Agents](INSTALL_FOR_AGENTS.md) | Full install-to-first-success workflow |
186
+ | [Configuration](docs/CONFIGURATION.md) | Complete configuration reference |
187
+ | [Examples](examples/README.md) | Sanitized demos and artifacts |
188
+
189
+ ## Technical model
190
+
191
+ The product story above intentionally postpones implementation vocabulary. Internally, AMB keeps `derived_repository` data separate from governed durable memory so one cannot silently become the other. For maintainers and reviewers, the current authority flow is:
192
+
193
+ ```mermaid
194
+ flowchart LR
195
+ A[Durable Memory / WHY] --> C[Lifecycle-aware Recall]
196
+ B[Repository Knowledge / WHAT] --> D[Context Compiler]
197
+ S[Dynamic State Authority] --> D
198
+ C --> E[Governed Task Memory]
199
+ E --> D
200
+ D --> F[Transient Bounded Context]
201
+ F --> G[Metadata-only Context Attestation]
202
+ G --> H[Episode and Run Authority]
203
+ H --> I[Verification Receipt]
204
+ I --> J[Current Verified Outcome]
205
+ ```
206
+
207
+ SQLite/WAL rows are durable authority. Repository snapshots, FTS rows, embedding sidecars, compiled context, reports, and Explorer views are derived. Context bodies are rendered in process and are not durably persisted by the compiler.
208
+
209
+ ## Trust and privacy
210
+
211
+ AMB is local-first. It does not require a hosted memory service. It separates durable memory from coordination Signals and mutable Dynamic State, keeps provenance visible, and rejects raw transcripts, hidden reasoning, and inline artifact bodies from the durable episode path.
212
+
213
+ Read the [Trust Boundary](docs/TRUST-BOUNDARY.md), [Authority Contract](docs/AUTHORITY-CONTRACT.md), and [Closed-Loop Episode Authority](docs/CLOSED-LOOP-EPISODE.md) for the exact boundaries.
214
+
215
+ ## MCP Tools
216
+
217
+ AMB exposes **17 public MCP tools**:
218
+
219
+ - `store`, `recall`, `browse`, and `stats`
220
+ - `forget`, `feedback`, `promote`, `annotate`, `revise`, and `export`
221
+ - `begin_run`, `record_run_event`, `get_run`, and `complete_run`
222
+ - `claim_signal`, `extend_signal_lease`, and `ack_signal`
223
+
224
+ The public tool surface stays small. Setup, Project Init, Explore, Inspect, context assembly, and review reports remain CLI or internal derived workflows rather than becoming more MCP tools.
225
+
226
+ The local protocol cache contract is `300000/public` for discovery and `0/private` for the tool list; see [MCP Compatibility](docs/MCP-2026-COMPATIBILITY.md) for details.
227
+
228
+ ## Current maturity
229
+
230
+ The current source is `0.32.1`, uses schema v12, and retains the frozen 17-tool MCP surface. `project init` is the preferred first-project path. Default Explore is a Human-first view over existing WHAT and WHY. Current evidence and non-claims live in [Production Status](docs/PRODUCTION-STATUS.md); published artifacts live in [GitHub Releases](https://github.com/zzhang82/Agent-Memory-Bridge/releases).
231
+
232
+ ## Contributing
233
+
234
+ Read [CONTRIBUTING.md](CONTRIBUTING.md) for development and public-surface expectations, and [SECURITY.md](SECURITY.md) for vulnerability reporting.
235
+
236
+ Licensed under [MIT](LICENSE).
@@ -0,0 +1,204 @@
1
+ <p align="center">
2
+ <img src="assets/amb-hero.png" alt="Agent Memory Bridge — local project memory for coding agents" width="100%" />
3
+ </p>
4
+
5
+ <h1 align="center">Agent Memory Bridge</h1>
6
+
7
+ <p align="center"><strong>Local project memory for coding agents.</strong></p>
8
+
9
+ <p align="center">
10
+ Code tells AMB what the project is.<br />
11
+ You tell AMB why it is that way.
12
+ </p>
13
+
14
+ <p align="center"><a href="README.zh-CN.md">简体中文</a></p>
15
+
16
+ <p align="center">
17
+ <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP_Server-Enabled-4A90E2?logo=protocolsdotio&logoColor=white" alt="MCP Server" /></a>
18
+ <a href="https://github.com/zzhang82/Agent-Memory-Bridge/actions/workflows/ci.yml"><img src="https://github.com/zzhang82/Agent-Memory-Bridge/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
19
+ <a href="https://github.com/zzhang82/Agent-Memory-Bridge/releases"><img src="https://img.shields.io/github/v/release/zzhang82/Agent-Memory-Bridge?logo=github&color=2ea44f" alt="GitHub Release" /></a>
20
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-2ea44f.svg" alt="MIT License" /></a>
21
+ <a href="pyproject.toml"><img src="https://img.shields.io/badge/python-3.11%2B-3776AB.svg" alt="Python 3.11+" /></a>
22
+ </p>
23
+
24
+ ## When a new session lacks project context
25
+
26
+ | Common project-memory problem | With AMB |
27
+ |---|---|
28
+ | Project context must be reconstructed | Repository **WHAT** is derived and inspectable after Project Init |
29
+ | Decisions live in old chats or tool-specific memory | Explicit project **WHY** stays with the project |
30
+ | Prior reasoning is hard to audit | Inspect explains why relevant context surfaced |
31
+ | Knowledge is tied to one client | Supported MCP clients can use the same configured local AMB home |
32
+
33
+ AMB keeps useful project context outside the chat so a new session, another agent, or another MCP-compatible tool using the same configured AMB home can pick it up. It stays local and inspectable; it does not silently learn from every conversation.
34
+
35
+ ## Quick Start
36
+
37
+ AMB requires **Python 3.11+**, Git, and an MCP-compatible coding client that can launch a local stdio server.
38
+
39
+ Current source version: `0.32.1`
40
+
41
+ Published releases: see [GitHub Releases](https://github.com/zzhang82/Agent-Memory-Bridge/releases)
42
+
43
+ For the `0.32.1` release line, the normal install route is PyPI. GitHub Releases remains the publication authority for source tags and release notes; an exact source checkout can still be installed with `pip install -e .` for development or audit work.
44
+
45
+ ### 1. Install and connect AMB
46
+
47
+ Replace `<venv-python>` with the Python executable inside `.amb-venv` for your operating system.
48
+
49
+ ```bash
50
+ python -m venv .amb-venv
51
+ <venv-python> -m pip install agent-memory-bridge==0.32.1
52
+ <venv-python> -m agent_mem_bridge setup --client generic
53
+ ```
54
+
55
+ Use the rendered client configuration, then reload the client.
56
+
57
+ ### 2. Initialize the project
58
+
59
+ ```bash
60
+ <venv-python> -m agent_mem_bridge project init .
61
+ ```
62
+
63
+ Project Init detects the local Git repository, proposes a namespace such as `project:my-app`, and waits for confirmation. It then derives current repository WHAT and opens the Human-first Explore view. It does not automatically learn decisions.
64
+
65
+ ### 3. Tell your connected coding agent one decision
66
+
67
+ > Remember that we decided not to add Redis because this project is intentionally local-first and single-node.
68
+
69
+ The connected agent uses AMB's existing public memory tools to store the explicit decision and reason. AMB does not infer a durable decision from the code or archive the whole conversation.
70
+
71
+ ### 4. Open a new session, then Explore or Inspect
72
+
73
+ ```bash
74
+ <venv-python> -m agent_mem_bridge explore \
75
+ --namespace project:my-app
76
+
77
+ <venv-python> -m agent_mem_bridge inspect \
78
+ --namespace project:my-app \
79
+ --query "Should we add Redis?"
80
+ ```
81
+
82
+ Explore answers “What does AMB currently know about this project?” Inspect answers “Why did this information surface for this question?” Both are local and read-only.
83
+
84
+ This is a conceptual view, not verbatim CLI output:
85
+
86
+ ```text
87
+ CODE / WHAT CONVERSATION / WHY
88
+ ──────────────────── ──────────────────────────
89
+ Runtime: Python >=3.11 Decision: Do not add Redis
90
+ Package: my-app Reason: local-first,
91
+ Tests: pytest single-node project
92
+ ```
93
+
94
+ **Code tells AMB WHAT the project is.**
95
+
96
+ **Conversations teach AMB WHY it is that way.**
97
+
98
+ <details>
99
+ <summary>Refresh and troubleshooting boundaries</summary>
100
+
101
+ Repository WHAT comes from a clean Git commit. If HEAD changes or the worktree is dirty, AMB will not present an old snapshot as current truth. Refresh is not automatic. Rerun the explicit primitive:
102
+
103
+ ```bash
104
+ <venv-python> -m agent_mem_bridge bootstrap-repo . \
105
+ --namespace project:<name>
106
+ ```
107
+
108
+ Refreshing repository WHAT leaves durable project WHY unchanged. Explore is CLI-only, not MCP tool #18, and it does not rank context for the model.
109
+
110
+ `first-run` remains optional guided help; it is not the modern Project Learning entrypoint:
111
+
112
+ ```bash
113
+ <venv-python> -m agent_mem_bridge first-run --namespace project:my-app --query "What should I remember?"
114
+ ```
115
+
116
+ Use health checks only when setup is uncertain:
117
+
118
+ ```bash
119
+ <venv-python> -m agent_mem_bridge doctor
120
+ <venv-python> -m agent_mem_bridge verify
121
+ ```
122
+
123
+ </details>
124
+
125
+ ## Why AMB?
126
+
127
+ Repository facts and human decisions are not the same thing.
128
+
129
+ | CODE / WHAT | CONVERSATION / WHY |
130
+ |---|---|
131
+ | Derived from the repository | Explicitly taught by a person through a connected agent |
132
+ | Rebuildable from current clean code | Durable across sessions and tools using the same configured AMB home |
133
+ | Describes the project's current shape | Preserves decisions, constraints, and reasons |
134
+ | Refreshed explicitly when code changes | Revised through auditable memory operations |
135
+
136
+ The public product model stays simple: **CODE / WHAT** and **CONVERSATION / WHY**.
137
+
138
+ ## Integrations
139
+
140
+ AMB works through local stdio MCP. Generic MCP clients are supported; Codex is the reference workflow; Claude Code, Claude Desktop, Cursor, and Cline are documented; and Antigravity, OpenCode, and Hermes have locally tested configuration paths.
141
+
142
+ Integration labels are deliberately narrow and do not imply client certification. See [Integrations](docs/INTEGRATIONS.md) for current setup instructions and boundaries.
143
+
144
+ ## Want the details?
145
+
146
+ | Read | For |
147
+ |---|---|
148
+ | [Architecture](docs/ARCHITECTURE.md) | System shape and data flow |
149
+ | [Authority model](docs/AUTHORITY-CONTRACT.md) | Durable authority, derived views, correction, and audit rules |
150
+ | [Knowledge Explorer](docs/KNOWLEDGE-EXPLORER.md) | Human-first read-only project view |
151
+ | [Production Status](docs/PRODUCTION-STATUS.md) | Current implementation facts, evidence, and known limits |
152
+ | [Integrations](docs/INTEGRATIONS.md) | Client-specific local MCP setup |
153
+ | [Install for Agents](INSTALL_FOR_AGENTS.md) | Full install-to-first-success workflow |
154
+ | [Configuration](docs/CONFIGURATION.md) | Complete configuration reference |
155
+ | [Examples](examples/README.md) | Sanitized demos and artifacts |
156
+
157
+ ## Technical model
158
+
159
+ The product story above intentionally postpones implementation vocabulary. Internally, AMB keeps `derived_repository` data separate from governed durable memory so one cannot silently become the other. For maintainers and reviewers, the current authority flow is:
160
+
161
+ ```mermaid
162
+ flowchart LR
163
+ A[Durable Memory / WHY] --> C[Lifecycle-aware Recall]
164
+ B[Repository Knowledge / WHAT] --> D[Context Compiler]
165
+ S[Dynamic State Authority] --> D
166
+ C --> E[Governed Task Memory]
167
+ E --> D
168
+ D --> F[Transient Bounded Context]
169
+ F --> G[Metadata-only Context Attestation]
170
+ G --> H[Episode and Run Authority]
171
+ H --> I[Verification Receipt]
172
+ I --> J[Current Verified Outcome]
173
+ ```
174
+
175
+ SQLite/WAL rows are durable authority. Repository snapshots, FTS rows, embedding sidecars, compiled context, reports, and Explorer views are derived. Context bodies are rendered in process and are not durably persisted by the compiler.
176
+
177
+ ## Trust and privacy
178
+
179
+ AMB is local-first. It does not require a hosted memory service. It separates durable memory from coordination Signals and mutable Dynamic State, keeps provenance visible, and rejects raw transcripts, hidden reasoning, and inline artifact bodies from the durable episode path.
180
+
181
+ Read the [Trust Boundary](docs/TRUST-BOUNDARY.md), [Authority Contract](docs/AUTHORITY-CONTRACT.md), and [Closed-Loop Episode Authority](docs/CLOSED-LOOP-EPISODE.md) for the exact boundaries.
182
+
183
+ ## MCP Tools
184
+
185
+ AMB exposes **17 public MCP tools**:
186
+
187
+ - `store`, `recall`, `browse`, and `stats`
188
+ - `forget`, `feedback`, `promote`, `annotate`, `revise`, and `export`
189
+ - `begin_run`, `record_run_event`, `get_run`, and `complete_run`
190
+ - `claim_signal`, `extend_signal_lease`, and `ack_signal`
191
+
192
+ The public tool surface stays small. Setup, Project Init, Explore, Inspect, context assembly, and review reports remain CLI or internal derived workflows rather than becoming more MCP tools.
193
+
194
+ The local protocol cache contract is `300000/public` for discovery and `0/private` for the tool list; see [MCP Compatibility](docs/MCP-2026-COMPATIBILITY.md) for details.
195
+
196
+ ## Current maturity
197
+
198
+ The current source is `0.32.1`, uses schema v12, and retains the frozen 17-tool MCP surface. `project init` is the preferred first-project path. Default Explore is a Human-first view over existing WHAT and WHY. Current evidence and non-claims live in [Production Status](docs/PRODUCTION-STATUS.md); published artifacts live in [GitHub Releases](https://github.com/zzhang82/Agent-Memory-Bridge/releases).
199
+
200
+ ## Contributing
201
+
202
+ Read [CONTRIBUTING.md](CONTRIBUTING.md) for development and public-surface expectations, and [SECURITY.md](SECURITY.md) for vulnerability reporting.
203
+
204
+ Licensed under [MIT](LICENSE).