codevira 4.0.1__tar.gz → 4.2.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 (427) hide show
  1. {codevira-4.0.1 → codevira-4.2.0}/CHANGELOG.md +435 -0
  2. {codevira-4.0.1/codevira.egg-info → codevira-4.2.0}/PKG-INFO +39 -5
  3. {codevira-4.0.1 → codevira-4.2.0}/README.md +37 -3
  4. {codevira-4.0.1 → codevira-4.2.0/codevira.egg-info}/PKG-INFO +39 -5
  5. {codevira-4.0.1 → codevira-4.2.0}/codevira.egg-info/SOURCES.txt +6 -0
  6. {codevira-4.0.1 → codevira-4.2.0}/codevira.egg-info/requires.txt +1 -1
  7. {codevira-4.0.1 → codevira-4.2.0}/docs/alpha-tester-invites.md +4 -2
  8. {codevira-4.0.1 → codevira-4.2.0}/docs/local-pypi-https.md +1 -1
  9. {codevira-4.0.1 → codevira-4.2.0}/docs/release-process.md +33 -10
  10. {codevira-4.0.1 → codevira-4.2.0}/docs/v2-master-plan.md +19 -0
  11. {codevira-4.0.1 → codevira-4.2.0}/indexer/_dedupe_migration.py +2 -0
  12. {codevira-4.0.1 → codevira-4.2.0}/indexer/_fork_safety.py +2 -0
  13. {codevira-4.0.1 → codevira-4.2.0}/indexer/_sqlite_util.py +3 -1
  14. {codevira-4.0.1 → codevira-4.2.0}/indexer/index_codebase.py +19 -1
  15. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/__init__.py +1 -1
  16. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/__main__.py +1 -0
  17. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/_project_inventory.py +1 -2
  18. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/_safe_crash.py +6 -3
  19. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli.py +99 -5
  20. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli_hooks_admin.py +1 -3
  21. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli_init.py +20 -3
  22. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli_memory.py +1 -2
  23. codevira-4.2.0/mcp_server/cli_reconcile.py +126 -0
  24. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli_repair.py +112 -9
  25. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/doctor.py +1 -3
  26. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/demo_policy.py +1 -0
  27. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/policies/_signature_detect.py +16 -5
  28. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/policies/relevance_inject.py +22 -1
  29. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/policies/token_budget.py +37 -22
  30. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/policy.py +8 -2
  31. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/wiring/git_hooks.py +77 -22
  32. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/launchd.py +3 -3
  33. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/log_retention.py +26 -1
  34. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/project_binding.py +93 -4
  35. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/register_all.py +15 -1
  36. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/retrieval/score.py +92 -2
  37. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/roadmap_drift.py +1 -0
  38. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/server.py +9 -0
  39. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/anchor.py +1 -1
  40. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/decisions_store.py +35 -4
  41. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/digest.py +16 -1
  42. codevira-4.2.0/mcp_server/storage/reconcile.py +546 -0
  43. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/tools/check_conflict.py +23 -4
  44. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/tools/learning.py +124 -3
  45. {codevira-4.0.1 → codevira-4.2.0}/pyproject.toml +17 -10
  46. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/test_cross_tool_universality.py +1 -1
  47. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/test_first_contact.py +6 -6
  48. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/test_product_invariants.py +2 -3
  49. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/test_qa_round_v2_completion.py +9 -9
  50. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/test_v2_release_candidate.py +18 -18
  51. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/test_v350_acceptance.py +18 -18
  52. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_anti_regression.py +21 -21
  53. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_blast_radius.py +30 -30
  54. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_decision_lock.py +18 -18
  55. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_decision_replay.py +12 -12
  56. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_diff_envelope.py +6 -6
  57. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_events.py +1 -0
  58. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_fix_history.py +27 -9
  59. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_git_hook_enforcement.py +72 -6
  60. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_policies.py +2 -0
  61. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_qa_p0_fixes.py +104 -48
  62. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_qa_round3.py +3 -3
  63. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_qa_round4.py +19 -11
  64. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_qa_round5.py +9 -9
  65. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_qa_round_week13.py +3 -3
  66. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_relevance_inject.py +95 -8
  67. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_runner.py +13 -1
  68. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_token_budget.py +6 -8
  69. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_token_meter.py +1 -0
  70. codevira-4.2.0/tests/integration/test_docs_subcommands_exist.py +332 -0
  71. {codevira-4.0.1 → codevira-4.2.0}/tests/integration/test_mcp_roundtrip.py +6 -6
  72. {codevira-4.0.1 → codevira-4.2.0}/tests/integration/test_sandboxed_parent.py +24 -24
  73. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_agents_md_generator.py +7 -7
  74. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_amendment_provenance.py +6 -6
  75. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_atomic.py +6 -6
  76. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_cross_process_writes.py +4 -5
  77. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_decisions_store.py +9 -9
  78. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_device_identity.py +3 -3
  79. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_digest.py +13 -2
  80. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_id_repair_references.py +3 -3
  81. codevira-4.2.0/tests/storage/test_score_breakdown.py +171 -0
  82. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_search_perf_caches.py +3 -3
  83. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_skills_store.py +6 -6
  84. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_token_estimator.py +3 -3
  85. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_uid_edges.py +3 -3
  86. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_working_store.py +3 -3
  87. {codevira-4.0.1 → codevira-4.2.0}/tests/test__prompts.py +32 -18
  88. {codevira-4.0.1 → codevira-4.2.0}/tests/test_auto_init.py +69 -54
  89. codevira-4.2.0/tests/test_background_degrades.py +231 -0
  90. {codevira-4.0.1 → codevira-4.2.0}/tests/test_binding_e2e.py +9 -9
  91. {codevira-4.0.1 → codevira-4.2.0}/tests/test_call_edge_fk_safety.py +16 -14
  92. {codevira-4.0.1 → codevira-4.2.0}/tests/test_check_conflict.py +37 -12
  93. codevira-4.2.0/tests/test_classifier_is_shared.py +253 -0
  94. {codevira-4.0.1 → codevira-4.2.0}/tests/test_claude_binding_conflict.py +6 -6
  95. {codevira-4.0.1 → codevira-4.2.0}/tests/test_cli_induce.py +3 -3
  96. {codevira-4.0.1 → codevira-4.2.0}/tests/test_cli_projects.py +6 -6
  97. codevira-4.2.0/tests/test_cli_reconcile.py +111 -0
  98. {codevira-4.0.1 → codevira-4.2.0}/tests/test_cli_uninstall.py +4 -8
  99. {codevira-4.0.1 → codevira-4.2.0}/tests/test_crash_logger.py +1 -3
  100. {codevira-4.0.1 → codevira-4.2.0}/tests/test_decisions_store.py +3 -3
  101. {codevira-4.0.1 → codevira-4.2.0}/tests/test_dedupe_migration.py +14 -2
  102. {codevira-4.0.1 → codevira-4.2.0}/tests/test_detect.py +16 -13
  103. {codevira-4.0.1 → codevira-4.2.0}/tests/test_fk_safety_extended.py +7 -2
  104. {codevira-4.0.1 → codevira-4.2.0}/tests/test_fork_safety.py +2 -0
  105. {codevira-4.0.1 → codevira-4.2.0}/tests/test_git_shared.py +114 -0
  106. {codevira-4.0.1 → codevira-4.2.0}/tests/test_global_db.py +3 -3
  107. {codevira-4.0.1 → codevira-4.2.0}/tests/test_global_home_isolation.py +3 -3
  108. {codevira-4.0.1 → codevira-4.2.0}/tests/test_graph_generator.py +3 -3
  109. {codevira-4.0.1 → codevira-4.2.0}/tests/test_hook_resilience.py +26 -23
  110. {codevira-4.0.1 → codevira-4.2.0}/tests/test_id_repair.py +6 -6
  111. {codevira-4.0.1 → codevira-4.2.0}/tests/test_ide_inject.py +21 -21
  112. {codevira-4.0.1 → codevira-4.2.0}/tests/test_imports.py +7 -3
  113. {codevira-4.0.1 → codevira-4.2.0}/tests/test_index_codebase.py +238 -144
  114. {codevira-4.0.1 → codevira-4.2.0}/tests/test_launchd.py +67 -33
  115. {codevira-4.0.1 → codevira-4.2.0}/tests/test_log_retention.py +73 -1
  116. {codevira-4.0.1 → codevira-4.2.0}/tests/test_migrate.py +6 -6
  117. {codevira-4.0.1 → codevira-4.2.0}/tests/test_migration_memory_loss.py +3 -3
  118. {codevira-4.0.1 → codevira-4.2.0}/tests/test_migration_no_data_loss_e2e.py +6 -6
  119. {codevira-4.0.1 → codevira-4.2.0}/tests/test_path_glob_and_scrub.py +3 -3
  120. {codevira-4.0.1 → codevira-4.2.0}/tests/test_paths.py +3 -3
  121. {codevira-4.0.1 → codevira-4.2.0}/tests/test_phase27_quality_fixes.py +3 -3
  122. {codevira-4.0.1 → codevira-4.2.0}/tests/test_pre_release_block_hook.py +149 -10
  123. {codevira-4.0.1 → codevira-4.2.0}/tests/test_project_binding.py +146 -0
  124. codevira-4.2.0/tests/test_reconcile.py +533 -0
  125. {codevira-4.0.1 → codevira-4.2.0}/tests/test_record_decision.py +6 -6
  126. {codevira-4.0.1 → codevira-4.2.0}/tests/test_register_all.py +95 -0
  127. {codevira-4.0.1 → codevira-4.2.0}/tests/test_remote_hijack.py +3 -3
  128. {codevira-4.0.1 → codevira-4.2.0}/tests/test_removed_tool_migration.py +6 -6
  129. {codevira-4.0.1 → codevira-4.2.0}/tests/test_repair_ids.py +6 -6
  130. {codevira-4.0.1 → codevira-4.2.0}/tests/test_repair_ids_race.py +3 -3
  131. {codevira-4.0.1 → codevira-4.2.0}/tests/test_repair_init.py +1 -2
  132. {codevira-4.0.1 → codevira-4.2.0}/tests/test_retirement_and_amendments.py +15 -15
  133. {codevira-4.0.1 → codevira-4.2.0}/tests/test_retrieval_score.py +121 -0
  134. {codevira-4.0.1 → codevira-4.2.0}/tests/test_review_round2.py +3 -3
  135. {codevira-4.0.1 → codevira-4.2.0}/tests/test_review_round3.py +6 -6
  136. {codevira-4.0.1 → codevira-4.2.0}/tests/test_roadmap_drift.py +50 -13
  137. {codevira-4.0.1 → codevira-4.2.0}/tests/test_sdist_completeness.py +3 -3
  138. {codevira-4.0.1 → codevira-4.2.0}/tests/test_server.py +74 -0
  139. {codevira-4.0.1 → codevira-4.2.0}/tests/test_setup_wizard.py +27 -27
  140. {codevira-4.0.1 → codevira-4.2.0}/tests/test_sqlite_util.py +21 -9
  141. {codevira-4.0.1 → codevira-4.2.0}/tests/test_subprocess_imports_working_tree.py +3 -3
  142. {codevira-4.0.1 → codevira-4.2.0}/tests/test_supersede_on_write.py +70 -0
  143. codevira-4.2.0/tests/test_toolchain_pins.py +89 -0
  144. {codevira-4.0.1 → codevira-4.2.0}/tests/test_tools_graph.py +2 -2
  145. {codevira-4.0.1 → codevira-4.2.0}/tests/test_tools_learning.py +265 -6
  146. {codevira-4.0.1 → codevira-4.2.0}/tests/test_tools_playbook.py +19 -3
  147. {codevira-4.0.1 → codevira-4.2.0}/tests/test_watcher_circuit.py +4 -1
  148. {codevira-4.0.1 → codevira-4.2.0}/tests/test_working_promote_skill.py +3 -3
  149. {codevira-4.0.1 → codevira-4.2.0}/tests/test_worktree_and_cache.py +3 -3
  150. codevira-4.0.1/mcp_server/storage/reconcile.py +0 -196
  151. codevira-4.0.1/tests/storage/test_score_breakdown.py +0 -83
  152. codevira-4.0.1/tests/test_reconcile.py +0 -107
  153. {codevira-4.0.1 → codevira-4.2.0}/LICENSE +0 -0
  154. {codevira-4.0.1 → codevira-4.2.0}/MANIFEST.in +0 -0
  155. {codevira-4.0.1 → codevira-4.2.0}/agents/qa/01-code-review.md +0 -0
  156. {codevira-4.0.1 → codevira-4.2.0}/agents/qa/02-adversarial-fix-review.md +0 -0
  157. {codevira-4.0.1 → codevira-4.2.0}/agents/qa/03-cross-module-impact.md +0 -0
  158. {codevira-4.0.1 → codevira-4.2.0}/agents/qa/06-doc-drift.md +0 -0
  159. {codevira-4.0.1 → codevira-4.2.0}/agents/qa/07-security-audit.md +0 -0
  160. {codevira-4.0.1 → codevira-4.2.0}/agents/qa/12-llm-redteam.md +0 -0
  161. {codevira-4.0.1 → codevira-4.2.0}/agents/qa/13-multi-ide-schema.md +0 -0
  162. {codevira-4.0.1 → codevira-4.2.0}/agents/qa/22-competitor-benchmark.md +0 -0
  163. {codevira-4.0.1 → codevira-4.2.0}/agents/qa/README.md +0 -0
  164. {codevira-4.0.1 → codevira-4.2.0}/agents/qa/tier2-scripts.md +0 -0
  165. {codevira-4.0.1 → codevira-4.2.0}/agents/qa/tier3-manual.md +0 -0
  166. {codevira-4.0.1 → codevira-4.2.0}/codevira.egg-info/dependency_links.txt +0 -0
  167. {codevira-4.0.1 → codevira-4.2.0}/codevira.egg-info/entry_points.txt +0 -0
  168. {codevira-4.0.1 → codevira-4.2.0}/codevira.egg-info/top_level.txt +0 -0
  169. {codevira-4.0.1 → codevira-4.2.0}/config.example.yaml +0 -0
  170. {codevira-4.0.1 → codevira-4.2.0}/docs/architecture.md +0 -0
  171. {codevira-4.0.1 → codevira-4.2.0}/docs/audit-2026-05-22.md +0 -0
  172. {codevira-4.0.1 → codevira-4.2.0}/docs/demo/README.md +0 -0
  173. {codevira-4.0.1 → codevira-4.2.0}/docs/foolproof-product-charter.md +0 -0
  174. {codevira-4.0.1 → codevira-4.2.0}/docs/heroes/00-engine.md +0 -0
  175. {codevira-4.0.1 → codevira-4.2.0}/docs/heroes/01-decision-lock.md +0 -0
  176. {codevira-4.0.1 → codevira-4.2.0}/docs/heroes/02-anti-regression.md +0 -0
  177. {codevira-4.0.1 → codevira-4.2.0}/docs/heroes/03-scope-contract.md +0 -0
  178. {codevira-4.0.1 → codevira-4.2.0}/docs/heroes/04-blast-radius.md +0 -0
  179. {codevira-4.0.1 → codevira-4.2.0}/docs/heroes/05-cross-session.md +0 -0
  180. {codevira-4.0.1 → codevira-4.2.0}/docs/heroes/06-token-budget.md +0 -0
  181. {codevira-4.0.1 → codevira-4.2.0}/docs/heroes/07-live-style.md +0 -0
  182. {codevira-4.0.1 → codevira-4.2.0}/docs/heroes/08-decision-replay.md +0 -0
  183. {codevira-4.0.1 → codevira-4.2.0}/docs/heroes/09-intent-inference.md +0 -0
  184. {codevira-4.0.1 → codevira-4.2.0}/docs/heroes/10-ai-promotion.md +0 -0
  185. {codevira-4.0.1 → codevira-4.2.0}/docs/heroes/README.md +0 -0
  186. {codevira-4.0.1 → codevira-4.2.0}/docs/heroes/pillar-1-setup.md +0 -0
  187. {codevira-4.0.1 → codevira-4.2.0}/docs/hn-launch-day.md +0 -0
  188. {codevira-4.0.1 → codevira-4.2.0}/docs/how-i-built-persistent-memory-for-ai-agents.md +0 -0
  189. {codevira-4.0.1 → codevira-4.2.0}/docs/internal/4.0-beta.md +0 -0
  190. {codevira-4.0.1 → codevira-4.2.0}/docs/internal/architecture-4.0.md +0 -0
  191. {codevira-4.0.1 → codevira-4.2.0}/docs/internal/competitive-landscape.md +0 -0
  192. {codevira-4.0.1 → codevira-4.2.0}/docs/internal/memory-strategy-2026-07.md +0 -0
  193. {codevira-4.0.1 → codevira-4.2.0}/docs/linkedin-article-ai-agent-memory.md +0 -0
  194. {codevira-4.0.1 → codevira-4.2.0}/docs/linkedin-post-ai-agent-memory.md +0 -0
  195. {codevira-4.0.1 → codevira-4.2.0}/docs/medium-your-ai-coding-agent-has-amnesia.md +0 -0
  196. {codevira-4.0.1 → codevira-4.2.0}/docs/morning-handoff-2026-05-22.md +0 -0
  197. {codevira-4.0.1 → codevira-4.2.0}/docs/plans/opt-in-activation.md +0 -0
  198. {codevira-4.0.1 → codevira-4.2.0}/docs/plans/v2.1.2.md +0 -0
  199. {codevira-4.0.1 → codevira-4.2.0}/docs/plans/v2.1.3.md +0 -0
  200. {codevira-4.0.1 → codevira-4.2.0}/docs/plans/v2.2.0.md +0 -0
  201. {codevira-4.0.1 → codevira-4.2.0}/docs/plans/v3.0.0.md +0 -0
  202. {codevira-4.0.1 → codevira-4.2.0}/docs/qa-playbook.md +0 -0
  203. {codevira-4.0.1 → codevira-4.2.0}/docs/release-notes/v3.1.1.md +0 -0
  204. {codevira-4.0.1 → codevira-4.2.0}/docs/release-notes/v3.7.1.md +0 -0
  205. {codevira-4.0.1 → codevira-4.2.0}/docs/roadmap.md +0 -0
  206. {codevira-4.0.1 → codevira-4.2.0}/docs/surface-cuts-2026-05-22.md +0 -0
  207. {codevira-4.0.1 → codevira-4.2.0}/docs/troubleshooting/antigravity.md +0 -0
  208. {codevira-4.0.1 → codevira-4.2.0}/docs/troubleshooting/config-hygiene.md +0 -0
  209. {codevira-4.0.1 → codevira-4.2.0}/docs/v2-completion-plan.md +0 -0
  210. {codevira-4.0.1 → codevira-4.2.0}/docs/v2-execution-log.md +0 -0
  211. {codevira-4.0.1 → codevira-4.2.0}/docs/vs-other-memory-tools.md +0 -0
  212. {codevira-4.0.1 → codevira-4.2.0}/graph/_schema.yaml +0 -0
  213. {codevira-4.0.1 → codevira-4.2.0}/indexer/__init__.py +0 -0
  214. {codevira-4.0.1 → codevira-4.2.0}/indexer/fix_history.py +0 -0
  215. {codevira-4.0.1 → codevira-4.2.0}/indexer/global_db.py +0 -0
  216. {codevira-4.0.1 → codevira-4.2.0}/indexer/graph_generator.py +0 -0
  217. {codevira-4.0.1 → codevira-4.2.0}/indexer/imports.py +0 -0
  218. {codevira-4.0.1 → codevira-4.2.0}/indexer/outcome_classifier.py +0 -0
  219. {codevira-4.0.1 → codevira-4.2.0}/indexer/sqlite_graph.py +0 -0
  220. {codevira-4.0.1 → codevira-4.2.0}/indexer/treesitter_parser.py +0 -0
  221. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/_ghost_check.py +0 -0
  222. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/_mcp_registry.py +0 -0
  223. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/_prompts.py +0 -0
  224. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/_repair_init.py +0 -0
  225. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/auto_init.py +0 -0
  226. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli_eval.py +0 -0
  227. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli_export.py +0 -0
  228. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli_graph.py +0 -0
  229. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli_induce.py +0 -0
  230. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli_projects.py +0 -0
  231. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli_replay.py +0 -0
  232. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli_search.py +0 -0
  233. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli_sync.py +0 -0
  234. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli_transfer.py +0 -0
  235. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli_uninstall.py +0 -0
  236. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/cli_working.py +0 -0
  237. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/crash_logger.py +0 -0
  238. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/__init__.py +0 -0
  239. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/config.example.yaml +0 -0
  240. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/hooks/post_tool_use.sh +0 -0
  241. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/hooks/pre_tool_use.sh +0 -0
  242. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/hooks/session_start.sh +0 -0
  243. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/hooks/stop.sh +0 -0
  244. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/hooks/user_prompt_submit.sh +0 -0
  245. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/rules/coding-standards-generic.md +0 -0
  246. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/rules/coding-standards-go.md +0 -0
  247. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/rules/coding-standards-typescript.md +0 -0
  248. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/rules/coding-standards.md +0 -0
  249. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/rules/engineering-excellence.md +0 -0
  250. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/rules/git-cicd-governance.md +0 -0
  251. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/rules/git_commits.md +0 -0
  252. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/rules/incremental-updates.md +0 -0
  253. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/rules/master_rule.md +0 -0
  254. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/rules/multi-language.md +0 -0
  255. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/rules/persistence.md +0 -0
  256. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/rules/resilience-observability.md +0 -0
  257. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/rules/smoke-testing.md +0 -0
  258. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/data/rules/testing-standards.md +0 -0
  259. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/decision_replay.py +0 -0
  260. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/detect.py +0 -0
  261. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/egress.py +0 -0
  262. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/__init__.py +0 -0
  263. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/audit.py +0 -0
  264. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/events.py +0 -0
  265. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/memory_fanout.py +0 -0
  266. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/policies/__init__.py +0 -0
  267. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/policies/_region_detect.py +0 -0
  268. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/policies/anti_regression.py +0 -0
  269. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/policies/blast_radius.py +0 -0
  270. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/policies/decision_lock.py +0 -0
  271. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/policies/post_edit_refresh.py +0 -0
  272. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/policies/session_log_enforcer.py +0 -0
  273. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/runner.py +0 -0
  274. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/signals.py +0 -0
  275. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/token_meter.py +0 -0
  276. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/wiring/__init__.py +0 -0
  277. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/wiring/_diff_envelope.py +0 -0
  278. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/wiring/antigravity_hooks.py +0 -0
  279. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/wiring/claude_code_hooks.py +0 -0
  280. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/engine/wiring/mcp_dispatch.py +0 -0
  281. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/eval/__init__.py +0 -0
  282. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/eval/judge.py +0 -0
  283. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/eval/relevance.py +0 -0
  284. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/eval/report.py +0 -0
  285. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/gitignore.py +0 -0
  286. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/global_sync.py +0 -0
  287. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/graph/__init__.py +0 -0
  288. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/graph/template.html +0 -0
  289. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/http_server.py +0 -0
  290. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/ide_inject.py +0 -0
  291. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/memory_undo.py +0 -0
  292. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/migrate.py +0 -0
  293. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/opt_in.py +0 -0
  294. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/paths.py +0 -0
  295. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/prompts.py +0 -0
  296. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/retrieval/__init__.py +0 -0
  297. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/setup_wizard.py +0 -0
  298. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/__init__.py +0 -0
  299. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/activity_store.py +0 -0
  300. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/agents_md_generator.py +0 -0
  301. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/atomic.py +0 -0
  302. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/config.py +0 -0
  303. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/fts5_index.py +0 -0
  304. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/id_repair.py +0 -0
  305. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/jsonl_store.py +0 -0
  306. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/manifest.py +0 -0
  307. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/origin.py +0 -0
  308. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/outcomes_writer.py +0 -0
  309. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/paths.py +0 -0
  310. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/sanitize.py +0 -0
  311. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/sessions_store.py +0 -0
  312. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/skills_store.py +0 -0
  313. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/synonyms.py +0 -0
  314. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/text.py +0 -0
  315. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/token_estimator.py +0 -0
  316. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/uid.py +0 -0
  317. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/storage/working_store.py +0 -0
  318. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/tenant.py +0 -0
  319. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/tools/__init__.py +0 -0
  320. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/tools/graph.py +0 -0
  321. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/tools/playbook.py +0 -0
  322. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/tools/provenance.py +0 -0
  323. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/tools/roadmap.py +0 -0
  324. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/tools/search.py +0 -0
  325. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/tools/skills.py +0 -0
  326. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/tools/working.py +0 -0
  327. {codevira-4.0.1 → codevira-4.2.0}/mcp_server/update_check.py +0 -0
  328. {codevira-4.0.1 → codevira-4.2.0}/rules/coding-standards.md +0 -0
  329. {codevira-4.0.1 → codevira-4.2.0}/rules/engineering-excellence.md +0 -0
  330. {codevira-4.0.1 → codevira-4.2.0}/rules/git-cicd-governance.md +0 -0
  331. {codevira-4.0.1 → codevira-4.2.0}/rules/git_commits.md +0 -0
  332. {codevira-4.0.1 → codevira-4.2.0}/rules/incremental-updates.md +0 -0
  333. {codevira-4.0.1 → codevira-4.2.0}/rules/master_rule.md +0 -0
  334. {codevira-4.0.1 → codevira-4.2.0}/rules/persistence.md +0 -0
  335. {codevira-4.0.1 → codevira-4.2.0}/rules/resilience-observability.md +0 -0
  336. {codevira-4.0.1 → codevira-4.2.0}/rules/smoke-testing.md +0 -0
  337. {codevira-4.0.1 → codevira-4.2.0}/rules/testing-standards.md +0 -0
  338. {codevira-4.0.1 → codevira-4.2.0}/setup.cfg +0 -0
  339. {codevira-4.0.1 → codevira-4.2.0}/tests/conftest.py +0 -0
  340. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/__init__.py +0 -0
  341. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/code_only_python/README.md +0 -0
  342. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/code_only_python/pyproject.toml +0 -0
  343. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/code_only_python/src/widgets.py +0 -0
  344. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/code_only_python/tests/test_widgets.py +0 -0
  345. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/conftest.py +0 -0
  346. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/docs_only/CONTRIBUTING.md +0 -0
  347. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/docs_only/README.md +0 -0
  348. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/docs_only/docs/architecture.md +0 -0
  349. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/docs_only/package.json +0 -0
  350. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/monorepo/README.md +0 -0
  351. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/monorepo/package.json +0 -0
  352. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/monorepo/packages/foo/package.json +0 -0
  353. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/monorepo/packages/foo/src/index.ts +0 -0
  354. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/CLAUDE.md +0 -0
  355. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/README.md +0 -0
  356. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/config/settings.yaml +0 -0
  357. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/pyproject.toml +0 -0
  358. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/src/api.py +0 -0
  359. {codevira-4.0.1 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/src/client.ts +0 -0
  360. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/__init__.py +0 -0
  361. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_antigravity_hooks.py +0 -0
  362. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_audit.py +0 -0
  363. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_block_message_evidence.py +0 -0
  364. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_claude_native_memory.py +0 -0
  365. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_evidence_reaches_readers.py +0 -0
  366. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_integration.py +0 -0
  367. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_memory_fanout.py +0 -0
  368. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_region_detect.py +0 -0
  369. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_session_log_enforcer.py +0 -0
  370. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_signals_project_scoping.py +0 -0
  371. {codevira-4.0.1 → codevira-4.2.0}/tests/engine/test_week2_edge_cases.py +0 -0
  372. {codevira-4.0.1 → codevira-4.2.0}/tests/integration/__init__.py +0 -0
  373. {codevira-4.0.1 → codevira-4.2.0}/tests/integration/test_help_text_consistency.py +0 -0
  374. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/__init__.py +0 -0
  375. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_activity_store.py +0 -0
  376. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_anchor_derivation.py +0 -0
  377. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_concurrent_writes.py +0 -0
  378. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_fts5_index.py +0 -0
  379. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_jsonl_store.py +0 -0
  380. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_manifest.py +0 -0
  381. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_origin.py +0 -0
  382. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_sanitize.py +0 -0
  383. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_session_identity.py +0 -0
  384. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_stranded_parameters.py +0 -0
  385. {codevira-4.0.1 → codevira-4.2.0}/tests/storage/test_uid.py +0 -0
  386. {codevira-4.0.1 → codevira-4.2.0}/tests/test_antigravity_hook_portable.py +0 -0
  387. {codevira-4.0.1 → codevira-4.2.0}/tests/test_binding_conflict_detection.py +0 -0
  388. {codevira-4.0.1 → codevira-4.2.0}/tests/test_cli_export.py +0 -0
  389. {codevira-4.0.1 → codevira-4.2.0}/tests/test_cli_graph.py +0 -0
  390. {codevira-4.0.1 → codevira-4.2.0}/tests/test_cli_replay.py +0 -0
  391. {codevira-4.0.1 → codevira-4.2.0}/tests/test_cli_search.py +0 -0
  392. {codevira-4.0.1 → codevira-4.2.0}/tests/test_cli_transfer.py +0 -0
  393. {codevira-4.0.1 → codevira-4.2.0}/tests/test_cli_untrack.py +0 -0
  394. {codevira-4.0.1 → codevira-4.2.0}/tests/test_cli_version.py +0 -0
  395. {codevira-4.0.1 → codevira-4.2.0}/tests/test_cli_working.py +0 -0
  396. {codevira-4.0.1 → codevira-4.2.0}/tests/test_committed_memory.py +0 -0
  397. {codevira-4.0.1 → codevira-4.2.0}/tests/test_cross_project_search.py +0 -0
  398. {codevira-4.0.1 → codevira-4.2.0}/tests/test_doctor.py +0 -0
  399. {codevira-4.0.1 → codevira-4.2.0}/tests/test_e1_summary_first.py +0 -0
  400. {codevira-4.0.1 → codevira-4.2.0}/tests/test_egress_boundary.py +0 -0
  401. {codevira-4.0.1 → codevira-4.2.0}/tests/test_eval_e3.py +0 -0
  402. {codevira-4.0.1 → codevira-4.2.0}/tests/test_g3_hermetic.py +0 -0
  403. {codevira-4.0.1 → codevira-4.2.0}/tests/test_ghost_check.py +0 -0
  404. {codevira-4.0.1 → codevira-4.2.0}/tests/test_gitignore.py +0 -0
  405. {codevira-4.0.1 → codevira-4.2.0}/tests/test_global_sync.py +0 -0
  406. {codevira-4.0.1 → codevira-4.2.0}/tests/test_graph_not_indexed_contract.py +0 -0
  407. {codevira-4.0.1 → codevira-4.2.0}/tests/test_http_server.py +0 -0
  408. {codevira-4.0.1 → codevira-4.2.0}/tests/test_managed_files_e4.py +0 -0
  409. {codevira-4.0.1 → codevira-4.2.0}/tests/test_memory_undo.py +0 -0
  410. {codevira-4.0.1 → codevira-4.2.0}/tests/test_opt_in.py +0 -0
  411. {codevira-4.0.1 → codevira-4.2.0}/tests/test_outcome_reconcile_p17.py +0 -0
  412. {codevira-4.0.1 → codevira-4.2.0}/tests/test_pin_generation.py +0 -0
  413. {codevira-4.0.1 → codevira-4.2.0}/tests/test_project_inventory.py +0 -0
  414. {codevira-4.0.1 → codevira-4.2.0}/tests/test_prompts.py +0 -0
  415. {codevira-4.0.1 → codevira-4.2.0}/tests/test_prune_and_clean_deprecation.py +0 -0
  416. {codevira-4.0.1 → codevira-4.2.0}/tests/test_registration_heal.py +0 -0
  417. {codevira-4.0.1 → codevira-4.2.0}/tests/test_skill_reinforcement.py +0 -0
  418. {codevira-4.0.1 → codevira-4.2.0}/tests/test_sqlite_graph.py +0 -0
  419. {codevira-4.0.1 → codevira-4.2.0}/tests/test_startup_migrations.py +0 -0
  420. {codevira-4.0.1 → codevira-4.2.0}/tests/test_synonym_widening_e5.py +0 -0
  421. {codevira-4.0.1 → codevira-4.2.0}/tests/test_tenant_isolation.py +0 -0
  422. {codevira-4.0.1 → codevira-4.2.0}/tests/test_tools_roadmap.py +0 -0
  423. {codevira-4.0.1 → codevira-4.2.0}/tests/test_tools_skills.py +0 -0
  424. {codevira-4.0.1 → codevira-4.2.0}/tests/test_tools_working.py +0 -0
  425. {codevira-4.0.1 → codevira-4.2.0}/tests/test_treesitter_parser.py +0 -0
  426. {codevira-4.0.1 → codevira-4.2.0}/tests/test_update_check.py +0 -0
  427. {codevira-4.0.1 → codevira-4.2.0}/tests/test_worktree_shared_memory.py +0 -0
@@ -9,6 +9,441 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+
13
+ ## [4.2.0] — 2026-09-10
14
+
15
+ **If you run codevira across more than one project, upgrade.** A single rogue
16
+ registration at `$HOME` could make `register-all` discover exactly one project
17
+ and discard every real one as "nested" — measured on the maintainer's machine
18
+ as **1 found, 11 excluded**, with a plan to unregister two working entries.
19
+
20
+ **Action required if projects went missing from an IDE.** This release stops `$HOME`
21
+ being registered as a project, but it does not repair a registration that is
22
+ already wrong — no startup migration prunes the bad row. Run `codevira
23
+ register-all --dry-run` (read-only): if it reports one project at your home
24
+ directory and your real ones as *excluded nested*, that is this bug.
25
+
26
+ Then run `codevira untrack --dry-run "$HOME"` and **read it**, because
27
+ `untrack` removes the project's data directory as well as its registry entry —
28
+ if you were wrongly bound to `$HOME`, decisions recorded during that time are
29
+ in there. Copy the directory aside if you want it. Your other projects each
30
+ have their own and are unaffected. Finally `codevira untrack -y "$HOME"`,
31
+ `codevira register-all`, and restart the IDE.
32
+
33
+ `codevira doctor` does NOT detect this: its checks cover the current binding
34
+ and whether `global.db` opens, not the rows inside it.
35
+
36
+ The through-line of this release is one failure shape, found three times:
37
+ a guard that exists, is correct, and is not on the path that runs.
38
+ `paths.is_invalid_project_root()` returned the right answer in all three cases
39
+ below; the callers did not handle it. The full suite and every release gate
40
+ stayed green throughout, because the gauntlet verified that things RUN, not
41
+ that a guard is WIRED IN. Gates for that are also in this release.
42
+
43
+ Nothing here changes the observable output of a documented tool. This is a
44
+ minor rather than a patch because of `codevira reconcile` and the CI
45
+ enforcement entry point.
46
+
47
+ ### Fixed — `$HOME` could be discovered as a project, hiding every real one
48
+
49
+ `discover_projects()` applied no guard against invalid roots. Codevira's own
50
+ global home is `~/.codevira`, so `$HOME` always carries a `.codevira` marker
51
+ and looks like a project to a naive scan. Once discovered it sorts as
52
+ top-level, and the nesting rule immediately below then discards every genuine
53
+ project beneath it as a nested sub-store.
54
+
55
+ Measured before the fix:
56
+
57
+ ```
58
+ projects (1): codevira-sachin -> /Users/sachin
59
+ excluded nested: 11 real projects
60
+ plan: Claude Code -2 old / +1 named
61
+ ```
62
+
63
+ `register-all` now filters candidates through `is_invalid_project_root()`, the
64
+ same refusal `get_data_dir()` has always applied. *(Test:
65
+ `TestHomeIsNeverATopLevelProject` — fails without the change. Note the first
66
+ version of that test passed vacuously, because pytest's `tmp_path` lives under
67
+ `/private/var/folders/`, which the scanner already excludes as junk.)*
68
+
69
+ ### Fixed — background work no longer crashes when no project is resolvable
70
+
71
+ An unpinned server binds per tool call. Claude Desktop registers one dynamic
72
+ entry (`args: []`, no `cwd`), so the process starts at `/` — and startup tasks
73
+ and timer work run *before* any tool call, when `get_data_dir()` correctly
74
+ refuses `/`.
75
+
76
+ Two entry points let that refusal escape as a crash:
77
+
78
+ - **Log retention** wrote it to the crash log on every start. **39 of 45
79
+ entries** on the maintainer's machine were this one line, daily for three
80
+ weeks, while nothing was actually wrong.
81
+ - **The background watcher's incremental pass** raised on a timer, inside a
82
+ thread, with no caller to catch it.
83
+
84
+ Both now degrade to a no-op that states the reason. The line this draws, and
85
+ the reason it is not applied everywhere: **background work degrades; a tool
86
+ answering a question refuses loudly.** A tool that returned an empty result
87
+ instead is what produced a wrong-project session brief that read as plausible
88
+ and said nothing — the call succeeded, and nothing indicated it had read a
89
+ different project's store.
90
+
91
+ A crash log that is mostly expected noise is a crash log nobody reads.
92
+
93
+ *(Tests: `tests/test_background_degrades.py` — a registry of every background
94
+ entry point, parametrised, plus a meta-test that fails when a new crash-logged
95
+ startup task appears in `server.py` without coverage. Reverting any one guard
96
+ turns it red.)*
97
+
98
+ ### Added — `codevira reconcile`
99
+
100
+ `cluster_store()` and `pick_canonical()` shipped in 4.1.0 complete, tested,
101
+ and called by nothing: no MCP tool, no CLI subcommand, 294 lines a user could
102
+ not reach. The 4.1.0 notes had to say so. This is the surface.
103
+
104
+ **Report-only by construction.** `cluster_store` returns a *plan*; executing
105
+ it means rewriting `decisions.jsonl` with supersessions and alias rewrites —
106
+ separate work, on the most precious data in the product. A command that can
107
+ only read cannot corrupt anything, and knowing you have N duplicate clusters
108
+ and M conflicts is useful on its own.
109
+
110
+ Conflicts are never offered as merges. A pair where one side negates the other
111
+ scores as a near-perfect textual duplicate (Jaccard 0.83), which is exactly
112
+ why merging on similarity alone is dangerous.
113
+
114
+ Also fixed here: a decision that **cites** another (`[[D0001]]`) is no longer
115
+ read as contradicting it, and the citation match is word-bounded, so `D1`
116
+ cannot match inside `D1000`.
117
+
118
+ *(Tests: `tests/test_cli_reconcile.py` — one asserts the store is
119
+ byte-identical after a run; another asserts no conflicting id ever appears in
120
+ a merge plan.)*
121
+
122
+ ### Added — enforce locked decisions over a commit range, for CI
123
+
124
+ `decision_lock` blocks a *local* commit through the pre-commit hook. For a
125
+ team that is advisory: `git commit --no-verify` overrides it, and a teammate
126
+ who never ran `codevira init` has no hook at all. CI is where enforcement
127
+ stops being optional.
128
+
129
+ A pull request has no staged index, so the existing entry point could not
130
+ evaluate one. Only two functions were index-bound — `staged_files()` reading
131
+ `git diff --cached` and `_versions()` reading `git show :<file>`. Both now
132
+ take optional `base`/`head`; the index stays the default, and a test pins that
133
+ local pre-commit behaviour is unchanged.
134
+
135
+ ### Fixed — shared mode merges cleanly
136
+
137
+ Dogfooding team mode for the first time, two branches each recording one
138
+ decision: the canonical log merged correctly — the merge driver re-minted the
139
+ colliding id, both decisions survived, ids stayed unique — but `git merge`
140
+ still exited 1, because `.codevira/digest.jsonl` and `.codevira/manifest.yaml`
141
+ conflicted. Both are pure functions of `decisions.jsonl`. Committing them
142
+ makes every concurrent write in a team repo a merge conflict in generated
143
+ content nobody reviews; they are now ignored.
144
+
145
+ `AGENTS.md` is deliberately **not** ignored — it is the contract Codex and
146
+ Copilot read *without* running codevira, so dropping it would trade a
147
+ cross-tool promise for a merge conflict. Its codevira block is regenerated on
148
+ merge instead. The driver auto-resolves only when both sides agree outside the
149
+ markers: prose a human wrote is not codevira's to adjudicate, and a real
150
+ disagreement still raises a real conflict.
151
+
152
+ ### Fixed — release gates that could not run reported that they passed
153
+
154
+ Three defects in the release machinery itself, all the same shape as the bugs
155
+ above, and all of which had let releases through:
156
+
157
+ - **G4 was dead.** It ran `codevira report | grep -c CRASH`. `report` is not a
158
+ subcommand — it exits 2 with a usage error, `2>/dev/null` swallowed that,
159
+ grep counted an empty stream, and the count was always 0. G4 **could not
160
+ fail**. It reported "no crashes" for 4.1.0 with three CRASH entries in the
161
+ log, and every `G4_crash_log_clean` in every past evidence file was
162
+ meaningless. It now reads the log file directly and distinguishes clean from
163
+ could-not-check.
164
+ - **`"skipped"` counted as a pass** in the publish hook. G3 read `"skipped"` in
165
+ every evidence file from 2.0.0 through 3.0.0 — the real-IDE smoke script was
166
+ a stub — and all six of those releases were allowed through. The gauntlet
167
+ printed "NOT a release-ready state" beside it each time.
168
+ - **The hook checked five gates by name.** G1.5, G1.6, G1.7 and G2.5 were added
169
+ to the gauntlet in 2.1.2 and never added to the hook, so seven releases went
170
+ out with the wall enforcing a subset of itself.
171
+
172
+ The hook now enumerates every gate in the evidence file and requires `true` —
173
+ including gates it has no built-in knowledge of, which is what stops the third
174
+ from recurring. One tolerated exception, stated in place: `G4 = "warn"`,
175
+ because a crash log records history and the release may be what fixes it. The
176
+ CHANGELOG staleness gate also moved from an mtime heuristic to a git one,
177
+ after mtimes produced a false blocker on two consecutive releases.
178
+
179
+ ### Fixed — docs told you to run subcommands the CLI would reject (G1.8)
180
+
181
+ `docs/alpha-tester-invites.md` asked alpha testers to collect crash logs with
182
+ `codevira report`. That command was cut in v2.2.0 and exits 2 with `invalid
183
+ choice`. The same rot had just been found in the G4 release gate above, which
184
+ ran that identical dead command — so the failure was reaching testers and the
185
+ release process from the same source.
186
+
187
+ Eight sites, not one. `codevira insights` sat two lines above the first one
188
+ and nobody had noticed. `codevira budget`, `codevira register` and
189
+ `codevira archive-legacy` appeared in live "run this" fences —
190
+ `archive-legacy` has no implementation anywhere in the tree and no successor.
191
+ `DOGFOOD.md` walked the reader through two whole scenarios for heroes cut in
192
+ the 2026-05-22 audit, one of which told them to **file a bug** if the output
193
+ came back empty. The module docstrings in `cli.py` and `cli_init.py`
194
+ advertised the dead commands too, so the rot was in the source, not only the
195
+ prose.
196
+
197
+ **New gate — G1.8**, wired into the gauntlet after G1.7: every `codevira
198
+ <cmd>` a live doc tells you to RUN must exist in the argparse dispatch table.
199
+ Source of truth is subparser **choices**, not `--help` output — choices are
200
+ what `main()` dispatches on, and they include subcommands deliberately hidden
201
+ from help (`reconcile`, `merge-driver-agents`). Checking `--help` would fail
202
+ a doc for correctly documenting a working command.
203
+
204
+ Because the bug it prevents was a gate that *could not fail*, G1.8 carries
205
+ vacuity guards of its own: it asserts the doc set is non-empty, that it
206
+ matches a meaningful number of instructions, that a planted dead command IS
207
+ caught, and that a real one is NOT.
208
+
209
+ It separates prose from instruction in three tiers (line marker, a
210
+ removal-declaring heading, or an explicit `<!-- codevira-lint: historical -->`
211
+ escape). That distinction is load-bearing: `MIGRATING.md:856` tells you to run
212
+ `codevira register` and is **correct**, because that recipe reinstalls 1.8.0,
213
+ where `register` exists. A flat check would have demanded breaking working
214
+ instructions to satisfy the linter.
215
+
216
+ Also corrected in `DOGFOOD.md`: a baseline check asserting "2170 passed, 1
217
+ skipped" — a number that drifts every week — became "0 failed"; and "the
218
+ engine's 8 active policies" is 7, measured by calling
219
+ `register_default_policies()` rather than counting the registration tuple,
220
+ which is filtered on `enabled_by_default`.
221
+
222
+ ### Internal — tests that pin the shapes above
223
+
224
+ - The write path and the shared classifier are now asserted to **agree**. 4.1.0
225
+ was cut for the negation bug and shipped without fixing it: the guard landed
226
+ in `reconcile.classify()`, while `record_decision` goes through
227
+ `check_conflict`, which re-implements the rule inline. Both paths passed
228
+ their own example-based tests; nobody asserted they matched. A differential
229
+ sweep now runs every retrieved pair through both.
230
+ - `ruff` is pinned identically in `pyproject.toml` and `.pre-commit-config.yaml`
231
+ (0.15.14) and uses the non-deprecated `ruff-check` hook id. A range in one
232
+ file and an exact pin in the other had the two disagreeing by nine minor
233
+ versions, which reformatted 107 files spuriously.
234
+
235
+ ## [4.1.0] — 2026-08-16
236
+
237
+ **If you are on 4.0.1, upgrade.** That release will silently replace a decision
238
+ with its own negation: supersede-on-write is on by default and fires at Jaccard
239
+ ≥ 0.75, while `"never do X"` and `"do X"` score **0.75–0.83** against each other.
240
+ Measured on the shipped 4.0.1 artifact, not inferred. Only `do_not_revert`
241
+ decisions were exempt. The guard that fixes it is below, and it is the reason
242
+ this release exists.
243
+
244
+ Also here: a workspace root that is a *subdirectory* of your project no longer
245
+ binds to the wrong project, and `get_session_context` now ranks the brief by
246
+ recency × outcome-confidence instead of write order — the one change in this
247
+ release that alters observable output of a documented tool, and so the reason
248
+ this is a minor rather than a patch.
249
+
250
+ `reconcile.cluster_store()` and `reconcile.pick_canonical()` (Phases 25 and 29)
251
+ land as **library internals**. They are complete and tested, but nothing calls
252
+ them yet — no MCP tool, no CLI subcommand. They are groundwork for a merge
253
+ surface, listed here for contributors, not as capabilities you can invoke.
254
+
255
+ ### Fixed — a workspace root inside a project no longer binds to the wrong project
256
+
257
+ An MCP client advertises its workspace roots, and codevira uses them to bind to
258
+ the right project when the server is not pinned. Measured against Claude Code
259
+ 2.1.221: `roots/list` returns the **literal session directory**, so opening
260
+ `~/repo/packages/web` advertises that path — not `~/repo`.
261
+
262
+ Such a root has neither `.codevira/` nor `.git/`, so it matched no branch of
263
+ `pick_project_root`, fell through to "first valid root", and `choose_binding`
264
+ then kept the inherited cwd. The binding silently landed on whatever project
265
+ the process happened to start in — precisely the failure roots-binding exists
266
+ to prevent.
267
+
268
+ Each candidate root is now resolved to its **enclosing** initialized codevira
269
+ project before being classified, and duplicates are dropped — so `--add-dir`
270
+ of two subdirectories of one repo is one project, not an ambiguous multi-root
271
+ workspace.
272
+
273
+ This closes the same split already documented in `_is_git_repo`: `paths.
274
+ _discover_project_root` has always walked upward, while `pick_project_root`
275
+ judged each root as-is. Two layers disagreeing about what counts as a project.
276
+
277
+ Deliberately the `.codevira` walk **only**, not the generic marker walk — a
278
+ walk that stopped at a bare `.git` would let `choose_binding` rule 2 auto-init
279
+ `.codevira` at a monorepo root the user never opted into. The `$HOME` refusal
280
+ is load-bearing rather than defensive: `~/.codevira` always exists, so an
281
+ unguarded walk would bind every marker-less folder to `$HOME` (the v1.8.0
282
+ rogue-`$HOME`-project crash).
283
+
284
+ Proved end-to-end over the real MCP wire, not only in unit tests: with roots
285
+ pointing at `…/packages/web/src` and cwd set to a *different* project, the
286
+ patched server binds to the enclosing project while the unpatched build binds
287
+ to cwd. *(Tests: `TestSubdirectoryRoots` (6) — 4 fail without the change; 2
288
+ are regression guards for the `$HOME` and bare-`.git` limits.)*
289
+
290
+ ### Added — `get_session_context` ranks by recency × outcome-confidence (Phase 26)
291
+
292
+ `recent_decisions` was a binary filter: drop reverted and outdated, then take
293
+ whatever the store returned first. That made the catch-me-up brief a function
294
+ of **write order** — a decision recorded months ago and never confirmed could
295
+ outrank one the git outcome-tracker watched survive last week.
296
+
297
+ Survivors are now ranked. Every signal is already on the row, so this costs no
298
+ extra I/O:
299
+
300
+ | signal | weight |
301
+ |---|---|
302
+ | `outcome="kept"` — the tracker watched the file survive | 1.0 |
303
+ | `outcome` unset — nothing has tested it | 0.7 |
304
+ | `outcome="modified"` — the file changed underneath it | 0.4 |
305
+ | `dnr_soft_expired` — a lock nobody re-confirmed | × 0.5 |
306
+ | recency | exponential, 90-day half-life |
307
+
308
+ Ranking replaces the *ordering*, not the filter: reverted and outdated
309
+ decisions are still hidden entirely.
310
+
311
+ ### Added — the same ranking now reaches `search` and prompt injection
312
+
313
+ Phase 26 names **three** read surfaces. Only the session brief got the ranking
314
+ at first; `search` and the relevance-injection hook still ordered purely by
315
+ keyword relevance, so a two-year-old decision the tracker never validated
316
+ outranked a current one scoring a hair lower on BM25.
317
+
318
+ The arithmetic now lives once, in `retrieval.score.freshness()` —
319
+ `outcome_weight × recency_decay`, both of which already existed there while
320
+ three separate copies of the same table sat in `learning.py`, `digest.py` and
321
+ `score.py`. `now` is a **required** keyword argument, unlike `recency_decay`
322
+ which defaults it: one instant must cover a whole comparison, and having no
323
+ default makes the sample-per-row bug unrepresentable rather than discouraged.
324
+
325
+ **`search`** re-ranks by `rank_norm × freshness` and reports `freshness` in
326
+ `score_breakdown`, so an order the reader cannot explain stays impossible. The
327
+ `limit` cap moved *after* ranking — it used to sit inside the BM25 loop, so
328
+ freshness could only reorder rows relevance had already selected. `score` is
329
+ still raw BM25; its meaning is unchanged for callers.
330
+
331
+ **The injection hook** could not do this at all before: it scores digest rows,
332
+ and the digest carried no timestamp from any source (the manifest holds bare id
333
+ lists). `digest_record` now carries `ts` and the raw `outcome` label. `weight`
334
+ alone could not serve — it is a pre-applied, lossy derivative that collapses
335
+ "no outcome" and "unrecognised outcome" onto 0.5 and cannot be re-tabled by a
336
+ caller needing different weights.
337
+
338
+ One deliberate divergence, stated rather than smoothed away: the brief scores
339
+ `modified` **below** an untested decision, search scores it **above**. In a
340
+ catch-up brief churn is the liability that earns `needs_review`; in a search it
341
+ means you asked about this area and someone touched it recently. Same
342
+ arithmetic, two named tables, both in `retrieval/score.py` with the reasoning.
343
+
344
+ > **Existing projects:** the digest is appended incrementally, so decisions
345
+ > recorded before this release keep their old rows until something rebuilds
346
+ > them. Those rows fall back to the previous behaviour *exactly* — not to a
347
+ > neutral score, which would have halved them and pushed real matches under the
348
+ > injection threshold. Run `codevira sync` to rebuild immediately; otherwise it
349
+ > heals as the outcome tracker rewrites the digest.
350
+
351
+ ### Added — a churn nudge on decisions whose file moved
352
+
353
+ `outcome="modified"` is exactly the churn signal Phase 26 asks for — the
354
+ tracker saw the decision's file change but not disappear. Those rows now carry
355
+ `needs_review` and a hint to `reaffirm_decision` if the decision still holds,
356
+ or `supersede_decision` / `mark_decision_outdated` if it does not. It needs a
357
+ human verdict, not
358
+ silent removal. The keys are absent on every other row, so the brief stays
359
+ lean.
360
+
361
+ ### Fixed — the ranking clock is sampled once, not per row
362
+
363
+ Caught by a tie test while building the above, and worth recording because the
364
+ bug is invisible by inspection: the rank key read `datetime.now()` **inside**
365
+ the sort, so rows evaluated later came out microseconds younger. The score was
366
+ a function of evaluation order rather than of the data, and the sort quietly
367
+ preserved whatever order it was given. `_age_days` now takes the reference
368
+ instant, and any caller ranking a collection must pass one. Unpinning it turns
369
+ the tie test red on 5 runs out of 5.
370
+
371
+ ### Fixed — a decision and its negation were classified as duplicates
372
+
373
+ `"never switch the package manager away from pnpm"` and the same sentence
374
+ without `never` differ by one token, so pure set math scores them **Jaccard
375
+ 0.83** — comfortably over the 0.60 duplicate threshold.
376
+
377
+ That is the worst false positive available in this codebase. The classifier is
378
+ shared: Tier-1 would have aliased one meaning away, and **supersede-on-write
379
+ would have retired `"never do X"` as a duplicate of `"do X"`**. A protected
380
+ decision is guarded there, but an unprotected one was not.
381
+
382
+ A negation present on one side and absent on the other is now a **conflict by
383
+ construction**, whatever the similarity says. It stays fully deterministic — a
384
+ set difference against a fixed word list, no model. The guard keys on
385
+ *disagreement*, so two decisions that both say `never` are still duplicates.
386
+
387
+ ### Added — Tier-1 store clustering: `reconcile.cluster_store()` (Phase 25)
388
+
389
+ Tier-0 (`id_repair`) resolves records that collide on an **id**. Tier-1
390
+ resolves records that say the same **thing** in different words — two engineers
391
+ recording the same decision independently, each with its own id.
392
+
393
+ Returns `{merges, conflicts, scanned, truncated}`. Duplicate grouping is
394
+ transitive via union-find, so A~C and B~C land in one cluster even when A and B
395
+ alone would not classify as duplicates — otherwise the same decision survives
396
+ twice under two canonical ids. Ordering is total before any pairing, so two
397
+ engineers running it over the same store get the same plan.
398
+
399
+ Conflicts come back as **data, never a silent pick**: the structural tier is
400
+ authoritative and this one is assistive. The phase specified routing
401
+ escalations through `consensus_store`, which was removed in 4.0 — returning
402
+ them keeps this layer free of I/O and lets the caller choose the surface.
403
+
404
+ The O(n²) scan is bounded at 2,000 records and the bound is **reported**
405
+ (`truncated`) rather than silently applied.
406
+
407
+ ### Added — `reconcile.pick_canonical()`: the deterministic merge winner (Phase 29)
408
+
409
+ The reconcile core could classify a pair as duplicate / conflict / distinct,
410
+ but nothing decided **which record survives** a duplicate cluster. That pick is
411
+ what both the cross-engineer Tier-1 reconcile (Phase 25) and any future
412
+ merge surface consume, so it belongs in the shared core rather than in either
413
+ caller, where it would drift.
414
+
415
+ Returns the canonical record, the union of `tags` and `origin` provenance
416
+ across the cluster, and an **alias map** `old_id → canonical_id` so `[[Dxxxx]]`
417
+ references still resolve after a merge.
418
+
419
+ The winner order is total, and every component is a pure function of the
420
+ record:
421
+
422
+ 1. **protected first** — merging a `do_not_revert` record into an unprotected
423
+ one would silently drop the protection, so a lock outranks a plain decision
424
+ regardless of age;
425
+ 2. **earliest `ts`** — the oldest id is the one other decisions are most likely
426
+ to reference, so keeping it minimises alias churn;
427
+ 3. **writer id**, then **content hash**, then **id** — the components that keep
428
+ the order strict once the first two collide.
429
+
430
+ Two or more *protected* members disagreeing on text sets `ambiguous`. That is a
431
+ real conflict, not a duplicate: the pick stays reproducible, but the caller
432
+ must escalate rather than merge. The committed text is always one of the
433
+ inputs — an LLM may suggest a merged wording upstream, but committing
434
+ synthesised text would make the result a function of sampling instead of
435
+ content, and convergence would be gone.
436
+
437
+ The id tiebreak is load-bearing, not belt-and-braces. Without it, records
438
+ differing only by id hash identically, tie on every component, and `sorted`
439
+ falls back to input position — the same defect fixed in `id_repair` this
440
+ release. A permutation test over the full cluster caught it here *before* it
441
+ shipped; the older order test could not have, because its two entries had
442
+ different similarities so nothing was ever contested. That test now uses
443
+ identical texts. *(Tests: `TestPickCanonical` (7), rewritten
444
+ `test_deterministic_order_independent`.)*
445
+
446
+
12
447
  ## [4.0.1] — 2026-08-12
13
448
 
14
449
  Repairs team-shared memory (`init --shared` never actually worked), removes the
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: codevira
3
- Version: 4.0.1
3
+ Version: 4.2.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
@@ -44,7 +44,7 @@ Requires-Dist: pytest>=7.0; extra == "dev"
44
44
  Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
45
45
  Requires-Dist: pytest-timeout>=2.1; extra == "dev"
46
46
  Requires-Dist: pytest-randomly>=3.12; extra == "dev"
47
- Requires-Dist: ruff<0.16,>=0.6.0; extra == "dev"
47
+ Requires-Dist: ruff==0.15.14; extra == "dev"
48
48
  Requires-Dist: mypy>=1.10; extra == "dev"
49
49
  Requires-Dist: types-PyYAML; extra == "dev"
50
50
  Requires-Dist: pre-commit>=3.5; extra == "dev"
@@ -221,7 +221,7 @@ one tool is visible to every tool.
221
221
  | **Frugal by design** | Tools return summaries by default; `get_session_context()` is one ~500-token call; the server cold-starts in well under a second with no ML model to load. |
222
222
  | **Concurrent-safe** | Every write is a crash-safe atomic write behind a Posix `fcntl.flock`, so two IDEs on one project don't race. [Details](#concurrency--safety) (expand) |
223
223
 
224
- <sub><strong>Latest: 4.0.1.</strong> 4.0 made enforcement <em>universal</em> — a locked decision now blocks a commit in every editor via a git <code>pre-commit</code> hook, not just an edit in Claude Code — and when it blocks, it shows the reasoning. 4.0.1 removes the deprecated <code>codevira clean</code> command plus two <code>doctor</code>/project-inventory fixes. Upgrading is automatic on the first server start. <a href="https://github.com/sachinshelke/codevira/blob/main/CHANGELOG.md">Full release notes →</a></sub>
224
+ <sub><strong>Latest: 4.2.0.</strong> Upgrade if you use codevira in more than one project: a stray registration at <code>$HOME</code> could make <code>register-all</code> discover exactly one project and discard every real one as &ldquo;nested&rdquo; (measured on a real machine: 1 found, 11 excluded). 4.2.0 also stops background work writing false entries to the crash log &mdash; 39 of 45 entries on that machine were one harmless line &mdash; and adds <code>codevira reconcile</code> to report duplicate and contradicting decisions. Upgrading is automatic, <strong>but a registration that was already wrong is not repaired for you</strong>: run <code>codevira register-all</code> once after upgrading to recover projects that went missing. <a href="https://github.com/sachinshelke/codevira/blob/main/CHANGELOG.md">Full release notes &rarr;</a></sub>
225
225
 
226
226
  ---
227
227
 
@@ -561,8 +561,42 @@ corrupt-JSONL graceful degradation, and read-only-directory hostility). See
561
561
  ## Upgrading & troubleshooting
562
562
 
563
563
  **Upgrading is automatic** — codevira migrates your memory on the first server start after an
564
- upgrade, with no manual steps, and your existing decisions stay put. (After a
565
- `pipx upgrade codevira`, restart your IDE so its MCP server reloads the new binary.)
564
+ upgrade, and your existing decisions stay put. (After a `pipx upgrade codevira`, restart your IDE
565
+ so its MCP server reloads the new binary.)
566
+
567
+ **One exception, if you are coming from 4.1.0 or earlier.** A bug could register `$HOME` itself as
568
+ a project, and every genuine project below it was then discarded as a "nested sub-store". 4.2.0
569
+ stops that happening, but it does **not** repair a registration that is already wrong — nothing
570
+ prunes the bad row on upgrade. If projects went missing from an IDE, run this once:
571
+
572
+ ```bash
573
+ codevira register-all --dry-run # read-only; shows what IS registered
574
+ ```
575
+
576
+ If that prints one project at your home directory with your real ones listed as *excluded
577
+ nested*, that is this bug. Before clearing it, look at what would be removed:
578
+
579
+ ```bash
580
+ codevira untrack --dry-run "$HOME" # read-only; lists IDE entries AND the data dir
581
+ ```
582
+
583
+ **Read that output.** `untrack` deletes the project's data directory, not just the registry
584
+ entry. If you were bound to `$HOME` by mistake, any decisions recorded during that time live in
585
+ *that* directory and will go with it. If the dry-run lists a data dir you might want, copy it
586
+ aside first (`cp -R` the path it names). Your other projects each have their own directory and
587
+ are not affected.
588
+
589
+ Then clear and re-register:
590
+
591
+ ```bash
592
+ codevira untrack -y "$HOME"
593
+ codevira register-all
594
+ ```
595
+
596
+ Restart the IDE afterwards.
597
+
598
+ (`codevira doctor` will not catch this one: its checks cover the *current* binding and whether
599
+ `global.db` opens, not what is registered inside it.)
566
600
 
567
601
  If an IDE then shows the wrong project, doesn't show codevira at all, or memory looks missing,
568
602
  it's almost always a stale IDE-config entry rather than lost data. Two fixes cover most cases:
@@ -169,7 +169,7 @@ one tool is visible to every tool.
169
169
  | **Frugal by design** | Tools return summaries by default; `get_session_context()` is one ~500-token call; the server cold-starts in well under a second with no ML model to load. |
170
170
  | **Concurrent-safe** | Every write is a crash-safe atomic write behind a Posix `fcntl.flock`, so two IDEs on one project don't race. [Details](#concurrency--safety) (expand) |
171
171
 
172
- <sub><strong>Latest: 4.0.1.</strong> 4.0 made enforcement <em>universal</em> — a locked decision now blocks a commit in every editor via a git <code>pre-commit</code> hook, not just an edit in Claude Code — and when it blocks, it shows the reasoning. 4.0.1 removes the deprecated <code>codevira clean</code> command plus two <code>doctor</code>/project-inventory fixes. Upgrading is automatic on the first server start. <a href="https://github.com/sachinshelke/codevira/blob/main/CHANGELOG.md">Full release notes →</a></sub>
172
+ <sub><strong>Latest: 4.2.0.</strong> Upgrade if you use codevira in more than one project: a stray registration at <code>$HOME</code> could make <code>register-all</code> discover exactly one project and discard every real one as &ldquo;nested&rdquo; (measured on a real machine: 1 found, 11 excluded). 4.2.0 also stops background work writing false entries to the crash log &mdash; 39 of 45 entries on that machine were one harmless line &mdash; and adds <code>codevira reconcile</code> to report duplicate and contradicting decisions. Upgrading is automatic, <strong>but a registration that was already wrong is not repaired for you</strong>: run <code>codevira register-all</code> once after upgrading to recover projects that went missing. <a href="https://github.com/sachinshelke/codevira/blob/main/CHANGELOG.md">Full release notes &rarr;</a></sub>
173
173
 
174
174
  ---
175
175
 
@@ -509,8 +509,42 @@ corrupt-JSONL graceful degradation, and read-only-directory hostility). See
509
509
  ## Upgrading & troubleshooting
510
510
 
511
511
  **Upgrading is automatic** — codevira migrates your memory on the first server start after an
512
- upgrade, with no manual steps, and your existing decisions stay put. (After a
513
- `pipx upgrade codevira`, restart your IDE so its MCP server reloads the new binary.)
512
+ upgrade, and your existing decisions stay put. (After a `pipx upgrade codevira`, restart your IDE
513
+ so its MCP server reloads the new binary.)
514
+
515
+ **One exception, if you are coming from 4.1.0 or earlier.** A bug could register `$HOME` itself as
516
+ a project, and every genuine project below it was then discarded as a "nested sub-store". 4.2.0
517
+ stops that happening, but it does **not** repair a registration that is already wrong — nothing
518
+ prunes the bad row on upgrade. If projects went missing from an IDE, run this once:
519
+
520
+ ```bash
521
+ codevira register-all --dry-run # read-only; shows what IS registered
522
+ ```
523
+
524
+ If that prints one project at your home directory with your real ones listed as *excluded
525
+ nested*, that is this bug. Before clearing it, look at what would be removed:
526
+
527
+ ```bash
528
+ codevira untrack --dry-run "$HOME" # read-only; lists IDE entries AND the data dir
529
+ ```
530
+
531
+ **Read that output.** `untrack` deletes the project's data directory, not just the registry
532
+ entry. If you were bound to `$HOME` by mistake, any decisions recorded during that time live in
533
+ *that* directory and will go with it. If the dry-run lists a data dir you might want, copy it
534
+ aside first (`cp -R` the path it names). Your other projects each have their own directory and
535
+ are not affected.
536
+
537
+ Then clear and re-register:
538
+
539
+ ```bash
540
+ codevira untrack -y "$HOME"
541
+ codevira register-all
542
+ ```
543
+
544
+ Restart the IDE afterwards.
545
+
546
+ (`codevira doctor` will not catch this one: its checks cover the *current* binding and whether
547
+ `global.db` opens, not what is registered inside it.)
514
548
 
515
549
  If an IDE then shows the wrong project, doesn't show codevira at all, or memory looks missing,
516
550
  it's almost always a stale IDE-config entry rather than lost data. Two fixes cover most cases:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: codevira
3
- Version: 4.0.1
3
+ Version: 4.2.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
@@ -44,7 +44,7 @@ Requires-Dist: pytest>=7.0; extra == "dev"
44
44
  Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
45
45
  Requires-Dist: pytest-timeout>=2.1; extra == "dev"
46
46
  Requires-Dist: pytest-randomly>=3.12; extra == "dev"
47
- Requires-Dist: ruff<0.16,>=0.6.0; extra == "dev"
47
+ Requires-Dist: ruff==0.15.14; extra == "dev"
48
48
  Requires-Dist: mypy>=1.10; extra == "dev"
49
49
  Requires-Dist: types-PyYAML; extra == "dev"
50
50
  Requires-Dist: pre-commit>=3.5; extra == "dev"
@@ -221,7 +221,7 @@ one tool is visible to every tool.
221
221
  | **Frugal by design** | Tools return summaries by default; `get_session_context()` is one ~500-token call; the server cold-starts in well under a second with no ML model to load. |
222
222
  | **Concurrent-safe** | Every write is a crash-safe atomic write behind a Posix `fcntl.flock`, so two IDEs on one project don't race. [Details](#concurrency--safety) (expand) |
223
223
 
224
- <sub><strong>Latest: 4.0.1.</strong> 4.0 made enforcement <em>universal</em> — a locked decision now blocks a commit in every editor via a git <code>pre-commit</code> hook, not just an edit in Claude Code — and when it blocks, it shows the reasoning. 4.0.1 removes the deprecated <code>codevira clean</code> command plus two <code>doctor</code>/project-inventory fixes. Upgrading is automatic on the first server start. <a href="https://github.com/sachinshelke/codevira/blob/main/CHANGELOG.md">Full release notes →</a></sub>
224
+ <sub><strong>Latest: 4.2.0.</strong> Upgrade if you use codevira in more than one project: a stray registration at <code>$HOME</code> could make <code>register-all</code> discover exactly one project and discard every real one as &ldquo;nested&rdquo; (measured on a real machine: 1 found, 11 excluded). 4.2.0 also stops background work writing false entries to the crash log &mdash; 39 of 45 entries on that machine were one harmless line &mdash; and adds <code>codevira reconcile</code> to report duplicate and contradicting decisions. Upgrading is automatic, <strong>but a registration that was already wrong is not repaired for you</strong>: run <code>codevira register-all</code> once after upgrading to recover projects that went missing. <a href="https://github.com/sachinshelke/codevira/blob/main/CHANGELOG.md">Full release notes &rarr;</a></sub>
225
225
 
226
226
  ---
227
227
 
@@ -561,8 +561,42 @@ corrupt-JSONL graceful degradation, and read-only-directory hostility). See
561
561
  ## Upgrading & troubleshooting
562
562
 
563
563
  **Upgrading is automatic** — codevira migrates your memory on the first server start after an
564
- upgrade, with no manual steps, and your existing decisions stay put. (After a
565
- `pipx upgrade codevira`, restart your IDE so its MCP server reloads the new binary.)
564
+ upgrade, and your existing decisions stay put. (After a `pipx upgrade codevira`, restart your IDE
565
+ so its MCP server reloads the new binary.)
566
+
567
+ **One exception, if you are coming from 4.1.0 or earlier.** A bug could register `$HOME` itself as
568
+ a project, and every genuine project below it was then discarded as a "nested sub-store". 4.2.0
569
+ stops that happening, but it does **not** repair a registration that is already wrong — nothing
570
+ prunes the bad row on upgrade. If projects went missing from an IDE, run this once:
571
+
572
+ ```bash
573
+ codevira register-all --dry-run # read-only; shows what IS registered
574
+ ```
575
+
576
+ If that prints one project at your home directory with your real ones listed as *excluded
577
+ nested*, that is this bug. Before clearing it, look at what would be removed:
578
+
579
+ ```bash
580
+ codevira untrack --dry-run "$HOME" # read-only; lists IDE entries AND the data dir
581
+ ```
582
+
583
+ **Read that output.** `untrack` deletes the project's data directory, not just the registry
584
+ entry. If you were bound to `$HOME` by mistake, any decisions recorded during that time live in
585
+ *that* directory and will go with it. If the dry-run lists a data dir you might want, copy it
586
+ aside first (`cp -R` the path it names). Your other projects each have their own directory and
587
+ are not affected.
588
+
589
+ Then clear and re-register:
590
+
591
+ ```bash
592
+ codevira untrack -y "$HOME"
593
+ codevira register-all
594
+ ```
595
+
596
+ Restart the IDE afterwards.
597
+
598
+ (`codevira doctor` will not catch this one: its checks cover the *current* binding and whether
599
+ `global.db` opens, not what is registered inside it.)
566
600
 
567
601
  If an IDE then shows the wrong project, doesn't show codevira at all, or memory looks missing,
568
602
  it's almost always a stale IDE-config entry rather than lost data. Two fixes cover most cases: