codevira 3.3.0__tar.gz → 3.4.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 (285) hide show
  1. {codevira-3.3.0 → codevira-3.4.0}/CHANGELOG.md +120 -0
  2. {codevira-3.3.0/codevira.egg-info → codevira-3.4.0}/PKG-INFO +43 -23
  3. {codevira-3.3.0 → codevira-3.4.0}/README.md +42 -22
  4. {codevira-3.3.0 → codevira-3.4.0/codevira.egg-info}/PKG-INFO +43 -23
  5. {codevira-3.3.0 → codevira-3.4.0}/codevira.egg-info/SOURCES.txt +4 -0
  6. {codevira-3.3.0 → codevira-3.4.0}/docs/architecture.md +6 -1
  7. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/__init__.py +1 -1
  8. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/cli.py +25 -0
  9. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/cli_projects.py +183 -9
  10. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/doctor.py +53 -0
  11. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/policies/anti_regression.py +36 -16
  12. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/policies/blast_radius.py +5 -1
  13. codevira-3.4.0/mcp_server/engine/wiring/_diff_envelope.py +149 -0
  14. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/wiring/claude_code_hooks.py +27 -65
  15. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/wiring/mcp_dispatch.py +9 -0
  16. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/global_sync.py +17 -1
  17. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/http_server.py +7 -0
  18. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/paths.py +50 -0
  19. codevira-3.4.0/mcp_server/project_binding.py +250 -0
  20. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/server.py +101 -7
  21. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/tools/preferences.py +6 -1
  22. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/tools/reflections.py +7 -1
  23. {codevira-3.3.0 → codevira-3.4.0}/pyproject.toml +1 -1
  24. codevira-3.4.0/tests/test_binding_e2e.py +211 -0
  25. codevira-3.4.0/tests/test_cli_projects.py +454 -0
  26. {codevira-3.3.0 → codevira-3.4.0}/tests/test_doctor.py +39 -0
  27. {codevira-3.3.0 → codevira-3.4.0}/tests/test_global_sync.py +3 -0
  28. {codevira-3.3.0 → codevira-3.4.0}/tests/test_http_server.py +214 -138
  29. codevira-3.4.0/tests/test_project_binding.py +241 -0
  30. {codevira-3.3.0 → codevira-3.4.0}/tests/test_reflections.py +47 -6
  31. {codevira-3.3.0 → codevira-3.4.0}/tests/test_server.py +299 -189
  32. {codevira-3.3.0 → codevira-3.4.0}/tests/test_tools_learning.py +147 -17
  33. codevira-3.3.0/tests/test_cli_projects.py +0 -224
  34. {codevira-3.3.0 → codevira-3.4.0}/LICENSE +0 -0
  35. {codevira-3.3.0 → codevira-3.4.0}/MANIFEST.in +0 -0
  36. {codevira-3.3.0 → codevira-3.4.0}/agents/builder.md +0 -0
  37. {codevira-3.3.0 → codevira-3.4.0}/agents/developer.md +0 -0
  38. {codevira-3.3.0 → codevira-3.4.0}/agents/documenter.md +0 -0
  39. {codevira-3.3.0 → codevira-3.4.0}/agents/orchestrator.md +0 -0
  40. {codevira-3.3.0 → codevira-3.4.0}/agents/planner.md +0 -0
  41. {codevira-3.3.0 → codevira-3.4.0}/agents/qa/01-code-review.md +0 -0
  42. {codevira-3.3.0 → codevira-3.4.0}/agents/qa/02-adversarial-fix-review.md +0 -0
  43. {codevira-3.3.0 → codevira-3.4.0}/agents/qa/03-cross-module-impact.md +0 -0
  44. {codevira-3.3.0 → codevira-3.4.0}/agents/qa/06-doc-drift.md +0 -0
  45. {codevira-3.3.0 → codevira-3.4.0}/agents/qa/07-security-audit.md +0 -0
  46. {codevira-3.3.0 → codevira-3.4.0}/agents/qa/12-llm-redteam.md +0 -0
  47. {codevira-3.3.0 → codevira-3.4.0}/agents/qa/13-multi-ide-schema.md +0 -0
  48. {codevira-3.3.0 → codevira-3.4.0}/agents/qa/22-competitor-benchmark.md +0 -0
  49. {codevira-3.3.0 → codevira-3.4.0}/agents/qa/README.md +0 -0
  50. {codevira-3.3.0 → codevira-3.4.0}/agents/qa/tier2-scripts.md +0 -0
  51. {codevira-3.3.0 → codevira-3.4.0}/agents/qa/tier3-manual.md +0 -0
  52. {codevira-3.3.0 → codevira-3.4.0}/agents/reviewer.md +0 -0
  53. {codevira-3.3.0 → codevira-3.4.0}/agents/tester.md +0 -0
  54. {codevira-3.3.0 → codevira-3.4.0}/codevira.egg-info/dependency_links.txt +0 -0
  55. {codevira-3.3.0 → codevira-3.4.0}/codevira.egg-info/entry_points.txt +0 -0
  56. {codevira-3.3.0 → codevira-3.4.0}/codevira.egg-info/requires.txt +0 -0
  57. {codevira-3.3.0 → codevira-3.4.0}/codevira.egg-info/top_level.txt +0 -0
  58. {codevira-3.3.0 → codevira-3.4.0}/config.example.yaml +0 -0
  59. {codevira-3.3.0 → codevira-3.4.0}/docs/alpha-tester-invites.md +0 -0
  60. {codevira-3.3.0 → codevira-3.4.0}/docs/audit-2026-05-22.md +0 -0
  61. {codevira-3.3.0 → codevira-3.4.0}/docs/demo/README.md +0 -0
  62. {codevira-3.3.0 → codevira-3.4.0}/docs/foolproof-product-charter.md +0 -0
  63. {codevira-3.3.0 → codevira-3.4.0}/docs/heroes/00-engine.md +0 -0
  64. {codevira-3.3.0 → codevira-3.4.0}/docs/heroes/01-decision-lock.md +0 -0
  65. {codevira-3.3.0 → codevira-3.4.0}/docs/heroes/02-anti-regression.md +0 -0
  66. {codevira-3.3.0 → codevira-3.4.0}/docs/heroes/03-scope-contract.md +0 -0
  67. {codevira-3.3.0 → codevira-3.4.0}/docs/heroes/04-blast-radius.md +0 -0
  68. {codevira-3.3.0 → codevira-3.4.0}/docs/heroes/05-cross-session.md +0 -0
  69. {codevira-3.3.0 → codevira-3.4.0}/docs/heroes/06-token-budget.md +0 -0
  70. {codevira-3.3.0 → codevira-3.4.0}/docs/heroes/07-live-style.md +0 -0
  71. {codevira-3.3.0 → codevira-3.4.0}/docs/heroes/08-decision-replay.md +0 -0
  72. {codevira-3.3.0 → codevira-3.4.0}/docs/heroes/09-intent-inference.md +0 -0
  73. {codevira-3.3.0 → codevira-3.4.0}/docs/heroes/10-ai-promotion.md +0 -0
  74. {codevira-3.3.0 → codevira-3.4.0}/docs/heroes/README.md +0 -0
  75. {codevira-3.3.0 → codevira-3.4.0}/docs/heroes/pillar-1-setup.md +0 -0
  76. {codevira-3.3.0 → codevira-3.4.0}/docs/hn-launch-day.md +0 -0
  77. {codevira-3.3.0 → codevira-3.4.0}/docs/how-i-built-persistent-memory-for-ai-agents.md +0 -0
  78. {codevira-3.3.0 → codevira-3.4.0}/docs/internal/competitive-landscape.md +0 -0
  79. {codevira-3.3.0 → codevira-3.4.0}/docs/linkedin-article-ai-agent-memory.md +0 -0
  80. {codevira-3.3.0 → codevira-3.4.0}/docs/linkedin-post-ai-agent-memory.md +0 -0
  81. {codevira-3.3.0 → codevira-3.4.0}/docs/local-pypi-https.md +0 -0
  82. {codevira-3.3.0 → codevira-3.4.0}/docs/medium-your-ai-coding-agent-has-amnesia.md +0 -0
  83. {codevira-3.3.0 → codevira-3.4.0}/docs/morning-handoff-2026-05-22.md +0 -0
  84. {codevira-3.3.0 → codevira-3.4.0}/docs/plans/v2.1.2.md +0 -0
  85. {codevira-3.3.0 → codevira-3.4.0}/docs/plans/v2.1.3.md +0 -0
  86. {codevira-3.3.0 → codevira-3.4.0}/docs/plans/v2.2.0.md +0 -0
  87. {codevira-3.3.0 → codevira-3.4.0}/docs/plans/v3.0.0.md +0 -0
  88. {codevira-3.3.0 → codevira-3.4.0}/docs/qa-playbook.md +0 -0
  89. {codevira-3.3.0 → codevira-3.4.0}/docs/release-notes/v3.1.1.md +0 -0
  90. {codevira-3.3.0 → codevira-3.4.0}/docs/release-process.md +0 -0
  91. {codevira-3.3.0 → codevira-3.4.0}/docs/roadmap.md +0 -0
  92. {codevira-3.3.0 → codevira-3.4.0}/docs/surface-cuts-2026-05-22.md +0 -0
  93. {codevira-3.3.0 → codevira-3.4.0}/docs/troubleshooting/antigravity.md +0 -0
  94. {codevira-3.3.0 → codevira-3.4.0}/docs/v2-completion-plan.md +0 -0
  95. {codevira-3.3.0 → codevira-3.4.0}/docs/v2-execution-log.md +0 -0
  96. {codevira-3.3.0 → codevira-3.4.0}/docs/v2-master-plan.md +0 -0
  97. {codevira-3.3.0 → codevira-3.4.0}/docs/vs-other-memory-tools.md +0 -0
  98. {codevira-3.3.0 → codevira-3.4.0}/graph/_schema.yaml +0 -0
  99. {codevira-3.3.0 → codevira-3.4.0}/indexer/__init__.py +0 -0
  100. {codevira-3.3.0 → codevira-3.4.0}/indexer/_dedupe_migration.py +0 -0
  101. {codevira-3.3.0 → codevira-3.4.0}/indexer/_fork_safety.py +0 -0
  102. {codevira-3.3.0 → codevira-3.4.0}/indexer/_sqlite_util.py +0 -0
  103. {codevira-3.3.0 → codevira-3.4.0}/indexer/chunker.py +0 -0
  104. {codevira-3.3.0 → codevira-3.4.0}/indexer/fix_history.py +0 -0
  105. {codevira-3.3.0 → codevira-3.4.0}/indexer/global_db.py +0 -0
  106. {codevira-3.3.0 → codevira-3.4.0}/indexer/graph_generator.py +0 -0
  107. {codevira-3.3.0 → codevira-3.4.0}/indexer/index_codebase.py +0 -0
  108. {codevira-3.3.0 → codevira-3.4.0}/indexer/outcome_tracker.py +0 -0
  109. {codevira-3.3.0 → codevira-3.4.0}/indexer/sqlite_graph.py +0 -0
  110. {codevira-3.3.0 → codevira-3.4.0}/indexer/treesitter_parser.py +0 -0
  111. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/__main__.py +0 -0
  112. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/_ghost_check.py +0 -0
  113. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/_mcp_registry.py +0 -0
  114. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/_project_inventory.py +0 -0
  115. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/_prompts.py +0 -0
  116. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/_repair_init.py +0 -0
  117. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/_safe_crash.py +0 -0
  118. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/auto_init.py +0 -0
  119. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/cli_consensus.py +0 -0
  120. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/cli_export.py +0 -0
  121. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/cli_graph.py +0 -0
  122. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/cli_hooks_admin.py +0 -0
  123. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/cli_induce.py +0 -0
  124. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/cli_init.py +0 -0
  125. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/cli_reflect.py +0 -0
  126. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/cli_replay.py +0 -0
  127. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/cli_sync.py +0 -0
  128. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/cli_transfer.py +0 -0
  129. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/cli_uninstall.py +0 -0
  130. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/cli_working.py +0 -0
  131. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/crash_logger.py +0 -0
  132. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/__init__.py +0 -0
  133. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/affordances.yaml +0 -0
  134. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/agents/builder.md +0 -0
  135. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/agents/developer.md +0 -0
  136. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/agents/documenter.md +0 -0
  137. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/agents/orchestrator.md +0 -0
  138. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/agents/planner.md +0 -0
  139. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/agents/reviewer.md +0 -0
  140. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/agents/tester.md +0 -0
  141. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/config.example.yaml +0 -0
  142. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/hooks/post_tool_use.sh +0 -0
  143. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/hooks/pre_tool_use.sh +0 -0
  144. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/hooks/session_start.sh +0 -0
  145. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/hooks/stop.sh +0 -0
  146. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/hooks/user_prompt_submit.sh +0 -0
  147. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/prompts/reflection_v1.md +0 -0
  148. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/rules/coding-standards-generic.md +0 -0
  149. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/rules/coding-standards-go.md +0 -0
  150. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/rules/coding-standards-typescript.md +0 -0
  151. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/rules/coding-standards.md +0 -0
  152. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/rules/engineering-excellence.md +0 -0
  153. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/rules/git-cicd-governance.md +0 -0
  154. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/rules/git_commits.md +0 -0
  155. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/rules/incremental-updates.md +0 -0
  156. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/rules/master_rule.md +0 -0
  157. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/rules/multi-language.md +0 -0
  158. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/rules/persistence.md +0 -0
  159. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/rules/resilience-observability.md +0 -0
  160. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/rules/smoke-testing.md +0 -0
  161. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/data/rules/testing-standards.md +0 -0
  162. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/decision_replay.py +0 -0
  163. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/detect.py +0 -0
  164. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/__init__.py +0 -0
  165. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/demo_policy.py +0 -0
  166. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/events.py +0 -0
  167. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/memory_fanout.py +0 -0
  168. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/policies/__init__.py +0 -0
  169. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/policies/_signature_detect.py +0 -0
  170. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/policies/decision_lock.py +0 -0
  171. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/policies/post_edit_refresh.py +0 -0
  172. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/policies/prompt_capture.py +0 -0
  173. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/policies/relevance_inject.py +0 -0
  174. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/policies/session_log_enforcer.py +0 -0
  175. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/policies/token_budget.py +0 -0
  176. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/policy.py +0 -0
  177. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/runner.py +0 -0
  178. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/signals.py +0 -0
  179. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/token_meter.py +0 -0
  180. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/engine/wiring/__init__.py +0 -0
  181. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/gitignore.py +0 -0
  182. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/graph/__init__.py +0 -0
  183. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/graph/template.html +0 -0
  184. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/ide_inject.py +0 -0
  185. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/launchd.py +0 -0
  186. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/log_retention.py +0 -0
  187. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/migrate.py +0 -0
  188. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/prompts.py +0 -0
  189. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/roadmap_drift.py +0 -0
  190. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/setup_wizard.py +0 -0
  191. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/__init__.py +0 -0
  192. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/activity_store.py +0 -0
  193. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/agents_md_generator.py +0 -0
  194. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/atomic.py +0 -0
  195. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/config.py +0 -0
  196. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/consensus_store.py +0 -0
  197. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/decisions_store.py +0 -0
  198. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/digest.py +0 -0
  199. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/fts5_index.py +0 -0
  200. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/jsonl_store.py +0 -0
  201. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/manifest.py +0 -0
  202. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/origin.py +0 -0
  203. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/outcomes_writer.py +0 -0
  204. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/paths.py +0 -0
  205. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/reflections_store.py +0 -0
  206. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/sanitize.py +0 -0
  207. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/sessions_store.py +0 -0
  208. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/skills_store.py +0 -0
  209. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/token_estimator.py +0 -0
  210. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/storage/working_store.py +0 -0
  211. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/tools/__init__.py +0 -0
  212. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/tools/changesets.py +0 -0
  213. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/tools/check_conflict.py +0 -0
  214. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/tools/code_reader.py +0 -0
  215. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/tools/consensus.py +0 -0
  216. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/tools/graph.py +0 -0
  217. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/tools/learning.py +0 -0
  218. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/tools/playbook.py +0 -0
  219. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/tools/roadmap.py +0 -0
  220. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/tools/search.py +0 -0
  221. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/tools/skills.py +0 -0
  222. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/tools/spatial.py +0 -0
  223. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/tools/working.py +0 -0
  224. {codevira-3.3.0 → codevira-3.4.0}/mcp_server/update_check.py +0 -0
  225. {codevira-3.3.0 → codevira-3.4.0}/rules/coding-standards.md +0 -0
  226. {codevira-3.3.0 → codevira-3.4.0}/rules/engineering-excellence.md +0 -0
  227. {codevira-3.3.0 → codevira-3.4.0}/rules/git-cicd-governance.md +0 -0
  228. {codevira-3.3.0 → codevira-3.4.0}/rules/git_commits.md +0 -0
  229. {codevira-3.3.0 → codevira-3.4.0}/rules/incremental-updates.md +0 -0
  230. {codevira-3.3.0 → codevira-3.4.0}/rules/master_rule.md +0 -0
  231. {codevira-3.3.0 → codevira-3.4.0}/rules/persistence.md +0 -0
  232. {codevira-3.3.0 → codevira-3.4.0}/rules/resilience-observability.md +0 -0
  233. {codevira-3.3.0 → codevira-3.4.0}/rules/smoke-testing.md +0 -0
  234. {codevira-3.3.0 → codevira-3.4.0}/rules/testing-standards.md +0 -0
  235. {codevira-3.3.0 → codevira-3.4.0}/setup.cfg +0 -0
  236. {codevira-3.3.0 → codevira-3.4.0}/tests/test__prompts.py +0 -0
  237. {codevira-3.3.0 → codevira-3.4.0}/tests/test_auto_init.py +0 -0
  238. {codevira-3.3.0 → codevira-3.4.0}/tests/test_call_edge_fk_safety.py +0 -0
  239. {codevira-3.3.0 → codevira-3.4.0}/tests/test_check_conflict.py +0 -0
  240. {codevira-3.3.0 → codevira-3.4.0}/tests/test_chunker.py +0 -0
  241. {codevira-3.3.0 → codevira-3.4.0}/tests/test_cli_consensus.py +0 -0
  242. {codevira-3.3.0 → codevira-3.4.0}/tests/test_cli_export.py +0 -0
  243. {codevira-3.3.0 → codevira-3.4.0}/tests/test_cli_graph.py +0 -0
  244. {codevira-3.3.0 → codevira-3.4.0}/tests/test_cli_induce.py +0 -0
  245. {codevira-3.3.0 → codevira-3.4.0}/tests/test_cli_replay.py +0 -0
  246. {codevira-3.3.0 → codevira-3.4.0}/tests/test_cli_transfer.py +0 -0
  247. {codevira-3.3.0 → codevira-3.4.0}/tests/test_cli_uninstall.py +0 -0
  248. {codevira-3.3.0 → codevira-3.4.0}/tests/test_cli_version.py +0 -0
  249. {codevira-3.3.0 → codevira-3.4.0}/tests/test_cli_working.py +0 -0
  250. {codevira-3.3.0 → codevira-3.4.0}/tests/test_consensus_handshake.py +0 -0
  251. {codevira-3.3.0 → codevira-3.4.0}/tests/test_crash_logger.py +0 -0
  252. {codevira-3.3.0 → codevira-3.4.0}/tests/test_dedupe_migration.py +0 -0
  253. {codevira-3.3.0 → codevira-3.4.0}/tests/test_detect.py +0 -0
  254. {codevira-3.3.0 → codevira-3.4.0}/tests/test_fk_safety_extended.py +0 -0
  255. {codevira-3.3.0 → codevira-3.4.0}/tests/test_fork_safety.py +0 -0
  256. {codevira-3.3.0 → codevira-3.4.0}/tests/test_ghost_check.py +0 -0
  257. {codevira-3.3.0 → codevira-3.4.0}/tests/test_gitignore.py +0 -0
  258. {codevira-3.3.0 → codevira-3.4.0}/tests/test_global_db.py +0 -0
  259. {codevira-3.3.0 → codevira-3.4.0}/tests/test_graph_generator.py +0 -0
  260. {codevira-3.3.0 → codevira-3.4.0}/tests/test_hook_resilience.py +0 -0
  261. {codevira-3.3.0 → codevira-3.4.0}/tests/test_ide_inject.py +0 -0
  262. {codevira-3.3.0 → codevira-3.4.0}/tests/test_index_codebase.py +0 -0
  263. {codevira-3.3.0 → codevira-3.4.0}/tests/test_launchd.py +0 -0
  264. {codevira-3.3.0 → codevira-3.4.0}/tests/test_log_retention.py +0 -0
  265. {codevira-3.3.0 → codevira-3.4.0}/tests/test_migrate.py +0 -0
  266. {codevira-3.3.0 → codevira-3.4.0}/tests/test_outcome_tracker.py +0 -0
  267. {codevira-3.3.0 → codevira-3.4.0}/tests/test_paths.py +0 -0
  268. {codevira-3.3.0 → codevira-3.4.0}/tests/test_preferences_tools.py +0 -0
  269. {codevira-3.3.0 → codevira-3.4.0}/tests/test_prompts.py +0 -0
  270. {codevira-3.3.0 → codevira-3.4.0}/tests/test_record_decision.py +0 -0
  271. {codevira-3.3.0 → codevira-3.4.0}/tests/test_repair_init.py +0 -0
  272. {codevira-3.3.0 → codevira-3.4.0}/tests/test_roadmap_drift.py +0 -0
  273. {codevira-3.3.0 → codevira-3.4.0}/tests/test_setup_wizard.py +0 -0
  274. {codevira-3.3.0 → codevira-3.4.0}/tests/test_sqlite_graph.py +0 -0
  275. {codevira-3.3.0 → codevira-3.4.0}/tests/test_sqlite_util.py +0 -0
  276. {codevira-3.3.0 → codevira-3.4.0}/tests/test_tools_code_reader.py +0 -0
  277. {codevira-3.3.0 → codevira-3.4.0}/tests/test_tools_graph.py +0 -0
  278. {codevira-3.3.0 → codevira-3.4.0}/tests/test_tools_playbook.py +0 -0
  279. {codevira-3.3.0 → codevira-3.4.0}/tests/test_tools_roadmap.py +0 -0
  280. {codevira-3.3.0 → codevira-3.4.0}/tests/test_tools_skills.py +0 -0
  281. {codevira-3.3.0 → codevira-3.4.0}/tests/test_tools_spatial.py +0 -0
  282. {codevira-3.3.0 → codevira-3.4.0}/tests/test_tools_working.py +0 -0
  283. {codevira-3.3.0 → codevira-3.4.0}/tests/test_treesitter_parser.py +0 -0
  284. {codevira-3.3.0 → codevira-3.4.0}/tests/test_update_check.py +0 -0
  285. {codevira-3.3.0 → codevira-3.4.0}/tests/test_watcher_circuit.py +0 -0
@@ -7,6 +7,126 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
7
7
 
8
8
  ---
9
9
 
10
+ ## [3.4.0] — 2026-06-15
11
+
12
+ ### Added
13
+
14
+ - **`codevira projects` cleanup + staleness.** The project inventory now
15
+ shows a relative-age column (`today` / `5d ago` / `stale 45d`) so you
16
+ can see at a glance which registered projects have gone cold. Pytest
17
+ tmp dirs and `/tmp` scratch projects are kept out of the registry at
18
+ the source (a registration guard on ephemeral paths; tests opt back in
19
+ with `CODEVIRA_ALLOW_EPHEMERAL_PROJECT=1`) and hidden from the human
20
+ listing by default (shown with `--all`, always present in `--json`
21
+ tagged `ephemeral: true`). New `codevira projects archive <name>`
22
+ removes a project from the registry by name or path — files and data
23
+ dir untouched. (D0000PT)
24
+
25
+ - **Per-call project resolution for Claude Desktop.** Claude Desktop is a
26
+ single global server with no per-conversation workspace signal, so it
27
+ could only ever bind to one project. Now, for `CODEVIRA_IDE=claude_desktop`,
28
+ the active project is resolved per tool call from the call's `file_path`
29
+ (walking up to the enclosing `.codevira/`), and is sticky for path-less
30
+ follow-ups — so codevira's memory follows whichever project you're
31
+ working in, across all of them. Strictly workspace-bound IDEs (Claude
32
+ Code / Cursor / Windsurf) are unaffected (gated). Best-effort and
33
+ read-safe (the per-root data-dir cache re-resolves on switch).
34
+
35
+ ### Fixed
36
+
37
+ - **Project binding: the MCP server could resolve the WRONG project.** A
38
+ user-scope codevira server (one shared entry, launched with no `cwd` /
39
+ `--project-dir` / `CODEVIRA_PROJECT_DIR`) had no project binding and
40
+ fell through to cwd discovery — frequently resolving to a *different*
41
+ project than the one open in the editor (cross-project memory
42
+ contamination: decisions/graph/sessions read from project A while you
43
+ work in project B). The server now resolves the active project from the
44
+ MCP client's workspace **roots** (Claude Code, Cursor, Windsurf all
45
+ expose these) on the first tool call, when not explicitly pinned. It
46
+ re-binds **only** to an already-initialized codevira project (`.codevira`
47
+ present), so a monorepo workspace root or a fresh repo can't hijack a
48
+ working setup; explicit `--project-dir` / `CODEVIRA_PROJECT_DIR` pins are
49
+ always respected; and the lookup is bounded by a timeout so it can never
50
+ hang dispatch. Upgrade + restart your MCP server to pick this up.
51
+ (D0000RO)
52
+ - **Windows / UNC** workspace roots are now parsed correctly
53
+ (`file:///C:/...` and `file://host/share/...`) — the binding worked on
54
+ POSIX but silently failed / mis-bound on Cursor & Windsurf (Windows).
55
+ - **HTTP transport** skips the roots-binding hook entirely: the HTTP
56
+ server shares one process across sessions, so a process-global binding
57
+ would cross-contaminate; stdio is unaffected.
58
+ - **Brand-new projects** bind correctly: a fresh `.git` workspace root
59
+ is now bound when the inherited cwd isn't a codevira project, so
60
+ `.codevira` no longer gets auto-created in the wrong directory (a
61
+ monorepo cwd that already holds a real project is never overridden).
62
+ - **`codevira doctor`** gains a `project_binding` check that shows how
63
+ the project resolved (explicit pin vs. workspace) so you can verify
64
+ you're bound to the right project.
65
+
66
+ - **Honest `search_decisions` tool description.** It claimed "hybrid BM25
67
+ + semantic; self-calibrating threshold" while the implementation is
68
+ pure FTS5 keyword/BM25 — the wording misled calling agents into
69
+ expecting semantic recall and gibberish-rejection that don't exist. Now
70
+ it accurately says keyword-only and points to `list_decisions` /
71
+ `list_tags` for zero-keyword-overlap concepts.
72
+
73
+ - **Engine false-positive: additive `Write` no longer hard-blocked.** The
74
+ `decision_lock`, `blast_radius`, and `anti_regression` policies key on
75
+ the `--- before / --- after` diff envelope. `Edit`/`MultiEdit` always
76
+ produced it, but `Write` passed raw file content, so the additive-edit
77
+ guards were silently bypassed and a purely-additive full-file `Write`
78
+ to a locked or high-fan-in file was blocked as if it were destructive
79
+ (forcing users to disable enforcement). The wiring layer now
80
+ synthesizes an honest envelope for `Write` by reading the current
81
+ on-disk content as the `before` block, via a shared
82
+ `_diff_envelope.synthesize_proposed_diff` helper used by both the
83
+ Claude Code hook and the MCP dispatch path. A `Write` that removes or
84
+ changes existing lines still blocks — the moat is unchanged. (D0000PW)
85
+ `anti_regression` deliberately keeps its pre-v3.4.0 no-op behavior on
86
+ full-file `Write`s: its keyword-overlap revert heuristic is calibrated
87
+ for small Edit hunks and would false-block additive overwrites if run
88
+ over a whole file, so Writes are skipped there (Edit/MultiEdit revert
89
+ detection is unaffected).
90
+
91
+ - **Blast-radius veto: "Affected files" list was always empty.** The
92
+ policy read `impact["affected"]`, but `get_impact` / `signals.impact`
93
+ return the list under `affected_files`. The block fired correctly but
94
+ the diagnostic never showed *which* files were impacted; now it does.
95
+
96
+ - **Docs accuracy.** The README tagline implied hard edit-blocking works
97
+ everywhere — it's Claude Code only (other IDEs get the same decisions
98
+ as AGENTS.md guidance). Tagline corrected to match the body, which was
99
+ already scoped correctly.
100
+
101
+ ### Changed
102
+
103
+ - **CI: opt into Node.js 24 for GitHub Actions.** GitHub forces Node.js
104
+ 24 on runners from 2026-06-16; the CI and Pages workflows now set
105
+ `FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true` to adopt it ahead of the
106
+ deadline and silence the deprecation warnings.
107
+
108
+ ### Docs
109
+
110
+ - **Public "What's next" roadmap.** `ROADMAP.md` gains a current-release
111
+ summary and a priority-ordered, *directional (not dated)* "What's next"
112
+ table — summary-first payloads (E1), session-transcript ingest (E2),
113
+ eval harness (E3), managed memory files beyond `AGENTS.md` (E4), and an
114
+ opt-in `[semantic]` recall extra that stays **off by default** (E5),
115
+ plus TypeScript `get_signature`, finer-grained decision locking, and
116
+ learned hot-path tuning. The README `## Roadmap` section now surfaces
117
+ the same "Next up" list inline. The on-device-model track is marked
118
+ deferred (folded into E5's opt-in path).
119
+
120
+ - **README "What's new" + counts refreshed to v3.4.0.** The README's
121
+ "What's new" section was still headlined v3.1.1; it now leads with
122
+ v3.4.0 (binding, honest docs, `projects`, per-call resolution, engine
123
+ fix) and bridges 3.1–3.3 with a pointer to the CHANGELOG. Stale
124
+ surface counts corrected to the verified current numbers: **49**
125
+ surfaced MCP tools (was "24"), **21** CLI commands (was "15"), **8**
126
+ engine policies (was "6").
127
+
128
+ ---
129
+
10
130
  ## [3.3.0] — 2026-06-13
11
131
 
12
132
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: codevira
3
- Version: 3.3.0
3
+ Version: 3.4.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
@@ -49,9 +49,10 @@ Requires-Dist: pre-commit>=3.5; extra == "dev"
49
49
 
50
50
  # Codevira
51
51
 
52
- > **Cross-IDE decision enforcement for AI coding agents.** One in-repo
53
- > memory layer that every AI tool you use can read; PreToolUse hooks
54
- > that physically block edits violating prior decisions. Local-first,
52
+ > **Cross-IDE decision memory for AI coding agents.** One in-repo memory
53
+ > layer that every AI tool you use can read — plus PreToolUse hooks that
54
+ > physically block violating edits **in Claude Code** (other IDEs get the
55
+ > same decisions as AGENTS.md guidance, not a hard block). Local-first,
55
56
  > MIT-licensed, ~83 MB pipx install.
56
57
 
57
58
  [![PyPI version](https://img.shields.io/pypi/v/codevira?color=orange)](https://pypi.org/project/codevira/)
@@ -141,25 +142,28 @@ every AI tool, on every project, on your local machine.**
141
142
 
142
143
  ---
143
144
 
144
- ## What's new in v3.1.1 — hardening + interrogable memory
145
+ ## What's new in v3.4.0 — reliable project binding + honest docs
145
146
 
146
- > 3.1.1 supersedes the briefly-published 3.1.0 (which shipped
147
- > without this README/CHANGELOG entry). Same code shape; this
148
- > release is the documented one. Brings five memory subsystems
149
- > (M1–M9 from 3.1.0) plus the v3.1.1 hardening + viewer overhaul.
147
+ > The headline fix: **one user-scope codevira server now binds the
148
+ > right project** instead of silently contaminating memory across
149
+ > projects. Upgrade and restart your MCP server to pick this up.
150
150
 
151
151
  | Area | What you get |
152
152
  |---|---|
153
- | **Five memory subsystems** | Origin tagging (M1), working memory (M2), skill library with FTS5 ranking (M3), spatial memory + activity heatmap (M4), skill induction wired to outcomes (M5), cross-IDE consensus check + handshake (M6/M7), reflections (M8). 22 new MCP tools. |
154
- | **Secret scrubbing everywhere** | Decisions, sessions, working memory, skills, reflections — every store scrubs api-key / Bearer / password / AWS AKIA / long hex / long base64 at the write boundary. One shared `mcp_server/storage/sanitize.py`. |
155
- | **Counter-decision discipline** | `record_decision` now accepts `alternatives_considered: list[str]` and `would_re_examine_if: str` — losing options + invalidation trigger surface in the viewer's rich-detail panel. Optional + back-compat. |
156
- | **Interrogable graph viewer** | `codevira graph` is no longer a passive force-layout. Free-text search → top-K ranked panel with score + outcome badge. Q&A intent detection ("what did we decide about X", "what got reverted", "what's protected"). Outcome lens (kept/modified/reverted). Lineage trace mode for supersession chains. |
157
- | **Auto outcome classification** | `codevira sync` now runs `observe-git` as a best-effort tail step — outcomes flow into the viewer's outcome lens automatically. |
158
- | **G3 real-IDE smoke** | The last permanently-skipped gauntlet gate now ships as a real check. Verifies codevira is registered in each detected IDE config + MCP `tools/list` round-trips in <1s. |
159
- | **AGENTS.md no more churn** | `regenerate()` is now idempotent — no rewrite when content unchanged, no perpetual uncommitted-drift loop. |
160
- | **4 silent bugs fixed** | `commit_session("../escape")` rejected; `triggers.tags="git"` rejected; `list_all(limit=0)` returns `[]`; spatial BFS catches query-time sqlite errors. |
153
+ | **Project binding fixed** | A shared, user-scope server (launched with no `cwd` / `--project-dir`) used to fall through to cwd discovery and resolve the *wrong* project — reading decisions from project A while you worked in project B. It now resolves the active project from the MCP client's workspace **roots** (Claude Code, Cursor, Windsurf all expose these), re-binding only to an already-initialized `.codevira` project; explicit pins always win; bounded by a timeout so dispatch can't hang. |
154
+ | **Windows / UNC + HTTP isolation** | `file:///C:/...` and `file://host/share/...` roots now parse correctly (was POSIX-only — Cursor/Windsurf on Windows). The HTTP transport is isolated from the process-global binding. Brand-new projects bind without creating `.codevira` in the wrong directory. |
155
+ | **Claude Desktop: memory follows the file** | The single global server resolves the active project per tool call from the call's `file_path`, so memory tracks whichever project you're working in. |
156
+ | **Honest `search_decisions` docs** | The tool description claimed "hybrid BM25 + semantic"; the implementation is pure FTS5 keyword/BM25. Corrected so calling agents aren't misled into expecting semantic recall. |
157
+ | **`codevira projects` + `doctor`** | `projects` gains a staleness column (`today` / `5d ago` / `stale 45d`), an ephemeral-path guard, and `projects archive <name>`. `doctor` gains a `project_binding` check showing how the project resolved. |
158
+ | **Engine false-positive fixed** | A purely-additive full-file `Write` is no longer hard-blocked by `decision_lock` / `blast_radius` (the `--- before / --- after` diff envelope is now synthesized for `Write` too). A `Write` that removes or changes existing lines still blocks. |
161
159
 
162
- Full v3.1.1 release notes: [CHANGELOG.md](CHANGELOG.md#311--2026-05-30--hardening-viewer-overhaul-g3-sync-observe-git).
160
+ Since the v3.0.0 lean reset: **3.1** added five memory subsystems
161
+ (working memory, skills, spatial, consensus, reflections), **3.3** added
162
+ LLM-distilled preferences. Full history is in the
163
+ [CHANGELOG](CHANGELOG.md); what's coming next is in the
164
+ [Roadmap](ROADMAP.md).
165
+
166
+ Full v3.4.0 release notes: [CHANGELOG.md](CHANGELOG.md#340--2026-06-15).
163
167
 
164
168
  ---
165
169
 
@@ -279,7 +283,7 @@ summary: 13 pass · 0 warn · 0 fail
279
283
 
280
284
  ### Daily-use commands
281
285
 
282
- The v3.0.0 CLI surface is 15 commands:
286
+ The CLI surface is 21 commands (the daily-use ones below):
283
287
 
284
288
  | Command | What it does |
285
289
  |---|---|
@@ -287,7 +291,7 @@ The v3.0.0 CLI surface is 15 commands:
287
291
  | `codevira setup` | Detect installed AI tools + write MCP configs + Claude Code hooks |
288
292
  | `codevira doctor` | Health check (read-only; ✓/⚠/✗ + fix commands) |
289
293
  | `codevira status` | Show index health + project state |
290
- | `codevira projects` | List every project codevira tracks on this machine |
294
+ | `codevira projects` | List tracked projects with staleness (`today` / `5d ago` / `stale 45d`); `projects archive <name>` drops one from the registry |
291
295
  | `codevira index` | Build / refresh the code graph cache |
292
296
  | `codevira sync` | Regenerate AGENTS.md + manifest + digest from `decisions.jsonl` |
293
297
  | `codevira observe-git` | Classify past decisions as kept/modified/reverted from git history |
@@ -514,7 +518,7 @@ The opt-in extra `pip install 'codevira[all-languages]'` re-adds the
514
518
  | `do_not_revert` enforcement at Claude Code PreToolUse | Multi-language code graph for languages outside Python / TS / JS / Go / Rust — use the `[all-languages]` extra |
515
519
  | FTS5 decision search with BM25 ranking | Real-time multi-machine sync — by design, codevira is local-first; for team sharing, commit `.codevira/` to git |
516
520
  | Per-project + cross-machine project inventory (`global.db`) | Web UI for browsing decisions — use the `codevira://decisions` MCP resource in Claude Desktop, or `codevira replay --format html` for a static file |
517
- | All 24 MCP tools (23 AI-facing + 1 admin) + 15 CLI commands + 6 engine policies | The HTTP server (`codevira serve`) is single-project per launch — for daily use, stick with stdio via `codevira setup` |
521
+ | All 49 surfaced MCP tools + 21 CLI commands + 8 engine policies | The HTTP server (`codevira serve`) is single-project per launch — for daily use, stick with stdio via `codevira setup` |
518
522
  | Concurrent-safe storage layer (Posix `fcntl.flock` + Windows sentinel fallback). Proven against 50-thread + 20-subprocess stress + 29-attack chaos harness | The cross-process file-lock contract has been exercised on macOS + Linux CI; the Windows sentinel-file fallback is verified via unit-test simulation but hasn't been load-tested on real Windows yet |
519
523
  | Code graph data store is functional but the v3.0.0 spec target (`<project>/.codevira-cache/graph.sqlite`) and the actual location (`<data_dir>/graph/graph.db`) drifted during the surface-cut audit. Tracked for v3.1 reconciliation | n/a (functional today; spec-truthfulness gap only) |
520
524
 
@@ -550,8 +554,24 @@ Common questions about setup, usage, architecture, and troubleshooting
550
554
 
551
555
  ## Roadmap
552
556
 
553
- See what's built, what's next, and the long-term vision — see
554
- [ROADMAP.md](ROADMAP.md).
557
+ **Current release:** **v3.4.0** — one user-scope server now binds the
558
+ right project per call (no more cross-project memory contamination),
559
+ Windows/UNC workspace roots, and a `codevira doctor` binding check.
560
+
561
+ **Next up** (directional, not dated):
562
+
563
+ - **Summary-first payloads** + **session-transcript ingest** — leaner
564
+ responses, and memory that learns from how sessions actually went
565
+ - **Eval harness** — measurable recall + enforcement quality in CI
566
+ - **Managed memory files beyond `AGENTS.md`** — `CLAUDE.md`,
567
+ `.cursor/rules`, `GEMINI.md`
568
+ - **Optional `[semantic]` recall** — off by default; the base install
569
+ stays pure-keyword, no vectors, no model download
570
+ - **TypeScript `get_signature`**, finer-grained decision locking,
571
+ learned hot-path tuning
572
+
573
+ What's built, the full upcoming list, and the long-term vision —
574
+ **[ROADMAP.md](ROADMAP.md)**.
555
575
 
556
576
  ## Star History
557
577
 
@@ -1,8 +1,9 @@
1
1
  # Codevira
2
2
 
3
- > **Cross-IDE decision enforcement for AI coding agents.** One in-repo
4
- > memory layer that every AI tool you use can read; PreToolUse hooks
5
- > that physically block edits violating prior decisions. Local-first,
3
+ > **Cross-IDE decision memory for AI coding agents.** One in-repo memory
4
+ > layer that every AI tool you use can read — plus PreToolUse hooks that
5
+ > physically block violating edits **in Claude Code** (other IDEs get the
6
+ > same decisions as AGENTS.md guidance, not a hard block). Local-first,
6
7
  > MIT-licensed, ~83 MB pipx install.
7
8
 
8
9
  [![PyPI version](https://img.shields.io/pypi/v/codevira?color=orange)](https://pypi.org/project/codevira/)
@@ -92,25 +93,28 @@ every AI tool, on every project, on your local machine.**
92
93
 
93
94
  ---
94
95
 
95
- ## What's new in v3.1.1 — hardening + interrogable memory
96
+ ## What's new in v3.4.0 — reliable project binding + honest docs
96
97
 
97
- > 3.1.1 supersedes the briefly-published 3.1.0 (which shipped
98
- > without this README/CHANGELOG entry). Same code shape; this
99
- > release is the documented one. Brings five memory subsystems
100
- > (M1–M9 from 3.1.0) plus the v3.1.1 hardening + viewer overhaul.
98
+ > The headline fix: **one user-scope codevira server now binds the
99
+ > right project** instead of silently contaminating memory across
100
+ > projects. Upgrade and restart your MCP server to pick this up.
101
101
 
102
102
  | Area | What you get |
103
103
  |---|---|
104
- | **Five memory subsystems** | Origin tagging (M1), working memory (M2), skill library with FTS5 ranking (M3), spatial memory + activity heatmap (M4), skill induction wired to outcomes (M5), cross-IDE consensus check + handshake (M6/M7), reflections (M8). 22 new MCP tools. |
105
- | **Secret scrubbing everywhere** | Decisions, sessions, working memory, skills, reflections — every store scrubs api-key / Bearer / password / AWS AKIA / long hex / long base64 at the write boundary. One shared `mcp_server/storage/sanitize.py`. |
106
- | **Counter-decision discipline** | `record_decision` now accepts `alternatives_considered: list[str]` and `would_re_examine_if: str` — losing options + invalidation trigger surface in the viewer's rich-detail panel. Optional + back-compat. |
107
- | **Interrogable graph viewer** | `codevira graph` is no longer a passive force-layout. Free-text search → top-K ranked panel with score + outcome badge. Q&A intent detection ("what did we decide about X", "what got reverted", "what's protected"). Outcome lens (kept/modified/reverted). Lineage trace mode for supersession chains. |
108
- | **Auto outcome classification** | `codevira sync` now runs `observe-git` as a best-effort tail step — outcomes flow into the viewer's outcome lens automatically. |
109
- | **G3 real-IDE smoke** | The last permanently-skipped gauntlet gate now ships as a real check. Verifies codevira is registered in each detected IDE config + MCP `tools/list` round-trips in <1s. |
110
- | **AGENTS.md no more churn** | `regenerate()` is now idempotent — no rewrite when content unchanged, no perpetual uncommitted-drift loop. |
111
- | **4 silent bugs fixed** | `commit_session("../escape")` rejected; `triggers.tags="git"` rejected; `list_all(limit=0)` returns `[]`; spatial BFS catches query-time sqlite errors. |
104
+ | **Project binding fixed** | A shared, user-scope server (launched with no `cwd` / `--project-dir`) used to fall through to cwd discovery and resolve the *wrong* project — reading decisions from project A while you worked in project B. It now resolves the active project from the MCP client's workspace **roots** (Claude Code, Cursor, Windsurf all expose these), re-binding only to an already-initialized `.codevira` project; explicit pins always win; bounded by a timeout so dispatch can't hang. |
105
+ | **Windows / UNC + HTTP isolation** | `file:///C:/...` and `file://host/share/...` roots now parse correctly (was POSIX-only — Cursor/Windsurf on Windows). The HTTP transport is isolated from the process-global binding. Brand-new projects bind without creating `.codevira` in the wrong directory. |
106
+ | **Claude Desktop: memory follows the file** | The single global server resolves the active project per tool call from the call's `file_path`, so memory tracks whichever project you're working in. |
107
+ | **Honest `search_decisions` docs** | The tool description claimed "hybrid BM25 + semantic"; the implementation is pure FTS5 keyword/BM25. Corrected so calling agents aren't misled into expecting semantic recall. |
108
+ | **`codevira projects` + `doctor`** | `projects` gains a staleness column (`today` / `5d ago` / `stale 45d`), an ephemeral-path guard, and `projects archive <name>`. `doctor` gains a `project_binding` check showing how the project resolved. |
109
+ | **Engine false-positive fixed** | A purely-additive full-file `Write` is no longer hard-blocked by `decision_lock` / `blast_radius` (the `--- before / --- after` diff envelope is now synthesized for `Write` too). A `Write` that removes or changes existing lines still blocks. |
112
110
 
113
- Full v3.1.1 release notes: [CHANGELOG.md](CHANGELOG.md#311--2026-05-30--hardening-viewer-overhaul-g3-sync-observe-git).
111
+ Since the v3.0.0 lean reset: **3.1** added five memory subsystems
112
+ (working memory, skills, spatial, consensus, reflections), **3.3** added
113
+ LLM-distilled preferences. Full history is in the
114
+ [CHANGELOG](CHANGELOG.md); what's coming next is in the
115
+ [Roadmap](ROADMAP.md).
116
+
117
+ Full v3.4.0 release notes: [CHANGELOG.md](CHANGELOG.md#340--2026-06-15).
114
118
 
115
119
  ---
116
120
 
@@ -230,7 +234,7 @@ summary: 13 pass · 0 warn · 0 fail
230
234
 
231
235
  ### Daily-use commands
232
236
 
233
- The v3.0.0 CLI surface is 15 commands:
237
+ The CLI surface is 21 commands (the daily-use ones below):
234
238
 
235
239
  | Command | What it does |
236
240
  |---|---|
@@ -238,7 +242,7 @@ The v3.0.0 CLI surface is 15 commands:
238
242
  | `codevira setup` | Detect installed AI tools + write MCP configs + Claude Code hooks |
239
243
  | `codevira doctor` | Health check (read-only; ✓/⚠/✗ + fix commands) |
240
244
  | `codevira status` | Show index health + project state |
241
- | `codevira projects` | List every project codevira tracks on this machine |
245
+ | `codevira projects` | List tracked projects with staleness (`today` / `5d ago` / `stale 45d`); `projects archive <name>` drops one from the registry |
242
246
  | `codevira index` | Build / refresh the code graph cache |
243
247
  | `codevira sync` | Regenerate AGENTS.md + manifest + digest from `decisions.jsonl` |
244
248
  | `codevira observe-git` | Classify past decisions as kept/modified/reverted from git history |
@@ -465,7 +469,7 @@ The opt-in extra `pip install 'codevira[all-languages]'` re-adds the
465
469
  | `do_not_revert` enforcement at Claude Code PreToolUse | Multi-language code graph for languages outside Python / TS / JS / Go / Rust — use the `[all-languages]` extra |
466
470
  | FTS5 decision search with BM25 ranking | Real-time multi-machine sync — by design, codevira is local-first; for team sharing, commit `.codevira/` to git |
467
471
  | Per-project + cross-machine project inventory (`global.db`) | Web UI for browsing decisions — use the `codevira://decisions` MCP resource in Claude Desktop, or `codevira replay --format html` for a static file |
468
- | All 24 MCP tools (23 AI-facing + 1 admin) + 15 CLI commands + 6 engine policies | The HTTP server (`codevira serve`) is single-project per launch — for daily use, stick with stdio via `codevira setup` |
472
+ | All 49 surfaced MCP tools + 21 CLI commands + 8 engine policies | The HTTP server (`codevira serve`) is single-project per launch — for daily use, stick with stdio via `codevira setup` |
469
473
  | Concurrent-safe storage layer (Posix `fcntl.flock` + Windows sentinel fallback). Proven against 50-thread + 20-subprocess stress + 29-attack chaos harness | The cross-process file-lock contract has been exercised on macOS + Linux CI; the Windows sentinel-file fallback is verified via unit-test simulation but hasn't been load-tested on real Windows yet |
470
474
  | Code graph data store is functional but the v3.0.0 spec target (`<project>/.codevira-cache/graph.sqlite`) and the actual location (`<data_dir>/graph/graph.db`) drifted during the surface-cut audit. Tracked for v3.1 reconciliation | n/a (functional today; spec-truthfulness gap only) |
471
475
 
@@ -501,8 +505,24 @@ Common questions about setup, usage, architecture, and troubleshooting
501
505
 
502
506
  ## Roadmap
503
507
 
504
- See what's built, what's next, and the long-term vision — see
505
- [ROADMAP.md](ROADMAP.md).
508
+ **Current release:** **v3.4.0** — one user-scope server now binds the
509
+ right project per call (no more cross-project memory contamination),
510
+ Windows/UNC workspace roots, and a `codevira doctor` binding check.
511
+
512
+ **Next up** (directional, not dated):
513
+
514
+ - **Summary-first payloads** + **session-transcript ingest** — leaner
515
+ responses, and memory that learns from how sessions actually went
516
+ - **Eval harness** — measurable recall + enforcement quality in CI
517
+ - **Managed memory files beyond `AGENTS.md`** — `CLAUDE.md`,
518
+ `.cursor/rules`, `GEMINI.md`
519
+ - **Optional `[semantic]` recall** — off by default; the base install
520
+ stays pure-keyword, no vectors, no model download
521
+ - **TypeScript `get_signature`**, finer-grained decision locking,
522
+ learned hot-path tuning
523
+
524
+ What's built, the full upcoming list, and the long-term vision —
525
+ **[ROADMAP.md](ROADMAP.md)**.
506
526
 
507
527
  ## Star History
508
528
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: codevira
3
- Version: 3.3.0
3
+ Version: 3.4.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
@@ -49,9 +49,10 @@ Requires-Dist: pre-commit>=3.5; extra == "dev"
49
49
 
50
50
  # Codevira
51
51
 
52
- > **Cross-IDE decision enforcement for AI coding agents.** One in-repo
53
- > memory layer that every AI tool you use can read; PreToolUse hooks
54
- > that physically block edits violating prior decisions. Local-first,
52
+ > **Cross-IDE decision memory for AI coding agents.** One in-repo memory
53
+ > layer that every AI tool you use can read — plus PreToolUse hooks that
54
+ > physically block violating edits **in Claude Code** (other IDEs get the
55
+ > same decisions as AGENTS.md guidance, not a hard block). Local-first,
55
56
  > MIT-licensed, ~83 MB pipx install.
56
57
 
57
58
  [![PyPI version](https://img.shields.io/pypi/v/codevira?color=orange)](https://pypi.org/project/codevira/)
@@ -141,25 +142,28 @@ every AI tool, on every project, on your local machine.**
141
142
 
142
143
  ---
143
144
 
144
- ## What's new in v3.1.1 — hardening + interrogable memory
145
+ ## What's new in v3.4.0 — reliable project binding + honest docs
145
146
 
146
- > 3.1.1 supersedes the briefly-published 3.1.0 (which shipped
147
- > without this README/CHANGELOG entry). Same code shape; this
148
- > release is the documented one. Brings five memory subsystems
149
- > (M1–M9 from 3.1.0) plus the v3.1.1 hardening + viewer overhaul.
147
+ > The headline fix: **one user-scope codevira server now binds the
148
+ > right project** instead of silently contaminating memory across
149
+ > projects. Upgrade and restart your MCP server to pick this up.
150
150
 
151
151
  | Area | What you get |
152
152
  |---|---|
153
- | **Five memory subsystems** | Origin tagging (M1), working memory (M2), skill library with FTS5 ranking (M3), spatial memory + activity heatmap (M4), skill induction wired to outcomes (M5), cross-IDE consensus check + handshake (M6/M7), reflections (M8). 22 new MCP tools. |
154
- | **Secret scrubbing everywhere** | Decisions, sessions, working memory, skills, reflections — every store scrubs api-key / Bearer / password / AWS AKIA / long hex / long base64 at the write boundary. One shared `mcp_server/storage/sanitize.py`. |
155
- | **Counter-decision discipline** | `record_decision` now accepts `alternatives_considered: list[str]` and `would_re_examine_if: str` — losing options + invalidation trigger surface in the viewer's rich-detail panel. Optional + back-compat. |
156
- | **Interrogable graph viewer** | `codevira graph` is no longer a passive force-layout. Free-text search → top-K ranked panel with score + outcome badge. Q&A intent detection ("what did we decide about X", "what got reverted", "what's protected"). Outcome lens (kept/modified/reverted). Lineage trace mode for supersession chains. |
157
- | **Auto outcome classification** | `codevira sync` now runs `observe-git` as a best-effort tail step — outcomes flow into the viewer's outcome lens automatically. |
158
- | **G3 real-IDE smoke** | The last permanently-skipped gauntlet gate now ships as a real check. Verifies codevira is registered in each detected IDE config + MCP `tools/list` round-trips in <1s. |
159
- | **AGENTS.md no more churn** | `regenerate()` is now idempotent — no rewrite when content unchanged, no perpetual uncommitted-drift loop. |
160
- | **4 silent bugs fixed** | `commit_session("../escape")` rejected; `triggers.tags="git"` rejected; `list_all(limit=0)` returns `[]`; spatial BFS catches query-time sqlite errors. |
153
+ | **Project binding fixed** | A shared, user-scope server (launched with no `cwd` / `--project-dir`) used to fall through to cwd discovery and resolve the *wrong* project — reading decisions from project A while you worked in project B. It now resolves the active project from the MCP client's workspace **roots** (Claude Code, Cursor, Windsurf all expose these), re-binding only to an already-initialized `.codevira` project; explicit pins always win; bounded by a timeout so dispatch can't hang. |
154
+ | **Windows / UNC + HTTP isolation** | `file:///C:/...` and `file://host/share/...` roots now parse correctly (was POSIX-only — Cursor/Windsurf on Windows). The HTTP transport is isolated from the process-global binding. Brand-new projects bind without creating `.codevira` in the wrong directory. |
155
+ | **Claude Desktop: memory follows the file** | The single global server resolves the active project per tool call from the call's `file_path`, so memory tracks whichever project you're working in. |
156
+ | **Honest `search_decisions` docs** | The tool description claimed "hybrid BM25 + semantic"; the implementation is pure FTS5 keyword/BM25. Corrected so calling agents aren't misled into expecting semantic recall. |
157
+ | **`codevira projects` + `doctor`** | `projects` gains a staleness column (`today` / `5d ago` / `stale 45d`), an ephemeral-path guard, and `projects archive <name>`. `doctor` gains a `project_binding` check showing how the project resolved. |
158
+ | **Engine false-positive fixed** | A purely-additive full-file `Write` is no longer hard-blocked by `decision_lock` / `blast_radius` (the `--- before / --- after` diff envelope is now synthesized for `Write` too). A `Write` that removes or changes existing lines still blocks. |
161
159
 
162
- Full v3.1.1 release notes: [CHANGELOG.md](CHANGELOG.md#311--2026-05-30--hardening-viewer-overhaul-g3-sync-observe-git).
160
+ Since the v3.0.0 lean reset: **3.1** added five memory subsystems
161
+ (working memory, skills, spatial, consensus, reflections), **3.3** added
162
+ LLM-distilled preferences. Full history is in the
163
+ [CHANGELOG](CHANGELOG.md); what's coming next is in the
164
+ [Roadmap](ROADMAP.md).
165
+
166
+ Full v3.4.0 release notes: [CHANGELOG.md](CHANGELOG.md#340--2026-06-15).
163
167
 
164
168
  ---
165
169
 
@@ -279,7 +283,7 @@ summary: 13 pass · 0 warn · 0 fail
279
283
 
280
284
  ### Daily-use commands
281
285
 
282
- The v3.0.0 CLI surface is 15 commands:
286
+ The CLI surface is 21 commands (the daily-use ones below):
283
287
 
284
288
  | Command | What it does |
285
289
  |---|---|
@@ -287,7 +291,7 @@ The v3.0.0 CLI surface is 15 commands:
287
291
  | `codevira setup` | Detect installed AI tools + write MCP configs + Claude Code hooks |
288
292
  | `codevira doctor` | Health check (read-only; ✓/⚠/✗ + fix commands) |
289
293
  | `codevira status` | Show index health + project state |
290
- | `codevira projects` | List every project codevira tracks on this machine |
294
+ | `codevira projects` | List tracked projects with staleness (`today` / `5d ago` / `stale 45d`); `projects archive <name>` drops one from the registry |
291
295
  | `codevira index` | Build / refresh the code graph cache |
292
296
  | `codevira sync` | Regenerate AGENTS.md + manifest + digest from `decisions.jsonl` |
293
297
  | `codevira observe-git` | Classify past decisions as kept/modified/reverted from git history |
@@ -514,7 +518,7 @@ The opt-in extra `pip install 'codevira[all-languages]'` re-adds the
514
518
  | `do_not_revert` enforcement at Claude Code PreToolUse | Multi-language code graph for languages outside Python / TS / JS / Go / Rust — use the `[all-languages]` extra |
515
519
  | FTS5 decision search with BM25 ranking | Real-time multi-machine sync — by design, codevira is local-first; for team sharing, commit `.codevira/` to git |
516
520
  | Per-project + cross-machine project inventory (`global.db`) | Web UI for browsing decisions — use the `codevira://decisions` MCP resource in Claude Desktop, or `codevira replay --format html` for a static file |
517
- | All 24 MCP tools (23 AI-facing + 1 admin) + 15 CLI commands + 6 engine policies | The HTTP server (`codevira serve`) is single-project per launch — for daily use, stick with stdio via `codevira setup` |
521
+ | All 49 surfaced MCP tools + 21 CLI commands + 8 engine policies | The HTTP server (`codevira serve`) is single-project per launch — for daily use, stick with stdio via `codevira setup` |
518
522
  | Concurrent-safe storage layer (Posix `fcntl.flock` + Windows sentinel fallback). Proven against 50-thread + 20-subprocess stress + 29-attack chaos harness | The cross-process file-lock contract has been exercised on macOS + Linux CI; the Windows sentinel-file fallback is verified via unit-test simulation but hasn't been load-tested on real Windows yet |
519
523
  | Code graph data store is functional but the v3.0.0 spec target (`<project>/.codevira-cache/graph.sqlite`) and the actual location (`<data_dir>/graph/graph.db`) drifted during the surface-cut audit. Tracked for v3.1 reconciliation | n/a (functional today; spec-truthfulness gap only) |
520
524
 
@@ -550,8 +554,24 @@ Common questions about setup, usage, architecture, and troubleshooting
550
554
 
551
555
  ## Roadmap
552
556
 
553
- See what's built, what's next, and the long-term vision — see
554
- [ROADMAP.md](ROADMAP.md).
557
+ **Current release:** **v3.4.0** — one user-scope server now binds the
558
+ right project per call (no more cross-project memory contamination),
559
+ Windows/UNC workspace roots, and a `codevira doctor` binding check.
560
+
561
+ **Next up** (directional, not dated):
562
+
563
+ - **Summary-first payloads** + **session-transcript ingest** — leaner
564
+ responses, and memory that learns from how sessions actually went
565
+ - **Eval harness** — measurable recall + enforcement quality in CI
566
+ - **Managed memory files beyond `AGENTS.md`** — `CLAUDE.md`,
567
+ `.cursor/rules`, `GEMINI.md`
568
+ - **Optional `[semantic]` recall** — off by default; the base install
569
+ stays pure-keyword, no vectors, no model download
570
+ - **TypeScript `get_signature`**, finer-grained decision locking,
571
+ learned hot-path tuning
572
+
573
+ What's built, the full upcoming list, and the long-term vision —
574
+ **[ROADMAP.md](ROADMAP.md)**.
555
575
 
556
576
  ## Star History
557
577
 
@@ -116,6 +116,7 @@ mcp_server/launchd.py
116
116
  mcp_server/log_retention.py
117
117
  mcp_server/migrate.py
118
118
  mcp_server/paths.py
119
+ mcp_server/project_binding.py
119
120
  mcp_server/prompts.py
120
121
  mcp_server/roadmap_drift.py
121
122
  mcp_server/server.py
@@ -170,6 +171,7 @@ mcp_server/engine/policies/relevance_inject.py
170
171
  mcp_server/engine/policies/session_log_enforcer.py
171
172
  mcp_server/engine/policies/token_budget.py
172
173
  mcp_server/engine/wiring/__init__.py
174
+ mcp_server/engine/wiring/_diff_envelope.py
173
175
  mcp_server/engine/wiring/claude_code_hooks.py
174
176
  mcp_server/engine/wiring/mcp_dispatch.py
175
177
  mcp_server/graph/__init__.py
@@ -221,6 +223,7 @@ rules/smoke-testing.md
221
223
  rules/testing-standards.md
222
224
  tests/test__prompts.py
223
225
  tests/test_auto_init.py
226
+ tests/test_binding_e2e.py
224
227
  tests/test_call_edge_fk_safety.py
225
228
  tests/test_check_conflict.py
226
229
  tests/test_chunker.py
@@ -256,6 +259,7 @@ tests/test_migrate.py
256
259
  tests/test_outcome_tracker.py
257
260
  tests/test_paths.py
258
261
  tests/test_preferences_tools.py
262
+ tests/test_project_binding.py
259
263
  tests/test_prompts.py
260
264
  tests/test_record_decision.py
261
265
  tests/test_reflections.py
@@ -1,4 +1,4 @@
1
- # Codevira — Architecture (v3.3.0)
1
+ # Codevira — Architecture (v3.4.0)
2
2
 
3
3
  > Codevira is a lean cross-IDE decision-enforcement layer.
4
4
  > ~1-2 MB per project. In your repo. No cloud. No vectors. MIT.
@@ -11,6 +11,11 @@
11
11
  > subsystems (working memory, skills, spatial, consensus, reflections;
12
12
  > +24 tools). v3.3.0 added preference capture (`distill_preferences` /
13
13
  > `search_preferences`) — the tool surface is now 49 AI-facing tools.
14
+ > v3.4.0 is a precision + hygiene release (no tool-surface change):
15
+ > the engine wiring now hands `Write` an honest `--- before/--- after`
16
+ > diff (read from disk) so the additive-edit guards stop false-blocking
17
+ > purely-additive full-file writes, and `codevira projects` gained
18
+ > staleness labels + an `archive` subcommand + an ephemeral-path guard.
14
19
 
15
20
  ## The three layers (top to bottom)
16
21
 
@@ -14,4 +14,4 @@ internals — internal APIs may change between minor versions.
14
14
  from mcp_server.cli import main
15
15
 
16
16
  __all__ = ["main"]
17
- __version__ = "3.3.0"
17
+ __version__ = "3.4.0"
@@ -894,6 +894,24 @@ def main() -> None:
894
894
  action="store_true",
895
895
  help="Show each project's source path + data dir path (pairs project basename with the ~/.codevira/projects/<key>/ dir)",
896
896
  )
897
+ projects_parser.add_argument(
898
+ "--all",
899
+ action="store_true",
900
+ dest="show_all",
901
+ help="Include ephemeral test/scratch paths (pytest tmp dirs, /tmp), hidden by default",
902
+ )
903
+ # v3.4.0: `projects archive <name>` removes a project from the registry.
904
+ projects_parser.add_argument(
905
+ "action",
906
+ nargs="?",
907
+ choices=["archive"],
908
+ help="Sub-action. 'archive <name>' removes a project from the registry (files untouched).",
909
+ )
910
+ projects_parser.add_argument(
911
+ "name",
912
+ nargs="?",
913
+ help="Project name / basename / path to archive (used with `archive`).",
914
+ )
897
915
 
898
916
  # v2.2.0+: `agents` deleted per 2026-05-22 surface-cut audit.
899
917
  # The 6 per-IDE nudge files (CLAUDE.md, GEMINI.md, .cursor/rules/...,
@@ -1554,12 +1572,19 @@ def main() -> None:
1554
1572
  sys.exit(rc)
1555
1573
  elif args.command == "projects":
1556
1574
  # Bug 21b (rc.4) — project inventory
1575
+ if getattr(args, "action", None) == "archive":
1576
+ # v3.4.0: remove a project from the registry by name / path.
1577
+ from mcp_server.cli_projects import cmd_projects_archive
1578
+
1579
+ sys.exit(cmd_projects_archive(getattr(args, "name", None)))
1580
+
1557
1581
  from mcp_server.cli_projects import cmd_projects
1558
1582
 
1559
1583
  rc = cmd_projects(
1560
1584
  output_json=getattr(args, "output_json", False),
1561
1585
  ghosts_only=getattr(args, "ghosts_only", False),
1562
1586
  show_paths=getattr(args, "paths", False), # 2026-05-17 Bug G
1587
+ show_all=getattr(args, "show_all", False), # v3.4.0
1563
1588
  )
1564
1589
  sys.exit(rc)
1565
1590
  # v2.2.0+: `agents` / `hooks` dispatch deleted (commands removed).