codevira 4.0.0__tar.gz → 4.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. {codevira-4.0.0 → codevira-4.0.1}/CHANGELOG.md +393 -0
  2. codevira-4.0.1/PKG-INFO +680 -0
  3. codevira-4.0.1/README.md +628 -0
  4. {codevira-4.0.0 → codevira-4.0.1}/agents/qa/tier2-scripts.md +1 -1
  5. codevira-4.0.1/codevira.egg-info/PKG-INFO +680 -0
  6. {codevira-4.0.0 → codevira-4.0.1}/codevira.egg-info/SOURCES.txt +3 -2
  7. {codevira-4.0.0 → codevira-4.0.1}/docs/architecture.md +4 -1
  8. {codevira-4.0.0 → codevira-4.0.1}/docs/troubleshooting/config-hygiene.md +1 -1
  9. {codevira-4.0.0 → codevira-4.0.1}/indexer/graph_generator.py +46 -4
  10. codevira-4.0.0/indexer/chunker.py → codevira-4.0.1/indexer/imports.py +75 -379
  11. {codevira-4.0.0 → codevira-4.0.1}/indexer/index_codebase.py +129 -491
  12. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/__init__.py +1 -1
  13. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/_ghost_check.py +17 -9
  14. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/_project_inventory.py +99 -38
  15. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/auto_init.py +1 -1
  16. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli.py +67 -126
  17. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli_init.py +19 -8
  18. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli_projects.py +2 -2
  19. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/gitignore.py +181 -64
  20. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/ide_inject.py +57 -6
  21. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/migrate.py +61 -3
  22. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/paths.py +1 -1
  23. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/server.py +12 -10
  24. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/decisions_store.py +52 -7
  25. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/fts5_index.py +38 -0
  26. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/id_repair.py +41 -7
  27. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/jsonl_store.py +11 -1
  28. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/tools/learning.py +9 -3
  29. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/tools/search.py +6 -8
  30. {codevira-4.0.0 → codevira-4.0.1}/pyproject.toml +1 -1
  31. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/test_product_invariants.py +12 -6
  32. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_decisions_store.py +141 -0
  33. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_jsonl_store.py +89 -0
  34. {codevira-4.0.0 → codevira-4.0.1}/tests/test_ghost_check.py +119 -1
  35. {codevira-4.0.0 → codevira-4.0.1}/tests/test_git_shared.py +91 -0
  36. {codevira-4.0.0 → codevira-4.0.1}/tests/test_graph_generator.py +101 -1
  37. {codevira-4.0.0 → codevira-4.0.1}/tests/test_id_repair.py +85 -0
  38. {codevira-4.0.0 → codevira-4.0.1}/tests/test_ide_inject.py +146 -2
  39. codevira-4.0.1/tests/test_imports.py +560 -0
  40. {codevira-4.0.0 → codevira-4.0.1}/tests/test_index_codebase.py +266 -564
  41. codevira-4.0.1/tests/test_project_inventory.py +188 -0
  42. codevira-4.0.1/tests/test_prune_and_clean_deprecation.py +103 -0
  43. {codevira-4.0.0 → codevira-4.0.1}/tests/test_server.py +64 -0
  44. codevira-4.0.1/tests/test_startup_migrations.py +183 -0
  45. {codevira-4.0.0 → codevira-4.0.1}/tests/test_tools_learning.py +87 -0
  46. {codevira-4.0.0 → codevira-4.0.1}/tests/test_treesitter_parser.py +1 -1
  47. codevira-4.0.0/PKG-INFO +0 -577
  48. codevira-4.0.0/README.md +0 -525
  49. codevira-4.0.0/codevira.egg-info/PKG-INFO +0 -577
  50. codevira-4.0.0/tests/test_chunker.py +0 -1105
  51. codevira-4.0.0/tests/test_prune_and_clean_deprecation.py +0 -151
  52. codevira-4.0.0/tests/test_startup_migrations.py +0 -77
  53. {codevira-4.0.0 → codevira-4.0.1}/LICENSE +0 -0
  54. {codevira-4.0.0 → codevira-4.0.1}/MANIFEST.in +0 -0
  55. {codevira-4.0.0 → codevira-4.0.1}/agents/qa/01-code-review.md +0 -0
  56. {codevira-4.0.0 → codevira-4.0.1}/agents/qa/02-adversarial-fix-review.md +0 -0
  57. {codevira-4.0.0 → codevira-4.0.1}/agents/qa/03-cross-module-impact.md +0 -0
  58. {codevira-4.0.0 → codevira-4.0.1}/agents/qa/06-doc-drift.md +0 -0
  59. {codevira-4.0.0 → codevira-4.0.1}/agents/qa/07-security-audit.md +0 -0
  60. {codevira-4.0.0 → codevira-4.0.1}/agents/qa/12-llm-redteam.md +0 -0
  61. {codevira-4.0.0 → codevira-4.0.1}/agents/qa/13-multi-ide-schema.md +0 -0
  62. {codevira-4.0.0 → codevira-4.0.1}/agents/qa/22-competitor-benchmark.md +0 -0
  63. {codevira-4.0.0 → codevira-4.0.1}/agents/qa/README.md +0 -0
  64. {codevira-4.0.0 → codevira-4.0.1}/agents/qa/tier3-manual.md +0 -0
  65. {codevira-4.0.0 → codevira-4.0.1}/codevira.egg-info/dependency_links.txt +0 -0
  66. {codevira-4.0.0 → codevira-4.0.1}/codevira.egg-info/entry_points.txt +0 -0
  67. {codevira-4.0.0 → codevira-4.0.1}/codevira.egg-info/requires.txt +0 -0
  68. {codevira-4.0.0 → codevira-4.0.1}/codevira.egg-info/top_level.txt +0 -0
  69. {codevira-4.0.0 → codevira-4.0.1}/config.example.yaml +0 -0
  70. {codevira-4.0.0 → codevira-4.0.1}/docs/alpha-tester-invites.md +0 -0
  71. {codevira-4.0.0 → codevira-4.0.1}/docs/audit-2026-05-22.md +0 -0
  72. {codevira-4.0.0 → codevira-4.0.1}/docs/demo/README.md +0 -0
  73. {codevira-4.0.0 → codevira-4.0.1}/docs/foolproof-product-charter.md +0 -0
  74. {codevira-4.0.0 → codevira-4.0.1}/docs/heroes/00-engine.md +0 -0
  75. {codevira-4.0.0 → codevira-4.0.1}/docs/heroes/01-decision-lock.md +0 -0
  76. {codevira-4.0.0 → codevira-4.0.1}/docs/heroes/02-anti-regression.md +0 -0
  77. {codevira-4.0.0 → codevira-4.0.1}/docs/heroes/03-scope-contract.md +0 -0
  78. {codevira-4.0.0 → codevira-4.0.1}/docs/heroes/04-blast-radius.md +0 -0
  79. {codevira-4.0.0 → codevira-4.0.1}/docs/heroes/05-cross-session.md +0 -0
  80. {codevira-4.0.0 → codevira-4.0.1}/docs/heroes/06-token-budget.md +0 -0
  81. {codevira-4.0.0 → codevira-4.0.1}/docs/heroes/07-live-style.md +0 -0
  82. {codevira-4.0.0 → codevira-4.0.1}/docs/heroes/08-decision-replay.md +0 -0
  83. {codevira-4.0.0 → codevira-4.0.1}/docs/heroes/09-intent-inference.md +0 -0
  84. {codevira-4.0.0 → codevira-4.0.1}/docs/heroes/10-ai-promotion.md +0 -0
  85. {codevira-4.0.0 → codevira-4.0.1}/docs/heroes/README.md +0 -0
  86. {codevira-4.0.0 → codevira-4.0.1}/docs/heroes/pillar-1-setup.md +0 -0
  87. {codevira-4.0.0 → codevira-4.0.1}/docs/hn-launch-day.md +0 -0
  88. {codevira-4.0.0 → codevira-4.0.1}/docs/how-i-built-persistent-memory-for-ai-agents.md +0 -0
  89. {codevira-4.0.0 → codevira-4.0.1}/docs/internal/4.0-beta.md +0 -0
  90. {codevira-4.0.0 → codevira-4.0.1}/docs/internal/architecture-4.0.md +0 -0
  91. {codevira-4.0.0 → codevira-4.0.1}/docs/internal/competitive-landscape.md +0 -0
  92. {codevira-4.0.0 → codevira-4.0.1}/docs/internal/memory-strategy-2026-07.md +0 -0
  93. {codevira-4.0.0 → codevira-4.0.1}/docs/linkedin-article-ai-agent-memory.md +0 -0
  94. {codevira-4.0.0 → codevira-4.0.1}/docs/linkedin-post-ai-agent-memory.md +0 -0
  95. {codevira-4.0.0 → codevira-4.0.1}/docs/local-pypi-https.md +0 -0
  96. {codevira-4.0.0 → codevira-4.0.1}/docs/medium-your-ai-coding-agent-has-amnesia.md +0 -0
  97. {codevira-4.0.0 → codevira-4.0.1}/docs/morning-handoff-2026-05-22.md +0 -0
  98. {codevira-4.0.0 → codevira-4.0.1}/docs/plans/opt-in-activation.md +0 -0
  99. {codevira-4.0.0 → codevira-4.0.1}/docs/plans/v2.1.2.md +0 -0
  100. {codevira-4.0.0 → codevira-4.0.1}/docs/plans/v2.1.3.md +0 -0
  101. {codevira-4.0.0 → codevira-4.0.1}/docs/plans/v2.2.0.md +0 -0
  102. {codevira-4.0.0 → codevira-4.0.1}/docs/plans/v3.0.0.md +0 -0
  103. {codevira-4.0.0 → codevira-4.0.1}/docs/qa-playbook.md +0 -0
  104. {codevira-4.0.0 → codevira-4.0.1}/docs/release-notes/v3.1.1.md +0 -0
  105. {codevira-4.0.0 → codevira-4.0.1}/docs/release-notes/v3.7.1.md +0 -0
  106. {codevira-4.0.0 → codevira-4.0.1}/docs/release-process.md +0 -0
  107. {codevira-4.0.0 → codevira-4.0.1}/docs/roadmap.md +0 -0
  108. {codevira-4.0.0 → codevira-4.0.1}/docs/surface-cuts-2026-05-22.md +0 -0
  109. {codevira-4.0.0 → codevira-4.0.1}/docs/troubleshooting/antigravity.md +0 -0
  110. {codevira-4.0.0 → codevira-4.0.1}/docs/v2-completion-plan.md +0 -0
  111. {codevira-4.0.0 → codevira-4.0.1}/docs/v2-execution-log.md +0 -0
  112. {codevira-4.0.0 → codevira-4.0.1}/docs/v2-master-plan.md +0 -0
  113. {codevira-4.0.0 → codevira-4.0.1}/docs/vs-other-memory-tools.md +0 -0
  114. {codevira-4.0.0 → codevira-4.0.1}/graph/_schema.yaml +0 -0
  115. {codevira-4.0.0 → codevira-4.0.1}/indexer/__init__.py +0 -0
  116. {codevira-4.0.0 → codevira-4.0.1}/indexer/_dedupe_migration.py +0 -0
  117. {codevira-4.0.0 → codevira-4.0.1}/indexer/_fork_safety.py +0 -0
  118. {codevira-4.0.0 → codevira-4.0.1}/indexer/_sqlite_util.py +0 -0
  119. {codevira-4.0.0 → codevira-4.0.1}/indexer/fix_history.py +0 -0
  120. {codevira-4.0.0 → codevira-4.0.1}/indexer/global_db.py +0 -0
  121. {codevira-4.0.0 → codevira-4.0.1}/indexer/outcome_classifier.py +0 -0
  122. {codevira-4.0.0 → codevira-4.0.1}/indexer/sqlite_graph.py +0 -0
  123. {codevira-4.0.0 → codevira-4.0.1}/indexer/treesitter_parser.py +0 -0
  124. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/__main__.py +0 -0
  125. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/_mcp_registry.py +0 -0
  126. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/_prompts.py +0 -0
  127. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/_repair_init.py +0 -0
  128. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/_safe_crash.py +0 -0
  129. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli_eval.py +0 -0
  130. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli_export.py +0 -0
  131. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli_graph.py +0 -0
  132. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli_hooks_admin.py +0 -0
  133. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli_induce.py +0 -0
  134. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli_memory.py +0 -0
  135. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli_repair.py +0 -0
  136. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli_replay.py +0 -0
  137. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli_search.py +0 -0
  138. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli_sync.py +0 -0
  139. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli_transfer.py +0 -0
  140. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli_uninstall.py +0 -0
  141. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/cli_working.py +0 -0
  142. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/crash_logger.py +0 -0
  143. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/__init__.py +0 -0
  144. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/config.example.yaml +0 -0
  145. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/hooks/post_tool_use.sh +0 -0
  146. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/hooks/pre_tool_use.sh +0 -0
  147. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/hooks/session_start.sh +0 -0
  148. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/hooks/stop.sh +0 -0
  149. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/hooks/user_prompt_submit.sh +0 -0
  150. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/rules/coding-standards-generic.md +0 -0
  151. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/rules/coding-standards-go.md +0 -0
  152. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/rules/coding-standards-typescript.md +0 -0
  153. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/rules/coding-standards.md +0 -0
  154. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/rules/engineering-excellence.md +0 -0
  155. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/rules/git-cicd-governance.md +0 -0
  156. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/rules/git_commits.md +0 -0
  157. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/rules/incremental-updates.md +0 -0
  158. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/rules/master_rule.md +0 -0
  159. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/rules/multi-language.md +0 -0
  160. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/rules/persistence.md +0 -0
  161. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/rules/resilience-observability.md +0 -0
  162. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/rules/smoke-testing.md +0 -0
  163. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/data/rules/testing-standards.md +0 -0
  164. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/decision_replay.py +0 -0
  165. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/detect.py +0 -0
  166. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/doctor.py +0 -0
  167. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/egress.py +0 -0
  168. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/__init__.py +0 -0
  169. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/audit.py +0 -0
  170. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/demo_policy.py +0 -0
  171. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/events.py +0 -0
  172. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/memory_fanout.py +0 -0
  173. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/policies/__init__.py +0 -0
  174. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/policies/_region_detect.py +0 -0
  175. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/policies/_signature_detect.py +0 -0
  176. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/policies/anti_regression.py +0 -0
  177. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/policies/blast_radius.py +0 -0
  178. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/policies/decision_lock.py +0 -0
  179. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/policies/post_edit_refresh.py +0 -0
  180. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/policies/relevance_inject.py +0 -0
  181. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/policies/session_log_enforcer.py +0 -0
  182. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/policies/token_budget.py +0 -0
  183. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/policy.py +0 -0
  184. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/runner.py +0 -0
  185. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/signals.py +0 -0
  186. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/token_meter.py +0 -0
  187. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/wiring/__init__.py +0 -0
  188. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/wiring/_diff_envelope.py +0 -0
  189. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/wiring/antigravity_hooks.py +0 -0
  190. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/wiring/claude_code_hooks.py +0 -0
  191. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/wiring/git_hooks.py +0 -0
  192. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/engine/wiring/mcp_dispatch.py +0 -0
  193. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/eval/__init__.py +0 -0
  194. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/eval/judge.py +0 -0
  195. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/eval/relevance.py +0 -0
  196. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/eval/report.py +0 -0
  197. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/global_sync.py +0 -0
  198. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/graph/__init__.py +0 -0
  199. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/graph/template.html +0 -0
  200. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/http_server.py +0 -0
  201. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/launchd.py +0 -0
  202. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/log_retention.py +0 -0
  203. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/memory_undo.py +0 -0
  204. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/opt_in.py +0 -0
  205. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/project_binding.py +0 -0
  206. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/prompts.py +0 -0
  207. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/register_all.py +0 -0
  208. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/retrieval/__init__.py +0 -0
  209. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/retrieval/score.py +0 -0
  210. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/roadmap_drift.py +0 -0
  211. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/setup_wizard.py +0 -0
  212. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/__init__.py +0 -0
  213. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/activity_store.py +0 -0
  214. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/agents_md_generator.py +0 -0
  215. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/anchor.py +0 -0
  216. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/atomic.py +0 -0
  217. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/config.py +0 -0
  218. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/digest.py +0 -0
  219. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/manifest.py +0 -0
  220. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/origin.py +0 -0
  221. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/outcomes_writer.py +0 -0
  222. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/paths.py +0 -0
  223. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/reconcile.py +0 -0
  224. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/sanitize.py +0 -0
  225. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/sessions_store.py +0 -0
  226. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/skills_store.py +0 -0
  227. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/synonyms.py +0 -0
  228. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/text.py +0 -0
  229. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/token_estimator.py +0 -0
  230. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/uid.py +0 -0
  231. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/storage/working_store.py +0 -0
  232. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/tenant.py +0 -0
  233. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/tools/__init__.py +0 -0
  234. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/tools/check_conflict.py +0 -0
  235. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/tools/graph.py +0 -0
  236. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/tools/playbook.py +0 -0
  237. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/tools/provenance.py +0 -0
  238. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/tools/roadmap.py +0 -0
  239. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/tools/skills.py +0 -0
  240. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/tools/working.py +0 -0
  241. {codevira-4.0.0 → codevira-4.0.1}/mcp_server/update_check.py +0 -0
  242. {codevira-4.0.0 → codevira-4.0.1}/rules/coding-standards.md +0 -0
  243. {codevira-4.0.0 → codevira-4.0.1}/rules/engineering-excellence.md +0 -0
  244. {codevira-4.0.0 → codevira-4.0.1}/rules/git-cicd-governance.md +0 -0
  245. {codevira-4.0.0 → codevira-4.0.1}/rules/git_commits.md +0 -0
  246. {codevira-4.0.0 → codevira-4.0.1}/rules/incremental-updates.md +0 -0
  247. {codevira-4.0.0 → codevira-4.0.1}/rules/master_rule.md +0 -0
  248. {codevira-4.0.0 → codevira-4.0.1}/rules/persistence.md +0 -0
  249. {codevira-4.0.0 → codevira-4.0.1}/rules/resilience-observability.md +0 -0
  250. {codevira-4.0.0 → codevira-4.0.1}/rules/smoke-testing.md +0 -0
  251. {codevira-4.0.0 → codevira-4.0.1}/rules/testing-standards.md +0 -0
  252. {codevira-4.0.0 → codevira-4.0.1}/setup.cfg +0 -0
  253. {codevira-4.0.0 → codevira-4.0.1}/tests/conftest.py +0 -0
  254. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/__init__.py +0 -0
  255. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/code_only_python/README.md +0 -0
  256. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/code_only_python/pyproject.toml +0 -0
  257. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/code_only_python/src/widgets.py +0 -0
  258. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/code_only_python/tests/test_widgets.py +0 -0
  259. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/conftest.py +0 -0
  260. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/docs_only/CONTRIBUTING.md +0 -0
  261. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/docs_only/README.md +0 -0
  262. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/docs_only/docs/architecture.md +0 -0
  263. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/docs_only/package.json +0 -0
  264. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/monorepo/README.md +0 -0
  265. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/monorepo/package.json +0 -0
  266. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/monorepo/packages/foo/package.json +0 -0
  267. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/monorepo/packages/foo/src/index.ts +0 -0
  268. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/polyglot/CLAUDE.md +0 -0
  269. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/polyglot/README.md +0 -0
  270. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/polyglot/config/settings.yaml +0 -0
  271. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/polyglot/pyproject.toml +0 -0
  272. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/polyglot/src/api.py +0 -0
  273. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/fixtures/polyglot/src/client.ts +0 -0
  274. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/test_cross_tool_universality.py +0 -0
  275. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/test_first_contact.py +0 -0
  276. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/test_qa_round_v2_completion.py +0 -0
  277. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/test_v2_release_candidate.py +0 -0
  278. {codevira-4.0.0 → codevira-4.0.1}/tests/e2e/test_v350_acceptance.py +0 -0
  279. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/__init__.py +0 -0
  280. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_anti_regression.py +0 -0
  281. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_antigravity_hooks.py +0 -0
  282. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_audit.py +0 -0
  283. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_blast_radius.py +0 -0
  284. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_block_message_evidence.py +0 -0
  285. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_claude_native_memory.py +0 -0
  286. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_decision_lock.py +0 -0
  287. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_decision_replay.py +0 -0
  288. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_diff_envelope.py +0 -0
  289. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_events.py +0 -0
  290. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_evidence_reaches_readers.py +0 -0
  291. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_fix_history.py +0 -0
  292. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_git_hook_enforcement.py +0 -0
  293. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_integration.py +0 -0
  294. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_memory_fanout.py +0 -0
  295. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_policies.py +0 -0
  296. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_qa_p0_fixes.py +0 -0
  297. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_qa_round3.py +0 -0
  298. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_qa_round4.py +0 -0
  299. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_qa_round5.py +0 -0
  300. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_qa_round_week13.py +0 -0
  301. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_region_detect.py +0 -0
  302. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_relevance_inject.py +0 -0
  303. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_runner.py +0 -0
  304. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_session_log_enforcer.py +0 -0
  305. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_signals_project_scoping.py +0 -0
  306. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_token_budget.py +0 -0
  307. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_token_meter.py +0 -0
  308. {codevira-4.0.0 → codevira-4.0.1}/tests/engine/test_week2_edge_cases.py +0 -0
  309. {codevira-4.0.0 → codevira-4.0.1}/tests/integration/__init__.py +0 -0
  310. {codevira-4.0.0 → codevira-4.0.1}/tests/integration/test_help_text_consistency.py +0 -0
  311. {codevira-4.0.0 → codevira-4.0.1}/tests/integration/test_mcp_roundtrip.py +0 -0
  312. {codevira-4.0.0 → codevira-4.0.1}/tests/integration/test_sandboxed_parent.py +0 -0
  313. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/__init__.py +0 -0
  314. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_activity_store.py +0 -0
  315. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_agents_md_generator.py +0 -0
  316. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_amendment_provenance.py +0 -0
  317. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_anchor_derivation.py +0 -0
  318. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_atomic.py +0 -0
  319. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_concurrent_writes.py +0 -0
  320. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_cross_process_writes.py +0 -0
  321. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_device_identity.py +0 -0
  322. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_digest.py +0 -0
  323. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_fts5_index.py +0 -0
  324. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_id_repair_references.py +0 -0
  325. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_manifest.py +0 -0
  326. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_origin.py +0 -0
  327. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_sanitize.py +0 -0
  328. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_score_breakdown.py +0 -0
  329. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_search_perf_caches.py +0 -0
  330. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_session_identity.py +0 -0
  331. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_skills_store.py +0 -0
  332. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_stranded_parameters.py +0 -0
  333. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_token_estimator.py +0 -0
  334. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_uid.py +0 -0
  335. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_uid_edges.py +0 -0
  336. {codevira-4.0.0 → codevira-4.0.1}/tests/storage/test_working_store.py +0 -0
  337. {codevira-4.0.0 → codevira-4.0.1}/tests/test__prompts.py +0 -0
  338. {codevira-4.0.0 → codevira-4.0.1}/tests/test_antigravity_hook_portable.py +0 -0
  339. {codevira-4.0.0 → codevira-4.0.1}/tests/test_auto_init.py +0 -0
  340. {codevira-4.0.0 → codevira-4.0.1}/tests/test_binding_conflict_detection.py +0 -0
  341. {codevira-4.0.0 → codevira-4.0.1}/tests/test_binding_e2e.py +0 -0
  342. {codevira-4.0.0 → codevira-4.0.1}/tests/test_call_edge_fk_safety.py +0 -0
  343. {codevira-4.0.0 → codevira-4.0.1}/tests/test_check_conflict.py +0 -0
  344. {codevira-4.0.0 → codevira-4.0.1}/tests/test_claude_binding_conflict.py +0 -0
  345. {codevira-4.0.0 → codevira-4.0.1}/tests/test_cli_export.py +0 -0
  346. {codevira-4.0.0 → codevira-4.0.1}/tests/test_cli_graph.py +0 -0
  347. {codevira-4.0.0 → codevira-4.0.1}/tests/test_cli_induce.py +0 -0
  348. {codevira-4.0.0 → codevira-4.0.1}/tests/test_cli_projects.py +0 -0
  349. {codevira-4.0.0 → codevira-4.0.1}/tests/test_cli_replay.py +0 -0
  350. {codevira-4.0.0 → codevira-4.0.1}/tests/test_cli_search.py +0 -0
  351. {codevira-4.0.0 → codevira-4.0.1}/tests/test_cli_transfer.py +0 -0
  352. {codevira-4.0.0 → codevira-4.0.1}/tests/test_cli_uninstall.py +0 -0
  353. {codevira-4.0.0 → codevira-4.0.1}/tests/test_cli_untrack.py +0 -0
  354. {codevira-4.0.0 → codevira-4.0.1}/tests/test_cli_version.py +0 -0
  355. {codevira-4.0.0 → codevira-4.0.1}/tests/test_cli_working.py +0 -0
  356. {codevira-4.0.0 → codevira-4.0.1}/tests/test_committed_memory.py +0 -0
  357. {codevira-4.0.0 → codevira-4.0.1}/tests/test_crash_logger.py +0 -0
  358. {codevira-4.0.0 → codevira-4.0.1}/tests/test_cross_project_search.py +0 -0
  359. {codevira-4.0.0 → codevira-4.0.1}/tests/test_decisions_store.py +0 -0
  360. {codevira-4.0.0 → codevira-4.0.1}/tests/test_dedupe_migration.py +0 -0
  361. {codevira-4.0.0 → codevira-4.0.1}/tests/test_detect.py +0 -0
  362. {codevira-4.0.0 → codevira-4.0.1}/tests/test_doctor.py +0 -0
  363. {codevira-4.0.0 → codevira-4.0.1}/tests/test_e1_summary_first.py +0 -0
  364. {codevira-4.0.0 → codevira-4.0.1}/tests/test_egress_boundary.py +0 -0
  365. {codevira-4.0.0 → codevira-4.0.1}/tests/test_eval_e3.py +0 -0
  366. {codevira-4.0.0 → codevira-4.0.1}/tests/test_fk_safety_extended.py +0 -0
  367. {codevira-4.0.0 → codevira-4.0.1}/tests/test_fork_safety.py +0 -0
  368. {codevira-4.0.0 → codevira-4.0.1}/tests/test_g3_hermetic.py +0 -0
  369. {codevira-4.0.0 → codevira-4.0.1}/tests/test_gitignore.py +0 -0
  370. {codevira-4.0.0 → codevira-4.0.1}/tests/test_global_db.py +0 -0
  371. {codevira-4.0.0 → codevira-4.0.1}/tests/test_global_home_isolation.py +0 -0
  372. {codevira-4.0.0 → codevira-4.0.1}/tests/test_global_sync.py +0 -0
  373. {codevira-4.0.0 → codevira-4.0.1}/tests/test_graph_not_indexed_contract.py +0 -0
  374. {codevira-4.0.0 → codevira-4.0.1}/tests/test_hook_resilience.py +0 -0
  375. {codevira-4.0.0 → codevira-4.0.1}/tests/test_http_server.py +0 -0
  376. {codevira-4.0.0 → codevira-4.0.1}/tests/test_launchd.py +0 -0
  377. {codevira-4.0.0 → codevira-4.0.1}/tests/test_log_retention.py +0 -0
  378. {codevira-4.0.0 → codevira-4.0.1}/tests/test_managed_files_e4.py +0 -0
  379. {codevira-4.0.0 → codevira-4.0.1}/tests/test_memory_undo.py +0 -0
  380. {codevira-4.0.0 → codevira-4.0.1}/tests/test_migrate.py +0 -0
  381. {codevira-4.0.0 → codevira-4.0.1}/tests/test_migration_memory_loss.py +0 -0
  382. {codevira-4.0.0 → codevira-4.0.1}/tests/test_migration_no_data_loss_e2e.py +0 -0
  383. {codevira-4.0.0 → codevira-4.0.1}/tests/test_opt_in.py +0 -0
  384. {codevira-4.0.0 → codevira-4.0.1}/tests/test_outcome_reconcile_p17.py +0 -0
  385. {codevira-4.0.0 → codevira-4.0.1}/tests/test_path_glob_and_scrub.py +0 -0
  386. {codevira-4.0.0 → codevira-4.0.1}/tests/test_paths.py +0 -0
  387. {codevira-4.0.0 → codevira-4.0.1}/tests/test_phase27_quality_fixes.py +0 -0
  388. {codevira-4.0.0 → codevira-4.0.1}/tests/test_pin_generation.py +0 -0
  389. {codevira-4.0.0 → codevira-4.0.1}/tests/test_pre_release_block_hook.py +0 -0
  390. {codevira-4.0.0 → codevira-4.0.1}/tests/test_project_binding.py +0 -0
  391. {codevira-4.0.0 → codevira-4.0.1}/tests/test_prompts.py +0 -0
  392. {codevira-4.0.0 → codevira-4.0.1}/tests/test_reconcile.py +0 -0
  393. {codevira-4.0.0 → codevira-4.0.1}/tests/test_record_decision.py +0 -0
  394. {codevira-4.0.0 → codevira-4.0.1}/tests/test_register_all.py +0 -0
  395. {codevira-4.0.0 → codevira-4.0.1}/tests/test_registration_heal.py +0 -0
  396. {codevira-4.0.0 → codevira-4.0.1}/tests/test_remote_hijack.py +0 -0
  397. {codevira-4.0.0 → codevira-4.0.1}/tests/test_removed_tool_migration.py +0 -0
  398. {codevira-4.0.0 → codevira-4.0.1}/tests/test_repair_ids.py +0 -0
  399. {codevira-4.0.0 → codevira-4.0.1}/tests/test_repair_ids_race.py +0 -0
  400. {codevira-4.0.0 → codevira-4.0.1}/tests/test_repair_init.py +0 -0
  401. {codevira-4.0.0 → codevira-4.0.1}/tests/test_retirement_and_amendments.py +0 -0
  402. {codevira-4.0.0 → codevira-4.0.1}/tests/test_retrieval_score.py +0 -0
  403. {codevira-4.0.0 → codevira-4.0.1}/tests/test_review_round2.py +0 -0
  404. {codevira-4.0.0 → codevira-4.0.1}/tests/test_review_round3.py +0 -0
  405. {codevira-4.0.0 → codevira-4.0.1}/tests/test_roadmap_drift.py +0 -0
  406. {codevira-4.0.0 → codevira-4.0.1}/tests/test_sdist_completeness.py +0 -0
  407. {codevira-4.0.0 → codevira-4.0.1}/tests/test_setup_wizard.py +0 -0
  408. {codevira-4.0.0 → codevira-4.0.1}/tests/test_skill_reinforcement.py +0 -0
  409. {codevira-4.0.0 → codevira-4.0.1}/tests/test_sqlite_graph.py +0 -0
  410. {codevira-4.0.0 → codevira-4.0.1}/tests/test_sqlite_util.py +0 -0
  411. {codevira-4.0.0 → codevira-4.0.1}/tests/test_subprocess_imports_working_tree.py +0 -0
  412. {codevira-4.0.0 → codevira-4.0.1}/tests/test_supersede_on_write.py +0 -0
  413. {codevira-4.0.0 → codevira-4.0.1}/tests/test_synonym_widening_e5.py +0 -0
  414. {codevira-4.0.0 → codevira-4.0.1}/tests/test_tenant_isolation.py +0 -0
  415. {codevira-4.0.0 → codevira-4.0.1}/tests/test_tools_graph.py +0 -0
  416. {codevira-4.0.0 → codevira-4.0.1}/tests/test_tools_playbook.py +0 -0
  417. {codevira-4.0.0 → codevira-4.0.1}/tests/test_tools_roadmap.py +0 -0
  418. {codevira-4.0.0 → codevira-4.0.1}/tests/test_tools_skills.py +0 -0
  419. {codevira-4.0.0 → codevira-4.0.1}/tests/test_tools_working.py +0 -0
  420. {codevira-4.0.0 → codevira-4.0.1}/tests/test_update_check.py +0 -0
  421. {codevira-4.0.0 → codevira-4.0.1}/tests/test_watcher_circuit.py +0 -0
  422. {codevira-4.0.0 → codevira-4.0.1}/tests/test_working_promote_skill.py +0 -0
  423. {codevira-4.0.0 → codevira-4.0.1}/tests/test_worktree_and_cache.py +0 -0
  424. {codevira-4.0.0 → codevira-4.0.1}/tests/test_worktree_shared_memory.py +0 -0
@@ -9,6 +9,399 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [4.0.1] — 2026-08-12
13
+
14
+ Repairs team-shared memory (`init --shared` never actually worked), removes the
15
+ deprecated `codevira clean` command (a footgun — see below), and lands two
16
+ `doctor` / project-inventory fixes. Existing memory, decision data and MCP
17
+ bindings are unchanged.
18
+
19
+ ### Fixed — the code graph had no import edges unless your code lived in `src/`
20
+
21
+ `get_impact` returned nothing. Not "no callers found" — *structurally* nothing,
22
+ for any project not laid out as `src/`. On codevira's own repo the graph held
23
+ **1,197 nodes and 0 edges**, and had done since at least 1 August.
24
+
25
+ Import resolution decides "is this import project-local?" by checking whether it
26
+ starts with a known project package, and that set came from `watched_dirs` in
27
+ `config.yaml` — with a hardcoded `["src"]` fallback when the key is absent. It is
28
+ absent in the common case: the legacy `init` scaffold writes `watched_dirs` into
29
+ `<data_dir>/config.yaml`, the v2.2 scaffold writes `<project>/.codevira/config.yaml`
30
+ **without** it, and creating that second file is precisely what flips
31
+ `get_data_dir()` to the in-repo path — so the config that wins is the one missing
32
+ the key. Every import then failed the gate, no edge was ever written, and
33
+ `get_impact` — the tool `CLAUDE.md` instructs every agent to call before editing —
34
+ answered "blast radius 0" for everything.
35
+
36
+ The package set is now the configured `watched_dirs` **unioned with** the
37
+ directories that actually look importable on disk. A union, not a replacement: it
38
+ can only add correct edges, so no existing project's graph can shrink on upgrade.
39
+ `node_modules`, `.venv`, `build` and friends are excluded, and resolution still
40
+ requires the target file to exist, so `import os` does not become an edge.
41
+
42
+ Measured on this repo after the fix: **793 import edges**, and
43
+ `get_impact("mcp_server/paths.py")` reports a blast radius of 186 where it
44
+ previously reported 0.
45
+
46
+ **No action needed on upgrade.** A graph already on disk stays edgeless until
47
+ something rebuilds it, and a fix that depends on reading a release note is a fix
48
+ most people never get — so a startup migration (`v401_rebuild_import_edges`)
49
+ rebuilds it for you, in the background, the first time the server starts. It is
50
+ deliberately narrow: it fires only when a graph has nodes but *no* import edges —
51
+ exactly the broken shape — so a healthy graph, an empty one, and a genuinely
52
+ edgeless single-file repo all no-op and pay nothing. It runs on a daemon thread
53
+ and is failure-isolated, so it can never delay or break startup. `codevira index
54
+ --full` still forces it by hand. *(Tests: `TestProjectPackagesFromDisk`,
55
+ `TestV401RebuildImportEdges`.)*
56
+
57
+ ### Fixed — an installed IDE with an empty config file was invisible to `setup`
58
+
59
+ `codevira setup` detected an IDE only if its config file **parsed as JSON** — and an
60
+ empty file does not. Antigravity ships a 0-byte
61
+ `~/.gemini/config/mcp_config.json` until the first server is added, so on a real
62
+ machine plain `codevira setup` reported *"Detected: Claude Code, Claude Desktop,
63
+ OpenAI Codex"* and **silently skipped an installed Antigravity**. Nothing said why;
64
+ the only way in was the non-obvious `setup --ide antigravity --force`.
65
+
66
+ An app that created its own config file has already proven it is installed, even
67
+ while that file is empty. Detection now treats a present-but-empty config as
68
+ *installed, not yet configured*. Claude Desktop shared the same predicate and is
69
+ fixed with it.
70
+
71
+ The deliberate v3.0.0 refusal for a config whose contents are **non-empty but
72
+ unparseable** is unchanged — that is indistinguishable from an unrelated file at
73
+ the same path — but it no longer passes silently: it now logs what it found, the
74
+ path, and the `--force` escape hatch. *(Tests:
75
+ `test_antigravity_detected_via_EMPTY_config`,
76
+ `test_claude_desktop_detected_via_EMPTY_config`,
77
+ `test_empty_is_detected_but_corrupt_is_still_refused`.)*
78
+
79
+ ### Fixed — `codevira init --shared` gitignored the memory it promised to share
80
+
81
+ `--shared` is the team path: it should keep `<repo>/.codevira/` git-**tracked** so
82
+ teammates receive the decision log. It did the opposite. A single `init --shared`
83
+ printed, in order: *"Adding `.codevira/` to .gitignore ... done"*, then its own
84
+ warning that this *"defeats codevira's core promise"*, then *"✓ Team mode —
85
+ `.codevira/` memory stays committed"*, then told you to run `git add .codevira/` —
86
+ which silently staged nothing. No teammate ever received the memory.
87
+
88
+ The cause was a seam: the legacy `init` scaffold owns the `.gitignore` entry, runs
89
+ before the scaffold that handles `--shared`, and took no arguments — so it never
90
+ learned this was a team init and wrote the very line that broke it. It now
91
+ receives the flag and, in shared mode, **removes** the entry (repairing one an
92
+ earlier default `init` or a hand edit wrote) instead of adding it. The "Team mode"
93
+ banner is now conditional and can never claim success while `.codevira/` is still
94
+ ignored. The four `.gitignore` match forms live in one shared definition rather
95
+ than a copy per call site.
96
+
97
+ **Default (non-shared) behaviour is unchanged** — `.codevira/` stays gitignored,
98
+ so per-machine memory and the anti-bleed guarantee are untouched.
99
+
100
+ The existing tests missed this because they called the inner scaffold directly and
101
+ bypassed the legacy one; the new regression tests drive the real
102
+ `python -m mcp_server` entry point. *(Tests: `test_init_shared_leaves_memory_git_trackable`,
103
+ `test_init_default_still_ignores_memory`,
104
+ `test_init_shared_repairs_an_ignore_written_by_an_earlier_default_init`.)*
105
+
106
+ ### Removed — `codevira clean` (breaking)
107
+
108
+ `clean` read as tidy-up but was a full **uninstall** — it wiped `~/.codevira/`
109
+ (project data dirs, `global.db`, snapshots, `device_id`), stripped codevira from
110
+ every IDE config, and removed the launchd service. It cost a real installation
111
+ when an agent ran `yes | codevira clean` believing it pruned the registry
112
+ (D00012X — "the name is the trap"). Its two jobs are now cleanly split:
113
+
114
+ - **`codevira prune`** — tidy stale / ghost / orphan data dirs (safe; never
115
+ touches decisions, IDE configs, or hooks).
116
+ - **`codevira uninstall`** — remove everything.
117
+
118
+ `codevira clean` now errors with `invalid choice: 'clean'`; any script calling
119
+ it must switch to `prune` (tidy) or `uninstall` (remove). The internal
120
+ full-uninstall code path is guarded so it can never run again. *(Regression
121
+ test: `test_clean_command_removed`.)*
122
+
123
+ ### Fixed — `codevira doctor` recommended the *uninstaller* to tidy stale dirs
124
+
125
+ `doctor` printed *"N stale dir(s) — empty leftovers; `codevira clean` tidies
126
+ them"*, but `clean` is the deprecated full **uninstaller** — following the hint
127
+ would wipe `~/.codevira/`, every IDE config and the launchd service. The hint
128
+ now names `codevira prune` / `prune --ghosts`. It also counted *every* stale
129
+ dir while `prune` only removes those ≤ 10 KB, so the number disagreed with what
130
+ `prune` would actually remove (8 vs 0 on a real machine). Both now read one
131
+ shared `empty_stale_dirs()` predicate, so the count and the recommended command
132
+ always match. *(Regression test: `TestStaleHintPointsAtPrune`.)*
133
+
134
+ ### Fixed — fix-history-only data dirs shown as removable leftovers
135
+
136
+ A data dir written by a fix-history scan holds only `graph`/`fixes.db` — no
137
+ `metadata.json` or `git_remote`, the two keys the inventory used to join a disk
138
+ dir to its `global.db` row. So a registered project with such a dir split into a
139
+ phantom *tracked* row plus a false *stale* row, and `doctor` / `projects`
140
+ surfaced real fix-history as an empty leftover. A third join key (dir name ==
141
+ sanitized project path) now resolves these to their registration — classified
142
+ `tracked`, never removable. On the maintainer's machine: stale **8 → 1**,
143
+ entries **21 → 14**, nothing newly removable. *(Regression test:
144
+ `TestSlugJoinFallback`.)*
145
+
146
+ ### Fixed — the cross-engineer id repair could diverge between two machines
147
+
148
+ `id_repair.normalize()` is the deterministic floor under team-shared memory:
149
+ when two engineers each append a decision that happens to mint the same id,
150
+ it picks a winner by a total order **every machine computes identically**, so
151
+ both checkouts end up byte-identical. The module's own contract promised
152
+ *"the final content hash guarantees a strict order even when ts and writer
153
+ collide."* It did not.
154
+
155
+ `_content_hash` deliberately **excludes** the amendment field — that
156
+ exclusion is what makes `normalize` idempotent. But the winner order used
157
+ that same hash as its last tiebreaker. Two *base* records differing only in a
158
+ present-but-falsy `_amendment_to_id` (`""` or `None` — both falsy, so both
159
+ are bases) hashed identically and tied on every component. `sorted` is
160
+ stable, so the tie fell through to **input order**: two machines merging the
161
+ same records in different orders produced different files. Exactly the
162
+ divergence this layer exists to prevent.
163
+
164
+ The order key gains a fourth component, `_tiebreak_hash`, which hashes
165
+ everything except the id itself — putting the amendment field back and making
166
+ the order genuinely total. Idempotency is untouched, because this hash never
167
+ mints an id (`_mint_loser_id` still goes through `_content_hash`), and
168
+ re-normalizing only changes the id, which it excludes.
169
+
170
+ `ORDER_VERSION` is **2 → 3**, per the module's own rule that winner-selection
171
+ changes must be surfaced rather than silently disagreed over. Only inputs
172
+ that were previously *tied* can change winner; every other input sorts
173
+ exactly as before.
174
+
175
+ **Latent, not live** — no writer in the codebase emits a falsy-but-present
176
+ amendment pointer, so no existing store is affected. It was one hand-edited
177
+ JSONL or one future writer away.
178
+
179
+ Found by writing the randomized property test Phase 25's done-when always
180
+ asked for, which is now in the suite: the hand-written fixtures gave every
181
+ record a distinct `ts`, so the tiebreaker was never exercised. Verified over
182
+ 3,000 generated collision fixtures — 0 idempotency failures, 0
183
+ order-dependence failures. *(Regression tests: `TestOrderKeyIsTotal`.)*
184
+
185
+ ### Fixed — a failed index write could make a decision permanently unsearchable
186
+
187
+ `record()` appends to `decisions.jsonl` first and updates the FTS5 index
188
+ after, deliberately: the index update is best-effort and must never fail the
189
+ write. So a failing index write was logged and swallowed — correct as far as
190
+ it went, because the decision itself is already durable.
191
+
192
+ Recovery was the hole. `staleness_check` compares mtimes with a **1-second
193
+ epsilon**, for filesystems that only carry second-precision timestamps. A
194
+ decision appended within that second of the last rebuild, whose index write
195
+ then failed, left an index that reported itself **fresh** — so no rebuild
196
+ fired and the row never appeared. Search simply did not have it. If nothing
197
+ else was recorded for a while, that decision stayed invisible indefinitely,
198
+ and the only symptom was one `WARNING` in a log nobody reads.
199
+
200
+ Both write paths (`record`, `record_many`) now flag the index on failure via
201
+ the new `fts5_index.mark_stale()`, which drops the `source_mtime` row so
202
+ `staleness_check` takes its "never indexed" branch and rebuilds
203
+ unconditionally on the next search. Clearing the memoised freshness verdict
204
+ alone is **not** enough — the epsilon still hides the gap — and the
205
+ regression test fails against that weaker fix.
206
+
207
+ Behaviour is otherwise unchanged: the write still never fails, and a healthy
208
+ index still skips the rebuild. *(Regression tests:
209
+ `TestFtsWriteFailureIsRecoverable`, one per write path.)*
210
+
211
+ ### Fixed — a record with an empty amendment pointer could have its id re-issued
212
+
213
+ `_compute_next_id_locked` mints the next id as `max(id) + 1`, skipping
214
+ amendment records because an amendment re-uses an id borrowed from an earlier
215
+ record. It decided that with `_amendment_to_id is not None`. `id_repair`
216
+ decides the same question by **truthiness**, and the two disagreed on a
217
+ present-but-empty pointer.
218
+
219
+ A record carrying `_amendment_to_id: ""` borrows nothing — there is no earlier
220
+ record to borrow from — so it is a base that owns its id. jsonl_store skipped
221
+ it anyway, dropping a live id out of the max, and the very next mint re-issued
222
+ it. That is the exact failure the function's own docstring exists to prevent:
223
+ *"`last id + 1` re-issued an id that already existed earlier in the file,
224
+ silently clobbering that record (incl. `do_not_revert` decisions)."*
225
+ Reproduced: with one such record holding `D000001`, the next mint returned
226
+ `D000001`.
227
+
228
+ It also created work for the layer below — two bases sharing an id is exactly
229
+ the collision `id_repair.normalize()` then has to repair, so the writer was
230
+ manufacturing the problem the repair pass cleans up.
231
+
232
+ jsonl_store now tests truthiness, matching `id_repair`. The two modules are
233
+ deliberately kept apart — `id_repair` imports almost nothing, and that purity
234
+ is load-bearing for its convergence proof — so the agreement is pinned by a
235
+ test that reads each module's classification from **behaviour** rather than
236
+ re-implementing either rule.
237
+
238
+ **Latent, not live**: no writer in the codebase emits a falsy-but-present
239
+ pointer. One hand-edited JSONL away. *(Regression tests:
240
+ `TestAmendmentPredicateAgreesWithIdRepair`.)*
241
+
242
+ ### Fixed — routine file churn was being written to the crash log
243
+
244
+ A file that vanishes between the directory walk and the hash is ordinary on
245
+ any project with a build directory — Next.js `.next/standalone`, webpack
246
+ chunks, temp fixtures. `_get_changed_files` already handled it correctly
247
+ (catch, skip, continue), but routed the event to `safe_log_crash`.
248
+
249
+ So a normal working day wrote dozens of entries into
250
+ `~/.codevira/logs/crashes.log`. Two real costs: the **G4 release gate is
251
+ "crash log clean"**, which no project with a build directory could ever pass —
252
+ a gate that cannot pass is not a gate — and a genuine crash landed in a file
253
+ already full of non-crashes, which is where real faults go to hide. Measured
254
+ here before the fix: **51 entries, none of them actual crashes** (9 vanished
255
+ build artifacts, 6 a transient mid-upgrade `tree_sitter` import, the rest
256
+ their tracebacks).
257
+
258
+ The vanished-file case now logs at debug. Everything else still goes to the
259
+ crash log — the demotion is deliberately narrow, and a test proves an
260
+ unexpected hash failure is still recorded. *(Regression tests:
261
+ `TestTransientFilesAreNotCrashes`.)*
262
+
263
+ ### Fixed — Cursor and per-project Claude Code could still bind to the wrong project
264
+
265
+ D000126 — *"a session in agent-mcp wrote its decisions into Agentic/LH"* — was
266
+ fixed for Claude Code's user-scope entry, Claude Desktop and Antigravity by
267
+ pinning each registration with `--project-dir`. Two writers were missed:
268
+ `_inject_cursor` and `_inject_claude` (the project-local `<project>/.mcp.json`)
269
+ both registered with `args: []` plus a `cwd`.
270
+
271
+ `cwd` is the **bottom** of `paths._resolve_project_root`'s chain, and that
272
+ placement is what makes it unsafe. `server._bind_project_from_client_roots`
273
+ returns early on an explicit pin — *"Respect an explicit pin — never override
274
+ `--project-dir` / the env var"* — so for every pinned IDE the MCP roots
275
+ handshake never runs at all. For these two it did, and `choose_binding` rule 1
276
+ re-binds to the client's workspace root whenever **that** root is itself a
277
+ codevira project, without consulting cwd.
278
+
279
+ So: Cursor configured for project A, opened on a workspace rooted at project B
280
+ (a monorepo parent, a multi-root workspace, or Cursor simply opened a level
281
+ up), silently writes A's decisions into B's store. `choose_binding`'s own
282
+ docstring already named the remedy — *"pin `--project-dir` for that case"* —
283
+ and these were the two registrations that never got it.
284
+
285
+ Both now emit `args: ["--project-dir", "<project>"]`, matching Desktop and
286
+ Antigravity. Existing configs are rewritten on the next `codevira setup`.
287
+ `~/.cursor/mcp.json` (true global mode, one entry for every project) still
288
+ binds dynamically — it has no single project to pin to, by design.
289
+
290
+ *(Regression tests: `TestCursorIsProjectDirPinned`. Two older tests asserted
291
+ `entry["cwd"]`; they now assert the pin, since that is the property that
292
+ actually protects the binding.)*
293
+
294
+ ### Fixed — the watcher and a background full-index could rebuild the graph at once
295
+
296
+ The module lock documents itself as preventing *"the background watcher and
297
+ the background full-index from rebuilding the index simultaneously — **both**
298
+ operations must acquire this lock before touching the on-disk index."* Only
299
+ one ever did. `start_background_full_index` took it; the watcher's reindex
300
+ path explicitly did not, its acquisition having sat inside a branch dead since
301
+ v2.2.0.
302
+
303
+ A mutex held by one of two parties is not a mutex. Both write the same
304
+ `graph.db`, and `cmd_full_rebuild(full=True)` **clears the graph before
305
+ rebuilding** — so a node the watcher had just added could vanish mid-rebuild,
306
+ and both writers can collide on SQLite's own lock.
307
+
308
+ **This release made it more reachable, not less**: the new v4.0.1 import-edge
309
+ migration calls `start_background_full_index()` on a daemon thread at server
310
+ start, which is exactly when a watcher is likely to be live.
311
+
312
+ The watcher now acquires the lock too, via a module-level
313
+ `_locked_incremental()` — blocking on purpose, since skipping would drop the
314
+ file change outright, and the debounce timer means at most one reindex can
315
+ queue behind it.
316
+
317
+ Renamed `_chroma_write_lock` → `_index_write_lock`. The ChromaDB writes it was
318
+ named for were deleted in v2.2.0; the name outlived them by four minor
319
+ versions and its own comment had to apologise for it — the same
320
+ misleading-name trap as `codevira clean` and `indexer/chunker.py`, both fixed
321
+ in this release. *(Regression tests:
322
+ `TestWatcherAndFullIndexAreMutuallyExclusive`.)*
323
+
324
+ ### Fixed — `index --verbose` emitted nothing at all
325
+
326
+ `codevira index --verbose` advertises *"Emit per-file decisions (matched,
327
+ skipped + reason). Use to diagnose silent 0-chunks."* It emitted nothing. The
328
+ prints lived inside the chunk/embed block gated on `_check_search_deps()`,
329
+ constant-`False` since v2.2.0 — so the flag had been inert for four minor
330
+ versions, and **this release's own dead-code removal deleted that block**,
331
+ making it permanent.
332
+
333
+ It is a *diagnostic* flag. You reach for it precisely when the index came
334
+ back empty and you need to know why — and it told you nothing, so a
335
+ misconfigured `watched_dirs` looked identical to a working one.
336
+
337
+ Re-implemented against the graph walker, which is the only place that knows
338
+ why a file was passed over. Each file now reports as indexed, or skipped with
339
+ its reason: unsupported extension, parser returned no node, already in the
340
+ graph, or unreadable.
341
+
342
+ Excluded directories are **counted, not listed**. Measured on this repo,
343
+ listing them per-file produced 31,354 lines — 30,802 of them `.venv` and
344
+ `.git` — burying the 552 that matter. They now collapse to one line each
345
+ (`30,151 file(s) excluded directory: .venv`), which is still the answer to
346
+ "where did my files go" at 568 lines instead of 31k.
347
+
348
+ Costs nothing when unused: the walker only records decisions when asked, and
349
+ `quiet` still wins so a background rebuild can never write into a live stdio
350
+ JSON-RPC stream. *(Regression tests: `TestVerboseFileDecisions` (4),
351
+ `TestVerboseActuallyPrints` (3).)*
352
+
353
+ ### Added — `do_not_revert` soft-expire is finally surfaced
354
+
355
+ v3.2.0 shipped `compute_dnr_soft_expire()` and three docstrings stating the
356
+ result was *"surfaced on search/list output"*. It never was — the helper had
357
+ **zero production consumers**, so a decision locked three years ago read
358
+ exactly like one locked this morning, and `reaffirm_decision` existed to
359
+ reset a clock nothing ever showed you. One of those docstrings also named
360
+ keys the helper does not return (`dnr_age_days` vs `age_days`).
361
+
362
+ `search` and `list_all` (both the slim and `full=True` shapes) now carry:
363
+
364
+ | field | meaning |
365
+ |---|---|
366
+ | `dnr_soft_expired` | the lock is older than the threshold and due a look |
367
+ | `dnr_age_days` | how old, so the flag is actionable rather than binary |
368
+
369
+ Emitted **only on `do_not_revert` decisions**. `soft_expired` is
370
+ definitionally false without a lock to expire, so carrying the pair on every
371
+ row would be pure token cost on a surface that is deliberately
372
+ summary-by-default. Absent keys mean *"not protected"*, never *"not
373
+ computed"*.
374
+
375
+ Threshold is 180 days, override with `CODEVIRA_DNR_SOFT_EXPIRE_DAYS`, `0`
376
+ disables (the age still reports, for observability). **The lock never
377
+ auto-flips** — the flag is advice, and `reaffirm_decision` is how you act on
378
+ it.
379
+
380
+ Guarded by an invariant rather than a fixed wording: `dnr_soft_expired` is
381
+ advertised in a tool description **if and only if** search/list genuinely
382
+ emit it. Both directions are proven by mutation — scrubbing the description
383
+ while the field ships turns it red, and disabling the projection while the
384
+ description stands turns it red too. *(Regression tests:
385
+ `TestSoftExpireIsSurfaced` (6), `TestAdvertisedFieldsExist`.)*
386
+
387
+ ### Internal — the code stranded by the v2.2.0 Chroma removal is gone (`indexer.chunker` no longer importable)
388
+
389
+ v2.2.0 dropped ChromaDB, sentence-transformers and torch, but left the code
390
+ *behind* them in the tree — reachable only through a `_check_search_deps()`
391
+ that returns a hardcoded `False`. Reachability was proven with an AST pass
392
+ before anything was deleted, and the graph output was verified byte-identical
393
+ on a temp project afterwards.
394
+
395
+ - **`indexer/chunker.py` → `indexer/imports.py`** (772 → 468 lines). Only the
396
+ import extraction was ever wired to anything; a module named "chunker" that
397
+ no longer chunks is the same misleading-name trap as `clean`. **If you import
398
+ `indexer.chunker` directly you will now get an `ImportError`** — import
399
+ `indexer.imports` instead. There is no public API on this module; nothing in
400
+ the MCP tool surface or the CLI changes.
401
+ - **`indexer/index_codebase.py`** 1,592 → 1,166 lines.
402
+ - 2,545 lines removed across 9 files in one commit, `tests/test_chunker.py`
403
+ replaced by `tests/test_imports.py`.
404
+
12
405
  ## [4.0.0] — 2026-08-05
13
406
 
14
407
  Promotes 4.0.0b1 to final — same feature set as the beta (tenant isolation,