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.
- {codevira-4.1.0 → codevira-4.2.0}/CHANGELOG.md +222 -0
- {codevira-4.1.0/codevira.egg-info → codevira-4.2.0}/PKG-INFO +39 -5
- {codevira-4.1.0 → codevira-4.2.0}/README.md +37 -3
- {codevira-4.1.0 → codevira-4.2.0/codevira.egg-info}/PKG-INFO +39 -5
- {codevira-4.1.0 → codevira-4.2.0}/codevira.egg-info/SOURCES.txt +6 -0
- {codevira-4.1.0 → codevira-4.2.0}/codevira.egg-info/requires.txt +1 -1
- {codevira-4.1.0 → codevira-4.2.0}/docs/alpha-tester-invites.md +4 -2
- {codevira-4.1.0 → codevira-4.2.0}/docs/local-pypi-https.md +1 -1
- {codevira-4.1.0 → codevira-4.2.0}/docs/release-process.md +33 -10
- {codevira-4.1.0 → codevira-4.2.0}/indexer/_dedupe_migration.py +2 -0
- {codevira-4.1.0 → codevira-4.2.0}/indexer/_fork_safety.py +2 -0
- {codevira-4.1.0 → codevira-4.2.0}/indexer/_sqlite_util.py +3 -1
- {codevira-4.1.0 → codevira-4.2.0}/indexer/index_codebase.py +19 -1
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/__init__.py +1 -1
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/__main__.py +1 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/_project_inventory.py +1 -2
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/_safe_crash.py +6 -3
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli.py +99 -5
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_hooks_admin.py +1 -3
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_init.py +20 -3
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_memory.py +1 -2
- codevira-4.2.0/mcp_server/cli_reconcile.py +126 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_repair.py +112 -9
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/doctor.py +1 -3
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/demo_policy.py +1 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/_signature_detect.py +16 -5
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/token_budget.py +37 -22
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policy.py +8 -2
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/wiring/git_hooks.py +77 -22
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/launchd.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/log_retention.py +26 -1
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/register_all.py +15 -1
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/roadmap_drift.py +1 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/anchor.py +1 -1
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/reconcile.py +41 -0
- {codevira-4.1.0 → codevira-4.2.0}/pyproject.toml +17 -10
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/test_cross_tool_universality.py +1 -1
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/test_first_contact.py +6 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/test_product_invariants.py +2 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/test_qa_round_v2_completion.py +9 -9
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/test_v2_release_candidate.py +18 -18
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/test_v350_acceptance.py +18 -18
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_anti_regression.py +21 -21
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_blast_radius.py +30 -30
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_decision_lock.py +18 -18
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_decision_replay.py +12 -12
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_diff_envelope.py +6 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_events.py +1 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_fix_history.py +27 -9
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_git_hook_enforcement.py +72 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_policies.py +2 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_qa_p0_fixes.py +104 -48
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_qa_round3.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_qa_round4.py +19 -11
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_qa_round5.py +9 -9
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_qa_round_week13.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_relevance_inject.py +9 -9
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_runner.py +13 -1
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_token_budget.py +6 -8
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_token_meter.py +1 -0
- codevira-4.2.0/tests/integration/test_docs_subcommands_exist.py +332 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/integration/test_mcp_roundtrip.py +6 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/integration/test_sandboxed_parent.py +24 -24
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_agents_md_generator.py +7 -7
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_amendment_provenance.py +6 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_atomic.py +6 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_cross_process_writes.py +4 -5
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_decisions_store.py +9 -9
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_device_identity.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_id_repair_references.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_score_breakdown.py +15 -1
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_search_perf_caches.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_skills_store.py +6 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_token_estimator.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_uid_edges.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_working_store.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test__prompts.py +32 -18
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_auto_init.py +69 -54
- codevira-4.2.0/tests/test_background_degrades.py +231 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_binding_e2e.py +9 -9
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_call_edge_fk_safety.py +16 -14
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_check_conflict.py +6 -6
- codevira-4.2.0/tests/test_classifier_is_shared.py +253 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_claude_binding_conflict.py +6 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_induce.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_projects.py +6 -6
- codevira-4.2.0/tests/test_cli_reconcile.py +111 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_uninstall.py +4 -8
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_crash_logger.py +1 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_decisions_store.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_dedupe_migration.py +14 -2
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_detect.py +16 -13
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_fk_safety_extended.py +7 -2
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_fork_safety.py +2 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_git_shared.py +114 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_global_db.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_global_home_isolation.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_graph_generator.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_hook_resilience.py +26 -23
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_id_repair.py +6 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_ide_inject.py +21 -21
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_imports.py +7 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_index_codebase.py +238 -144
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_launchd.py +67 -33
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_log_retention.py +73 -1
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_migrate.py +6 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_migration_memory_loss.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_migration_no_data_loss_e2e.py +6 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_path_glob_and_scrub.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_paths.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_phase27_quality_fixes.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_pre_release_block_hook.py +149 -10
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_reconcile.py +96 -9
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_record_decision.py +6 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_register_all.py +95 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_remote_hijack.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_removed_tool_migration.py +6 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_repair_ids.py +6 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_repair_ids_race.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_repair_init.py +1 -2
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_retirement_and_amendments.py +15 -15
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_review_round2.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_review_round3.py +6 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_roadmap_drift.py +50 -13
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_sdist_completeness.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_setup_wizard.py +27 -27
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_sqlite_util.py +21 -9
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_subprocess_imports_working_tree.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_supersede_on_write.py +3 -3
- codevira-4.2.0/tests/test_toolchain_pins.py +89 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_tools_graph.py +2 -2
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_tools_learning.py +6 -6
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_tools_playbook.py +19 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_watcher_circuit.py +4 -1
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_working_promote_skill.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_worktree_and_cache.py +3 -3
- {codevira-4.1.0 → codevira-4.2.0}/LICENSE +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/MANIFEST.in +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/agents/qa/01-code-review.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/agents/qa/02-adversarial-fix-review.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/agents/qa/03-cross-module-impact.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/agents/qa/06-doc-drift.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/agents/qa/07-security-audit.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/agents/qa/12-llm-redteam.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/agents/qa/13-multi-ide-schema.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/agents/qa/22-competitor-benchmark.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/agents/qa/README.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/agents/qa/tier2-scripts.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/agents/qa/tier3-manual.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/codevira.egg-info/dependency_links.txt +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/codevira.egg-info/entry_points.txt +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/codevira.egg-info/top_level.txt +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/config.example.yaml +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/architecture.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/audit-2026-05-22.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/demo/README.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/foolproof-product-charter.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/00-engine.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/01-decision-lock.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/02-anti-regression.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/03-scope-contract.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/04-blast-radius.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/05-cross-session.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/06-token-budget.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/07-live-style.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/08-decision-replay.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/09-intent-inference.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/10-ai-promotion.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/README.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/heroes/pillar-1-setup.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/hn-launch-day.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/how-i-built-persistent-memory-for-ai-agents.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/internal/4.0-beta.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/internal/architecture-4.0.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/internal/competitive-landscape.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/internal/memory-strategy-2026-07.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/linkedin-article-ai-agent-memory.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/linkedin-post-ai-agent-memory.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/medium-your-ai-coding-agent-has-amnesia.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/morning-handoff-2026-05-22.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/plans/opt-in-activation.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/plans/v2.1.2.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/plans/v2.1.3.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/plans/v2.2.0.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/plans/v3.0.0.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/qa-playbook.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/release-notes/v3.1.1.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/release-notes/v3.7.1.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/roadmap.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/surface-cuts-2026-05-22.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/troubleshooting/antigravity.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/troubleshooting/config-hygiene.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/v2-completion-plan.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/v2-execution-log.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/v2-master-plan.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/docs/vs-other-memory-tools.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/graph/_schema.yaml +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/indexer/__init__.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/indexer/fix_history.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/indexer/global_db.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/indexer/graph_generator.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/indexer/imports.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/indexer/outcome_classifier.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/indexer/sqlite_graph.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/indexer/treesitter_parser.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/_ghost_check.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/_mcp_registry.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/_prompts.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/_repair_init.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/auto_init.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_eval.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_export.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_graph.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_induce.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_projects.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_replay.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_search.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_sync.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_transfer.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_uninstall.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/cli_working.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/crash_logger.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/__init__.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/config.example.yaml +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/hooks/post_tool_use.sh +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/hooks/pre_tool_use.sh +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/hooks/session_start.sh +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/hooks/stop.sh +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/hooks/user_prompt_submit.sh +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/coding-standards-generic.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/coding-standards-go.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/coding-standards-typescript.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/coding-standards.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/engineering-excellence.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/git-cicd-governance.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/git_commits.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/incremental-updates.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/master_rule.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/multi-language.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/persistence.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/resilience-observability.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/smoke-testing.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/data/rules/testing-standards.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/decision_replay.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/detect.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/egress.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/__init__.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/audit.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/events.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/memory_fanout.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/__init__.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/_region_detect.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/anti_regression.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/blast_radius.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/decision_lock.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/post_edit_refresh.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/relevance_inject.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/policies/session_log_enforcer.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/runner.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/signals.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/token_meter.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/wiring/__init__.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/wiring/_diff_envelope.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/wiring/antigravity_hooks.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/wiring/claude_code_hooks.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/engine/wiring/mcp_dispatch.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/eval/__init__.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/eval/judge.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/eval/relevance.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/eval/report.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/gitignore.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/global_sync.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/graph/__init__.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/graph/template.html +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/http_server.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/ide_inject.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/memory_undo.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/migrate.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/opt_in.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/paths.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/project_binding.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/prompts.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/retrieval/__init__.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/retrieval/score.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/server.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/setup_wizard.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/__init__.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/activity_store.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/agents_md_generator.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/atomic.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/config.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/decisions_store.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/digest.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/fts5_index.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/id_repair.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/jsonl_store.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/manifest.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/origin.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/outcomes_writer.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/paths.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/sanitize.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/sessions_store.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/skills_store.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/synonyms.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/text.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/token_estimator.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/uid.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/storage/working_store.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tenant.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/__init__.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/check_conflict.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/graph.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/learning.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/playbook.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/provenance.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/roadmap.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/search.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/skills.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/tools/working.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/mcp_server/update_check.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/rules/coding-standards.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/rules/engineering-excellence.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/rules/git-cicd-governance.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/rules/git_commits.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/rules/incremental-updates.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/rules/master_rule.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/rules/persistence.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/rules/resilience-observability.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/rules/smoke-testing.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/rules/testing-standards.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/setup.cfg +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/conftest.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/__init__.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/code_only_python/README.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/code_only_python/pyproject.toml +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/code_only_python/src/widgets.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/code_only_python/tests/test_widgets.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/conftest.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/docs_only/CONTRIBUTING.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/docs_only/README.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/docs_only/docs/architecture.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/docs_only/package.json +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/monorepo/README.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/monorepo/package.json +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/monorepo/packages/foo/package.json +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/monorepo/packages/foo/src/index.ts +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/CLAUDE.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/README.md +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/config/settings.yaml +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/pyproject.toml +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/src/api.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/e2e/fixtures/polyglot/src/client.ts +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/__init__.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_antigravity_hooks.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_audit.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_block_message_evidence.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_claude_native_memory.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_evidence_reaches_readers.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_integration.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_memory_fanout.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_region_detect.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_session_log_enforcer.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_signals_project_scoping.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/engine/test_week2_edge_cases.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/integration/__init__.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/integration/test_help_text_consistency.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/__init__.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_activity_store.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_anchor_derivation.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_concurrent_writes.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_digest.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_fts5_index.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_jsonl_store.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_manifest.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_origin.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_sanitize.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_session_identity.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_stranded_parameters.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/storage/test_uid.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_antigravity_hook_portable.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_binding_conflict_detection.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_export.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_graph.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_replay.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_search.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_transfer.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_untrack.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_version.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_cli_working.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_committed_memory.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_cross_project_search.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_doctor.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_e1_summary_first.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_egress_boundary.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_eval_e3.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_g3_hermetic.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_ghost_check.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_gitignore.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_global_sync.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_graph_not_indexed_contract.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_http_server.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_managed_files_e4.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_memory_undo.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_opt_in.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_outcome_reconcile_p17.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_pin_generation.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_project_binding.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_project_inventory.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_prompts.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_prune_and_clean_deprecation.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_registration_heal.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_retrieval_score.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_server.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_skill_reinforcement.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_sqlite_graph.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_startup_migrations.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_synonym_widening_e5.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_tenant_isolation.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_tools_roadmap.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_tools_skills.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_tools_working.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_treesitter_parser.py +0 -0
- {codevira-4.1.0 → codevira-4.2.0}/tests/test_update_check.py +0 -0
- {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.
|
|
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
|
|
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.
|
|
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 “nested” (measured on a real machine: 1 found, 11 excluded). 4.2.0 also stops background work writing false entries to the crash log — 39 of 45 entries on that machine were one harmless line — 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 →</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,
|
|
565
|
-
|
|
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.
|
|
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 “nested” (measured on a real machine: 1 found, 11 excluded). 4.2.0 also stops background work writing false entries to the crash log — 39 of 45 entries on that machine were one harmless line — 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 →</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,
|
|
513
|
-
|
|
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.
|
|
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
|
|
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.
|
|
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 “nested” (measured on a real machine: 1 found, 11 excluded). 4.2.0 also stops background work writing false entries to the crash log — 39 of 45 entries on that machine were one harmless line — 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 →</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,
|
|
565
|
-
|
|
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
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
| **
|
|
21
|
-
| **
|
|
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
|
-
|
|
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),
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
"
|
|
124
|
-
"
|
|
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,
|
|
84
|
+
db_path,
|
|
85
|
+
attempts,
|
|
84
86
|
)
|