codevira 3.4.0__tar.gz → 3.5.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 (311) hide show
  1. {codevira-3.4.0 → codevira-3.5.0}/CHANGELOG.md +71 -0
  2. {codevira-3.4.0/codevira.egg-info → codevira-3.5.0}/PKG-INFO +51 -75
  3. {codevira-3.4.0 → codevira-3.5.0}/README.md +49 -73
  4. {codevira-3.4.0 → codevira-3.5.0/codevira.egg-info}/PKG-INFO +51 -75
  5. {codevira-3.4.0 → codevira-3.5.0}/codevira.egg-info/SOURCES.txt +25 -15
  6. {codevira-3.4.0 → codevira-3.5.0}/codevira.egg-info/requires.txt +1 -1
  7. {codevira-3.4.0 → codevira-3.5.0}/docs/architecture.md +8 -4
  8. {codevira-3.4.0 → codevira-3.5.0}/docs/roadmap.md +0 -1
  9. codevira-3.5.0/docs/troubleshooting/antigravity.md +21 -0
  10. codevira-3.5.0/indexer/outcome_classifier.py +92 -0
  11. {codevira-3.4.0 → codevira-3.5.0}/indexer/outcome_tracker.py +13 -48
  12. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/__init__.py +1 -1
  13. codevira-3.5.0/mcp_server/_ghost_check.py +99 -0
  14. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/cli.py +79 -0
  15. codevira-3.5.0/mcp_server/cli_eval.py +90 -0
  16. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/cli_reflect.py +11 -1
  17. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/crash_logger.py +62 -1
  18. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/doctor.py +26 -18
  19. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/policies/decision_lock.py +233 -10
  20. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/policies/relevance_inject.py +47 -6
  21. codevira-3.5.0/mcp_server/eval/__init__.py +13 -0
  22. codevira-3.5.0/mcp_server/eval/composite.py +128 -0
  23. codevira-3.5.0/mcp_server/eval/judge.py +134 -0
  24. codevira-3.5.0/mcp_server/eval/relevance.py +215 -0
  25. codevira-3.5.0/mcp_server/eval/report.py +114 -0
  26. codevira-3.5.0/mcp_server/eval/weight_tuner.py +109 -0
  27. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/http_server.py +1 -1
  28. codevira-3.5.0/mcp_server/ingest/__init__.py +30 -0
  29. codevira-3.5.0/mcp_server/ingest/claude_code.py +163 -0
  30. codevira-3.5.0/mcp_server/ingest/codex.py +160 -0
  31. codevira-3.5.0/mcp_server/ingest/gemini.py +148 -0
  32. codevira-3.5.0/mcp_server/ingest/heuristics.py +117 -0
  33. codevira-3.5.0/mcp_server/ingest/models.py +79 -0
  34. codevira-3.5.0/mcp_server/ingest/scan.py +95 -0
  35. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/server.py +103 -6
  36. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/agents_md_generator.py +141 -23
  37. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/decisions_store.py +24 -0
  38. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/fts5_index.py +26 -3
  39. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/jsonl_store.py +33 -21
  40. codevira-3.5.0/mcp_server/storage/learned_weights.py +86 -0
  41. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/outcomes_writer.py +8 -23
  42. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/reflections_store.py +46 -1
  43. codevira-3.5.0/mcp_server/storage/synonyms.py +76 -0
  44. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/tools/code_reader.py +38 -4
  45. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/tools/learning.py +5 -1
  46. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/tools/search.py +110 -13
  47. {codevira-3.4.0 → codevira-3.5.0}/pyproject.toml +5 -4
  48. {codevira-3.4.0 → codevira-3.5.0}/tests/test_cli_induce.py +5 -9
  49. {codevira-3.4.0 → codevira-3.5.0}/tests/test_cli_version.py +11 -3
  50. {codevira-3.4.0 → codevira-3.5.0}/tests/test_crash_logger.py +82 -1
  51. {codevira-3.4.0 → codevira-3.5.0}/tests/test_doctor.py +21 -3
  52. codevira-3.5.0/tests/test_e1_summary_first.py +230 -0
  53. codevira-3.5.0/tests/test_eval_e3.py +196 -0
  54. codevira-3.5.0/tests/test_ghost_check.py +198 -0
  55. {codevira-3.4.0 → codevira-3.5.0}/tests/test_http_server.py +1 -0
  56. codevira-3.5.0/tests/test_ingest_e2.py +350 -0
  57. codevira-3.5.0/tests/test_managed_files_e4.py +134 -0
  58. codevira-3.5.0/tests/test_outcome_reconcile_p17.py +106 -0
  59. {codevira-3.4.0 → codevira-3.5.0}/tests/test_outcome_tracker.py +129 -41
  60. {codevira-3.4.0 → codevira-3.5.0}/tests/test_server.py +14 -0
  61. codevira-3.5.0/tests/test_synonym_widening_e5.py +72 -0
  62. {codevira-3.4.0 → codevira-3.5.0}/tests/test_tools_code_reader.py +101 -0
  63. codevira-3.5.0/tests/test_weight_tuning_p13.py +195 -0
  64. codevira-3.4.0/agents/builder.md +0 -84
  65. codevira-3.4.0/agents/developer.md +0 -111
  66. codevira-3.4.0/agents/documenter.md +0 -138
  67. codevira-3.4.0/agents/orchestrator.md +0 -96
  68. codevira-3.4.0/agents/planner.md +0 -106
  69. codevira-3.4.0/agents/reviewer.md +0 -82
  70. codevira-3.4.0/agents/tester.md +0 -83
  71. codevira-3.4.0/docs/troubleshooting/antigravity.md +0 -131
  72. codevira-3.4.0/mcp_server/_ghost_check.py +0 -88
  73. codevira-3.4.0/mcp_server/data/agents/builder.md +0 -84
  74. codevira-3.4.0/mcp_server/data/agents/developer.md +0 -111
  75. codevira-3.4.0/mcp_server/data/agents/documenter.md +0 -138
  76. codevira-3.4.0/mcp_server/data/agents/orchestrator.md +0 -96
  77. codevira-3.4.0/mcp_server/data/agents/planner.md +0 -106
  78. codevira-3.4.0/mcp_server/data/agents/reviewer.md +0 -82
  79. codevira-3.4.0/mcp_server/data/agents/tester.md +0 -83
  80. codevira-3.4.0/tests/test_ghost_check.py +0 -116
  81. {codevira-3.4.0 → codevira-3.5.0}/LICENSE +0 -0
  82. {codevira-3.4.0 → codevira-3.5.0}/MANIFEST.in +0 -0
  83. {codevira-3.4.0 → codevira-3.5.0}/agents/qa/01-code-review.md +0 -0
  84. {codevira-3.4.0 → codevira-3.5.0}/agents/qa/02-adversarial-fix-review.md +0 -0
  85. {codevira-3.4.0 → codevira-3.5.0}/agents/qa/03-cross-module-impact.md +0 -0
  86. {codevira-3.4.0 → codevira-3.5.0}/agents/qa/06-doc-drift.md +0 -0
  87. {codevira-3.4.0 → codevira-3.5.0}/agents/qa/07-security-audit.md +0 -0
  88. {codevira-3.4.0 → codevira-3.5.0}/agents/qa/12-llm-redteam.md +0 -0
  89. {codevira-3.4.0 → codevira-3.5.0}/agents/qa/13-multi-ide-schema.md +0 -0
  90. {codevira-3.4.0 → codevira-3.5.0}/agents/qa/22-competitor-benchmark.md +0 -0
  91. {codevira-3.4.0 → codevira-3.5.0}/agents/qa/README.md +0 -0
  92. {codevira-3.4.0 → codevira-3.5.0}/agents/qa/tier2-scripts.md +0 -0
  93. {codevira-3.4.0 → codevira-3.5.0}/agents/qa/tier3-manual.md +0 -0
  94. {codevira-3.4.0 → codevira-3.5.0}/codevira.egg-info/dependency_links.txt +0 -0
  95. {codevira-3.4.0 → codevira-3.5.0}/codevira.egg-info/entry_points.txt +0 -0
  96. {codevira-3.4.0 → codevira-3.5.0}/codevira.egg-info/top_level.txt +0 -0
  97. {codevira-3.4.0 → codevira-3.5.0}/config.example.yaml +0 -0
  98. {codevira-3.4.0 → codevira-3.5.0}/docs/alpha-tester-invites.md +0 -0
  99. {codevira-3.4.0 → codevira-3.5.0}/docs/audit-2026-05-22.md +0 -0
  100. {codevira-3.4.0 → codevira-3.5.0}/docs/demo/README.md +0 -0
  101. {codevira-3.4.0 → codevira-3.5.0}/docs/foolproof-product-charter.md +0 -0
  102. {codevira-3.4.0 → codevira-3.5.0}/docs/heroes/00-engine.md +0 -0
  103. {codevira-3.4.0 → codevira-3.5.0}/docs/heroes/01-decision-lock.md +0 -0
  104. {codevira-3.4.0 → codevira-3.5.0}/docs/heroes/02-anti-regression.md +0 -0
  105. {codevira-3.4.0 → codevira-3.5.0}/docs/heroes/03-scope-contract.md +0 -0
  106. {codevira-3.4.0 → codevira-3.5.0}/docs/heroes/04-blast-radius.md +0 -0
  107. {codevira-3.4.0 → codevira-3.5.0}/docs/heroes/05-cross-session.md +0 -0
  108. {codevira-3.4.0 → codevira-3.5.0}/docs/heroes/06-token-budget.md +0 -0
  109. {codevira-3.4.0 → codevira-3.5.0}/docs/heroes/07-live-style.md +0 -0
  110. {codevira-3.4.0 → codevira-3.5.0}/docs/heroes/08-decision-replay.md +0 -0
  111. {codevira-3.4.0 → codevira-3.5.0}/docs/heroes/09-intent-inference.md +0 -0
  112. {codevira-3.4.0 → codevira-3.5.0}/docs/heroes/10-ai-promotion.md +0 -0
  113. {codevira-3.4.0 → codevira-3.5.0}/docs/heroes/README.md +0 -0
  114. {codevira-3.4.0 → codevira-3.5.0}/docs/heroes/pillar-1-setup.md +0 -0
  115. {codevira-3.4.0 → codevira-3.5.0}/docs/hn-launch-day.md +0 -0
  116. {codevira-3.4.0 → codevira-3.5.0}/docs/how-i-built-persistent-memory-for-ai-agents.md +0 -0
  117. {codevira-3.4.0 → codevira-3.5.0}/docs/internal/competitive-landscape.md +0 -0
  118. {codevira-3.4.0 → codevira-3.5.0}/docs/linkedin-article-ai-agent-memory.md +0 -0
  119. {codevira-3.4.0 → codevira-3.5.0}/docs/linkedin-post-ai-agent-memory.md +0 -0
  120. {codevira-3.4.0 → codevira-3.5.0}/docs/local-pypi-https.md +0 -0
  121. {codevira-3.4.0 → codevira-3.5.0}/docs/medium-your-ai-coding-agent-has-amnesia.md +0 -0
  122. {codevira-3.4.0 → codevira-3.5.0}/docs/morning-handoff-2026-05-22.md +0 -0
  123. {codevira-3.4.0 → codevira-3.5.0}/docs/plans/v2.1.2.md +0 -0
  124. {codevira-3.4.0 → codevira-3.5.0}/docs/plans/v2.1.3.md +0 -0
  125. {codevira-3.4.0 → codevira-3.5.0}/docs/plans/v2.2.0.md +0 -0
  126. {codevira-3.4.0 → codevira-3.5.0}/docs/plans/v3.0.0.md +0 -0
  127. {codevira-3.4.0 → codevira-3.5.0}/docs/qa-playbook.md +0 -0
  128. {codevira-3.4.0 → codevira-3.5.0}/docs/release-notes/v3.1.1.md +0 -0
  129. {codevira-3.4.0 → codevira-3.5.0}/docs/release-process.md +0 -0
  130. {codevira-3.4.0 → codevira-3.5.0}/docs/surface-cuts-2026-05-22.md +0 -0
  131. {codevira-3.4.0 → codevira-3.5.0}/docs/v2-completion-plan.md +0 -0
  132. {codevira-3.4.0 → codevira-3.5.0}/docs/v2-execution-log.md +0 -0
  133. {codevira-3.4.0 → codevira-3.5.0}/docs/v2-master-plan.md +0 -0
  134. {codevira-3.4.0 → codevira-3.5.0}/docs/vs-other-memory-tools.md +0 -0
  135. {codevira-3.4.0 → codevira-3.5.0}/graph/_schema.yaml +0 -0
  136. {codevira-3.4.0 → codevira-3.5.0}/indexer/__init__.py +0 -0
  137. {codevira-3.4.0 → codevira-3.5.0}/indexer/_dedupe_migration.py +0 -0
  138. {codevira-3.4.0 → codevira-3.5.0}/indexer/_fork_safety.py +0 -0
  139. {codevira-3.4.0 → codevira-3.5.0}/indexer/_sqlite_util.py +0 -0
  140. {codevira-3.4.0 → codevira-3.5.0}/indexer/chunker.py +0 -0
  141. {codevira-3.4.0 → codevira-3.5.0}/indexer/fix_history.py +0 -0
  142. {codevira-3.4.0 → codevira-3.5.0}/indexer/global_db.py +0 -0
  143. {codevira-3.4.0 → codevira-3.5.0}/indexer/graph_generator.py +0 -0
  144. {codevira-3.4.0 → codevira-3.5.0}/indexer/index_codebase.py +0 -0
  145. {codevira-3.4.0 → codevira-3.5.0}/indexer/sqlite_graph.py +0 -0
  146. {codevira-3.4.0 → codevira-3.5.0}/indexer/treesitter_parser.py +0 -0
  147. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/__main__.py +0 -0
  148. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/_mcp_registry.py +0 -0
  149. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/_project_inventory.py +0 -0
  150. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/_prompts.py +0 -0
  151. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/_repair_init.py +0 -0
  152. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/_safe_crash.py +0 -0
  153. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/auto_init.py +0 -0
  154. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/cli_consensus.py +0 -0
  155. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/cli_export.py +0 -0
  156. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/cli_graph.py +0 -0
  157. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/cli_hooks_admin.py +0 -0
  158. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/cli_induce.py +0 -0
  159. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/cli_init.py +0 -0
  160. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/cli_projects.py +0 -0
  161. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/cli_replay.py +0 -0
  162. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/cli_sync.py +0 -0
  163. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/cli_transfer.py +0 -0
  164. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/cli_uninstall.py +0 -0
  165. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/cli_working.py +0 -0
  166. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/__init__.py +0 -0
  167. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/affordances.yaml +0 -0
  168. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/config.example.yaml +0 -0
  169. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/hooks/post_tool_use.sh +0 -0
  170. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/hooks/pre_tool_use.sh +0 -0
  171. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/hooks/session_start.sh +0 -0
  172. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/hooks/stop.sh +0 -0
  173. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/hooks/user_prompt_submit.sh +0 -0
  174. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/prompts/reflection_v1.md +0 -0
  175. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/rules/coding-standards-generic.md +0 -0
  176. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/rules/coding-standards-go.md +0 -0
  177. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/rules/coding-standards-typescript.md +0 -0
  178. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/rules/coding-standards.md +0 -0
  179. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/rules/engineering-excellence.md +0 -0
  180. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/rules/git-cicd-governance.md +0 -0
  181. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/rules/git_commits.md +0 -0
  182. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/rules/incremental-updates.md +0 -0
  183. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/rules/master_rule.md +0 -0
  184. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/rules/multi-language.md +0 -0
  185. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/rules/persistence.md +0 -0
  186. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/rules/resilience-observability.md +0 -0
  187. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/rules/smoke-testing.md +0 -0
  188. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/data/rules/testing-standards.md +0 -0
  189. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/decision_replay.py +0 -0
  190. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/detect.py +0 -0
  191. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/__init__.py +0 -0
  192. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/demo_policy.py +0 -0
  193. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/events.py +0 -0
  194. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/memory_fanout.py +0 -0
  195. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/policies/__init__.py +0 -0
  196. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/policies/_signature_detect.py +0 -0
  197. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/policies/anti_regression.py +0 -0
  198. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/policies/blast_radius.py +0 -0
  199. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/policies/post_edit_refresh.py +0 -0
  200. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/policies/prompt_capture.py +0 -0
  201. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/policies/session_log_enforcer.py +0 -0
  202. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/policies/token_budget.py +0 -0
  203. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/policy.py +0 -0
  204. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/runner.py +0 -0
  205. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/signals.py +0 -0
  206. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/token_meter.py +0 -0
  207. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/wiring/__init__.py +0 -0
  208. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/wiring/_diff_envelope.py +0 -0
  209. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/wiring/claude_code_hooks.py +0 -0
  210. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/engine/wiring/mcp_dispatch.py +0 -0
  211. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/gitignore.py +0 -0
  212. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/global_sync.py +0 -0
  213. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/graph/__init__.py +0 -0
  214. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/graph/template.html +0 -0
  215. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/ide_inject.py +0 -0
  216. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/launchd.py +0 -0
  217. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/log_retention.py +0 -0
  218. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/migrate.py +0 -0
  219. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/paths.py +0 -0
  220. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/project_binding.py +0 -0
  221. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/prompts.py +0 -0
  222. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/roadmap_drift.py +0 -0
  223. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/setup_wizard.py +0 -0
  224. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/__init__.py +0 -0
  225. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/activity_store.py +0 -0
  226. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/atomic.py +0 -0
  227. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/config.py +0 -0
  228. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/consensus_store.py +0 -0
  229. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/digest.py +0 -0
  230. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/manifest.py +0 -0
  231. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/origin.py +0 -0
  232. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/paths.py +0 -0
  233. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/sanitize.py +0 -0
  234. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/sessions_store.py +0 -0
  235. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/skills_store.py +0 -0
  236. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/token_estimator.py +0 -0
  237. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/storage/working_store.py +0 -0
  238. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/tools/__init__.py +0 -0
  239. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/tools/changesets.py +0 -0
  240. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/tools/check_conflict.py +0 -0
  241. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/tools/consensus.py +0 -0
  242. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/tools/graph.py +0 -0
  243. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/tools/playbook.py +0 -0
  244. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/tools/preferences.py +0 -0
  245. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/tools/reflections.py +0 -0
  246. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/tools/roadmap.py +0 -0
  247. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/tools/skills.py +0 -0
  248. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/tools/spatial.py +0 -0
  249. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/tools/working.py +0 -0
  250. {codevira-3.4.0 → codevira-3.5.0}/mcp_server/update_check.py +0 -0
  251. {codevira-3.4.0 → codevira-3.5.0}/rules/coding-standards.md +0 -0
  252. {codevira-3.4.0 → codevira-3.5.0}/rules/engineering-excellence.md +0 -0
  253. {codevira-3.4.0 → codevira-3.5.0}/rules/git-cicd-governance.md +0 -0
  254. {codevira-3.4.0 → codevira-3.5.0}/rules/git_commits.md +0 -0
  255. {codevira-3.4.0 → codevira-3.5.0}/rules/incremental-updates.md +0 -0
  256. {codevira-3.4.0 → codevira-3.5.0}/rules/master_rule.md +0 -0
  257. {codevira-3.4.0 → codevira-3.5.0}/rules/persistence.md +0 -0
  258. {codevira-3.4.0 → codevira-3.5.0}/rules/resilience-observability.md +0 -0
  259. {codevira-3.4.0 → codevira-3.5.0}/rules/smoke-testing.md +0 -0
  260. {codevira-3.4.0 → codevira-3.5.0}/rules/testing-standards.md +0 -0
  261. {codevira-3.4.0 → codevira-3.5.0}/setup.cfg +0 -0
  262. {codevira-3.4.0 → codevira-3.5.0}/tests/test__prompts.py +0 -0
  263. {codevira-3.4.0 → codevira-3.5.0}/tests/test_auto_init.py +0 -0
  264. {codevira-3.4.0 → codevira-3.5.0}/tests/test_binding_e2e.py +0 -0
  265. {codevira-3.4.0 → codevira-3.5.0}/tests/test_call_edge_fk_safety.py +0 -0
  266. {codevira-3.4.0 → codevira-3.5.0}/tests/test_check_conflict.py +0 -0
  267. {codevira-3.4.0 → codevira-3.5.0}/tests/test_chunker.py +0 -0
  268. {codevira-3.4.0 → codevira-3.5.0}/tests/test_cli_consensus.py +0 -0
  269. {codevira-3.4.0 → codevira-3.5.0}/tests/test_cli_export.py +0 -0
  270. {codevira-3.4.0 → codevira-3.5.0}/tests/test_cli_graph.py +0 -0
  271. {codevira-3.4.0 → codevira-3.5.0}/tests/test_cli_projects.py +0 -0
  272. {codevira-3.4.0 → codevira-3.5.0}/tests/test_cli_replay.py +0 -0
  273. {codevira-3.4.0 → codevira-3.5.0}/tests/test_cli_transfer.py +0 -0
  274. {codevira-3.4.0 → codevira-3.5.0}/tests/test_cli_uninstall.py +0 -0
  275. {codevira-3.4.0 → codevira-3.5.0}/tests/test_cli_working.py +0 -0
  276. {codevira-3.4.0 → codevira-3.5.0}/tests/test_consensus_handshake.py +0 -0
  277. {codevira-3.4.0 → codevira-3.5.0}/tests/test_dedupe_migration.py +0 -0
  278. {codevira-3.4.0 → codevira-3.5.0}/tests/test_detect.py +0 -0
  279. {codevira-3.4.0 → codevira-3.5.0}/tests/test_fk_safety_extended.py +0 -0
  280. {codevira-3.4.0 → codevira-3.5.0}/tests/test_fork_safety.py +0 -0
  281. {codevira-3.4.0 → codevira-3.5.0}/tests/test_gitignore.py +0 -0
  282. {codevira-3.4.0 → codevira-3.5.0}/tests/test_global_db.py +0 -0
  283. {codevira-3.4.0 → codevira-3.5.0}/tests/test_global_sync.py +0 -0
  284. {codevira-3.4.0 → codevira-3.5.0}/tests/test_graph_generator.py +0 -0
  285. {codevira-3.4.0 → codevira-3.5.0}/tests/test_hook_resilience.py +0 -0
  286. {codevira-3.4.0 → codevira-3.5.0}/tests/test_ide_inject.py +0 -0
  287. {codevira-3.4.0 → codevira-3.5.0}/tests/test_index_codebase.py +0 -0
  288. {codevira-3.4.0 → codevira-3.5.0}/tests/test_launchd.py +0 -0
  289. {codevira-3.4.0 → codevira-3.5.0}/tests/test_log_retention.py +0 -0
  290. {codevira-3.4.0 → codevira-3.5.0}/tests/test_migrate.py +0 -0
  291. {codevira-3.4.0 → codevira-3.5.0}/tests/test_paths.py +0 -0
  292. {codevira-3.4.0 → codevira-3.5.0}/tests/test_preferences_tools.py +0 -0
  293. {codevira-3.4.0 → codevira-3.5.0}/tests/test_project_binding.py +0 -0
  294. {codevira-3.4.0 → codevira-3.5.0}/tests/test_prompts.py +0 -0
  295. {codevira-3.4.0 → codevira-3.5.0}/tests/test_record_decision.py +0 -0
  296. {codevira-3.4.0 → codevira-3.5.0}/tests/test_reflections.py +0 -0
  297. {codevira-3.4.0 → codevira-3.5.0}/tests/test_repair_init.py +0 -0
  298. {codevira-3.4.0 → codevira-3.5.0}/tests/test_roadmap_drift.py +0 -0
  299. {codevira-3.4.0 → codevira-3.5.0}/tests/test_setup_wizard.py +0 -0
  300. {codevira-3.4.0 → codevira-3.5.0}/tests/test_sqlite_graph.py +0 -0
  301. {codevira-3.4.0 → codevira-3.5.0}/tests/test_sqlite_util.py +0 -0
  302. {codevira-3.4.0 → codevira-3.5.0}/tests/test_tools_graph.py +0 -0
  303. {codevira-3.4.0 → codevira-3.5.0}/tests/test_tools_learning.py +0 -0
  304. {codevira-3.4.0 → codevira-3.5.0}/tests/test_tools_playbook.py +0 -0
  305. {codevira-3.4.0 → codevira-3.5.0}/tests/test_tools_roadmap.py +0 -0
  306. {codevira-3.4.0 → codevira-3.5.0}/tests/test_tools_skills.py +0 -0
  307. {codevira-3.4.0 → codevira-3.5.0}/tests/test_tools_spatial.py +0 -0
  308. {codevira-3.4.0 → codevira-3.5.0}/tests/test_tools_working.py +0 -0
  309. {codevira-3.4.0 → codevira-3.5.0}/tests/test_treesitter_parser.py +0 -0
  310. {codevira-3.4.0 → codevira-3.5.0}/tests/test_update_check.py +0 -0
  311. {codevira-3.4.0 → codevira-3.5.0}/tests/test_watcher_circuit.py +0 -0
@@ -7,6 +7,77 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
7
7
 
8
8
  ---
9
9
 
10
+ ## [Unreleased]
11
+
12
+ ## [3.5.0] — 2026-06-19
13
+
14
+ ### Added
15
+
16
+ - **Summary-first decision payloads + `expand` (E1).** `search_decisions` and
17
+ `list_decisions` now default to compact rows (one-line decision + key
18
+ fields), dropping the heavy per-row snippet/origin. A new `expand(ids=[…])`
19
+ tool fetches full records on demand. `full=true` still works;
20
+ `CODEVIRA_DECISION_DETAIL=full` restores the pre-E1 verbose default. (D0000ZQ)
21
+ - **Read-only session-transcript ingest (E2).** `codevira reflect
22
+ --from-sessions` scans local Claude Code / Codex / Gemini logs, heuristically
23
+ flags tool failures + user corrections (no LLM), and folds a sanitized,
24
+ capped digest into the existing reflect pipeline. Candidates only — never
25
+ auto-creates decisions. (D00010W)
26
+ - **Read-side relevance eval (E3).** `codevira eval` measures whether the read
27
+ surface surfaces the right memory (recall@k / MRR / precision) on cases
28
+ self-derived from real `.codevira/` memory — no hand-maintained fixtures.
29
+ Deterministic lexical scoring by default; LLM-as-judge offline. Non-gating.
30
+ (D00010Y)
31
+ - **Learned hot-path weight tuning (Phase 13).** `codevira tune-weights` learns
32
+ `relevance_inject`'s ranking weights from real memory using the E3 eval as
33
+ its objective, persisting only a meaningful win. Opt-in at the hot path via
34
+ `CODEVIRA_LEARNED_WEIGHTS` (default off, fallback to shipped defaults),
35
+ cached per process for prompt-cache stability. (D00010Z)
36
+ - **Multiple managed memory files (E4).** The marker-block writer can now
37
+ maintain `CLAUDE.md`, `GEMINI.md`, and `.cursor/rules/codevira.mdc` in
38
+ addition to `AGENTS.md`, configured via `.codevira/config.yaml:
39
+ managed_files`. Default stays `AGENTS.md`-only (the rest are opt-in). Shared
40
+ markdown files preserve everything outside the markers byte-for-byte; the
41
+ Cursor `.mdc` is a dedicated codevira-owned file with valid frontmatter.
42
+ Re-runs are idempotent, and the session-transcript scanner skips the injected
43
+ block so it can't re-ingest its own output. (D000110)
44
+ - **Opt-in synonym recall widening (E5).** A no-dependency, curated dev-domain
45
+ synonym map widens FTS5 queries so a search in one vocabulary recalls a
46
+ decision recorded in a synonymous one (e.g. `database` → `postgres`). Enable
47
+ with `CODEVIRA_SYNONYM_WIDENING=1`; default off (the E3 eval showed it trades
48
+ a little ranking precision for recall, so it's opt-in). The `[semantic]`
49
+ embedding extra remains deferred (on-device model on hold). (D000113)
50
+
51
+ ### Changed
52
+
53
+ - **Content-aware decision lock (Phase 18).** The lock no longer hard-blocks
54
+ every edit to a file that holds a `do_not_revert` decision. A non-additive
55
+ edit only blocks when its diff shares salient tokens with a locked decision's
56
+ subject; a provably-orthogonal edit downgrades to a warn (decisions still
57
+ surfaced). Restore strict file-level blocking with
58
+ `CODEVIRA_DECISION_LOCK_CONTENT_AWARE=0`. (D00010B)
59
+
60
+ ### Fixed
61
+
62
+ - **`doctor` `ghost_projects` false positive.** The check now delegates to the
63
+ canonical project inventory (`_project_inventory`) instead of its own cruder
64
+ rule, so `doctor` and `codevira projects` agree — empty leftover dirs are
65
+ *stale*, not ghosts. (D0000Z4)
66
+ - **Test isolation leak.** The autouse test fixture only isolated the global
67
+ `~/.codevira/`, leaving the per-project store resolving from the repo cwd —
68
+ so tests calling `record()` without their own project fixture wrote to the
69
+ real `.codevira/decisions.jsonl`. It now chdir's into a throwaway project,
70
+ so no test can reach real memory. (D00010X)
71
+ - **Reconciled the two outcome stores (Phase 17).** The confidence surface
72
+ (SQLite) and the digest/replay/skills surface (JSONL) each ran an independent
73
+ git analysis and could label the same decision differently. Both now delegate
74
+ to one shared `indexer.outcome_classifier.classify_outcome`, so they agree by
75
+ construction. A git failure now means "can't classify" rather than the old
76
+ optimistic "kept". (D000112)
77
+ - **`get_signature` JS/JSX accuracy (Phase 16).** Documented + regression-tested
78
+ the existing TS/TSX/JS/JSX support (the docstrings + unsupported-extension
79
+ error message had omitted JavaScript). (D000111)
80
+
10
81
  ## [3.4.0] — 2026-06-15
11
82
 
12
83
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: codevira
3
- Version: 3.4.0
3
+ Version: 3.5.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
  |---|---|
@@ -331,6 +279,34 @@ versions. User content outside the codevira markers stays.
331
279
 
332
280
  ---
333
281
 
282
+ ## What's new in v3.5.0 — the read side gets intelligent
283
+
284
+ > Codevira's leverage is the **read** side: does it surface the *right*
285
+ > memory at the right moment, with low noise? v3.5.0 makes that side
286
+ > measurable, leaner, and self-tuning — and grew the smarts without
287
+ > bundling a model or adding a single runtime dependency.
288
+
289
+ | Area | What you get |
290
+ |---|---|
291
+ | **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. |
292
+ | **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`. |
293
+ | **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. |
294
+ | **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`). |
295
+ | **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. |
296
+ | **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. |
297
+ | **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). |
298
+
299
+ Full v3.5.0 release notes: [CHANGELOG.md](CHANGELOG.md#350--2026-06-19).
300
+
301
+ **Earlier releases** — full history in the [CHANGELOG](CHANGELOG.md):
302
+ **v3.4** reliable per-call project binding (one user-scope server, no
303
+ cross-project contamination) · **v3.1** five memory subsystems (working
304
+ memory, skills, spatial, consensus, reflections) · **v3.0** the lean
305
+ audit (46 → 24 tools, AGENTS.md-only nudge, ~83 MB install down from
306
+ ~450 MB) · **v2.2** dropped ChromaDB/vectors for SQLite FTS5.
307
+
308
+ ---
309
+
334
310
  ## How It Works
335
311
 
336
312
  Codevira is a [Model Context Protocol](https://modelcontextprotocol.io)
@@ -396,9 +372,9 @@ data:
396
372
  The agent always asks for what it needs, in the size it needs.
397
373
 
398
374
  **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
375
+ fixed per-session cost (~8K tokens for the full 50-tool surface). Set
400
376
  `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
377
+ only the 12 daily-driver tools (~71% smaller); hidden tools still work
402
378
  when called explicitly. Bigger wins usually come from disabling MCP
403
379
  servers you aren't actively using.
404
380
 
@@ -406,10 +382,10 @@ servers you aren't actively using.
406
382
 
407
383
  ## MCP Tools
408
384
 
409
- **49 tools** surfaced to AI clients via `tools/list` (token-optimized,
385
+ **50 tools** surfaced to AI clients via `tools/list` (token-optimized,
410
386
  summary-first): the core decision/roadmap/graph surface plus the
411
387
  v3.1.0 memory subsystems (working memory, skills, spatial, consensus,
412
- reflections) and the v3.3.0 preference tools. One additional admin
388
+ reflections), the v3.3.0 preference tools, and v3.5.0's `expand`. One additional admin
413
389
  tool (`refresh_graph`) is registered but hidden from `tools/list`
414
390
  because it runs automatically in the background — humans invoke it via
415
391
  `codevira sync`. Set `CODEVIRA_TOOL_PROFILE=lean` to advertise only
@@ -504,9 +480,10 @@ kill list.
504
480
  | `get_signature` / `get_code` | ✓ | ✓ | ✓ | ✓ | — |
505
481
 
506
482
  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.
483
+ features require a tree-sitter grammar; codevira ships Python, TS, JS,
484
+ Go, Rust. For other languages the AI `Read`s the file directly — the
485
+ legacy 17-grammar `[all-languages]` pack was removed in v2.2.0 to keep
486
+ the install lean (v2.3.0 may re-add specific grammars on demand).
510
487
 
511
488
  ---
512
489
 
@@ -515,10 +492,10 @@ The opt-in extra `pip install 'codevira[all-languages]'` re-adds the
515
492
  | Production-stable | Known-limited |
516
493
  |---|---|
517
494
  | 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 |
495
+ | `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
496
  | 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
497
  | 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` |
498
+ | 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
499
  | 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
500
  | 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
501
 
@@ -554,21 +531,20 @@ Common questions about setup, usage, architecture, and troubleshooting
554
531
 
555
532
  ## Roadmap
556
533
 
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.
534
+ **Current release:** **v3.5.0** — the read side gets intelligent:
535
+ summary-first decisions + `expand`, a content-aware decision lock,
536
+ read-only session-transcript ingest, a self-derived relevance eval +
537
+ learned weight tuning, multi-file managed memory, and opt-in synonym
538
+ recall — all with no new runtime dependencies.
560
539
 
561
540
  **Next up** (directional, not dated):
562
541
 
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
542
+ - **Opt-in `[semantic]` recall** — off by default; the base install
569
543
  stays pure-keyword, no vectors, no model download
570
- - **TypeScript `get_signature`**, finer-grained decision locking,
571
- learned hot-path tuning
544
+ - **Symbol / region-level decision locking** — lock a function or
545
+ block, not just the whole file
546
+ - **Cross-project decision search** — `search_decisions` across all
547
+ your local projects, not just the current one
572
548
 
573
549
  What's built, the full upcoming list, and the long-term vision —
574
550
  **[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
  |---|---|
@@ -282,6 +230,34 @@ versions. User content outside the codevira markers stays.
282
230
 
283
231
  ---
284
232
 
233
+ ## What's new in v3.5.0 — the read side gets intelligent
234
+
235
+ > Codevira's leverage is the **read** side: does it surface the *right*
236
+ > memory at the right moment, with low noise? v3.5.0 makes that side
237
+ > measurable, leaner, and self-tuning — and grew the smarts without
238
+ > bundling a model or adding a single runtime dependency.
239
+
240
+ | Area | What you get |
241
+ |---|---|
242
+ | **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. |
243
+ | **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`. |
244
+ | **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. |
245
+ | **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`). |
246
+ | **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. |
247
+ | **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. |
248
+ | **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). |
249
+
250
+ Full v3.5.0 release notes: [CHANGELOG.md](CHANGELOG.md#350--2026-06-19).
251
+
252
+ **Earlier releases** — full history in the [CHANGELOG](CHANGELOG.md):
253
+ **v3.4** reliable per-call project binding (one user-scope server, no
254
+ cross-project contamination) · **v3.1** five memory subsystems (working
255
+ memory, skills, spatial, consensus, reflections) · **v3.0** the lean
256
+ audit (46 → 24 tools, AGENTS.md-only nudge, ~83 MB install down from
257
+ ~450 MB) · **v2.2** dropped ChromaDB/vectors for SQLite FTS5.
258
+
259
+ ---
260
+
285
261
  ## How It Works
286
262
 
287
263
  Codevira is a [Model Context Protocol](https://modelcontextprotocol.io)
@@ -347,9 +323,9 @@ data:
347
323
  The agent always asks for what it needs, in the size it needs.
348
324
 
349
325
  **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
326
+ fixed per-session cost (~8K tokens for the full 50-tool surface). Set
351
327
  `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
328
+ only the 12 daily-driver tools (~71% smaller); hidden tools still work
353
329
  when called explicitly. Bigger wins usually come from disabling MCP
354
330
  servers you aren't actively using.
355
331
 
@@ -357,10 +333,10 @@ servers you aren't actively using.
357
333
 
358
334
  ## MCP Tools
359
335
 
360
- **49 tools** surfaced to AI clients via `tools/list` (token-optimized,
336
+ **50 tools** surfaced to AI clients via `tools/list` (token-optimized,
361
337
  summary-first): the core decision/roadmap/graph surface plus the
362
338
  v3.1.0 memory subsystems (working memory, skills, spatial, consensus,
363
- reflections) and the v3.3.0 preference tools. One additional admin
339
+ reflections), the v3.3.0 preference tools, and v3.5.0's `expand`. One additional admin
364
340
  tool (`refresh_graph`) is registered but hidden from `tools/list`
365
341
  because it runs automatically in the background — humans invoke it via
366
342
  `codevira sync`. Set `CODEVIRA_TOOL_PROFILE=lean` to advertise only
@@ -455,9 +431,10 @@ kill list.
455
431
  | `get_signature` / `get_code` | ✓ | ✓ | ✓ | ✓ | — |
456
432
 
457
433
  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.
434
+ features require a tree-sitter grammar; codevira ships Python, TS, JS,
435
+ Go, Rust. For other languages the AI `Read`s the file directly — the
436
+ legacy 17-grammar `[all-languages]` pack was removed in v2.2.0 to keep
437
+ the install lean (v2.3.0 may re-add specific grammars on demand).
461
438
 
462
439
  ---
463
440
 
@@ -466,10 +443,10 @@ The opt-in extra `pip install 'codevira[all-languages]'` re-adds the
466
443
  | Production-stable | Known-limited |
467
444
  |---|---|
468
445
  | 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 |
446
+ | `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
447
  | 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
448
  | 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` |
449
+ | 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
450
  | 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
451
  | 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
452
 
@@ -505,21 +482,20 @@ Common questions about setup, usage, architecture, and troubleshooting
505
482
 
506
483
  ## Roadmap
507
484
 
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.
485
+ **Current release:** **v3.5.0** — the read side gets intelligent:
486
+ summary-first decisions + `expand`, a content-aware decision lock,
487
+ read-only session-transcript ingest, a self-derived relevance eval +
488
+ learned weight tuning, multi-file managed memory, and opt-in synonym
489
+ recall — all with no new runtime dependencies.
511
490
 
512
491
  **Next up** (directional, not dated):
513
492
 
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
493
+ - **Opt-in `[semantic]` recall** — off by default; the base install
520
494
  stays pure-keyword, no vectors, no model download
521
- - **TypeScript `get_signature`**, finer-grained decision locking,
522
- learned hot-path tuning
495
+ - **Symbol / region-level decision locking** — lock a function or
496
+ block, not just the whole file
497
+ - **Cross-project decision search** — `search_decisions` across all
498
+ your local projects, not just the current one
523
499
 
524
500
  What's built, the full upcoming list, and the long-term vision —
525
501
  **[ROADMAP.md](ROADMAP.md)**.