codevira 4.1.0__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 (424) hide show
  1. {codevira-4.1.0 → codevira-4.2.0}/CHANGELOG.md +222 -0
  2. {codevira-4.1.0/codevira.egg-info → codevira-4.2.0}/PKG-INFO +39 -5
  3. {codevira-4.1.0 → codevira-4.2.0}/README.md +37 -3
  4. {codevira-4.1.0 → codevira-4.2.0/codevira.egg-info}/PKG-INFO +39 -5
  5. {codevira-4.1.0 → codevira-4.2.0}/codevira.egg-info/SOURCES.txt +6 -0
  6. {codevira-4.1.0 → codevira-4.2.0}/codevira.egg-info/requires.txt +1 -1
  7. {codevira-4.1.0 → codevira-4.2.0}/docs/alpha-tester-invites.md +4 -2
  8. {codevira-4.1.0 → codevira-4.2.0}/docs/local-pypi-https.md +1 -1
  9. {codevira-4.1.0 → codevira-4.2.0}/docs/release-process.md +33 -10
  10. {codevira-4.1.0 → codevira-4.2.0}/indexer/_dedupe_migration.py +2 -0
  11. {codevira-4.1.0 → codevira-4.2.0}/indexer/_fork_safety.py +2 -0
  12. {codevira-4.1.0 → codevira-4.2.0}/indexer/_sqlite_util.py +3 -1
  13. {codevira-4.1.0 → codevira-4.2.0}/indexer/index_codebase.py +19 -1
  14. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/__init__.py +1 -1
  15. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/__main__.py +1 -0
  16. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/_project_inventory.py +1 -2
  17. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/_safe_crash.py +6 -3
  18. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli.py +99 -5
  19. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_hooks_admin.py +1 -3
  20. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_init.py +20 -3
  21. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_memory.py +1 -2
  22. codevira-4.2.0/mcp_server/cli_reconcile.py +126 -0
  23. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_repair.py +112 -9
  24. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/doctor.py +1 -3
  25. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/demo_policy.py +1 -0
  26. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/_signature_detect.py +16 -5
  27. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/token_budget.py +37 -22
  28. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policy.py +8 -2
  29. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/wiring/git_hooks.py +77 -22
  30. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/launchd.py +3 -3
  31. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/log_retention.py +26 -1
  32. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/register_all.py +15 -1
  33. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/roadmap_drift.py +1 -0
  34. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/anchor.py +1 -1
  35. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/reconcile.py +41 -0
  36. {codevira-4.1.0 → codevira-4.2.0}/pyproject.toml +17 -10
  37. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/test_cross_tool_universality.py +1 -1
  38. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/test_first_contact.py +6 -6
  39. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/test_product_invariants.py +2 -3
  40. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/test_qa_round_v2_completion.py +9 -9
  41. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/test_v2_release_candidate.py +18 -18
  42. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/test_v350_acceptance.py +18 -18
  43. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_anti_regression.py +21 -21
  44. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_blast_radius.py +30 -30
  45. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_decision_lock.py +18 -18
  46. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_decision_replay.py +12 -12
  47. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_diff_envelope.py +6 -6
  48. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_events.py +1 -0
  49. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_fix_history.py +27 -9
  50. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_git_hook_enforcement.py +72 -6
  51. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_policies.py +2 -0
  52. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_qa_p0_fixes.py +104 -48
  53. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_qa_round3.py +3 -3
  54. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_qa_round4.py +19 -11
  55. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_qa_round5.py +9 -9
  56. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_qa_round_week13.py +3 -3
  57. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_relevance_inject.py +9 -9
  58. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_runner.py +13 -1
  59. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_token_budget.py +6 -8
  60. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_token_meter.py +1 -0
  61. codevira-4.2.0/tests/integration/test_docs_subcommands_exist.py +332 -0
  62. {codevira-4.1.0 → codevira-4.2.0}/tests/integration/test_mcp_roundtrip.py +6 -6
  63. {codevira-4.1.0 → codevira-4.2.0}/tests/integration/test_sandboxed_parent.py +24 -24
  64. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_agents_md_generator.py +7 -7
  65. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_amendment_provenance.py +6 -6
  66. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_atomic.py +6 -6
  67. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_cross_process_writes.py +4 -5
  68. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_decisions_store.py +9 -9
  69. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_device_identity.py +3 -3
  70. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_id_repair_references.py +3 -3
  71. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_score_breakdown.py +15 -1
  72. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_search_perf_caches.py +3 -3
  73. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_skills_store.py +6 -6
  74. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_token_estimator.py +3 -3
  75. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_uid_edges.py +3 -3
  76. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_working_store.py +3 -3
  77. {codevira-4.1.0 → codevira-4.2.0}/tests/test__prompts.py +32 -18
  78. {codevira-4.1.0 → codevira-4.2.0}/tests/test_auto_init.py +69 -54
  79. codevira-4.2.0/tests/test_background_degrades.py +231 -0
  80. {codevira-4.1.0 → codevira-4.2.0}/tests/test_binding_e2e.py +9 -9
  81. {codevira-4.1.0 → codevira-4.2.0}/tests/test_call_edge_fk_safety.py +16 -14
  82. {codevira-4.1.0 → codevira-4.2.0}/tests/test_check_conflict.py +6 -6
  83. codevira-4.2.0/tests/test_classifier_is_shared.py +253 -0
  84. {codevira-4.1.0 → codevira-4.2.0}/tests/test_claude_binding_conflict.py +6 -6
  85. {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_induce.py +3 -3
  86. {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_projects.py +6 -6
  87. codevira-4.2.0/tests/test_cli_reconcile.py +111 -0
  88. {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_uninstall.py +4 -8
  89. {codevira-4.1.0 → codevira-4.2.0}/tests/test_crash_logger.py +1 -3
  90. {codevira-4.1.0 → codevira-4.2.0}/tests/test_decisions_store.py +3 -3
  91. {codevira-4.1.0 → codevira-4.2.0}/tests/test_dedupe_migration.py +14 -2
  92. {codevira-4.1.0 → codevira-4.2.0}/tests/test_detect.py +16 -13
  93. {codevira-4.1.0 → codevira-4.2.0}/tests/test_fk_safety_extended.py +7 -2
  94. {codevira-4.1.0 → codevira-4.2.0}/tests/test_fork_safety.py +2 -0
  95. {codevira-4.1.0 → codevira-4.2.0}/tests/test_git_shared.py +114 -0
  96. {codevira-4.1.0 → codevira-4.2.0}/tests/test_global_db.py +3 -3
  97. {codevira-4.1.0 → codevira-4.2.0}/tests/test_global_home_isolation.py +3 -3
  98. {codevira-4.1.0 → codevira-4.2.0}/tests/test_graph_generator.py +3 -3
  99. {codevira-4.1.0 → codevira-4.2.0}/tests/test_hook_resilience.py +26 -23
  100. {codevira-4.1.0 → codevira-4.2.0}/tests/test_id_repair.py +6 -6
  101. {codevira-4.1.0 → codevira-4.2.0}/tests/test_ide_inject.py +21 -21
  102. {codevira-4.1.0 → codevira-4.2.0}/tests/test_imports.py +7 -3
  103. {codevira-4.1.0 → codevira-4.2.0}/tests/test_index_codebase.py +238 -144
  104. {codevira-4.1.0 → codevira-4.2.0}/tests/test_launchd.py +67 -33
  105. {codevira-4.1.0 → codevira-4.2.0}/tests/test_log_retention.py +73 -1
  106. {codevira-4.1.0 → codevira-4.2.0}/tests/test_migrate.py +6 -6
  107. {codevira-4.1.0 → codevira-4.2.0}/tests/test_migration_memory_loss.py +3 -3
  108. {codevira-4.1.0 → codevira-4.2.0}/tests/test_migration_no_data_loss_e2e.py +6 -6
  109. {codevira-4.1.0 → codevira-4.2.0}/tests/test_path_glob_and_scrub.py +3 -3
  110. {codevira-4.1.0 → codevira-4.2.0}/tests/test_paths.py +3 -3
  111. {codevira-4.1.0 → codevira-4.2.0}/tests/test_phase27_quality_fixes.py +3 -3
  112. {codevira-4.1.0 → codevira-4.2.0}/tests/test_pre_release_block_hook.py +149 -10
  113. {codevira-4.1.0 → codevira-4.2.0}/tests/test_reconcile.py +96 -9
  114. {codevira-4.1.0 → codevira-4.2.0}/tests/test_record_decision.py +6 -6
  115. {codevira-4.1.0 → codevira-4.2.0}/tests/test_register_all.py +95 -0
  116. {codevira-4.1.0 → codevira-4.2.0}/tests/test_remote_hijack.py +3 -3
  117. {codevira-4.1.0 → codevira-4.2.0}/tests/test_removed_tool_migration.py +6 -6
  118. {codevira-4.1.0 → codevira-4.2.0}/tests/test_repair_ids.py +6 -6
  119. {codevira-4.1.0 → codevira-4.2.0}/tests/test_repair_ids_race.py +3 -3
  120. {codevira-4.1.0 → codevira-4.2.0}/tests/test_repair_init.py +1 -2
  121. {codevira-4.1.0 → codevira-4.2.0}/tests/test_retirement_and_amendments.py +15 -15
  122. {codevira-4.1.0 → codevira-4.2.0}/tests/test_review_round2.py +3 -3
  123. {codevira-4.1.0 → codevira-4.2.0}/tests/test_review_round3.py +6 -6
  124. {codevira-4.1.0 → codevira-4.2.0}/tests/test_roadmap_drift.py +50 -13
  125. {codevira-4.1.0 → codevira-4.2.0}/tests/test_sdist_completeness.py +3 -3
  126. {codevira-4.1.0 → codevira-4.2.0}/tests/test_setup_wizard.py +27 -27
  127. {codevira-4.1.0 → codevira-4.2.0}/tests/test_sqlite_util.py +21 -9
  128. {codevira-4.1.0 → codevira-4.2.0}/tests/test_subprocess_imports_working_tree.py +3 -3
  129. {codevira-4.1.0 → codevira-4.2.0}/tests/test_supersede_on_write.py +3 -3
  130. codevira-4.2.0/tests/test_toolchain_pins.py +89 -0
  131. {codevira-4.1.0 → codevira-4.2.0}/tests/test_tools_graph.py +2 -2
  132. {codevira-4.1.0 → codevira-4.2.0}/tests/test_tools_learning.py +6 -6
  133. {codevira-4.1.0 → codevira-4.2.0}/tests/test_tools_playbook.py +19 -3
  134. {codevira-4.1.0 → codevira-4.2.0}/tests/test_watcher_circuit.py +4 -1
  135. {codevira-4.1.0 → codevira-4.2.0}/tests/test_working_promote_skill.py +3 -3
  136. {codevira-4.1.0 → codevira-4.2.0}/tests/test_worktree_and_cache.py +3 -3
  137. {codevira-4.1.0 → codevira-4.2.0}/LICENSE +0 -0
  138. {codevira-4.1.0 → codevira-4.2.0}/MANIFEST.in +0 -0
  139. {codevira-4.1.0 → codevira-4.2.0}/agents/qa/01-code-review.md +0 -0
  140. {codevira-4.1.0 → codevira-4.2.0}/agents/qa/02-adversarial-fix-review.md +0 -0
  141. {codevira-4.1.0 → codevira-4.2.0}/agents/qa/03-cross-module-impact.md +0 -0
  142. {codevira-4.1.0 → codevira-4.2.0}/agents/qa/06-doc-drift.md +0 -0
  143. {codevira-4.1.0 → codevira-4.2.0}/agents/qa/07-security-audit.md +0 -0
  144. {codevira-4.1.0 → codevira-4.2.0}/agents/qa/12-llm-redteam.md +0 -0
  145. {codevira-4.1.0 → codevira-4.2.0}/agents/qa/13-multi-ide-schema.md +0 -0
  146. {codevira-4.1.0 → codevira-4.2.0}/agents/qa/22-competitor-benchmark.md +0 -0
  147. {codevira-4.1.0 → codevira-4.2.0}/agents/qa/README.md +0 -0
  148. {codevira-4.1.0 → codevira-4.2.0}/agents/qa/tier2-scripts.md +0 -0
  149. {codevira-4.1.0 → codevira-4.2.0}/agents/qa/tier3-manual.md +0 -0
  150. {codevira-4.1.0 → codevira-4.2.0}/codevira.egg-info/dependency_links.txt +0 -0
  151. {codevira-4.1.0 → codevira-4.2.0}/codevira.egg-info/entry_points.txt +0 -0
  152. {codevira-4.1.0 → codevira-4.2.0}/codevira.egg-info/top_level.txt +0 -0
  153. {codevira-4.1.0 → codevira-4.2.0}/config.example.yaml +0 -0
  154. {codevira-4.1.0 → codevira-4.2.0}/docs/architecture.md +0 -0
  155. {codevira-4.1.0 → codevira-4.2.0}/docs/audit-2026-05-22.md +0 -0
  156. {codevira-4.1.0 → codevira-4.2.0}/docs/demo/README.md +0 -0
  157. {codevira-4.1.0 → codevira-4.2.0}/docs/foolproof-product-charter.md +0 -0
  158. {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/00-engine.md +0 -0
  159. {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/01-decision-lock.md +0 -0
  160. {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/02-anti-regression.md +0 -0
  161. {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/03-scope-contract.md +0 -0
  162. {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/04-blast-radius.md +0 -0
  163. {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/05-cross-session.md +0 -0
  164. {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/06-token-budget.md +0 -0
  165. {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/07-live-style.md +0 -0
  166. {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/08-decision-replay.md +0 -0
  167. {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/09-intent-inference.md +0 -0
  168. {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/10-ai-promotion.md +0 -0
  169. {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/README.md +0 -0
  170. {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/pillar-1-setup.md +0 -0
  171. {codevira-4.1.0 → codevira-4.2.0}/docs/hn-launch-day.md +0 -0
  172. {codevira-4.1.0 → codevira-4.2.0}/docs/how-i-built-persistent-memory-for-ai-agents.md +0 -0
  173. {codevira-4.1.0 → codevira-4.2.0}/docs/internal/4.0-beta.md +0 -0
  174. {codevira-4.1.0 → codevira-4.2.0}/docs/internal/architecture-4.0.md +0 -0
  175. {codevira-4.1.0 → codevira-4.2.0}/docs/internal/competitive-landscape.md +0 -0
  176. {codevira-4.1.0 → codevira-4.2.0}/docs/internal/memory-strategy-2026-07.md +0 -0
  177. {codevira-4.1.0 → codevira-4.2.0}/docs/linkedin-article-ai-agent-memory.md +0 -0
  178. {codevira-4.1.0 → codevira-4.2.0}/docs/linkedin-post-ai-agent-memory.md +0 -0
  179. {codevira-4.1.0 → codevira-4.2.0}/docs/medium-your-ai-coding-agent-has-amnesia.md +0 -0
  180. {codevira-4.1.0 → codevira-4.2.0}/docs/morning-handoff-2026-05-22.md +0 -0
  181. {codevira-4.1.0 → codevira-4.2.0}/docs/plans/opt-in-activation.md +0 -0
  182. {codevira-4.1.0 → codevira-4.2.0}/docs/plans/v2.1.2.md +0 -0
  183. {codevira-4.1.0 → codevira-4.2.0}/docs/plans/v2.1.3.md +0 -0
  184. {codevira-4.1.0 → codevira-4.2.0}/docs/plans/v2.2.0.md +0 -0
  185. {codevira-4.1.0 → codevira-4.2.0}/docs/plans/v3.0.0.md +0 -0
  186. {codevira-4.1.0 → codevira-4.2.0}/docs/qa-playbook.md +0 -0
  187. {codevira-4.1.0 → codevira-4.2.0}/docs/release-notes/v3.1.1.md +0 -0
  188. {codevira-4.1.0 → codevira-4.2.0}/docs/release-notes/v3.7.1.md +0 -0
  189. {codevira-4.1.0 → codevira-4.2.0}/docs/roadmap.md +0 -0
  190. {codevira-4.1.0 → codevira-4.2.0}/docs/surface-cuts-2026-05-22.md +0 -0
  191. {codevira-4.1.0 → codevira-4.2.0}/docs/troubleshooting/antigravity.md +0 -0
  192. {codevira-4.1.0 → codevira-4.2.0}/docs/troubleshooting/config-hygiene.md +0 -0
  193. {codevira-4.1.0 → codevira-4.2.0}/docs/v2-completion-plan.md +0 -0
  194. {codevira-4.1.0 → codevira-4.2.0}/docs/v2-execution-log.md +0 -0
  195. {codevira-4.1.0 → codevira-4.2.0}/docs/v2-master-plan.md +0 -0
  196. {codevira-4.1.0 → codevira-4.2.0}/docs/vs-other-memory-tools.md +0 -0
  197. {codevira-4.1.0 → codevira-4.2.0}/graph/_schema.yaml +0 -0
  198. {codevira-4.1.0 → codevira-4.2.0}/indexer/__init__.py +0 -0
  199. {codevira-4.1.0 → codevira-4.2.0}/indexer/fix_history.py +0 -0
  200. {codevira-4.1.0 → codevira-4.2.0}/indexer/global_db.py +0 -0
  201. {codevira-4.1.0 → codevira-4.2.0}/indexer/graph_generator.py +0 -0
  202. {codevira-4.1.0 → codevira-4.2.0}/indexer/imports.py +0 -0
  203. {codevira-4.1.0 → codevira-4.2.0}/indexer/outcome_classifier.py +0 -0
  204. {codevira-4.1.0 → codevira-4.2.0}/indexer/sqlite_graph.py +0 -0
  205. {codevira-4.1.0 → codevira-4.2.0}/indexer/treesitter_parser.py +0 -0
  206. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/_ghost_check.py +0 -0
  207. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/_mcp_registry.py +0 -0
  208. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/_prompts.py +0 -0
  209. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/_repair_init.py +0 -0
  210. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/auto_init.py +0 -0
  211. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_eval.py +0 -0
  212. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_export.py +0 -0
  213. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_graph.py +0 -0
  214. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_induce.py +0 -0
  215. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_projects.py +0 -0
  216. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_replay.py +0 -0
  217. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_search.py +0 -0
  218. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_sync.py +0 -0
  219. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_transfer.py +0 -0
  220. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_uninstall.py +0 -0
  221. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_working.py +0 -0
  222. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/crash_logger.py +0 -0
  223. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/__init__.py +0 -0
  224. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/config.example.yaml +0 -0
  225. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/hooks/post_tool_use.sh +0 -0
  226. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/hooks/pre_tool_use.sh +0 -0
  227. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/hooks/session_start.sh +0 -0
  228. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/hooks/stop.sh +0 -0
  229. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/hooks/user_prompt_submit.sh +0 -0
  230. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/coding-standards-generic.md +0 -0
  231. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/coding-standards-go.md +0 -0
  232. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/coding-standards-typescript.md +0 -0
  233. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/coding-standards.md +0 -0
  234. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/engineering-excellence.md +0 -0
  235. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/git-cicd-governance.md +0 -0
  236. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/git_commits.md +0 -0
  237. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/incremental-updates.md +0 -0
  238. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/master_rule.md +0 -0
  239. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/multi-language.md +0 -0
  240. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/persistence.md +0 -0
  241. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/resilience-observability.md +0 -0
  242. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/smoke-testing.md +0 -0
  243. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/testing-standards.md +0 -0
  244. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/decision_replay.py +0 -0
  245. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/detect.py +0 -0
  246. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/egress.py +0 -0
  247. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/__init__.py +0 -0
  248. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/audit.py +0 -0
  249. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/events.py +0 -0
  250. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/memory_fanout.py +0 -0
  251. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/__init__.py +0 -0
  252. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/_region_detect.py +0 -0
  253. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/anti_regression.py +0 -0
  254. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/blast_radius.py +0 -0
  255. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/decision_lock.py +0 -0
  256. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/post_edit_refresh.py +0 -0
  257. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/relevance_inject.py +0 -0
  258. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/session_log_enforcer.py +0 -0
  259. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/runner.py +0 -0
  260. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/signals.py +0 -0
  261. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/token_meter.py +0 -0
  262. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/wiring/__init__.py +0 -0
  263. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/wiring/_diff_envelope.py +0 -0
  264. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/wiring/antigravity_hooks.py +0 -0
  265. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/wiring/claude_code_hooks.py +0 -0
  266. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/wiring/mcp_dispatch.py +0 -0
  267. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/eval/__init__.py +0 -0
  268. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/eval/judge.py +0 -0
  269. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/eval/relevance.py +0 -0
  270. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/eval/report.py +0 -0
  271. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/gitignore.py +0 -0
  272. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/global_sync.py +0 -0
  273. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/graph/__init__.py +0 -0
  274. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/graph/template.html +0 -0
  275. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/http_server.py +0 -0
  276. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/ide_inject.py +0 -0
  277. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/memory_undo.py +0 -0
  278. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/migrate.py +0 -0
  279. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/opt_in.py +0 -0
  280. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/paths.py +0 -0
  281. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/project_binding.py +0 -0
  282. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/prompts.py +0 -0
  283. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/retrieval/__init__.py +0 -0
  284. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/retrieval/score.py +0 -0
  285. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/server.py +0 -0
  286. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/setup_wizard.py +0 -0
  287. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/__init__.py +0 -0
  288. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/activity_store.py +0 -0
  289. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/agents_md_generator.py +0 -0
  290. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/atomic.py +0 -0
  291. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/config.py +0 -0
  292. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/decisions_store.py +0 -0
  293. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/digest.py +0 -0
  294. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/fts5_index.py +0 -0
  295. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/id_repair.py +0 -0
  296. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/jsonl_store.py +0 -0
  297. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/manifest.py +0 -0
  298. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/origin.py +0 -0
  299. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/outcomes_writer.py +0 -0
  300. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/paths.py +0 -0
  301. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/sanitize.py +0 -0
  302. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/sessions_store.py +0 -0
  303. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/skills_store.py +0 -0
  304. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/synonyms.py +0 -0
  305. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/text.py +0 -0
  306. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/token_estimator.py +0 -0
  307. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/uid.py +0 -0
  308. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/working_store.py +0 -0
  309. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tenant.py +0 -0
  310. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/__init__.py +0 -0
  311. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/check_conflict.py +0 -0
  312. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/graph.py +0 -0
  313. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/learning.py +0 -0
  314. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/playbook.py +0 -0
  315. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/provenance.py +0 -0
  316. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/roadmap.py +0 -0
  317. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/search.py +0 -0
  318. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/skills.py +0 -0
  319. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/working.py +0 -0
  320. {codevira-4.1.0 → codevira-4.2.0}/mcp_server/update_check.py +0 -0
  321. {codevira-4.1.0 → codevira-4.2.0}/rules/coding-standards.md +0 -0
  322. {codevira-4.1.0 → codevira-4.2.0}/rules/engineering-excellence.md +0 -0
  323. {codevira-4.1.0 → codevira-4.2.0}/rules/git-cicd-governance.md +0 -0
  324. {codevira-4.1.0 → codevira-4.2.0}/rules/git_commits.md +0 -0
  325. {codevira-4.1.0 → codevira-4.2.0}/rules/incremental-updates.md +0 -0
  326. {codevira-4.1.0 → codevira-4.2.0}/rules/master_rule.md +0 -0
  327. {codevira-4.1.0 → codevira-4.2.0}/rules/persistence.md +0 -0
  328. {codevira-4.1.0 → codevira-4.2.0}/rules/resilience-observability.md +0 -0
  329. {codevira-4.1.0 → codevira-4.2.0}/rules/smoke-testing.md +0 -0
  330. {codevira-4.1.0 → codevira-4.2.0}/rules/testing-standards.md +0 -0
  331. {codevira-4.1.0 → codevira-4.2.0}/setup.cfg +0 -0
  332. {codevira-4.1.0 → codevira-4.2.0}/tests/conftest.py +0 -0
  333. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/__init__.py +0 -0
  334. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/code_only_python/README.md +0 -0
  335. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/code_only_python/pyproject.toml +0 -0
  336. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/code_only_python/src/widgets.py +0 -0
  337. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/code_only_python/tests/test_widgets.py +0 -0
  338. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/conftest.py +0 -0
  339. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/docs_only/CONTRIBUTING.md +0 -0
  340. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/docs_only/README.md +0 -0
  341. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/docs_only/docs/architecture.md +0 -0
  342. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/docs_only/package.json +0 -0
  343. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/monorepo/README.md +0 -0
  344. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/monorepo/package.json +0 -0
  345. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/monorepo/packages/foo/package.json +0 -0
  346. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/monorepo/packages/foo/src/index.ts +0 -0
  347. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/CLAUDE.md +0 -0
  348. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/README.md +0 -0
  349. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/config/settings.yaml +0 -0
  350. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/pyproject.toml +0 -0
  351. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/src/api.py +0 -0
  352. {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/src/client.ts +0 -0
  353. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/__init__.py +0 -0
  354. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_antigravity_hooks.py +0 -0
  355. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_audit.py +0 -0
  356. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_block_message_evidence.py +0 -0
  357. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_claude_native_memory.py +0 -0
  358. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_evidence_reaches_readers.py +0 -0
  359. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_integration.py +0 -0
  360. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_memory_fanout.py +0 -0
  361. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_region_detect.py +0 -0
  362. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_session_log_enforcer.py +0 -0
  363. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_signals_project_scoping.py +0 -0
  364. {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_week2_edge_cases.py +0 -0
  365. {codevira-4.1.0 → codevira-4.2.0}/tests/integration/__init__.py +0 -0
  366. {codevira-4.1.0 → codevira-4.2.0}/tests/integration/test_help_text_consistency.py +0 -0
  367. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/__init__.py +0 -0
  368. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_activity_store.py +0 -0
  369. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_anchor_derivation.py +0 -0
  370. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_concurrent_writes.py +0 -0
  371. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_digest.py +0 -0
  372. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_fts5_index.py +0 -0
  373. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_jsonl_store.py +0 -0
  374. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_manifest.py +0 -0
  375. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_origin.py +0 -0
  376. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_sanitize.py +0 -0
  377. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_session_identity.py +0 -0
  378. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_stranded_parameters.py +0 -0
  379. {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_uid.py +0 -0
  380. {codevira-4.1.0 → codevira-4.2.0}/tests/test_antigravity_hook_portable.py +0 -0
  381. {codevira-4.1.0 → codevira-4.2.0}/tests/test_binding_conflict_detection.py +0 -0
  382. {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_export.py +0 -0
  383. {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_graph.py +0 -0
  384. {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_replay.py +0 -0
  385. {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_search.py +0 -0
  386. {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_transfer.py +0 -0
  387. {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_untrack.py +0 -0
  388. {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_version.py +0 -0
  389. {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_working.py +0 -0
  390. {codevira-4.1.0 → codevira-4.2.0}/tests/test_committed_memory.py +0 -0
  391. {codevira-4.1.0 → codevira-4.2.0}/tests/test_cross_project_search.py +0 -0
  392. {codevira-4.1.0 → codevira-4.2.0}/tests/test_doctor.py +0 -0
  393. {codevira-4.1.0 → codevira-4.2.0}/tests/test_e1_summary_first.py +0 -0
  394. {codevira-4.1.0 → codevira-4.2.0}/tests/test_egress_boundary.py +0 -0
  395. {codevira-4.1.0 → codevira-4.2.0}/tests/test_eval_e3.py +0 -0
  396. {codevira-4.1.0 → codevira-4.2.0}/tests/test_g3_hermetic.py +0 -0
  397. {codevira-4.1.0 → codevira-4.2.0}/tests/test_ghost_check.py +0 -0
  398. {codevira-4.1.0 → codevira-4.2.0}/tests/test_gitignore.py +0 -0
  399. {codevira-4.1.0 → codevira-4.2.0}/tests/test_global_sync.py +0 -0
  400. {codevira-4.1.0 → codevira-4.2.0}/tests/test_graph_not_indexed_contract.py +0 -0
  401. {codevira-4.1.0 → codevira-4.2.0}/tests/test_http_server.py +0 -0
  402. {codevira-4.1.0 → codevira-4.2.0}/tests/test_managed_files_e4.py +0 -0
  403. {codevira-4.1.0 → codevira-4.2.0}/tests/test_memory_undo.py +0 -0
  404. {codevira-4.1.0 → codevira-4.2.0}/tests/test_opt_in.py +0 -0
  405. {codevira-4.1.0 → codevira-4.2.0}/tests/test_outcome_reconcile_p17.py +0 -0
  406. {codevira-4.1.0 → codevira-4.2.0}/tests/test_pin_generation.py +0 -0
  407. {codevira-4.1.0 → codevira-4.2.0}/tests/test_project_binding.py +0 -0
  408. {codevira-4.1.0 → codevira-4.2.0}/tests/test_project_inventory.py +0 -0
  409. {codevira-4.1.0 → codevira-4.2.0}/tests/test_prompts.py +0 -0
  410. {codevira-4.1.0 → codevira-4.2.0}/tests/test_prune_and_clean_deprecation.py +0 -0
  411. {codevira-4.1.0 → codevira-4.2.0}/tests/test_registration_heal.py +0 -0
  412. {codevira-4.1.0 → codevira-4.2.0}/tests/test_retrieval_score.py +0 -0
  413. {codevira-4.1.0 → codevira-4.2.0}/tests/test_server.py +0 -0
  414. {codevira-4.1.0 → codevira-4.2.0}/tests/test_skill_reinforcement.py +0 -0
  415. {codevira-4.1.0 → codevira-4.2.0}/tests/test_sqlite_graph.py +0 -0
  416. {codevira-4.1.0 → codevira-4.2.0}/tests/test_startup_migrations.py +0 -0
  417. {codevira-4.1.0 → codevira-4.2.0}/tests/test_synonym_widening_e5.py +0 -0
  418. {codevira-4.1.0 → codevira-4.2.0}/tests/test_tenant_isolation.py +0 -0
  419. {codevira-4.1.0 → codevira-4.2.0}/tests/test_tools_roadmap.py +0 -0
  420. {codevira-4.1.0 → codevira-4.2.0}/tests/test_tools_skills.py +0 -0
  421. {codevira-4.1.0 → codevira-4.2.0}/tests/test_tools_working.py +0 -0
  422. {codevira-4.1.0 → codevira-4.2.0}/tests/test_treesitter_parser.py +0 -0
  423. {codevira-4.1.0 → codevira-4.2.0}/tests/test_update_check.py +0 -0
  424. {codevira-4.1.0 → codevira-4.2.0}/tests/test_worktree_shared_memory.py +0 -0
@@ -10,6 +10,228 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
10
10
  ## [Unreleased]
11
11
 
12
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
+
13
235
  ## [4.1.0] — 2026-08-16
14
236
 
15
237
  **If you are on 4.0.1, upgrade.** That release will silently replace a decision
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: codevira
3
- Version: 4.1.0
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.1.0.</strong> Upgrade if you are on 4.0.1: that release could silently replace a decision with its own <em>negation</em> — <code>"never do X"</code> and <code>"do X"</code> score 0.75&ndash;0.83 against each other, over the auto-supersede bar. 4.1.0 makes a one-sided negation a conflict by construction, stops a workspace root inside a project binding to the wrong project, and ranks the session brief, search and prompt injection by recency &times; outcome-confidence instead of write order. Upgrading is automatic on the first server start. <a href="https://github.com/sachinshelke/codevira/blob/main/CHANGELOG.md">Full release notes &rarr;</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.1.0.</strong> Upgrade if you are on 4.0.1: that release could silently replace a decision with its own <em>negation</em> — <code>"never do X"</code> and <code>"do X"</code> score 0.75&ndash;0.83 against each other, over the auto-supersede bar. 4.1.0 makes a one-sided negation a conflict by construction, stops a workspace root inside a project binding to the wrong project, and ranks the session brief, search and prompt injection by recency &times; outcome-confidence instead of write order. Upgrading is automatic on the first server start. <a href="https://github.com/sachinshelke/codevira/blob/main/CHANGELOG.md">Full release notes &rarr;</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.1.0
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.1.0.</strong> Upgrade if you are on 4.0.1: that release could silently replace a decision with its own <em>negation</em> — <code>"never do X"</code> and <code>"do X"</code> score 0.75&ndash;0.83 against each other, over the auto-supersede bar. 4.1.0 makes a one-sided negation a conflict by construction, stops a workspace root inside a project binding to the wrong project, and ranks the session brief, search and prompt injection by recency &times; outcome-confidence instead of write order. Upgrading is automatic on the first server start. <a href="https://github.com/sachinshelke/codevira/blob/main/CHANGELOG.md">Full release notes &rarr;</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:
@@ -98,6 +98,7 @@ mcp_server/cli_induce.py
98
98
  mcp_server/cli_init.py
99
99
  mcp_server/cli_memory.py
100
100
  mcp_server/cli_projects.py
101
+ mcp_server/cli_reconcile.py
101
102
  mcp_server/cli_repair.py
102
103
  mcp_server/cli_replay.py
103
104
  mcp_server/cli_search.py
@@ -230,15 +231,18 @@ tests/conftest.py
230
231
  tests/test__prompts.py
231
232
  tests/test_antigravity_hook_portable.py
232
233
  tests/test_auto_init.py
234
+ tests/test_background_degrades.py
233
235
  tests/test_binding_conflict_detection.py
234
236
  tests/test_binding_e2e.py
235
237
  tests/test_call_edge_fk_safety.py
236
238
  tests/test_check_conflict.py
239
+ tests/test_classifier_is_shared.py
237
240
  tests/test_claude_binding_conflict.py
238
241
  tests/test_cli_export.py
239
242
  tests/test_cli_graph.py
240
243
  tests/test_cli_induce.py
241
244
  tests/test_cli_projects.py
245
+ tests/test_cli_reconcile.py
242
246
  tests/test_cli_replay.py
243
247
  tests/test_cli_search.py
244
248
  tests/test_cli_transfer.py
@@ -316,6 +320,7 @@ tests/test_subprocess_imports_working_tree.py
316
320
  tests/test_supersede_on_write.py
317
321
  tests/test_synonym_widening_e5.py
318
322
  tests/test_tenant_isolation.py
323
+ tests/test_toolchain_pins.py
319
324
  tests/test_tools_graph.py
320
325
  tests/test_tools_learning.py
321
326
  tests/test_tools_playbook.py
@@ -385,6 +390,7 @@ tests/engine/test_token_budget.py
385
390
  tests/engine/test_token_meter.py
386
391
  tests/engine/test_week2_edge_cases.py
387
392
  tests/integration/__init__.py
393
+ tests/integration/test_docs_subcommands_exist.py
388
394
  tests/integration/test_help_text_consistency.py
389
395
  tests/integration/test_mcp_roundtrip.py
390
396
  tests/integration/test_sandboxed_parent.py
@@ -19,7 +19,7 @@ pytest>=7.0
19
19
  pytest-asyncio>=0.21
20
20
  pytest-timeout>=2.1
21
21
  pytest-randomly>=3.12
22
- ruff<0.16,>=0.6.0
22
+ ruff==0.15.14
23
23
  mypy>=1.10
24
24
  types-PyYAML
25
25
  pre-commit>=3.5
@@ -85,12 +85,14 @@ When someone says yes, send them this:
85
85
  > 3. Try at least 3 of these scenarios sometime during the 2 days:
86
86
  > - Ask the AI: "what did I decide about [some-thing] last week?"
87
87
  > - Switch between Claude Code → Cursor → ask the same question (the wedge moment)
88
- > - Run `codevira insights` after day 2
88
+ > - Run `codevira status --global` after day 2
89
89
  > - Run `codevira replay` after day 2
90
90
  >
91
91
  > 4. After 2 days, send me back ANY of:
92
92
  > - 1-paragraph answer to "did codevira save you time? would you keep it?"
93
- > - Crash logs if you hit any (`codevira report`)
93
+ > - Crash logs if you hit any — `codevira doctor` reports the count and
94
+ > most recent type; the raw log is at
95
+ > `${CODEVIRA_HOME:-$HOME/.codevira}/logs/crashes.log`
94
96
  > - Things that bugged you / wording you'd change
95
97
  > - Things you wanted that don't exist
96
98
  >
@@ -162,7 +162,7 @@ rm -rf ~/.codevira-local-pypi
162
162
  - **Adding `codevira` to an IDE/app that requires HTTPS.** Most MCP clients
163
163
  (Claude Code, Cursor, Windsurf, Antigravity) use **stdio transport by
164
164
  default**, not HTTPS — stdio needs no URL at all, just the `codevira`
165
- binary path. `codevira register` sets this up for you. HTTPS transport
165
+ binary path. `codevira setup` sets this up for you. HTTPS transport
166
166
  is only needed for the preview `codevira serve --https` multi-project
167
167
  server mode (see v1.7 HTTPS-preview docs). If your client is asking for
168
168
  an HTTPS URL, that's the serve path — different from this local-PyPI
@@ -11,18 +11,29 @@ This process replaces trust with evidence.
11
11
 
12
12
  ---
13
13
 
14
- ## The 5 gates
14
+ ## The gates
15
15
 
16
16
  | Gate | What it checks | Pass criterion | Enforced by |
17
17
  |---|---|---|---|
18
18
  | **G1** | Unit tests pass | `make test-unit` exit 0 | `make release-gauntlet` |
19
+ | **G1.5** | MCP round-trip | `tests/integration/test_mcp_roundtrip.py` | `make release-gauntlet` |
20
+ | **G1.6** | Help text vs constants | `tests/integration/test_help_text_consistency.py` | `make release-gauntlet` |
21
+ | **G1.7** | Sandboxed-parent MCP | `tests/integration/test_sandboxed_parent.py` | `make release-gauntlet` |
19
22
  | **G2** | First-contact e2e (4 fixtures) | `make test-e2e` exit 0 | `make release-gauntlet` + GitHub Actions |
20
- | **G3** | Real-IDE smoke | `scripts/check_real_ide_smoke.sh` exit 0 | (stub — must be filled for v2.1 launch) |
21
- | **G4** | Crash-log clean | `codevira report \| grep -c CRASH` is 0 | `make release-gauntlet` |
23
+ | **G2.5** | Cold-install wheel smoke | `scripts/cold_install_smoke.sh` exit 0 | `make release-gauntlet` |
24
+ | **G3** | Real-IDE smoke | `scripts/check_real_ide_smoke.sh` exit 0 | `make release-gauntlet` |
25
+ | **G4** | Crash-log clean | `grep -c '^CRASH:' ~/.codevira/logs/crashes.log` is 0 | `make release-gauntlet` |
22
26
  | **G5** | Human verification | Maintainer set `G5_human_confirmed: true` | `.claude/hooks/pre-release-block.sh` |
23
27
 
24
- All 5 must be true in `.release-evidence/<version>.json` for the
25
- PreToolUse hook to allow `twine upload`.
28
+ Every gate in `.release-evidence/<version>.json` must be `true` for the
29
+ PreToolUse hook to allow `twine upload` — including gates added after
30
+ this table was written, which the hook enforces without being told about
31
+ them. G1.5/G1.6/G1.7/G2.5 were added in 2.1.2 and went unenforced for
32
+ seven releases because the hook named its gates by hand.
33
+
34
+ The one tolerated exception is **G4 = `"warn"`**: a crash log records
35
+ history, and the release may be what fixes it. `"skipped"` is never a
36
+ pass — it means the gate could not run.
26
37
 
27
38
  ---
28
39
 
@@ -100,9 +111,17 @@ Fix any failure before proceeding.
100
111
  make release-gauntlet
101
112
  ```
102
113
 
103
- This runs G1 (unit), G2 (e2e), G3 (stub → "skipped"), G4 (crash log)
104
- and writes `.release-evidence/X.Y.Z.json`. If any gate fails, the
105
- gauntlet exits non-zero and no evidence file is finalized.
114
+ This runs G1 (unit), G1.5-G1.7, G2 (e2e), G2.5 (cold-install), G3
115
+ (real-IDE smoke), G4 (crash log) and writes
116
+ `.release-evidence/X.Y.Z.json`. If any gate fails, the gauntlet exits
117
+ non-zero and no evidence file is finalized.
118
+
119
+ A gate may also record `"skipped"`, meaning it could not run. **That is
120
+ not a pass and the publish hook refuses it.** G3 read `"skipped"` in
121
+ every evidence file from 2.0.0 through 3.0.0, and all six of those
122
+ releases were allowed through; the only gate permitted a non-`true`
123
+ verdict now is G4, which may be `"warn"` because a crash log records
124
+ history and the release may be what fixes it.
106
125
 
107
126
  Inspect the result:
108
127
 
@@ -119,9 +138,13 @@ Expected structure:
119
138
  "version": "X.Y.Z",
120
139
  "timestamp": "2026-05-16T20:00:00Z",
121
140
  "G1_unit_tests": true,
141
+ "G1_5_mcp_roundtrip": true,
142
+ "G1_6_help_text_consistency": true,
143
+ "G1_7_sandboxed_parent": true,
122
144
  "G2_first_contact": true,
123
- "G3_real_ide_smoke": "skipped",
124
- "G4_crash_log_clean": "skipped",
145
+ "G2_5_cold_install_smoke": true,
146
+ "G3_real_ide_smoke": true,
147
+ "G4_crash_log_clean": true,
125
148
  "G5_human_confirmed": false,
126
149
  "note": "G5 must be set true by hand after maintainer verification on a real machine."
127
150
  }
@@ -26,6 +26,7 @@ Called from :meth:`indexer.global_db.GlobalDB.__init__` once per connect. Kept
26
26
  in its own module so adding it doesn't trip the project's blast-radius veto on
27
27
  the hot ``global_db.py`` file.
28
28
  """
29
+
29
30
  from __future__ import annotations
30
31
 
31
32
  import logging
@@ -64,6 +65,7 @@ def dedupe_projects_by_git_remote(conn: sqlite3.Connection) -> int:
64
65
  storage_prefix: str | None = None
65
66
  try:
66
67
  from mcp_server.paths import get_global_home
68
+
67
69
  # storage_prefix is the parent of project data dirs:
68
70
  # ~/.codevira/projects/ — any registered path starting with this is a
69
71
  # storage path; anything else is canonical.
@@ -34,6 +34,7 @@ don't waste a startup penalty on platforms that don't need it.
34
34
  Idempotent: setdefault means an explicit user override (e.g. in CI
35
35
  or for debugging) is preserved.
36
36
  """
37
+
37
38
  from __future__ import annotations
38
39
 
39
40
  import os
@@ -54,6 +55,7 @@ def init_fork_safety() -> None:
54
55
  # leave whatever's already in place.
55
56
  try:
56
57
  import multiprocessing
58
+
57
59
  current = multiprocessing.get_start_method(allow_none=True)
58
60
  if current != "spawn":
59
61
  multiprocessing.set_start_method("spawn", force=True)
@@ -20,6 +20,7 @@ cap to be raised from 200ms to 500ms based on heavily-contended-system
20
20
  feedback; we ship 200ms cap here matching the historical default.
21
21
  v2.0.x can raise it via env var if real-world signal demands.
22
22
  """
23
+
23
24
  from __future__ import annotations
24
25
 
25
26
  import logging
@@ -80,5 +81,6 @@ def enable_wal_with_retry(
80
81
  logger.warning(
81
82
  "Could not enable WAL on %s after %d retries; "
82
83
  "continuing in default journal mode",
83
- db_path, attempts,
84
+ db_path,
85
+ attempts,
84
86
  )