codevira 3.2.0__tar.gz → 3.4.0__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 (285) hide show
  1. {codevira-3.2.0 → codevira-3.4.0}/CHANGELOG.md +226 -0
  2. {codevira-3.2.0/codevira.egg-info → codevira-3.4.0}/PKG-INFO +76 -33
  3. {codevira-3.2.0 → codevira-3.4.0}/README.md +75 -32
  4. {codevira-3.2.0 → codevira-3.4.0/codevira.egg-info}/PKG-INFO +76 -33
  5. {codevira-3.2.0 → codevira-3.4.0}/codevira.egg-info/SOURCES.txt +12 -0
  6. {codevira-3.2.0 → codevira-3.4.0}/docs/architecture.md +25 -8
  7. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/__init__.py +1 -1
  8. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/cli.py +107 -24
  9. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/cli_export.py +84 -15
  10. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/cli_projects.py +183 -9
  11. codevira-3.4.0/mcp_server/cli_transfer.py +410 -0
  12. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/doctor.py +53 -0
  13. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/__init__.py +2 -0
  14. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/policies/__init__.py +2 -0
  15. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/policies/anti_regression.py +36 -16
  16. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/policies/blast_radius.py +38 -12
  17. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/policies/decision_lock.py +89 -33
  18. codevira-3.4.0/mcp_server/engine/policies/prompt_capture.py +255 -0
  19. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/policies/session_log_enforcer.py +88 -9
  20. codevira-3.4.0/mcp_server/engine/wiring/_diff_envelope.py +149 -0
  21. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/wiring/claude_code_hooks.py +27 -65
  22. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/wiring/mcp_dispatch.py +9 -0
  23. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/global_sync.py +17 -1
  24. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/http_server.py +7 -0
  25. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/paths.py +50 -0
  26. codevira-3.4.0/mcp_server/project_binding.py +250 -0
  27. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/server.py +158 -7
  28. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/tools/learning.py +17 -0
  29. codevira-3.4.0/mcp_server/tools/preferences.py +278 -0
  30. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/tools/reflections.py +7 -1
  31. codevira-3.4.0/mcp_server/update_check.py +230 -0
  32. {codevira-3.2.0 → codevira-3.4.0}/pyproject.toml +1 -1
  33. codevira-3.4.0/tests/test_binding_e2e.py +211 -0
  34. codevira-3.4.0/tests/test_cli_export.py +112 -0
  35. codevira-3.4.0/tests/test_cli_projects.py +454 -0
  36. codevira-3.4.0/tests/test_cli_transfer.py +253 -0
  37. {codevira-3.2.0 → codevira-3.4.0}/tests/test_doctor.py +39 -0
  38. {codevira-3.2.0 → codevira-3.4.0}/tests/test_global_sync.py +3 -0
  39. {codevira-3.2.0 → codevira-3.4.0}/tests/test_http_server.py +214 -138
  40. codevira-3.4.0/tests/test_preferences_tools.py +207 -0
  41. codevira-3.4.0/tests/test_project_binding.py +241 -0
  42. {codevira-3.2.0 → codevira-3.4.0}/tests/test_reflections.py +47 -6
  43. {codevira-3.2.0 → codevira-3.4.0}/tests/test_server.py +299 -189
  44. {codevira-3.2.0 → codevira-3.4.0}/tests/test_tools_learning.py +147 -17
  45. codevira-3.4.0/tests/test_update_check.py +185 -0
  46. codevira-3.2.0/tests/test_cli_projects.py +0 -224
  47. {codevira-3.2.0 → codevira-3.4.0}/LICENSE +0 -0
  48. {codevira-3.2.0 → codevira-3.4.0}/MANIFEST.in +0 -0
  49. {codevira-3.2.0 → codevira-3.4.0}/agents/builder.md +0 -0
  50. {codevira-3.2.0 → codevira-3.4.0}/agents/developer.md +0 -0
  51. {codevira-3.2.0 → codevira-3.4.0}/agents/documenter.md +0 -0
  52. {codevira-3.2.0 → codevira-3.4.0}/agents/orchestrator.md +0 -0
  53. {codevira-3.2.0 → codevira-3.4.0}/agents/planner.md +0 -0
  54. {codevira-3.2.0 → codevira-3.4.0}/agents/qa/01-code-review.md +0 -0
  55. {codevira-3.2.0 → codevira-3.4.0}/agents/qa/02-adversarial-fix-review.md +0 -0
  56. {codevira-3.2.0 → codevira-3.4.0}/agents/qa/03-cross-module-impact.md +0 -0
  57. {codevira-3.2.0 → codevira-3.4.0}/agents/qa/06-doc-drift.md +0 -0
  58. {codevira-3.2.0 → codevira-3.4.0}/agents/qa/07-security-audit.md +0 -0
  59. {codevira-3.2.0 → codevira-3.4.0}/agents/qa/12-llm-redteam.md +0 -0
  60. {codevira-3.2.0 → codevira-3.4.0}/agents/qa/13-multi-ide-schema.md +0 -0
  61. {codevira-3.2.0 → codevira-3.4.0}/agents/qa/22-competitor-benchmark.md +0 -0
  62. {codevira-3.2.0 → codevira-3.4.0}/agents/qa/README.md +0 -0
  63. {codevira-3.2.0 → codevira-3.4.0}/agents/qa/tier2-scripts.md +0 -0
  64. {codevira-3.2.0 → codevira-3.4.0}/agents/qa/tier3-manual.md +0 -0
  65. {codevira-3.2.0 → codevira-3.4.0}/agents/reviewer.md +0 -0
  66. {codevira-3.2.0 → codevira-3.4.0}/agents/tester.md +0 -0
  67. {codevira-3.2.0 → codevira-3.4.0}/codevira.egg-info/dependency_links.txt +0 -0
  68. {codevira-3.2.0 → codevira-3.4.0}/codevira.egg-info/entry_points.txt +0 -0
  69. {codevira-3.2.0 → codevira-3.4.0}/codevira.egg-info/requires.txt +0 -0
  70. {codevira-3.2.0 → codevira-3.4.0}/codevira.egg-info/top_level.txt +0 -0
  71. {codevira-3.2.0 → codevira-3.4.0}/config.example.yaml +0 -0
  72. {codevira-3.2.0 → codevira-3.4.0}/docs/alpha-tester-invites.md +0 -0
  73. {codevira-3.2.0 → codevira-3.4.0}/docs/audit-2026-05-22.md +0 -0
  74. {codevira-3.2.0 → codevira-3.4.0}/docs/demo/README.md +0 -0
  75. {codevira-3.2.0 → codevira-3.4.0}/docs/foolproof-product-charter.md +0 -0
  76. {codevira-3.2.0 → codevira-3.4.0}/docs/heroes/00-engine.md +0 -0
  77. {codevira-3.2.0 → codevira-3.4.0}/docs/heroes/01-decision-lock.md +0 -0
  78. {codevira-3.2.0 → codevira-3.4.0}/docs/heroes/02-anti-regression.md +0 -0
  79. {codevira-3.2.0 → codevira-3.4.0}/docs/heroes/03-scope-contract.md +0 -0
  80. {codevira-3.2.0 → codevira-3.4.0}/docs/heroes/04-blast-radius.md +0 -0
  81. {codevira-3.2.0 → codevira-3.4.0}/docs/heroes/05-cross-session.md +0 -0
  82. {codevira-3.2.0 → codevira-3.4.0}/docs/heroes/06-token-budget.md +0 -0
  83. {codevira-3.2.0 → codevira-3.4.0}/docs/heroes/07-live-style.md +0 -0
  84. {codevira-3.2.0 → codevira-3.4.0}/docs/heroes/08-decision-replay.md +0 -0
  85. {codevira-3.2.0 → codevira-3.4.0}/docs/heroes/09-intent-inference.md +0 -0
  86. {codevira-3.2.0 → codevira-3.4.0}/docs/heroes/10-ai-promotion.md +0 -0
  87. {codevira-3.2.0 → codevira-3.4.0}/docs/heroes/README.md +0 -0
  88. {codevira-3.2.0 → codevira-3.4.0}/docs/heroes/pillar-1-setup.md +0 -0
  89. {codevira-3.2.0 → codevira-3.4.0}/docs/hn-launch-day.md +0 -0
  90. {codevira-3.2.0 → codevira-3.4.0}/docs/how-i-built-persistent-memory-for-ai-agents.md +0 -0
  91. {codevira-3.2.0 → codevira-3.4.0}/docs/internal/competitive-landscape.md +0 -0
  92. {codevira-3.2.0 → codevira-3.4.0}/docs/linkedin-article-ai-agent-memory.md +0 -0
  93. {codevira-3.2.0 → codevira-3.4.0}/docs/linkedin-post-ai-agent-memory.md +0 -0
  94. {codevira-3.2.0 → codevira-3.4.0}/docs/local-pypi-https.md +0 -0
  95. {codevira-3.2.0 → codevira-3.4.0}/docs/medium-your-ai-coding-agent-has-amnesia.md +0 -0
  96. {codevira-3.2.0 → codevira-3.4.0}/docs/morning-handoff-2026-05-22.md +0 -0
  97. {codevira-3.2.0 → codevira-3.4.0}/docs/plans/v2.1.2.md +0 -0
  98. {codevira-3.2.0 → codevira-3.4.0}/docs/plans/v2.1.3.md +0 -0
  99. {codevira-3.2.0 → codevira-3.4.0}/docs/plans/v2.2.0.md +0 -0
  100. {codevira-3.2.0 → codevira-3.4.0}/docs/plans/v3.0.0.md +0 -0
  101. {codevira-3.2.0 → codevira-3.4.0}/docs/qa-playbook.md +0 -0
  102. {codevira-3.2.0 → codevira-3.4.0}/docs/release-notes/v3.1.1.md +0 -0
  103. {codevira-3.2.0 → codevira-3.4.0}/docs/release-process.md +0 -0
  104. {codevira-3.2.0 → codevira-3.4.0}/docs/roadmap.md +0 -0
  105. {codevira-3.2.0 → codevira-3.4.0}/docs/surface-cuts-2026-05-22.md +0 -0
  106. {codevira-3.2.0 → codevira-3.4.0}/docs/troubleshooting/antigravity.md +0 -0
  107. {codevira-3.2.0 → codevira-3.4.0}/docs/v2-completion-plan.md +0 -0
  108. {codevira-3.2.0 → codevira-3.4.0}/docs/v2-execution-log.md +0 -0
  109. {codevira-3.2.0 → codevira-3.4.0}/docs/v2-master-plan.md +0 -0
  110. {codevira-3.2.0 → codevira-3.4.0}/docs/vs-other-memory-tools.md +0 -0
  111. {codevira-3.2.0 → codevira-3.4.0}/graph/_schema.yaml +0 -0
  112. {codevira-3.2.0 → codevira-3.4.0}/indexer/__init__.py +0 -0
  113. {codevira-3.2.0 → codevira-3.4.0}/indexer/_dedupe_migration.py +0 -0
  114. {codevira-3.2.0 → codevira-3.4.0}/indexer/_fork_safety.py +0 -0
  115. {codevira-3.2.0 → codevira-3.4.0}/indexer/_sqlite_util.py +0 -0
  116. {codevira-3.2.0 → codevira-3.4.0}/indexer/chunker.py +0 -0
  117. {codevira-3.2.0 → codevira-3.4.0}/indexer/fix_history.py +0 -0
  118. {codevira-3.2.0 → codevira-3.4.0}/indexer/global_db.py +0 -0
  119. {codevira-3.2.0 → codevira-3.4.0}/indexer/graph_generator.py +0 -0
  120. {codevira-3.2.0 → codevira-3.4.0}/indexer/index_codebase.py +0 -0
  121. {codevira-3.2.0 → codevira-3.4.0}/indexer/outcome_tracker.py +0 -0
  122. {codevira-3.2.0 → codevira-3.4.0}/indexer/sqlite_graph.py +0 -0
  123. {codevira-3.2.0 → codevira-3.4.0}/indexer/treesitter_parser.py +0 -0
  124. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/__main__.py +0 -0
  125. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/_ghost_check.py +0 -0
  126. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/_mcp_registry.py +0 -0
  127. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/_project_inventory.py +0 -0
  128. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/_prompts.py +0 -0
  129. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/_repair_init.py +0 -0
  130. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/_safe_crash.py +0 -0
  131. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/auto_init.py +0 -0
  132. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/cli_consensus.py +0 -0
  133. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/cli_graph.py +0 -0
  134. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/cli_hooks_admin.py +0 -0
  135. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/cli_induce.py +0 -0
  136. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/cli_init.py +0 -0
  137. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/cli_reflect.py +0 -0
  138. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/cli_replay.py +0 -0
  139. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/cli_sync.py +0 -0
  140. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/cli_uninstall.py +0 -0
  141. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/cli_working.py +0 -0
  142. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/crash_logger.py +0 -0
  143. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/__init__.py +0 -0
  144. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/affordances.yaml +0 -0
  145. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/agents/builder.md +0 -0
  146. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/agents/developer.md +0 -0
  147. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/agents/documenter.md +0 -0
  148. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/agents/orchestrator.md +0 -0
  149. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/agents/planner.md +0 -0
  150. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/agents/reviewer.md +0 -0
  151. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/agents/tester.md +0 -0
  152. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/config.example.yaml +0 -0
  153. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/hooks/post_tool_use.sh +0 -0
  154. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/hooks/pre_tool_use.sh +0 -0
  155. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/hooks/session_start.sh +0 -0
  156. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/hooks/stop.sh +0 -0
  157. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/hooks/user_prompt_submit.sh +0 -0
  158. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/prompts/reflection_v1.md +0 -0
  159. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/rules/coding-standards-generic.md +0 -0
  160. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/rules/coding-standards-go.md +0 -0
  161. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/rules/coding-standards-typescript.md +0 -0
  162. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/rules/coding-standards.md +0 -0
  163. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/rules/engineering-excellence.md +0 -0
  164. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/rules/git-cicd-governance.md +0 -0
  165. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/rules/git_commits.md +0 -0
  166. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/rules/incremental-updates.md +0 -0
  167. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/rules/master_rule.md +0 -0
  168. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/rules/multi-language.md +0 -0
  169. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/rules/persistence.md +0 -0
  170. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/rules/resilience-observability.md +0 -0
  171. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/rules/smoke-testing.md +0 -0
  172. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/data/rules/testing-standards.md +0 -0
  173. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/decision_replay.py +0 -0
  174. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/detect.py +0 -0
  175. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/demo_policy.py +0 -0
  176. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/events.py +0 -0
  177. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/memory_fanout.py +0 -0
  178. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/policies/_signature_detect.py +0 -0
  179. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/policies/post_edit_refresh.py +0 -0
  180. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/policies/relevance_inject.py +0 -0
  181. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/policies/token_budget.py +0 -0
  182. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/policy.py +0 -0
  183. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/runner.py +0 -0
  184. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/signals.py +0 -0
  185. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/token_meter.py +0 -0
  186. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/engine/wiring/__init__.py +0 -0
  187. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/gitignore.py +0 -0
  188. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/graph/__init__.py +0 -0
  189. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/graph/template.html +0 -0
  190. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/ide_inject.py +0 -0
  191. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/launchd.py +0 -0
  192. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/log_retention.py +0 -0
  193. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/migrate.py +0 -0
  194. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/prompts.py +0 -0
  195. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/roadmap_drift.py +0 -0
  196. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/setup_wizard.py +0 -0
  197. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/__init__.py +0 -0
  198. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/activity_store.py +0 -0
  199. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/agents_md_generator.py +0 -0
  200. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/atomic.py +0 -0
  201. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/config.py +0 -0
  202. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/consensus_store.py +0 -0
  203. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/decisions_store.py +0 -0
  204. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/digest.py +0 -0
  205. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/fts5_index.py +0 -0
  206. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/jsonl_store.py +0 -0
  207. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/manifest.py +0 -0
  208. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/origin.py +0 -0
  209. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/outcomes_writer.py +0 -0
  210. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/paths.py +0 -0
  211. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/reflections_store.py +0 -0
  212. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/sanitize.py +0 -0
  213. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/sessions_store.py +0 -0
  214. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/skills_store.py +0 -0
  215. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/token_estimator.py +0 -0
  216. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/storage/working_store.py +0 -0
  217. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/tools/__init__.py +0 -0
  218. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/tools/changesets.py +0 -0
  219. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/tools/check_conflict.py +0 -0
  220. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/tools/code_reader.py +0 -0
  221. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/tools/consensus.py +0 -0
  222. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/tools/graph.py +0 -0
  223. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/tools/playbook.py +0 -0
  224. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/tools/roadmap.py +0 -0
  225. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/tools/search.py +0 -0
  226. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/tools/skills.py +0 -0
  227. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/tools/spatial.py +0 -0
  228. {codevira-3.2.0 → codevira-3.4.0}/mcp_server/tools/working.py +0 -0
  229. {codevira-3.2.0 → codevira-3.4.0}/rules/coding-standards.md +0 -0
  230. {codevira-3.2.0 → codevira-3.4.0}/rules/engineering-excellence.md +0 -0
  231. {codevira-3.2.0 → codevira-3.4.0}/rules/git-cicd-governance.md +0 -0
  232. {codevira-3.2.0 → codevira-3.4.0}/rules/git_commits.md +0 -0
  233. {codevira-3.2.0 → codevira-3.4.0}/rules/incremental-updates.md +0 -0
  234. {codevira-3.2.0 → codevira-3.4.0}/rules/master_rule.md +0 -0
  235. {codevira-3.2.0 → codevira-3.4.0}/rules/persistence.md +0 -0
  236. {codevira-3.2.0 → codevira-3.4.0}/rules/resilience-observability.md +0 -0
  237. {codevira-3.2.0 → codevira-3.4.0}/rules/smoke-testing.md +0 -0
  238. {codevira-3.2.0 → codevira-3.4.0}/rules/testing-standards.md +0 -0
  239. {codevira-3.2.0 → codevira-3.4.0}/setup.cfg +0 -0
  240. {codevira-3.2.0 → codevira-3.4.0}/tests/test__prompts.py +0 -0
  241. {codevira-3.2.0 → codevira-3.4.0}/tests/test_auto_init.py +0 -0
  242. {codevira-3.2.0 → codevira-3.4.0}/tests/test_call_edge_fk_safety.py +0 -0
  243. {codevira-3.2.0 → codevira-3.4.0}/tests/test_check_conflict.py +0 -0
  244. {codevira-3.2.0 → codevira-3.4.0}/tests/test_chunker.py +0 -0
  245. {codevira-3.2.0 → codevira-3.4.0}/tests/test_cli_consensus.py +0 -0
  246. {codevira-3.2.0 → codevira-3.4.0}/tests/test_cli_graph.py +0 -0
  247. {codevira-3.2.0 → codevira-3.4.0}/tests/test_cli_induce.py +0 -0
  248. {codevira-3.2.0 → codevira-3.4.0}/tests/test_cli_replay.py +0 -0
  249. {codevira-3.2.0 → codevira-3.4.0}/tests/test_cli_uninstall.py +0 -0
  250. {codevira-3.2.0 → codevira-3.4.0}/tests/test_cli_version.py +0 -0
  251. {codevira-3.2.0 → codevira-3.4.0}/tests/test_cli_working.py +0 -0
  252. {codevira-3.2.0 → codevira-3.4.0}/tests/test_consensus_handshake.py +0 -0
  253. {codevira-3.2.0 → codevira-3.4.0}/tests/test_crash_logger.py +0 -0
  254. {codevira-3.2.0 → codevira-3.4.0}/tests/test_dedupe_migration.py +0 -0
  255. {codevira-3.2.0 → codevira-3.4.0}/tests/test_detect.py +0 -0
  256. {codevira-3.2.0 → codevira-3.4.0}/tests/test_fk_safety_extended.py +0 -0
  257. {codevira-3.2.0 → codevira-3.4.0}/tests/test_fork_safety.py +0 -0
  258. {codevira-3.2.0 → codevira-3.4.0}/tests/test_ghost_check.py +0 -0
  259. {codevira-3.2.0 → codevira-3.4.0}/tests/test_gitignore.py +0 -0
  260. {codevira-3.2.0 → codevira-3.4.0}/tests/test_global_db.py +0 -0
  261. {codevira-3.2.0 → codevira-3.4.0}/tests/test_graph_generator.py +0 -0
  262. {codevira-3.2.0 → codevira-3.4.0}/tests/test_hook_resilience.py +0 -0
  263. {codevira-3.2.0 → codevira-3.4.0}/tests/test_ide_inject.py +0 -0
  264. {codevira-3.2.0 → codevira-3.4.0}/tests/test_index_codebase.py +0 -0
  265. {codevira-3.2.0 → codevira-3.4.0}/tests/test_launchd.py +0 -0
  266. {codevira-3.2.0 → codevira-3.4.0}/tests/test_log_retention.py +0 -0
  267. {codevira-3.2.0 → codevira-3.4.0}/tests/test_migrate.py +0 -0
  268. {codevira-3.2.0 → codevira-3.4.0}/tests/test_outcome_tracker.py +0 -0
  269. {codevira-3.2.0 → codevira-3.4.0}/tests/test_paths.py +0 -0
  270. {codevira-3.2.0 → codevira-3.4.0}/tests/test_prompts.py +0 -0
  271. {codevira-3.2.0 → codevira-3.4.0}/tests/test_record_decision.py +0 -0
  272. {codevira-3.2.0 → codevira-3.4.0}/tests/test_repair_init.py +0 -0
  273. {codevira-3.2.0 → codevira-3.4.0}/tests/test_roadmap_drift.py +0 -0
  274. {codevira-3.2.0 → codevira-3.4.0}/tests/test_setup_wizard.py +0 -0
  275. {codevira-3.2.0 → codevira-3.4.0}/tests/test_sqlite_graph.py +0 -0
  276. {codevira-3.2.0 → codevira-3.4.0}/tests/test_sqlite_util.py +0 -0
  277. {codevira-3.2.0 → codevira-3.4.0}/tests/test_tools_code_reader.py +0 -0
  278. {codevira-3.2.0 → codevira-3.4.0}/tests/test_tools_graph.py +0 -0
  279. {codevira-3.2.0 → codevira-3.4.0}/tests/test_tools_playbook.py +0 -0
  280. {codevira-3.2.0 → codevira-3.4.0}/tests/test_tools_roadmap.py +0 -0
  281. {codevira-3.2.0 → codevira-3.4.0}/tests/test_tools_skills.py +0 -0
  282. {codevira-3.2.0 → codevira-3.4.0}/tests/test_tools_spatial.py +0 -0
  283. {codevira-3.2.0 → codevira-3.4.0}/tests/test_tools_working.py +0 -0
  284. {codevira-3.2.0 → codevira-3.4.0}/tests/test_treesitter_parser.py +0 -0
  285. {codevira-3.2.0 → codevira-3.4.0}/tests/test_watcher_circuit.py +0 -0
@@ -7,6 +7,232 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
7
7
 
8
8
  ---
9
9
 
10
+ ## [3.4.0] — 2026-06-15
11
+
12
+ ### Added
13
+
14
+ - **`codevira projects` cleanup + staleness.** The project inventory now
15
+ shows a relative-age column (`today` / `5d ago` / `stale 45d`) so you
16
+ can see at a glance which registered projects have gone cold. Pytest
17
+ tmp dirs and `/tmp` scratch projects are kept out of the registry at
18
+ the source (a registration guard on ephemeral paths; tests opt back in
19
+ with `CODEVIRA_ALLOW_EPHEMERAL_PROJECT=1`) and hidden from the human
20
+ listing by default (shown with `--all`, always present in `--json`
21
+ tagged `ephemeral: true`). New `codevira projects archive <name>`
22
+ removes a project from the registry by name or path — files and data
23
+ dir untouched. (D0000PT)
24
+
25
+ - **Per-call project resolution for Claude Desktop.** Claude Desktop is a
26
+ single global server with no per-conversation workspace signal, so it
27
+ could only ever bind to one project. Now, for `CODEVIRA_IDE=claude_desktop`,
28
+ the active project is resolved per tool call from the call's `file_path`
29
+ (walking up to the enclosing `.codevira/`), and is sticky for path-less
30
+ follow-ups — so codevira's memory follows whichever project you're
31
+ working in, across all of them. Strictly workspace-bound IDEs (Claude
32
+ Code / Cursor / Windsurf) are unaffected (gated). Best-effort and
33
+ read-safe (the per-root data-dir cache re-resolves on switch).
34
+
35
+ ### Fixed
36
+
37
+ - **Project binding: the MCP server could resolve the WRONG project.** A
38
+ user-scope codevira server (one shared entry, launched with no `cwd` /
39
+ `--project-dir` / `CODEVIRA_PROJECT_DIR`) had no project binding and
40
+ fell through to cwd discovery — frequently resolving to a *different*
41
+ project than the one open in the editor (cross-project memory
42
+ contamination: decisions/graph/sessions read from project A while you
43
+ work in project B). The server now resolves the active project from the
44
+ MCP client's workspace **roots** (Claude Code, Cursor, Windsurf all
45
+ expose these) on the first tool call, when not explicitly pinned. It
46
+ re-binds **only** to an already-initialized codevira project (`.codevira`
47
+ present), so a monorepo workspace root or a fresh repo can't hijack a
48
+ working setup; explicit `--project-dir` / `CODEVIRA_PROJECT_DIR` pins are
49
+ always respected; and the lookup is bounded by a timeout so it can never
50
+ hang dispatch. Upgrade + restart your MCP server to pick this up.
51
+ (D0000RO)
52
+ - **Windows / UNC** workspace roots are now parsed correctly
53
+ (`file:///C:/...` and `file://host/share/...`) — the binding worked on
54
+ POSIX but silently failed / mis-bound on Cursor & Windsurf (Windows).
55
+ - **HTTP transport** skips the roots-binding hook entirely: the HTTP
56
+ server shares one process across sessions, so a process-global binding
57
+ would cross-contaminate; stdio is unaffected.
58
+ - **Brand-new projects** bind correctly: a fresh `.git` workspace root
59
+ is now bound when the inherited cwd isn't a codevira project, so
60
+ `.codevira` no longer gets auto-created in the wrong directory (a
61
+ monorepo cwd that already holds a real project is never overridden).
62
+ - **`codevira doctor`** gains a `project_binding` check that shows how
63
+ the project resolved (explicit pin vs. workspace) so you can verify
64
+ you're bound to the right project.
65
+
66
+ - **Honest `search_decisions` tool description.** It claimed "hybrid BM25
67
+ + semantic; self-calibrating threshold" while the implementation is
68
+ pure FTS5 keyword/BM25 — the wording misled calling agents into
69
+ expecting semantic recall and gibberish-rejection that don't exist. Now
70
+ it accurately says keyword-only and points to `list_decisions` /
71
+ `list_tags` for zero-keyword-overlap concepts.
72
+
73
+ - **Engine false-positive: additive `Write` no longer hard-blocked.** The
74
+ `decision_lock`, `blast_radius`, and `anti_regression` policies key on
75
+ the `--- before / --- after` diff envelope. `Edit`/`MultiEdit` always
76
+ produced it, but `Write` passed raw file content, so the additive-edit
77
+ guards were silently bypassed and a purely-additive full-file `Write`
78
+ to a locked or high-fan-in file was blocked as if it were destructive
79
+ (forcing users to disable enforcement). The wiring layer now
80
+ synthesizes an honest envelope for `Write` by reading the current
81
+ on-disk content as the `before` block, via a shared
82
+ `_diff_envelope.synthesize_proposed_diff` helper used by both the
83
+ Claude Code hook and the MCP dispatch path. A `Write` that removes or
84
+ changes existing lines still blocks — the moat is unchanged. (D0000PW)
85
+ `anti_regression` deliberately keeps its pre-v3.4.0 no-op behavior on
86
+ full-file `Write`s: its keyword-overlap revert heuristic is calibrated
87
+ for small Edit hunks and would false-block additive overwrites if run
88
+ over a whole file, so Writes are skipped there (Edit/MultiEdit revert
89
+ detection is unaffected).
90
+
91
+ - **Blast-radius veto: "Affected files" list was always empty.** The
92
+ policy read `impact["affected"]`, but `get_impact` / `signals.impact`
93
+ return the list under `affected_files`. The block fired correctly but
94
+ the diagnostic never showed *which* files were impacted; now it does.
95
+
96
+ - **Docs accuracy.** The README tagline implied hard edit-blocking works
97
+ everywhere — it's Claude Code only (other IDEs get the same decisions
98
+ as AGENTS.md guidance). Tagline corrected to match the body, which was
99
+ already scoped correctly.
100
+
101
+ ### Changed
102
+
103
+ - **CI: opt into Node.js 24 for GitHub Actions.** GitHub forces Node.js
104
+ 24 on runners from 2026-06-16; the CI and Pages workflows now set
105
+ `FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true` to adopt it ahead of the
106
+ deadline and silence the deprecation warnings.
107
+
108
+ ### Docs
109
+
110
+ - **Public "What's next" roadmap.** `ROADMAP.md` gains a current-release
111
+ summary and a priority-ordered, *directional (not dated)* "What's next"
112
+ table — summary-first payloads (E1), session-transcript ingest (E2),
113
+ eval harness (E3), managed memory files beyond `AGENTS.md` (E4), and an
114
+ opt-in `[semantic]` recall extra that stays **off by default** (E5),
115
+ plus TypeScript `get_signature`, finer-grained decision locking, and
116
+ learned hot-path tuning. The README `## Roadmap` section now surfaces
117
+ the same "Next up" list inline. The on-device-model track is marked
118
+ deferred (folded into E5's opt-in path).
119
+
120
+ - **README "What's new" + counts refreshed to v3.4.0.** The README's
121
+ "What's new" section was still headlined v3.1.1; it now leads with
122
+ v3.4.0 (binding, honest docs, `projects`, per-call resolution, engine
123
+ fix) and bridges 3.1–3.3 with a pointer to the CHANGELOG. Stale
124
+ surface counts corrected to the verified current numbers: **49**
125
+ surfaced MCP tools (was "24"), **21** CLI commands (was "15"), **8**
126
+ engine policies (was "6").
127
+
128
+ ---
129
+
130
+ ## [3.3.0] — 2026-06-13
131
+
132
+ ### Added
133
+
134
+ - **Update-available notice** — codevira CLI commands now print a short
135
+ stderr notice when a newer release is on PyPI (homebrew/gh/npm style):
136
+ `✦ Update available: codevira 3.2.0 → 3.3.0`. Zero latency by design:
137
+ the command path only reads a 24h-TTL cache
138
+ (`~/.codevira/update_check.json`); a detached fire-and-forget
139
+ subprocess refreshes it, so the notice appears on the next run.
140
+ Never fires for `codevira serve` (MCP stdio) or `codevira engine`
141
+ (hook hot path); pre-releases never notify; offline degrades to
142
+ silence. Opt out with `CODEVIRA_NO_UPDATE_CHECK=1`.
143
+
144
+ - **Preference capture (Phase 4, D0000LU)** — codevira now learns how you
145
+ like your AI to work, with zero rules and near-zero token cost:
146
+ - `prompt_capture` engine policy records every user prompt (sanitized,
147
+ size-capped) to `.codevira-cache/prompts.jsonl` — no keyword/regex
148
+ guessing about what "looks like" an instruction.
149
+ - New `distill_preferences` MCP tool: at session end (a throttled
150
+ Stop-hook nudge asks for it — ≥10 pending prompts, 24h cooldown),
151
+ one host-LLM call via MCP sampling extracts durable preferences
152
+ ("keep answers short", "tests first") into
153
+ `~/.codevira/global.db` `global_preferences` — user-scoped,
154
+ cross-project, and already covered by `codevira export setup`.
155
+ Degrades to a `rendered_prompt` stub without sampling support.
156
+ - New `search_preferences(category)` MCP tool — documented in
157
+ CLAUDE.md/AGENTS.md guidance for several versions but never
158
+ actually implemented until now.
159
+ - `get_session_context` gains an optional one-line `style` panel
160
+ (top-3 communication preferences, ~30 tokens, omitted when empty).
161
+
162
+ - **`codevira export setup` + `codevira import` — one-command machine
163
+ transfer.** Bundles the project's `.codevira/` canonical memory plus
164
+ your `~/.codevira/global.db` learning (preferences + rules, exported
165
+ as JSONL) into a single tar.gz; `codevira import <archive>` restores
166
+ the project memory and MERGES global learning through the existing
167
+ upsert semantics, so the destination machine's own learning survives.
168
+ The global `projects` registry and per-project indexes are deliberately
169
+ excluded (machine-specific / rebuildable — no path-remap needed).
170
+ Import refuses to overwrite a non-empty `.codevira/` without `--force`
171
+ (which snapshots it to `.codevira.pre-import-<ts>/` first), validates
172
+ archives against path traversal, and degrades gracefully when no
173
+ global.db exists.
174
+
175
+ - **`session_log_enforcer` STOP-outcome instrumentation.** v3.2.0 claimed
176
+ warn-mode "instruments how often the gap exists" but persisted nothing —
177
+ warns went to stdout and vanished, so the planned data-gated `warn`→`block`
178
+ default flip had no data to gate on. STOP evaluations are now appended to
179
+ `.codevira-cache/enforcer_outcomes.jsonl` (per-machine, gitignored,
180
+ 256KB size-cap with single-file rotation) with outcome codes
181
+ `skip_no_commits` / `compliant` / `gap_warned` / `gap_blocked`.
182
+ Instrumentation is best-effort: a failed write never changes the verdict.
183
+ Default mode stays `warn`; the `block` default flip is deferred until the
184
+ recorded outcomes confirm low noise.
185
+
186
+ ### Fixed
187
+
188
+ - **Enforcement precision: additive edits no longer false-veto.** Both
189
+ hard-block policies vetoed legitimate edits while codevira was
190
+ dogfooded on its own repo:
191
+ - `blast_radius_veto` treated any ADDED `def`/`class` as a public
192
+ signature change. A function that didn't exist cannot have callers —
193
+ now only removed/modified signatures veto. Renames still block
194
+ (a rename always removes the old signature).
195
+ - `decision_lock` blocked ANY edit to a do_not_revert file, even
196
+ pure insertions that cannot revert anything. Pure-insertion edits
197
+ (every existing line survives, order preserved) now downgrade to a
198
+ warn that still surfaces the locked decisions for self-checking;
199
+ removals, modifications, reorders, and full Writes still block.
200
+
201
+ - **`codevira export` now reads the v3.x canonical JSONL store.**
202
+ Since the v3.0 storage migration, `codevira export decisions` (and the
203
+ automatic pre-`reset` safety backup that shares its code path) dumped
204
+ only the legacy `graph.db` SQLite tables — on a v3.x project it silently
205
+ exported 0 rows while `.codevira/decisions.jsonl` held the real memory.
206
+ JSON exports now source decisions/sessions/outcomes from
207
+ `.codevira/*.jsonl` with a per-table fallback to `graph.db` for pre-v3
208
+ projects, report per-table provenance (`jsonl` / `sqlite-legacy` /
209
+ `missing`), and no longer require `graph.db` to exist. SQL format is
210
+ unchanged (legacy graph.db dump) and still requires `graph.db`.
211
+ Export payload `schema_version` bumped 1 → 2 (adds `table_sources`,
212
+ `source_jsonl_dir`; `source_db` may now be `null`).
213
+
214
+ ### Changed
215
+
216
+ - **CLI help text cleaned up.** `codevira --help` no longer leaks
217
+ internal release archaeology: stale version promises ("[Preview,
218
+ v1.7]", "ships in v3.2"), internal codenames ("Hero 8", "M2/M5/M6"),
219
+ and references to the v2.x Chroma vector store (removed in v3.0) are
220
+ gone. `reset --vectors` now correctly describes itself as legacy
221
+ v2.x cleanup. No flag or behavior changes.
222
+
223
+ ### Docs
224
+
225
+ - New FAQ entry: how to back up Codevira memory / move it to a new
226
+ machine (canonical `.codevira/` vs rebuildable cache vs
227
+ `~/.codevira/global.db`), verified against a simulated machine switch.
228
+ - Stale-content sweep ahead of v3.3.0: README tool tables now cover all
229
+ 49 surfaced tools (v3.1.0 memory subsystems + v3.3.0 preferences;
230
+ removed the `get_decision_confidence` row — tool deleted in v2.2.0),
231
+ `docs/architecture.md` updated to the v3.3.0 surface (49 tools,
232
+ 8 engine policies), CLAUDE.md reflect/enforcer sections updated to
233
+ shipped reality, and the abandoned v1.2.0 `website/` directory
234
+ (marketing tools deleted in v2.x/v3.0) removed.
235
+
10
236
  ## [3.2.0] — 2026-06-01 — Engine enforcement, sampling, soft-expire
11
237
 
12
238
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: codevira
3
- Version: 3.2.0
3
+ Version: 3.4.0
4
4
  Summary: Cross-IDE decision enforcement for AI coding agents. 1 MB per project, in your repo, no cloud, no vectors. Claude Code, Cursor, Windsurf, Antigravity, Codex all share the same in-repo memory; hooks block AI tool calls that violate prior decisions. MIT, local-first.
5
5
  Author-email: Sachin Shelke <sachin.worldnet@gmail.com>
6
6
  License: MIT
@@ -49,9 +49,10 @@ Requires-Dist: pre-commit>=3.5; extra == "dev"
49
49
 
50
50
  # Codevira
51
51
 
52
- > **Cross-IDE decision enforcement for AI coding agents.** One in-repo
53
- > memory layer that every AI tool you use can read; PreToolUse hooks
54
- > that physically block edits violating prior decisions. Local-first,
52
+ > **Cross-IDE decision memory for AI coding agents.** One in-repo memory
53
+ > layer that every AI tool you use can read — plus PreToolUse hooks that
54
+ > physically block violating edits **in Claude Code** (other IDEs get the
55
+ > same decisions as AGENTS.md guidance, not a hard block). Local-first,
55
56
  > MIT-licensed, ~83 MB pipx install.
56
57
 
57
58
  [![PyPI version](https://img.shields.io/pypi/v/codevira?color=orange)](https://pypi.org/project/codevira/)
@@ -141,25 +142,28 @@ every AI tool, on every project, on your local machine.**
141
142
 
142
143
  ---
143
144
 
144
- ## What's new in v3.1.1 — hardening + interrogable memory
145
+ ## What's new in v3.4.0 — reliable project binding + honest docs
145
146
 
146
- > 3.1.1 supersedes the briefly-published 3.1.0 (which shipped
147
- > without this README/CHANGELOG entry). Same code shape; this
148
- > release is the documented one. Brings five memory subsystems
149
- > (M1–M9 from 3.1.0) plus the v3.1.1 hardening + viewer overhaul.
147
+ > The headline fix: **one user-scope codevira server now binds the
148
+ > right project** instead of silently contaminating memory across
149
+ > projects. Upgrade and restart your MCP server to pick this up.
150
150
 
151
151
  | Area | What you get |
152
152
  |---|---|
153
- | **Five memory subsystems** | Origin tagging (M1), working memory (M2), skill library with FTS5 ranking (M3), spatial memory + activity heatmap (M4), skill induction wired to outcomes (M5), cross-IDE consensus check + handshake (M6/M7), reflections (M8). 22 new MCP tools. |
154
- | **Secret scrubbing everywhere** | Decisions, sessions, working memory, skills, reflections — every store scrubs api-key / Bearer / password / AWS AKIA / long hex / long base64 at the write boundary. One shared `mcp_server/storage/sanitize.py`. |
155
- | **Counter-decision discipline** | `record_decision` now accepts `alternatives_considered: list[str]` and `would_re_examine_if: str` — losing options + invalidation trigger surface in the viewer's rich-detail panel. Optional + back-compat. |
156
- | **Interrogable graph viewer** | `codevira graph` is no longer a passive force-layout. Free-text search → top-K ranked panel with score + outcome badge. Q&A intent detection ("what did we decide about X", "what got reverted", "what's protected"). Outcome lens (kept/modified/reverted). Lineage trace mode for supersession chains. |
157
- | **Auto outcome classification** | `codevira sync` now runs `observe-git` as a best-effort tail step — outcomes flow into the viewer's outcome lens automatically. |
158
- | **G3 real-IDE smoke** | The last permanently-skipped gauntlet gate now ships as a real check. Verifies codevira is registered in each detected IDE config + MCP `tools/list` round-trips in <1s. |
159
- | **AGENTS.md no more churn** | `regenerate()` is now idempotent — no rewrite when content unchanged, no perpetual uncommitted-drift loop. |
160
- | **4 silent bugs fixed** | `commit_session("../escape")` rejected; `triggers.tags="git"` rejected; `list_all(limit=0)` returns `[]`; spatial BFS catches query-time sqlite errors. |
153
+ | **Project binding fixed** | A shared, user-scope server (launched with no `cwd` / `--project-dir`) used to fall through to cwd discovery and resolve the *wrong* project — reading decisions from project A while you worked in project B. It now resolves the active project from the MCP client's workspace **roots** (Claude Code, Cursor, Windsurf all expose these), re-binding only to an already-initialized `.codevira` project; explicit pins always win; bounded by a timeout so dispatch can't hang. |
154
+ | **Windows / UNC + HTTP isolation** | `file:///C:/...` and `file://host/share/...` roots now parse correctly (was POSIX-only — Cursor/Windsurf on Windows). The HTTP transport is isolated from the process-global binding. Brand-new projects bind without creating `.codevira` in the wrong directory. |
155
+ | **Claude Desktop: memory follows the file** | The single global server resolves the active project per tool call from the call's `file_path`, so memory tracks whichever project you're working in. |
156
+ | **Honest `search_decisions` docs** | The tool description claimed "hybrid BM25 + semantic"; the implementation is pure FTS5 keyword/BM25. Corrected so calling agents aren't misled into expecting semantic recall. |
157
+ | **`codevira projects` + `doctor`** | `projects` gains a staleness column (`today` / `5d ago` / `stale 45d`), an ephemeral-path guard, and `projects archive <name>`. `doctor` gains a `project_binding` check showing how the project resolved. |
158
+ | **Engine false-positive fixed** | A purely-additive full-file `Write` is no longer hard-blocked by `decision_lock` / `blast_radius` (the `--- before / --- after` diff envelope is now synthesized for `Write` too). A `Write` that removes or changes existing lines still blocks. |
161
159
 
162
- Full v3.1.1 release notes: [CHANGELOG.md](CHANGELOG.md#311--2026-05-30--hardening-viewer-overhaul-g3-sync-observe-git).
160
+ Since the v3.0.0 lean reset: **3.1** added five memory subsystems
161
+ (working memory, skills, spatial, consensus, reflections), **3.3** added
162
+ LLM-distilled preferences. Full history is in the
163
+ [CHANGELOG](CHANGELOG.md); what's coming next is in the
164
+ [Roadmap](ROADMAP.md).
165
+
166
+ Full v3.4.0 release notes: [CHANGELOG.md](CHANGELOG.md#340--2026-06-15).
163
167
 
164
168
  ---
165
169
 
@@ -178,7 +182,7 @@ Full v3.1.1 release notes: [CHANGELOG.md](CHANGELOG.md#311--2026-05-30--hardenin
178
182
  |---|---|
179
183
  | **Decision storage** | Moved into `<repo>/.codevira/decisions.jsonl` (git-tracked, one decision per line). v2.x stored decisions in `~/.codevira/projects/<key>/graph/graph.db` (a SQLite blob nobody could read). |
180
184
  | **AGENTS.md is the nudge file** | Per-IDE nudges (CLAUDE.md / GEMINI.md / .windsurfrules / .cursor/rules/codevira.mdc / .github/copilot-instructions.md) all deleted. Every modern AI tool reads AGENTS.md natively. Slim 5 KB cap; auto-regenerated from decisions; user content outside the `<!-- codevira:begin -->...<!-- codevira:end -->` markers preserved byte-for-byte. |
181
- | **MCP tool surface** | 46 → 24 tools (-48%; 23 surfaced to AI clients, 1 admin-only). The audit found 22 tools that nobody called in real usage (preferences, learned_rules, changesets, project_maturity, list_nodes / add_node / update_node / export_graph, etc.). All deleted. |
185
+ | **MCP tool surface** | 46 → 24 tools (-48%; 23 surfaced to AI clients, 1 admin-only). The audit found 22 tools that nobody called in real usage (preferences, learned_rules, changesets, project_maturity, list_nodes / add_node / update_node / export_graph, etc.). All deleted. (v3.1.0 later added 24 memory-subsystem tools, and v3.3.0 brought preferences back redesigned — `distill_preferences` / `search_preferences`, LLM-distilled from real prompts instead of the unused v2.x CRUD.) |
182
186
  | **CLI surface** | 23 → 15 commands (-35%). Deleted: `heal` (use `reset`), `budget`, `agents`, `hooks`, `register`, `configure`, `report` (folded into `doctor`), `calibrate`, `insights`. |
183
187
  | **IDE detection hardened** | No more false-positives from stale `~/.cursor/` dirs. Each IDE needs a STRONG signal (binary on PATH, or verified config file). Pass `--ide X --force` to override when the detector misses an install. |
184
188
  | **`codevira uninstall`** | New command. Reverses every system write made by `init`/`setup`: drops the MCP entry from `~/.claude.json`, deletes `~/.claude/hooks/codevira-*.sh`, strips codevira-tagged registrations from `~/.claude/settings.json`, removes per-project `.codevira/` + `.codevira-cache/`, strips the codevira block from AGENTS.md. Optional `--keep-data`. |
@@ -279,7 +283,7 @@ summary: 13 pass · 0 warn · 0 fail
279
283
 
280
284
  ### Daily-use commands
281
285
 
282
- The v3.0.0 CLI surface is 15 commands:
286
+ The CLI surface is 21 commands (the daily-use ones below):
283
287
 
284
288
  | Command | What it does |
285
289
  |---|---|
@@ -287,14 +291,15 @@ The v3.0.0 CLI surface is 15 commands:
287
291
  | `codevira setup` | Detect installed AI tools + write MCP configs + Claude Code hooks |
288
292
  | `codevira doctor` | Health check (read-only; ✓/⚠/✗ + fix commands) |
289
293
  | `codevira status` | Show index health + project state |
290
- | `codevira projects` | List every project codevira tracks on this machine |
294
+ | `codevira projects` | List tracked projects with staleness (`today` / `5d ago` / `stale 45d`); `projects archive <name>` drops one from the registry |
291
295
  | `codevira index` | Build / refresh the code graph cache |
292
296
  | `codevira sync` | Regenerate AGENTS.md + manifest + digest from `decisions.jsonl` |
293
297
  | `codevira observe-git` | Classify past decisions as kept/modified/reverted from git history |
294
298
  | `codevira replay` | Browse the decisions timeline (terminal / markdown / HTML) |
295
299
  | `codevira clean` | Remove orphaned project data |
296
300
  | `codevira reset` | Destructive cleanup (auto-exports decisions first) |
297
- | `codevira export` | Standalone decision backup (JSON / SQL) |
301
+ | `codevira export` | Standalone decision backup (JSON / SQL); `export setup` bundles project memory + global learning for machine transfer |
302
+ | `codevira import` | Restore a `codevira export setup` archive on a new machine (merges global learning) |
298
303
  | `codevira graph` | Render an interactive, self-contained HTML viewer of decision memory (offline, queryable) |
299
304
  | `codevira uninstall` | Reverse every system write codevira made (see ["Uninstall"](#uninstall)) |
300
305
  | `codevira serve` | Start MCP HTTP server (single-project; stdio is the daily mode) |
@@ -401,12 +406,16 @@ servers you aren't actively using.
401
406
 
402
407
  ## MCP Tools
403
408
 
404
- **23 tools** surfaced to AI clients via `tools/list` (token-optimized,
405
- summary-first). One additional admin tool (`refresh_graph`) is
406
- registered but hidden from `tools/list` because it runs automatically
407
- in the background — humans invoke it via `codevira sync`.
408
- v3.0.0 cut 21 v2.x tools that produced noise or had no real users —
409
- see [CHANGELOG.md](CHANGELOG.md) for the full kill list.
409
+ **49 tools** surfaced to AI clients via `tools/list` (token-optimized,
410
+ summary-first): the core decision/roadmap/graph surface plus the
411
+ v3.1.0 memory subsystems (working memory, skills, spatial, consensus,
412
+ reflections) and the v3.3.0 preference tools. One additional admin
413
+ tool (`refresh_graph`) is registered but hidden from `tools/list`
414
+ because it runs automatically in the background — humans invoke it via
415
+ `codevira sync`. Set `CODEVIRA_TOOL_PROFILE=lean` to advertise only
416
+ the daily-driver subset. v3.0.0 cut 21 v2.x tools that produced noise
417
+ or had no real users — see [CHANGELOG.md](CHANGELOG.md) for the full
418
+ kill list.
410
419
 
411
420
  ### Reads — the memory surface
412
421
 
@@ -417,7 +426,6 @@ see [CHANGELOG.md](CHANGELOG.md) for the full kill list.
417
426
  | `list_decisions` | Paginate / filter: `since_date`, `file_pattern`, `protected_only`, `tags`, `include_superseded`. |
418
427
  | `list_tags` | Enumerate all tags with decision counts. |
419
428
  | `get_history(file_path)` | Recent decisions touching a file. |
420
- | `get_decision_confidence(file_path?, pattern?)` | Outcome-based reliability score for a file/area. |
421
429
  | `check_conflict(decision_text)` | Surface duplicate / contradictory decisions BEFORE you write. |
422
430
 
423
431
  ### Writes — capturing decisions
@@ -426,6 +434,8 @@ see [CHANGELOG.md](CHANGELOG.md) for the full kill list.
426
434
  |---|---|
427
435
  | `record_decision` | Capture an architectural decision. Optional `do_not_revert=true` triggers hard enforcement at the Claude Code PreToolUse hook. Supports `tags`, `force`, `session_id`. |
428
436
  | `supersede_decision(old_id, new_decision, reason)` | Retire an old decision and link to its replacement. Audit trail preserved. |
437
+ | `reaffirm_decision(decision_id)` | Re-confirm a soft-expired `do_not_revert` lock is still wanted. |
438
+ | `set_decision_flag(decision_id, ...)` | Toggle `do_not_revert` / tags on an existing decision. |
429
439
  | `write_session_log` | Structured session record. |
430
440
 
431
441
  ### Roadmap
@@ -453,6 +463,23 @@ see [CHANGELOG.md](CHANGELOG.md) for the full kill list.
453
463
  | `get_code(file_path, symbol)` | Full source of one function or class. |
454
464
  | `get_playbook(task_type)` | Curated rules for: `add_tool`, `add_service`, `add_schema`, `debug_pipeline`, `commit`, `write_test`. |
455
465
 
466
+ ### Memory subsystems (v3.1.0)
467
+
468
+ | Subsystem | Tools | What it covers |
469
+ |---|---|---|
470
+ | Working memory | `working_add`, `working_get`, `working_promote`, `get_working_context` | Intra-session scratchpad (decay-scored, capacity-bounded). |
471
+ | Skill library | `record_skill`, `get_skill`, `apply_skill_outcome`, `list_skills`, `supersede_skill`, `promote_skill_to_playbook` | Reusable procedures with composite-ranked retrieval and git-driven reinforcement. |
472
+ | Spatial | `spatial_nearby`, `spatial_heat`, `spatial_neighborhood`, `spatial_affordances` | Code-as-space: activity heatmap, neighborhoods, what task types apply where. |
473
+ | Consensus | `consensus_check`, `consensus_status`, `consensus_propose_supersession`, `consensus_resolve`, `origin_of` | Cross-IDE conflict detection + provenance. |
474
+ | Reflections | `reflect`, `get_reflections`, `list_reflections` | LLM-generated abstractions over recent decisions + sessions (MCP sampling). |
475
+
476
+ ### Preferences (v3.3.0)
477
+
478
+ | Tool | Description |
479
+ |---|---|
480
+ | `distill_preferences` | Session-end LLM distillation of captured prompts into durable, user-scoped preferences (`~/.codevira/global.db`). |
481
+ | `search_preferences(category?)` | Retrieve learned preferences — communication style, workflow habits — across all projects. |
482
+
456
483
  ### MCP Workflow Prompts
457
484
 
458
485
  | Prompt | Description |
@@ -462,7 +489,7 @@ see [CHANGELOG.md](CHANGELOG.md) for the full kill list.
462
489
  > v3.0.0 removed 4 v2.x prompts (`review_changes`, `debug_issue`,
463
490
  > `pre_commit_check`, `architecture_overview`) because they referenced
464
491
  > deleted MCP tools. The slim surface means the AI can synthesize
465
- > these workflows from the 25 kept tools directly.
492
+ > these workflows from the kept tools directly.
466
493
 
467
494
  ---
468
495
 
@@ -491,7 +518,7 @@ The opt-in extra `pip install 'codevira[all-languages]'` re-adds the
491
518
  | `do_not_revert` enforcement at Claude Code PreToolUse | Multi-language code graph for languages outside Python / TS / JS / Go / Rust — use the `[all-languages]` extra |
492
519
  | FTS5 decision search with BM25 ranking | Real-time multi-machine sync — by design, codevira is local-first; for team sharing, commit `.codevira/` to git |
493
520
  | Per-project + cross-machine project inventory (`global.db`) | Web UI for browsing decisions — use the `codevira://decisions` MCP resource in Claude Desktop, or `codevira replay --format html` for a static file |
494
- | All 24 MCP tools (23 AI-facing + 1 admin) + 15 CLI commands + 6 engine policies | The HTTP server (`codevira serve`) is single-project per launch — for daily use, stick with stdio via `codevira setup` |
521
+ | All 49 surfaced MCP tools + 21 CLI commands + 8 engine policies | The HTTP server (`codevira serve`) is single-project per launch — for daily use, stick with stdio via `codevira setup` |
495
522
  | Concurrent-safe storage layer (Posix `fcntl.flock` + Windows sentinel fallback). Proven against 50-thread + 20-subprocess stress + 29-attack chaos harness | The cross-process file-lock contract has been exercised on macOS + Linux CI; the Windows sentinel-file fallback is verified via unit-test simulation but hasn't been load-tested on real Windows yet |
496
523
  | Code graph data store is functional but the v3.0.0 spec target (`<project>/.codevira-cache/graph.sqlite`) and the actual location (`<data_dir>/graph/graph.db`) drifted during the surface-cut audit. Tracked for v3.1 reconciliation | n/a (functional today; spec-truthfulness gap only) |
497
524
 
@@ -527,8 +554,24 @@ Common questions about setup, usage, architecture, and troubleshooting
527
554
 
528
555
  ## Roadmap
529
556
 
530
- See what's built, what's next, and the long-term vision — see
531
- [ROADMAP.md](ROADMAP.md).
557
+ **Current release:** **v3.4.0** — one user-scope server now binds the
558
+ right project per call (no more cross-project memory contamination),
559
+ Windows/UNC workspace roots, and a `codevira doctor` binding check.
560
+
561
+ **Next up** (directional, not dated):
562
+
563
+ - **Summary-first payloads** + **session-transcript ingest** — leaner
564
+ responses, and memory that learns from how sessions actually went
565
+ - **Eval harness** — measurable recall + enforcement quality in CI
566
+ - **Managed memory files beyond `AGENTS.md`** — `CLAUDE.md`,
567
+ `.cursor/rules`, `GEMINI.md`
568
+ - **Optional `[semantic]` recall** — off by default; the base install
569
+ stays pure-keyword, no vectors, no model download
570
+ - **TypeScript `get_signature`**, finer-grained decision locking,
571
+ learned hot-path tuning
572
+
573
+ What's built, the full upcoming list, and the long-term vision —
574
+ **[ROADMAP.md](ROADMAP.md)**.
532
575
 
533
576
  ## Star History
534
577