codevira 3.4.0__tar.gz → 3.6.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 (316) hide show
  1. {codevira-3.4.0 → codevira-3.6.0}/CHANGELOG.md +136 -0
  2. {codevira-3.4.0/codevira.egg-info → codevira-3.6.0}/PKG-INFO +54 -76
  3. {codevira-3.4.0 → codevira-3.6.0}/README.md +52 -74
  4. {codevira-3.4.0 → codevira-3.6.0/codevira.egg-info}/PKG-INFO +54 -76
  5. {codevira-3.4.0 → codevira-3.6.0}/codevira.egg-info/SOURCES.txt +29 -15
  6. {codevira-3.4.0 → codevira-3.6.0}/codevira.egg-info/requires.txt +1 -1
  7. {codevira-3.4.0 → codevira-3.6.0}/docs/architecture.md +8 -4
  8. {codevira-3.4.0 → codevira-3.6.0}/docs/heroes/02-anti-regression.md +1 -1
  9. {codevira-3.4.0 → codevira-3.6.0}/docs/roadmap.md +0 -1
  10. codevira-3.6.0/docs/troubleshooting/antigravity.md +21 -0
  11. {codevira-3.4.0 → codevira-3.6.0}/indexer/graph_generator.py +23 -1
  12. {codevira-3.4.0 → codevira-3.6.0}/indexer/index_codebase.py +56 -12
  13. codevira-3.6.0/indexer/outcome_classifier.py +92 -0
  14. {codevira-3.4.0 → codevira-3.6.0}/indexer/outcome_tracker.py +13 -48
  15. {codevira-3.4.0 → codevira-3.6.0}/indexer/sqlite_graph.py +44 -0
  16. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/__init__.py +1 -1
  17. codevira-3.6.0/mcp_server/_ghost_check.py +99 -0
  18. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/cli.py +126 -0
  19. codevira-3.6.0/mcp_server/cli_eval.py +90 -0
  20. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/cli_reflect.py +11 -1
  21. codevira-3.6.0/mcp_server/cli_search.py +132 -0
  22. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/crash_logger.py +62 -1
  23. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/doctor.py +26 -18
  24. codevira-3.6.0/mcp_server/engine/policies/_region_detect.py +177 -0
  25. codevira-3.6.0/mcp_server/engine/policies/decision_lock.py +646 -0
  26. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/policies/relevance_inject.py +47 -6
  27. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/signals.py +3 -0
  28. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/wiring/claude_code_hooks.py +9 -0
  29. codevira-3.6.0/mcp_server/eval/__init__.py +13 -0
  30. codevira-3.6.0/mcp_server/eval/composite.py +128 -0
  31. codevira-3.6.0/mcp_server/eval/judge.py +134 -0
  32. codevira-3.6.0/mcp_server/eval/relevance.py +215 -0
  33. codevira-3.6.0/mcp_server/eval/report.py +114 -0
  34. codevira-3.6.0/mcp_server/eval/weight_tuner.py +109 -0
  35. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/http_server.py +1 -1
  36. codevira-3.6.0/mcp_server/ingest/__init__.py +30 -0
  37. codevira-3.6.0/mcp_server/ingest/claude_code.py +163 -0
  38. codevira-3.6.0/mcp_server/ingest/codex.py +160 -0
  39. codevira-3.6.0/mcp_server/ingest/gemini.py +148 -0
  40. codevira-3.6.0/mcp_server/ingest/heuristics.py +117 -0
  41. codevira-3.6.0/mcp_server/ingest/models.py +79 -0
  42. codevira-3.6.0/mcp_server/ingest/scan.py +95 -0
  43. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/server.py +148 -6
  44. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/agents_md_generator.py +141 -23
  45. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/decisions_store.py +156 -5
  46. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/fts5_index.py +26 -3
  47. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/jsonl_store.py +42 -43
  48. codevira-3.6.0/mcp_server/storage/learned_weights.py +86 -0
  49. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/outcomes_writer.py +8 -23
  50. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/reflections_store.py +46 -1
  51. codevira-3.6.0/mcp_server/storage/synonyms.py +76 -0
  52. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/tools/code_reader.py +38 -4
  53. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/tools/learning.py +15 -1
  54. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/tools/search.py +129 -14
  55. {codevira-3.4.0 → codevira-3.6.0}/pyproject.toml +5 -4
  56. {codevira-3.4.0 → codevira-3.6.0}/tests/test_cli_induce.py +5 -9
  57. codevira-3.6.0/tests/test_cli_search.py +117 -0
  58. {codevira-3.4.0 → codevira-3.6.0}/tests/test_cli_version.py +11 -3
  59. {codevira-3.4.0 → codevira-3.6.0}/tests/test_crash_logger.py +82 -1
  60. codevira-3.6.0/tests/test_cross_project_search.py +225 -0
  61. {codevira-3.4.0 → codevira-3.6.0}/tests/test_doctor.py +21 -3
  62. codevira-3.6.0/tests/test_e1_summary_first.py +230 -0
  63. codevira-3.6.0/tests/test_eval_e3.py +196 -0
  64. codevira-3.6.0/tests/test_ghost_check.py +198 -0
  65. {codevira-3.4.0 → codevira-3.6.0}/tests/test_graph_generator.py +66 -0
  66. {codevira-3.4.0 → codevira-3.6.0}/tests/test_http_server.py +1 -0
  67. {codevira-3.4.0 → codevira-3.6.0}/tests/test_index_codebase.py +28 -0
  68. codevira-3.6.0/tests/test_ingest_e2.py +350 -0
  69. codevira-3.6.0/tests/test_managed_files_e4.py +134 -0
  70. codevira-3.6.0/tests/test_outcome_reconcile_p17.py +106 -0
  71. {codevira-3.4.0 → codevira-3.6.0}/tests/test_outcome_tracker.py +129 -41
  72. {codevira-3.4.0 → codevira-3.6.0}/tests/test_server.py +60 -0
  73. {codevira-3.4.0 → codevira-3.6.0}/tests/test_sqlite_graph.py +46 -0
  74. codevira-3.6.0/tests/test_synonym_widening_e5.py +72 -0
  75. {codevira-3.4.0 → codevira-3.6.0}/tests/test_tools_code_reader.py +101 -0
  76. codevira-3.6.0/tests/test_weight_tuning_p13.py +195 -0
  77. codevira-3.4.0/agents/builder.md +0 -84
  78. codevira-3.4.0/agents/developer.md +0 -111
  79. codevira-3.4.0/agents/documenter.md +0 -138
  80. codevira-3.4.0/agents/orchestrator.md +0 -96
  81. codevira-3.4.0/agents/planner.md +0 -106
  82. codevira-3.4.0/agents/reviewer.md +0 -82
  83. codevira-3.4.0/agents/tester.md +0 -83
  84. codevira-3.4.0/docs/troubleshooting/antigravity.md +0 -131
  85. codevira-3.4.0/mcp_server/_ghost_check.py +0 -88
  86. codevira-3.4.0/mcp_server/data/agents/builder.md +0 -84
  87. codevira-3.4.0/mcp_server/data/agents/developer.md +0 -111
  88. codevira-3.4.0/mcp_server/data/agents/documenter.md +0 -138
  89. codevira-3.4.0/mcp_server/data/agents/orchestrator.md +0 -96
  90. codevira-3.4.0/mcp_server/data/agents/planner.md +0 -106
  91. codevira-3.4.0/mcp_server/data/agents/reviewer.md +0 -82
  92. codevira-3.4.0/mcp_server/data/agents/tester.md +0 -83
  93. codevira-3.4.0/mcp_server/engine/policies/decision_lock.py +0 -311
  94. codevira-3.4.0/tests/test_ghost_check.py +0 -116
  95. {codevira-3.4.0 → codevira-3.6.0}/LICENSE +0 -0
  96. {codevira-3.4.0 → codevira-3.6.0}/MANIFEST.in +0 -0
  97. {codevira-3.4.0 → codevira-3.6.0}/agents/qa/01-code-review.md +0 -0
  98. {codevira-3.4.0 → codevira-3.6.0}/agents/qa/02-adversarial-fix-review.md +0 -0
  99. {codevira-3.4.0 → codevira-3.6.0}/agents/qa/03-cross-module-impact.md +0 -0
  100. {codevira-3.4.0 → codevira-3.6.0}/agents/qa/06-doc-drift.md +0 -0
  101. {codevira-3.4.0 → codevira-3.6.0}/agents/qa/07-security-audit.md +0 -0
  102. {codevira-3.4.0 → codevira-3.6.0}/agents/qa/12-llm-redteam.md +0 -0
  103. {codevira-3.4.0 → codevira-3.6.0}/agents/qa/13-multi-ide-schema.md +0 -0
  104. {codevira-3.4.0 → codevira-3.6.0}/agents/qa/22-competitor-benchmark.md +0 -0
  105. {codevira-3.4.0 → codevira-3.6.0}/agents/qa/README.md +0 -0
  106. {codevira-3.4.0 → codevira-3.6.0}/agents/qa/tier2-scripts.md +0 -0
  107. {codevira-3.4.0 → codevira-3.6.0}/agents/qa/tier3-manual.md +0 -0
  108. {codevira-3.4.0 → codevira-3.6.0}/codevira.egg-info/dependency_links.txt +0 -0
  109. {codevira-3.4.0 → codevira-3.6.0}/codevira.egg-info/entry_points.txt +0 -0
  110. {codevira-3.4.0 → codevira-3.6.0}/codevira.egg-info/top_level.txt +0 -0
  111. {codevira-3.4.0 → codevira-3.6.0}/config.example.yaml +0 -0
  112. {codevira-3.4.0 → codevira-3.6.0}/docs/alpha-tester-invites.md +0 -0
  113. {codevira-3.4.0 → codevira-3.6.0}/docs/audit-2026-05-22.md +0 -0
  114. {codevira-3.4.0 → codevira-3.6.0}/docs/demo/README.md +0 -0
  115. {codevira-3.4.0 → codevira-3.6.0}/docs/foolproof-product-charter.md +0 -0
  116. {codevira-3.4.0 → codevira-3.6.0}/docs/heroes/00-engine.md +0 -0
  117. {codevira-3.4.0 → codevira-3.6.0}/docs/heroes/01-decision-lock.md +0 -0
  118. {codevira-3.4.0 → codevira-3.6.0}/docs/heroes/03-scope-contract.md +0 -0
  119. {codevira-3.4.0 → codevira-3.6.0}/docs/heroes/04-blast-radius.md +0 -0
  120. {codevira-3.4.0 → codevira-3.6.0}/docs/heroes/05-cross-session.md +0 -0
  121. {codevira-3.4.0 → codevira-3.6.0}/docs/heroes/06-token-budget.md +0 -0
  122. {codevira-3.4.0 → codevira-3.6.0}/docs/heroes/07-live-style.md +0 -0
  123. {codevira-3.4.0 → codevira-3.6.0}/docs/heroes/08-decision-replay.md +0 -0
  124. {codevira-3.4.0 → codevira-3.6.0}/docs/heroes/09-intent-inference.md +0 -0
  125. {codevira-3.4.0 → codevira-3.6.0}/docs/heroes/10-ai-promotion.md +0 -0
  126. {codevira-3.4.0 → codevira-3.6.0}/docs/heroes/README.md +0 -0
  127. {codevira-3.4.0 → codevira-3.6.0}/docs/heroes/pillar-1-setup.md +0 -0
  128. {codevira-3.4.0 → codevira-3.6.0}/docs/hn-launch-day.md +0 -0
  129. {codevira-3.4.0 → codevira-3.6.0}/docs/how-i-built-persistent-memory-for-ai-agents.md +0 -0
  130. {codevira-3.4.0 → codevira-3.6.0}/docs/internal/competitive-landscape.md +0 -0
  131. {codevira-3.4.0 → codevira-3.6.0}/docs/linkedin-article-ai-agent-memory.md +0 -0
  132. {codevira-3.4.0 → codevira-3.6.0}/docs/linkedin-post-ai-agent-memory.md +0 -0
  133. {codevira-3.4.0 → codevira-3.6.0}/docs/local-pypi-https.md +0 -0
  134. {codevira-3.4.0 → codevira-3.6.0}/docs/medium-your-ai-coding-agent-has-amnesia.md +0 -0
  135. {codevira-3.4.0 → codevira-3.6.0}/docs/morning-handoff-2026-05-22.md +0 -0
  136. {codevira-3.4.0 → codevira-3.6.0}/docs/plans/v2.1.2.md +0 -0
  137. {codevira-3.4.0 → codevira-3.6.0}/docs/plans/v2.1.3.md +0 -0
  138. {codevira-3.4.0 → codevira-3.6.0}/docs/plans/v2.2.0.md +0 -0
  139. {codevira-3.4.0 → codevira-3.6.0}/docs/plans/v3.0.0.md +0 -0
  140. {codevira-3.4.0 → codevira-3.6.0}/docs/qa-playbook.md +0 -0
  141. {codevira-3.4.0 → codevira-3.6.0}/docs/release-notes/v3.1.1.md +0 -0
  142. {codevira-3.4.0 → codevira-3.6.0}/docs/release-process.md +0 -0
  143. {codevira-3.4.0 → codevira-3.6.0}/docs/surface-cuts-2026-05-22.md +0 -0
  144. {codevira-3.4.0 → codevira-3.6.0}/docs/v2-completion-plan.md +0 -0
  145. {codevira-3.4.0 → codevira-3.6.0}/docs/v2-execution-log.md +0 -0
  146. {codevira-3.4.0 → codevira-3.6.0}/docs/v2-master-plan.md +0 -0
  147. {codevira-3.4.0 → codevira-3.6.0}/docs/vs-other-memory-tools.md +0 -0
  148. {codevira-3.4.0 → codevira-3.6.0}/graph/_schema.yaml +0 -0
  149. {codevira-3.4.0 → codevira-3.6.0}/indexer/__init__.py +0 -0
  150. {codevira-3.4.0 → codevira-3.6.0}/indexer/_dedupe_migration.py +0 -0
  151. {codevira-3.4.0 → codevira-3.6.0}/indexer/_fork_safety.py +0 -0
  152. {codevira-3.4.0 → codevira-3.6.0}/indexer/_sqlite_util.py +0 -0
  153. {codevira-3.4.0 → codevira-3.6.0}/indexer/chunker.py +0 -0
  154. {codevira-3.4.0 → codevira-3.6.0}/indexer/fix_history.py +0 -0
  155. {codevira-3.4.0 → codevira-3.6.0}/indexer/global_db.py +0 -0
  156. {codevira-3.4.0 → codevira-3.6.0}/indexer/treesitter_parser.py +0 -0
  157. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/__main__.py +0 -0
  158. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/_mcp_registry.py +0 -0
  159. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/_project_inventory.py +0 -0
  160. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/_prompts.py +0 -0
  161. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/_repair_init.py +0 -0
  162. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/_safe_crash.py +0 -0
  163. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/auto_init.py +0 -0
  164. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/cli_consensus.py +0 -0
  165. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/cli_export.py +0 -0
  166. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/cli_graph.py +0 -0
  167. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/cli_hooks_admin.py +0 -0
  168. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/cli_induce.py +0 -0
  169. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/cli_init.py +0 -0
  170. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/cli_projects.py +0 -0
  171. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/cli_replay.py +0 -0
  172. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/cli_sync.py +0 -0
  173. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/cli_transfer.py +0 -0
  174. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/cli_uninstall.py +0 -0
  175. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/cli_working.py +0 -0
  176. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/__init__.py +0 -0
  177. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/affordances.yaml +0 -0
  178. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/config.example.yaml +0 -0
  179. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/hooks/post_tool_use.sh +0 -0
  180. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/hooks/pre_tool_use.sh +0 -0
  181. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/hooks/session_start.sh +0 -0
  182. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/hooks/stop.sh +0 -0
  183. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/hooks/user_prompt_submit.sh +0 -0
  184. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/prompts/reflection_v1.md +0 -0
  185. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/rules/coding-standards-generic.md +0 -0
  186. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/rules/coding-standards-go.md +0 -0
  187. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/rules/coding-standards-typescript.md +0 -0
  188. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/rules/coding-standards.md +0 -0
  189. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/rules/engineering-excellence.md +0 -0
  190. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/rules/git-cicd-governance.md +0 -0
  191. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/rules/git_commits.md +0 -0
  192. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/rules/incremental-updates.md +0 -0
  193. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/rules/master_rule.md +0 -0
  194. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/rules/multi-language.md +0 -0
  195. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/rules/persistence.md +0 -0
  196. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/rules/resilience-observability.md +0 -0
  197. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/rules/smoke-testing.md +0 -0
  198. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/data/rules/testing-standards.md +0 -0
  199. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/decision_replay.py +0 -0
  200. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/detect.py +0 -0
  201. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/__init__.py +0 -0
  202. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/demo_policy.py +0 -0
  203. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/events.py +0 -0
  204. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/memory_fanout.py +0 -0
  205. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/policies/__init__.py +0 -0
  206. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/policies/_signature_detect.py +0 -0
  207. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/policies/anti_regression.py +0 -0
  208. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/policies/blast_radius.py +0 -0
  209. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/policies/post_edit_refresh.py +0 -0
  210. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/policies/prompt_capture.py +0 -0
  211. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/policies/session_log_enforcer.py +0 -0
  212. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/policies/token_budget.py +0 -0
  213. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/policy.py +0 -0
  214. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/runner.py +0 -0
  215. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/token_meter.py +0 -0
  216. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/wiring/__init__.py +0 -0
  217. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/wiring/_diff_envelope.py +0 -0
  218. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/engine/wiring/mcp_dispatch.py +0 -0
  219. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/gitignore.py +0 -0
  220. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/global_sync.py +0 -0
  221. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/graph/__init__.py +0 -0
  222. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/graph/template.html +0 -0
  223. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/ide_inject.py +0 -0
  224. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/launchd.py +0 -0
  225. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/log_retention.py +0 -0
  226. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/migrate.py +0 -0
  227. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/paths.py +0 -0
  228. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/project_binding.py +0 -0
  229. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/prompts.py +0 -0
  230. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/roadmap_drift.py +0 -0
  231. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/setup_wizard.py +0 -0
  232. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/__init__.py +0 -0
  233. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/activity_store.py +0 -0
  234. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/atomic.py +0 -0
  235. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/config.py +0 -0
  236. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/consensus_store.py +0 -0
  237. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/digest.py +0 -0
  238. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/manifest.py +0 -0
  239. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/origin.py +0 -0
  240. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/paths.py +0 -0
  241. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/sanitize.py +0 -0
  242. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/sessions_store.py +0 -0
  243. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/skills_store.py +0 -0
  244. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/token_estimator.py +0 -0
  245. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/storage/working_store.py +0 -0
  246. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/tools/__init__.py +0 -0
  247. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/tools/changesets.py +0 -0
  248. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/tools/check_conflict.py +0 -0
  249. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/tools/consensus.py +0 -0
  250. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/tools/graph.py +0 -0
  251. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/tools/playbook.py +0 -0
  252. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/tools/preferences.py +0 -0
  253. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/tools/reflections.py +0 -0
  254. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/tools/roadmap.py +0 -0
  255. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/tools/skills.py +0 -0
  256. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/tools/spatial.py +0 -0
  257. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/tools/working.py +0 -0
  258. {codevira-3.4.0 → codevira-3.6.0}/mcp_server/update_check.py +0 -0
  259. {codevira-3.4.0 → codevira-3.6.0}/rules/coding-standards.md +0 -0
  260. {codevira-3.4.0 → codevira-3.6.0}/rules/engineering-excellence.md +0 -0
  261. {codevira-3.4.0 → codevira-3.6.0}/rules/git-cicd-governance.md +0 -0
  262. {codevira-3.4.0 → codevira-3.6.0}/rules/git_commits.md +0 -0
  263. {codevira-3.4.0 → codevira-3.6.0}/rules/incremental-updates.md +0 -0
  264. {codevira-3.4.0 → codevira-3.6.0}/rules/master_rule.md +0 -0
  265. {codevira-3.4.0 → codevira-3.6.0}/rules/persistence.md +0 -0
  266. {codevira-3.4.0 → codevira-3.6.0}/rules/resilience-observability.md +0 -0
  267. {codevira-3.4.0 → codevira-3.6.0}/rules/smoke-testing.md +0 -0
  268. {codevira-3.4.0 → codevira-3.6.0}/rules/testing-standards.md +0 -0
  269. {codevira-3.4.0 → codevira-3.6.0}/setup.cfg +0 -0
  270. {codevira-3.4.0 → codevira-3.6.0}/tests/test__prompts.py +0 -0
  271. {codevira-3.4.0 → codevira-3.6.0}/tests/test_auto_init.py +0 -0
  272. {codevira-3.4.0 → codevira-3.6.0}/tests/test_binding_e2e.py +0 -0
  273. {codevira-3.4.0 → codevira-3.6.0}/tests/test_call_edge_fk_safety.py +0 -0
  274. {codevira-3.4.0 → codevira-3.6.0}/tests/test_check_conflict.py +0 -0
  275. {codevira-3.4.0 → codevira-3.6.0}/tests/test_chunker.py +0 -0
  276. {codevira-3.4.0 → codevira-3.6.0}/tests/test_cli_consensus.py +0 -0
  277. {codevira-3.4.0 → codevira-3.6.0}/tests/test_cli_export.py +0 -0
  278. {codevira-3.4.0 → codevira-3.6.0}/tests/test_cli_graph.py +0 -0
  279. {codevira-3.4.0 → codevira-3.6.0}/tests/test_cli_projects.py +0 -0
  280. {codevira-3.4.0 → codevira-3.6.0}/tests/test_cli_replay.py +0 -0
  281. {codevira-3.4.0 → codevira-3.6.0}/tests/test_cli_transfer.py +0 -0
  282. {codevira-3.4.0 → codevira-3.6.0}/tests/test_cli_uninstall.py +0 -0
  283. {codevira-3.4.0 → codevira-3.6.0}/tests/test_cli_working.py +0 -0
  284. {codevira-3.4.0 → codevira-3.6.0}/tests/test_consensus_handshake.py +0 -0
  285. {codevira-3.4.0 → codevira-3.6.0}/tests/test_dedupe_migration.py +0 -0
  286. {codevira-3.4.0 → codevira-3.6.0}/tests/test_detect.py +0 -0
  287. {codevira-3.4.0 → codevira-3.6.0}/tests/test_fk_safety_extended.py +0 -0
  288. {codevira-3.4.0 → codevira-3.6.0}/tests/test_fork_safety.py +0 -0
  289. {codevira-3.4.0 → codevira-3.6.0}/tests/test_gitignore.py +0 -0
  290. {codevira-3.4.0 → codevira-3.6.0}/tests/test_global_db.py +0 -0
  291. {codevira-3.4.0 → codevira-3.6.0}/tests/test_global_sync.py +0 -0
  292. {codevira-3.4.0 → codevira-3.6.0}/tests/test_hook_resilience.py +0 -0
  293. {codevira-3.4.0 → codevira-3.6.0}/tests/test_ide_inject.py +0 -0
  294. {codevira-3.4.0 → codevira-3.6.0}/tests/test_launchd.py +0 -0
  295. {codevira-3.4.0 → codevira-3.6.0}/tests/test_log_retention.py +0 -0
  296. {codevira-3.4.0 → codevira-3.6.0}/tests/test_migrate.py +0 -0
  297. {codevira-3.4.0 → codevira-3.6.0}/tests/test_paths.py +0 -0
  298. {codevira-3.4.0 → codevira-3.6.0}/tests/test_preferences_tools.py +0 -0
  299. {codevira-3.4.0 → codevira-3.6.0}/tests/test_project_binding.py +0 -0
  300. {codevira-3.4.0 → codevira-3.6.0}/tests/test_prompts.py +0 -0
  301. {codevira-3.4.0 → codevira-3.6.0}/tests/test_record_decision.py +0 -0
  302. {codevira-3.4.0 → codevira-3.6.0}/tests/test_reflections.py +0 -0
  303. {codevira-3.4.0 → codevira-3.6.0}/tests/test_repair_init.py +0 -0
  304. {codevira-3.4.0 → codevira-3.6.0}/tests/test_roadmap_drift.py +0 -0
  305. {codevira-3.4.0 → codevira-3.6.0}/tests/test_setup_wizard.py +0 -0
  306. {codevira-3.4.0 → codevira-3.6.0}/tests/test_sqlite_util.py +0 -0
  307. {codevira-3.4.0 → codevira-3.6.0}/tests/test_tools_graph.py +0 -0
  308. {codevira-3.4.0 → codevira-3.6.0}/tests/test_tools_learning.py +0 -0
  309. {codevira-3.4.0 → codevira-3.6.0}/tests/test_tools_playbook.py +0 -0
  310. {codevira-3.4.0 → codevira-3.6.0}/tests/test_tools_roadmap.py +0 -0
  311. {codevira-3.4.0 → codevira-3.6.0}/tests/test_tools_skills.py +0 -0
  312. {codevira-3.4.0 → codevira-3.6.0}/tests/test_tools_spatial.py +0 -0
  313. {codevira-3.4.0 → codevira-3.6.0}/tests/test_tools_working.py +0 -0
  314. {codevira-3.4.0 → codevira-3.6.0}/tests/test_treesitter_parser.py +0 -0
  315. {codevira-3.4.0 → codevira-3.6.0}/tests/test_update_check.py +0 -0
  316. {codevira-3.4.0 → codevira-3.6.0}/tests/test_watcher_circuit.py +0 -0
@@ -7,6 +7,142 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
7
7
 
8
8
  ---
9
9
 
10
+ ## [3.6.0] — 2026-06-27
11
+
12
+ ### Added
13
+ - **Symbol / region-level decision locking.** A `do_not_revert` decision can now
14
+ be scoped to a single function or class via a new optional `symbol` argument
15
+ on `record_decision` (e.g. `record_decision(decision=…, file_path="auth.py",
16
+ symbol="login")`). The content-aware lock then blocks only edits that land
17
+ *inside* that symbol; an edit elsewhere in the same file downgrades to a warn
18
+ (it can't revert the protected region). At PRE_TOOL_USE the file still holds
19
+ the edit's `before` text, so the enclosing symbol is resolved by AST
20
+ (Python) / tree-sitter (TS/JS/Go/Rust) without needing the graph indexed.
21
+ Decisions with no `symbol` stay file-scoped — existing behavior is unchanged,
22
+ and the file is only parsed when a locked decision is actually symbol-scoped
23
+ (zero added cost for the common case). Restore strict file-level blocking
24
+ with `CODEVIRA_DECISION_LOCK_CONTENT_AWARE=0`.
25
+ - **`codevira search` CLI.** Decision search is no longer MCP-only — search
26
+ from the terminal: `codevira search "retry policy"` (rich table),
27
+ `--all-projects` to search every registered repo, `--json` for a
28
+ machine-readable payload, plus `--limit` / `--full`.
29
+ - **Cross-project decision search.** `search_decisions(query, all_projects=true)`
30
+ now searches *every* registered project's decision store — not just the
31
+ current one — each result tagged with the `project` + `project_path` it came
32
+ from. Recall how you solved something in another repo without leaving this
33
+ one. Reuses the same per-project FTS5 search (identical per-project ranking +
34
+ superseded filtering); the union is **interleaved by per-project rank** (raw
35
+ BM25 scores aren't comparable across repos, so each project's best gets fair
36
+ representation). Skips moved/ghost projects and invalid roots, dedups by
37
+ resolved path, caps the fan-out, and one project erroring never sinks the
38
+ search. Default `all_projects=false` keeps the current-project behavior
39
+ byte-for-byte unchanged.
40
+ - **`codevira status` shows activity counts.** Beyond Graph Nodes (a flat file
41
+ count), the panel now reports Symbols, Edges, and Decisions — counts that
42
+ move as you edit code and record decisions, so status reflects progress
43
+ instead of a number that barely changes.
44
+
45
+ ### Fixed
46
+ - **Anti-Regression fix-history is now populated.** `scan_git_log()` is wired
47
+ into the startup daemon thread, so the fix-history DB the hero reads is
48
+ actually built (it previously had no production caller). Gated by
49
+ `CODEVIRA_NO_GIT_SCAN`; runs only at startup.
50
+ - **Native edits reach working memory.** `memory_fanout` now also fires from the
51
+ Claude Code hook path, so native `Edit`/`Write`/`Bash` populate working
52
+ memory — not just codevira's own MCP tool calls.
53
+ - **Decision-ID minting is collision-safe.** Next-ID generation now scans the
54
+ full store for `max(id) + 1` instead of trusting the last/tail record, so a
55
+ rewrite that leaves a lower id at the tail (junk cleanup, compact,
56
+ cross-project repair) can no longer re-issue an existing id and clobber a
57
+ record (including `do_not_revert` decisions).
58
+ - **`codevira index --full` now truly rebuilds the graph.** The graph-only
59
+ index path (the only path since v2.2.0) called the incremental
60
+ `generate_graph_sqlite`, whose file-node loop is add-if-absent — so a
61
+ re-index of an already-built project added 0 new nodes and printed a
62
+ confusing `Graph built: 0 nodes, N edges`. `--full` now clears the graph
63
+ first (new FK-cascading `SQLiteGraph.clear()`) and the result reports the
64
+ real `nodes_total`, so the count is honest and node metadata is refreshed.
65
+ - **Dropped the misleading "Semantic search unavailable — reinstall codevira"
66
+ notice.** Semantic code search (chromadb / torch) was removed in v2.2.0 and
67
+ is on hold (D0000PV / D0000XY); `_check_search_deps()` is hardcoded `False`,
68
+ so that notice printed on *every* index and pointed users at an upgrade that
69
+ could never restore it. Graph-only is the normal, complete result.
70
+ - **Graph node count now tracks the filesystem.** Indexing was add-if-absent
71
+ and never pruned nodes for deleted files, so the graph — and `codevira
72
+ status`'s node count — only ever grew; it never shrank when you removed a
73
+ file. A new FK-cascading `SQLiteGraph.remove_node` plus a prune pass in
74
+ `generate_graph_sqlite` now drop nodes whose source file is gone, so the
75
+ count reflects reality on every index.
76
+
77
+ ## [3.5.0] — 2026-06-19
78
+
79
+ ### Added
80
+
81
+ - **Summary-first decision payloads + `expand` (E1).** `search_decisions` and
82
+ `list_decisions` now default to compact rows (one-line decision + key
83
+ fields), dropping the heavy per-row snippet/origin. A new `expand(ids=[…])`
84
+ tool fetches full records on demand. `full=true` still works;
85
+ `CODEVIRA_DECISION_DETAIL=full` restores the pre-E1 verbose default. (D0000ZQ)
86
+ - **Read-only session-transcript ingest (E2).** `codevira reflect
87
+ --from-sessions` scans local Claude Code / Codex / Gemini logs, heuristically
88
+ flags tool failures + user corrections (no LLM), and folds a sanitized,
89
+ capped digest into the existing reflect pipeline. Candidates only — never
90
+ auto-creates decisions. (D00010W)
91
+ - **Read-side relevance eval (E3).** `codevira eval` measures whether the read
92
+ surface surfaces the right memory (recall@k / MRR / precision) on cases
93
+ self-derived from real `.codevira/` memory — no hand-maintained fixtures.
94
+ Deterministic lexical scoring by default; LLM-as-judge offline. Non-gating.
95
+ (D00010Y)
96
+ - **Learned hot-path weight tuning (Phase 13).** `codevira tune-weights` learns
97
+ `relevance_inject`'s ranking weights from real memory using the E3 eval as
98
+ its objective, persisting only a meaningful win. Opt-in at the hot path via
99
+ `CODEVIRA_LEARNED_WEIGHTS` (default off, fallback to shipped defaults),
100
+ cached per process for prompt-cache stability. (D00010Z)
101
+ - **Multiple managed memory files (E4).** The marker-block writer can now
102
+ maintain `CLAUDE.md`, `GEMINI.md`, and `.cursor/rules/codevira.mdc` in
103
+ addition to `AGENTS.md`, configured via `.codevira/config.yaml:
104
+ managed_files`. Default stays `AGENTS.md`-only (the rest are opt-in). Shared
105
+ markdown files preserve everything outside the markers byte-for-byte; the
106
+ Cursor `.mdc` is a dedicated codevira-owned file with valid frontmatter.
107
+ Re-runs are idempotent, and the session-transcript scanner skips the injected
108
+ block so it can't re-ingest its own output. (D000110)
109
+ - **Opt-in synonym recall widening (E5).** A no-dependency, curated dev-domain
110
+ synonym map widens FTS5 queries so a search in one vocabulary recalls a
111
+ decision recorded in a synonymous one (e.g. `database` → `postgres`). Enable
112
+ with `CODEVIRA_SYNONYM_WIDENING=1`; default off (the E3 eval showed it trades
113
+ a little ranking precision for recall, so it's opt-in). The `[semantic]`
114
+ embedding extra remains deferred (on-device model on hold). (D000113)
115
+
116
+ ### Changed
117
+
118
+ - **Content-aware decision lock (Phase 18).** The lock no longer hard-blocks
119
+ every edit to a file that holds a `do_not_revert` decision. A non-additive
120
+ edit only blocks when its diff shares salient tokens with a locked decision's
121
+ subject; a provably-orthogonal edit downgrades to a warn (decisions still
122
+ surfaced). Restore strict file-level blocking with
123
+ `CODEVIRA_DECISION_LOCK_CONTENT_AWARE=0`. (D00010B)
124
+
125
+ ### Fixed
126
+
127
+ - **`doctor` `ghost_projects` false positive.** The check now delegates to the
128
+ canonical project inventory (`_project_inventory`) instead of its own cruder
129
+ rule, so `doctor` and `codevira projects` agree — empty leftover dirs are
130
+ *stale*, not ghosts. (D0000Z4)
131
+ - **Test isolation leak.** The autouse test fixture only isolated the global
132
+ `~/.codevira/`, leaving the per-project store resolving from the repo cwd —
133
+ so tests calling `record()` without their own project fixture wrote to the
134
+ real `.codevira/decisions.jsonl`. It now chdir's into a throwaway project,
135
+ so no test can reach real memory. (D00010X)
136
+ - **Reconciled the two outcome stores (Phase 17).** The confidence surface
137
+ (SQLite) and the digest/replay/skills surface (JSONL) each ran an independent
138
+ git analysis and could label the same decision differently. Both now delegate
139
+ to one shared `indexer.outcome_classifier.classify_outcome`, so they agree by
140
+ construction. A git failure now means "can't classify" rather than the old
141
+ optimistic "kept". (D000112)
142
+ - **`get_signature` JS/JSX accuracy (Phase 16).** Documented + regression-tested
143
+ the existing TS/TSX/JS/JSX support (the docstrings + unsupported-extension
144
+ error message had omitted JavaScript). (D000111)
145
+
10
146
  ## [3.4.0] — 2026-06-15
11
147
 
12
148
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: codevira
3
- Version: 3.4.0
3
+ Version: 3.6.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
@@ -24,7 +24,7 @@ Requires-Python: >=3.10
24
24
  Description-Content-Type: text/markdown
25
25
  License-File: LICENSE
26
26
  Requires-Dist: pyyaml>=6.0
27
- Requires-Dist: mcp>=1.0.0
27
+ Requires-Dist: mcp<2,>=1.0
28
28
  Requires-Dist: watchdog>=3.0.0
29
29
  Requires-Dist: tomli>=2.0; python_version < "3.11"
30
30
  Requires-Dist: tree-sitter>=0.23.0
@@ -142,58 +142,6 @@ every AI tool, on every project, on your local machine.**
142
142
 
143
143
  ---
144
144
 
145
- ## What's new in v3.4.0 — reliable project binding + honest docs
146
-
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
-
151
- | Area | What you get |
152
- |---|---|
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. |
159
-
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).
167
-
168
- ---
169
-
170
- ## What's new in v3.0.0 — audited, lean, opinionated
171
-
172
- > Major version. v3.0.0 is the biggest API contraction since v2.0
173
- > shipped: 21 MCP tools deleted, 8 CLI subcommands deleted, per-IDE
174
- > nudge file matrix collapsed to AGENTS.md only, IDE detection
175
- > hardened from "directory exists" to "binary on PATH + valid config
176
- > file." Full plan + rationale in
177
- > [`docs/audit-2026-05-22.md`](docs/audit-2026-05-22.md);
178
- > per-item kill list in
179
- > [`docs/surface-cuts-2026-05-22.md`](docs/surface-cuts-2026-05-22.md).
180
-
181
- | Area | What changed |
182
- |---|---|
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). |
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. |
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.) |
186
- | **CLI surface** | 23 → 15 commands (-35%). Deleted: `heal` (use `reset`), `budget`, `agents`, `hooks`, `register`, `configure`, `report` (folded into `doctor`), `calibrate`, `insights`. |
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. |
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`. |
189
- | **Install size** | ~83 MB pipx venv (was ~450 MB in v2.1.2 with ChromaDB + sentence-transformers + torch). MCP server starts in <100 ms (was 1-3 s). |
190
-
191
- Full v3.0.0 release notes: [CHANGELOG.md](CHANGELOG.md).
192
-
193
- Upgrading from v2.x? See the [Migration notes](CHANGELOG.md#migration-notes) section.
194
-
195
- ---
196
-
197
145
  ## Quick Start — three commands
198
146
 
199
147
  ```bash
@@ -283,7 +231,7 @@ summary: 13 pass · 0 warn · 0 fail
283
231
 
284
232
  ### Daily-use commands
285
233
 
286
- The CLI surface is 21 commands (the daily-use ones below):
234
+ The CLI surface is 23 commands (the daily-use ones below):
287
235
 
288
236
  | Command | What it does |
289
237
  |---|---|
@@ -296,6 +244,7 @@ The CLI surface is 21 commands (the daily-use ones below):
296
244
  | `codevira sync` | Regenerate AGENTS.md + manifest + digest from `decisions.jsonl` |
297
245
  | `codevira observe-git` | Classify past decisions as kept/modified/reverted from git history |
298
246
  | `codevira replay` | Browse the decisions timeline (terminal / markdown / HTML) |
247
+ | `codevira search <query>` | Search decisions from the terminal (FTS5/BM25); `--all-projects` searches every registered repo, `--json` for scripts |
299
248
  | `codevira clean` | Remove orphaned project data |
300
249
  | `codevira reset` | Destructive cleanup (auto-exports decisions first) |
301
250
  | `codevira export` | Standalone decision backup (JSON / SQL); `export setup` bundles project memory + global learning for machine transfer |
@@ -331,6 +280,34 @@ versions. User content outside the codevira markers stays.
331
280
 
332
281
  ---
333
282
 
283
+ ## What's new in v3.5.0 — the read side gets intelligent
284
+
285
+ > Codevira's leverage is the **read** side: does it surface the *right*
286
+ > memory at the right moment, with low noise? v3.5.0 makes that side
287
+ > measurable, leaner, and self-tuning — and grew the smarts without
288
+ > bundling a model or adding a single runtime dependency.
289
+
290
+ | Area | What you get |
291
+ |---|---|
292
+ | **Summary-first decisions + `expand`** | `search_decisions` / `list_decisions` now default to compact one-line rows; a new `expand(ids=[…])` tool fetches full records only for the few you care about. `full=true` still works; `CODEVIRA_DECISION_DETAIL=full` restores the old verbose default. |
293
+ | **Content-aware decision lock** | A `do_not_revert` file no longer hard-blocks *every* edit. An edit blocks only when its diff actually touches the locked decision's subject; a provably-orthogonal edit downgrades to a warn (the decision is still surfaced). Restore strict file-level locking with `CODEVIRA_DECISION_LOCK_CONTENT_AWARE=0`. |
294
+ | **It learns from real sessions** | `codevira reflect --from-sessions` reads your local Claude Code / Codex / Gemini transcripts (read-only), flags failures + user corrections with no LLM, and folds a sanitized digest into reflection candidates — never auto-creating decisions. |
295
+ | **Measured + self-tuning recall** | `codevira eval` scores read-side relevance (recall@k / MRR) on cases self-derived from your own memory — no fixtures to rot. `codevira tune-weights` learns the ranking weights against that eval and persists only a proven win (opt in at the hot path via `CODEVIRA_LEARNED_WEIGHTS`). |
296
+ | **More managed memory files** | Beyond `AGENTS.md`, codevira can maintain `CLAUDE.md`, `GEMINI.md`, and `.cursor/rules/codevira.mdc` from one canonical block — opt in via `.codevira/config.yaml: managed_files`. Content outside the markers is preserved byte-for-byte. |
297
+ | **Opt-in synonym recall** | A no-dependency synonym map widens a query so `database` can recall a decision recorded about `postgres`. Off by default (`CODEVIRA_SYNONYM_WIDENING=1`) — it trades a little ranking precision for recall. |
298
+ | **Polish** | `get_signature` JS/JSX accuracy fixed; the two git outcome stores (confidence + replay) reconciled into one classifier; the `doctor` `ghost_projects` false positive fixed (empty leftover dirs are *stale*, not ghosts). |
299
+
300
+ Full v3.5.0 release notes: [CHANGELOG.md](CHANGELOG.md#350--2026-06-19).
301
+
302
+ **Earlier releases** — full history in the [CHANGELOG](CHANGELOG.md):
303
+ **v3.4** reliable per-call project binding (one user-scope server, no
304
+ cross-project contamination) · **v3.1** five memory subsystems (working
305
+ memory, skills, spatial, consensus, reflections) · **v3.0** the lean
306
+ audit (46 → 24 tools, AGENTS.md-only nudge, ~83 MB install down from
307
+ ~450 MB) · **v2.2** dropped ChromaDB/vectors for SQLite FTS5.
308
+
309
+ ---
310
+
334
311
  ## How It Works
335
312
 
336
313
  Codevira is a [Model Context Protocol](https://modelcontextprotocol.io)
@@ -396,9 +373,9 @@ data:
396
373
  The agent always asks for what it needs, in the size it needs.
397
374
 
398
375
  **Shrink the tool surface itself.** The advertised MCP `tools/list` is a
399
- fixed per-session cost (~4K tokens for the full 24-tool surface). Set
376
+ fixed per-session cost (~8K tokens for the full 50-tool surface). Set
400
377
  `CODEVIRA_TOOL_PROFILE=lean` in the MCP server's `env` block to advertise
401
- only the 11 daily-driver tools (~46% smaller); hidden tools still work
378
+ only the 12 daily-driver tools (~71% smaller); hidden tools still work
402
379
  when called explicitly. Bigger wins usually come from disabling MCP
403
380
  servers you aren't actively using.
404
381
 
@@ -406,10 +383,10 @@ servers you aren't actively using.
406
383
 
407
384
  ## MCP Tools
408
385
 
409
- **49 tools** surfaced to AI clients via `tools/list` (token-optimized,
386
+ **50 tools** surfaced to AI clients via `tools/list` (token-optimized,
410
387
  summary-first): the core decision/roadmap/graph surface plus the
411
388
  v3.1.0 memory subsystems (working memory, skills, spatial, consensus,
412
- reflections) and the v3.3.0 preference tools. One additional admin
389
+ reflections), the v3.3.0 preference tools, and v3.5.0's `expand`. One additional admin
413
390
  tool (`refresh_graph`) is registered but hidden from `tools/list`
414
391
  because it runs automatically in the background — humans invoke it via
415
392
  `codevira sync`. Set `CODEVIRA_TOOL_PROFILE=lean` to advertise only
@@ -422,7 +399,8 @@ kill list.
422
399
  | Tool | Description |
423
400
  |---|---|
424
401
  | `get_session_context` | **THE main "catch me up" call.** Returns ~500 tokens: current phase, next action, recent decisions, top tags, last session brief. |
425
- | `search_decisions(query)` | FTS5 BM25 search over `decisions.jsonl`. Default: top 5 truncated; pass `full=true` or `summary_only=true`. |
402
+ | `search_decisions(query)` | FTS5 BM25 search over `decisions.jsonl`. Default: top 5 truncated; pass `full=true` or `summary_only=true`. **`all_projects=true`** (v3.6) searches every registered repo, tagging each result with its project. |
403
+ | `record_decision(decision, …)` | Record a decision; `do_not_revert=true` locks it. **`symbol="login"`** (v3.6) scopes the lock to one function/class — edits elsewhere in the file warn instead of block. |
426
404
  | `list_decisions` | Paginate / filter: `since_date`, `file_pattern`, `protected_only`, `tags`, `include_superseded`. |
427
405
  | `list_tags` | Enumerate all tags with decision counts. |
428
406
  | `get_history(file_path)` | Recent decisions touching a file. |
@@ -504,9 +482,10 @@ kill list.
504
482
  | `get_signature` / `get_code` | ✓ | ✓ | ✓ | ✓ | — |
505
483
 
506
484
  Decisions / AGENTS.md / roadmap are language-agnostic. Code-graph
507
- features require a tree-sitter grammar; v3.0.0 ships TS, JS, Go, Rust.
508
- The opt-in extra `pip install 'codevira[all-languages]'` re-adds the
509
- 17-grammar pack for Java, Ruby, PHP, C, C++, Kotlin, Swift, etc.
485
+ features require a tree-sitter grammar; codevira ships Python, TS, JS,
486
+ Go, Rust. For other languages the AI `Read`s the file directly — the
487
+ legacy 17-grammar `[all-languages]` pack was removed in v2.2.0 to keep
488
+ the install lean (v2.3.0 may re-add specific grammars on demand).
510
489
 
511
490
  ---
512
491
 
@@ -515,10 +494,10 @@ The opt-in extra `pip install 'codevira[all-languages]'` re-adds the
515
494
  | Production-stable | Known-limited |
516
495
  |---|---|
517
496
  | Cross-IDE decision memory via in-repo JSONL | The PreToolUse hook enforcement is Claude Code only today. Other IDEs read AGENTS.md (soft signal), but don't have hard blocks |
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 |
497
+ | `do_not_revert` enforcement at Claude Code PreToolUse | Symbol tools (`get_signature` / `get_code`) cover Python / TS / JS / Go / Rust; for other languages the AI `Read`s the file directly (the legacy `[all-languages]` grammar pack was removed in v2.2.0) |
519
498
  | FTS5 decision search with BM25 ranking | Real-time multi-machine sync — by design, codevira is local-first; for team sharing, commit `.codevira/` to git |
520
499
  | 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 |
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` |
500
+ | All 50 surfaced MCP tools + 23 CLI commands + 8 engine policies | The HTTP server (`codevira serve`) is single-project per launch — for daily use, stick with stdio via `codevira setup` |
522
501
  | 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 |
523
502
  | 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) |
524
503
 
@@ -554,21 +533,20 @@ Common questions about setup, usage, architecture, and troubleshooting
554
533
 
555
534
  ## Roadmap
556
535
 
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.
536
+ **Current release:** **v3.5.0** — the read side gets intelligent:
537
+ summary-first decisions + `expand`, a content-aware decision lock,
538
+ read-only session-transcript ingest, a self-derived relevance eval +
539
+ learned weight tuning, multi-file managed memory, and opt-in synonym
540
+ recall — all with no new runtime dependencies.
560
541
 
561
542
  **Next up** (directional, not dated):
562
543
 
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
544
+ - **Opt-in `[semantic]` recall** — off by default; the base install
569
545
  stays pure-keyword, no vectors, no model download
570
- - **TypeScript `get_signature`**, finer-grained decision locking,
571
- learned hot-path tuning
546
+ - **Symbol / region-level decision locking** — lock a function or
547
+ block, not just the whole file
548
+ - **Cross-project decision search** — `search_decisions` across all
549
+ your local projects, not just the current one
572
550
 
573
551
  What's built, the full upcoming list, and the long-term vision —
574
552
  **[ROADMAP.md](ROADMAP.md)**.
@@ -93,58 +93,6 @@ every AI tool, on every project, on your local machine.**
93
93
 
94
94
  ---
95
95
 
96
- ## What's new in v3.4.0 — reliable project binding + honest docs
97
-
98
- > The headline fix: **one user-scope codevira server now binds the
99
- > right project** instead of silently contaminating memory across
100
- > projects. Upgrade and restart your MCP server to pick this up.
101
-
102
- | Area | What you get |
103
- |---|---|
104
- | **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. |
105
- | **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. |
106
- | **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. |
107
- | **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. |
108
- | **`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. |
109
- | **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. |
110
-
111
- Since the v3.0.0 lean reset: **3.1** added five memory subsystems
112
- (working memory, skills, spatial, consensus, reflections), **3.3** added
113
- LLM-distilled preferences. Full history is in the
114
- [CHANGELOG](CHANGELOG.md); what's coming next is in the
115
- [Roadmap](ROADMAP.md).
116
-
117
- Full v3.4.0 release notes: [CHANGELOG.md](CHANGELOG.md#340--2026-06-15).
118
-
119
- ---
120
-
121
- ## What's new in v3.0.0 — audited, lean, opinionated
122
-
123
- > Major version. v3.0.0 is the biggest API contraction since v2.0
124
- > shipped: 21 MCP tools deleted, 8 CLI subcommands deleted, per-IDE
125
- > nudge file matrix collapsed to AGENTS.md only, IDE detection
126
- > hardened from "directory exists" to "binary on PATH + valid config
127
- > file." Full plan + rationale in
128
- > [`docs/audit-2026-05-22.md`](docs/audit-2026-05-22.md);
129
- > per-item kill list in
130
- > [`docs/surface-cuts-2026-05-22.md`](docs/surface-cuts-2026-05-22.md).
131
-
132
- | Area | What changed |
133
- |---|---|
134
- | **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). |
135
- | **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. |
136
- | **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.) |
137
- | **CLI surface** | 23 → 15 commands (-35%). Deleted: `heal` (use `reset`), `budget`, `agents`, `hooks`, `register`, `configure`, `report` (folded into `doctor`), `calibrate`, `insights`. |
138
- | **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. |
139
- | **`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`. |
140
- | **Install size** | ~83 MB pipx venv (was ~450 MB in v2.1.2 with ChromaDB + sentence-transformers + torch). MCP server starts in <100 ms (was 1-3 s). |
141
-
142
- Full v3.0.0 release notes: [CHANGELOG.md](CHANGELOG.md).
143
-
144
- Upgrading from v2.x? See the [Migration notes](CHANGELOG.md#migration-notes) section.
145
-
146
- ---
147
-
148
96
  ## Quick Start — three commands
149
97
 
150
98
  ```bash
@@ -234,7 +182,7 @@ summary: 13 pass · 0 warn · 0 fail
234
182
 
235
183
  ### Daily-use commands
236
184
 
237
- The CLI surface is 21 commands (the daily-use ones below):
185
+ The CLI surface is 23 commands (the daily-use ones below):
238
186
 
239
187
  | Command | What it does |
240
188
  |---|---|
@@ -247,6 +195,7 @@ The CLI surface is 21 commands (the daily-use ones below):
247
195
  | `codevira sync` | Regenerate AGENTS.md + manifest + digest from `decisions.jsonl` |
248
196
  | `codevira observe-git` | Classify past decisions as kept/modified/reverted from git history |
249
197
  | `codevira replay` | Browse the decisions timeline (terminal / markdown / HTML) |
198
+ | `codevira search <query>` | Search decisions from the terminal (FTS5/BM25); `--all-projects` searches every registered repo, `--json` for scripts |
250
199
  | `codevira clean` | Remove orphaned project data |
251
200
  | `codevira reset` | Destructive cleanup (auto-exports decisions first) |
252
201
  | `codevira export` | Standalone decision backup (JSON / SQL); `export setup` bundles project memory + global learning for machine transfer |
@@ -282,6 +231,34 @@ versions. User content outside the codevira markers stays.
282
231
 
283
232
  ---
284
233
 
234
+ ## What's new in v3.5.0 — the read side gets intelligent
235
+
236
+ > Codevira's leverage is the **read** side: does it surface the *right*
237
+ > memory at the right moment, with low noise? v3.5.0 makes that side
238
+ > measurable, leaner, and self-tuning — and grew the smarts without
239
+ > bundling a model or adding a single runtime dependency.
240
+
241
+ | Area | What you get |
242
+ |---|---|
243
+ | **Summary-first decisions + `expand`** | `search_decisions` / `list_decisions` now default to compact one-line rows; a new `expand(ids=[…])` tool fetches full records only for the few you care about. `full=true` still works; `CODEVIRA_DECISION_DETAIL=full` restores the old verbose default. |
244
+ | **Content-aware decision lock** | A `do_not_revert` file no longer hard-blocks *every* edit. An edit blocks only when its diff actually touches the locked decision's subject; a provably-orthogonal edit downgrades to a warn (the decision is still surfaced). Restore strict file-level locking with `CODEVIRA_DECISION_LOCK_CONTENT_AWARE=0`. |
245
+ | **It learns from real sessions** | `codevira reflect --from-sessions` reads your local Claude Code / Codex / Gemini transcripts (read-only), flags failures + user corrections with no LLM, and folds a sanitized digest into reflection candidates — never auto-creating decisions. |
246
+ | **Measured + self-tuning recall** | `codevira eval` scores read-side relevance (recall@k / MRR) on cases self-derived from your own memory — no fixtures to rot. `codevira tune-weights` learns the ranking weights against that eval and persists only a proven win (opt in at the hot path via `CODEVIRA_LEARNED_WEIGHTS`). |
247
+ | **More managed memory files** | Beyond `AGENTS.md`, codevira can maintain `CLAUDE.md`, `GEMINI.md`, and `.cursor/rules/codevira.mdc` from one canonical block — opt in via `.codevira/config.yaml: managed_files`. Content outside the markers is preserved byte-for-byte. |
248
+ | **Opt-in synonym recall** | A no-dependency synonym map widens a query so `database` can recall a decision recorded about `postgres`. Off by default (`CODEVIRA_SYNONYM_WIDENING=1`) — it trades a little ranking precision for recall. |
249
+ | **Polish** | `get_signature` JS/JSX accuracy fixed; the two git outcome stores (confidence + replay) reconciled into one classifier; the `doctor` `ghost_projects` false positive fixed (empty leftover dirs are *stale*, not ghosts). |
250
+
251
+ Full v3.5.0 release notes: [CHANGELOG.md](CHANGELOG.md#350--2026-06-19).
252
+
253
+ **Earlier releases** — full history in the [CHANGELOG](CHANGELOG.md):
254
+ **v3.4** reliable per-call project binding (one user-scope server, no
255
+ cross-project contamination) · **v3.1** five memory subsystems (working
256
+ memory, skills, spatial, consensus, reflections) · **v3.0** the lean
257
+ audit (46 → 24 tools, AGENTS.md-only nudge, ~83 MB install down from
258
+ ~450 MB) · **v2.2** dropped ChromaDB/vectors for SQLite FTS5.
259
+
260
+ ---
261
+
285
262
  ## How It Works
286
263
 
287
264
  Codevira is a [Model Context Protocol](https://modelcontextprotocol.io)
@@ -347,9 +324,9 @@ data:
347
324
  The agent always asks for what it needs, in the size it needs.
348
325
 
349
326
  **Shrink the tool surface itself.** The advertised MCP `tools/list` is a
350
- fixed per-session cost (~4K tokens for the full 24-tool surface). Set
327
+ fixed per-session cost (~8K tokens for the full 50-tool surface). Set
351
328
  `CODEVIRA_TOOL_PROFILE=lean` in the MCP server's `env` block to advertise
352
- only the 11 daily-driver tools (~46% smaller); hidden tools still work
329
+ only the 12 daily-driver tools (~71% smaller); hidden tools still work
353
330
  when called explicitly. Bigger wins usually come from disabling MCP
354
331
  servers you aren't actively using.
355
332
 
@@ -357,10 +334,10 @@ servers you aren't actively using.
357
334
 
358
335
  ## MCP Tools
359
336
 
360
- **49 tools** surfaced to AI clients via `tools/list` (token-optimized,
337
+ **50 tools** surfaced to AI clients via `tools/list` (token-optimized,
361
338
  summary-first): the core decision/roadmap/graph surface plus the
362
339
  v3.1.0 memory subsystems (working memory, skills, spatial, consensus,
363
- reflections) and the v3.3.0 preference tools. One additional admin
340
+ reflections), the v3.3.0 preference tools, and v3.5.0's `expand`. One additional admin
364
341
  tool (`refresh_graph`) is registered but hidden from `tools/list`
365
342
  because it runs automatically in the background — humans invoke it via
366
343
  `codevira sync`. Set `CODEVIRA_TOOL_PROFILE=lean` to advertise only
@@ -373,7 +350,8 @@ kill list.
373
350
  | Tool | Description |
374
351
  |---|---|
375
352
  | `get_session_context` | **THE main "catch me up" call.** Returns ~500 tokens: current phase, next action, recent decisions, top tags, last session brief. |
376
- | `search_decisions(query)` | FTS5 BM25 search over `decisions.jsonl`. Default: top 5 truncated; pass `full=true` or `summary_only=true`. |
353
+ | `search_decisions(query)` | FTS5 BM25 search over `decisions.jsonl`. Default: top 5 truncated; pass `full=true` or `summary_only=true`. **`all_projects=true`** (v3.6) searches every registered repo, tagging each result with its project. |
354
+ | `record_decision(decision, …)` | Record a decision; `do_not_revert=true` locks it. **`symbol="login"`** (v3.6) scopes the lock to one function/class — edits elsewhere in the file warn instead of block. |
377
355
  | `list_decisions` | Paginate / filter: `since_date`, `file_pattern`, `protected_only`, `tags`, `include_superseded`. |
378
356
  | `list_tags` | Enumerate all tags with decision counts. |
379
357
  | `get_history(file_path)` | Recent decisions touching a file. |
@@ -455,9 +433,10 @@ kill list.
455
433
  | `get_signature` / `get_code` | ✓ | ✓ | ✓ | ✓ | — |
456
434
 
457
435
  Decisions / AGENTS.md / roadmap are language-agnostic. Code-graph
458
- features require a tree-sitter grammar; v3.0.0 ships TS, JS, Go, Rust.
459
- The opt-in extra `pip install 'codevira[all-languages]'` re-adds the
460
- 17-grammar pack for Java, Ruby, PHP, C, C++, Kotlin, Swift, etc.
436
+ features require a tree-sitter grammar; codevira ships Python, TS, JS,
437
+ Go, Rust. For other languages the AI `Read`s the file directly — the
438
+ legacy 17-grammar `[all-languages]` pack was removed in v2.2.0 to keep
439
+ the install lean (v2.3.0 may re-add specific grammars on demand).
461
440
 
462
441
  ---
463
442
 
@@ -466,10 +445,10 @@ The opt-in extra `pip install 'codevira[all-languages]'` re-adds the
466
445
  | Production-stable | Known-limited |
467
446
  |---|---|
468
447
  | Cross-IDE decision memory via in-repo JSONL | The PreToolUse hook enforcement is Claude Code only today. Other IDEs read AGENTS.md (soft signal), but don't have hard blocks |
469
- | `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 |
448
+ | `do_not_revert` enforcement at Claude Code PreToolUse | Symbol tools (`get_signature` / `get_code`) cover Python / TS / JS / Go / Rust; for other languages the AI `Read`s the file directly (the legacy `[all-languages]` grammar pack was removed in v2.2.0) |
470
449
  | FTS5 decision search with BM25 ranking | Real-time multi-machine sync — by design, codevira is local-first; for team sharing, commit `.codevira/` to git |
471
450
  | 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 |
472
- | 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` |
451
+ | All 50 surfaced MCP tools + 23 CLI commands + 8 engine policies | The HTTP server (`codevira serve`) is single-project per launch — for daily use, stick with stdio via `codevira setup` |
473
452
  | 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 |
474
453
  | 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) |
475
454
 
@@ -505,21 +484,20 @@ Common questions about setup, usage, architecture, and troubleshooting
505
484
 
506
485
  ## Roadmap
507
486
 
508
- **Current release:** **v3.4.0** — one user-scope server now binds the
509
- right project per call (no more cross-project memory contamination),
510
- Windows/UNC workspace roots, and a `codevira doctor` binding check.
487
+ **Current release:** **v3.5.0** — the read side gets intelligent:
488
+ summary-first decisions + `expand`, a content-aware decision lock,
489
+ read-only session-transcript ingest, a self-derived relevance eval +
490
+ learned weight tuning, multi-file managed memory, and opt-in synonym
491
+ recall — all with no new runtime dependencies.
511
492
 
512
493
  **Next up** (directional, not dated):
513
494
 
514
- - **Summary-first payloads** + **session-transcript ingest** — leaner
515
- responses, and memory that learns from how sessions actually went
516
- - **Eval harness** — measurable recall + enforcement quality in CI
517
- - **Managed memory files beyond `AGENTS.md`** — `CLAUDE.md`,
518
- `.cursor/rules`, `GEMINI.md`
519
- - **Optional `[semantic]` recall** — off by default; the base install
495
+ - **Opt-in `[semantic]` recall** — off by default; the base install
520
496
  stays pure-keyword, no vectors, no model download
521
- - **TypeScript `get_signature`**, finer-grained decision locking,
522
- learned hot-path tuning
497
+ - **Symbol / region-level decision locking** — lock a function or
498
+ block, not just the whole file
499
+ - **Cross-project decision search** — `search_decisions` across all
500
+ your local projects, not just the current one
523
501
 
524
502
  What's built, the full upcoming list, and the long-term vision —
525
503
  **[ROADMAP.md](ROADMAP.md)**.