codevira 3.6.0__tar.gz → 3.7.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {codevira-3.6.0 → codevira-3.7.1}/CHANGELOG.md +271 -0
- codevira-3.7.1/PKG-INFO +532 -0
- codevira-3.7.1/README.md +483 -0
- codevira-3.7.1/codevira.egg-info/PKG-INFO +532 -0
- {codevira-3.6.0 → codevira-3.7.1}/codevira.egg-info/SOURCES.txt +33 -1
- {codevira-3.6.0 → codevira-3.7.1}/docs/architecture.md +24 -15
- codevira-3.7.1/docs/plans/opt-in-activation.md +236 -0
- codevira-3.7.1/docs/release-notes/v3.7.1.md +115 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/roadmap.md +22 -23
- codevira-3.7.1/docs/troubleshooting/antigravity.md +94 -0
- codevira-3.7.1/docs/troubleshooting/config-hygiene.md +161 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/vs-other-memory-tools.md +10 -12
- {codevira-3.6.0 → codevira-3.7.1}/indexer/fix_history.py +115 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/__init__.py +1 -1
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/_repair_init.py +15 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/auto_init.py +14 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli.py +311 -6
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli_init.py +92 -2
- codevira-3.7.1/mcp_server/cli_repair.py +224 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/doctor.py +136 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/memory_fanout.py +27 -1
- codevira-3.7.1/mcp_server/engine/wiring/antigravity_hooks.py +235 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/wiring/claude_code_hooks.py +14 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/global_sync.py +9 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/graph/template.html +31 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/ide_inject.py +418 -14
- codevira-3.7.1/mcp_server/migrate.py +637 -0
- codevira-3.7.1/mcp_server/opt_in.py +290 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/paths.py +338 -20
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/project_binding.py +64 -5
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/server.py +157 -12
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/setup_wizard.py +10 -3
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/agents_md_generator.py +44 -23
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/decisions_store.py +246 -4
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/digest.py +11 -1
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/fts5_index.py +10 -4
- codevira-3.7.1/mcp_server/storage/id_repair.py +305 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/jsonl_store.py +223 -5
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/manifest.py +12 -4
- codevira-3.7.1/mcp_server/storage/reconcile.py +196 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/tools/check_conflict.py +21 -99
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/tools/graph.py +54 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/tools/learning.py +143 -5
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/tools/roadmap.py +8 -0
- {codevira-3.6.0 → codevira-3.7.1}/pyproject.toml +1 -1
- codevira-3.7.1/tests/test_antigravity_hook_portable.py +83 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_auto_init.py +78 -2
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_binding_e2e.py +12 -9
- codevira-3.7.1/tests/test_claude_binding_conflict.py +246 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_cli_graph.py +25 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_cli_projects.py +15 -6
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_cli_transfer.py +5 -0
- codevira-3.7.1/tests/test_cli_untrack.py +106 -0
- codevira-3.7.1/tests/test_committed_memory.py +81 -0
- codevira-3.7.1/tests/test_decisions_store.py +113 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_doctor.py +34 -0
- codevira-3.7.1/tests/test_git_shared.py +111 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_global_sync.py +40 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_http_server.py +13 -1
- codevira-3.7.1/tests/test_id_repair.py +211 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_ide_inject.py +219 -35
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_migrate.py +63 -24
- codevira-3.7.1/tests/test_migration_memory_loss.py +222 -0
- codevira-3.7.1/tests/test_migration_no_data_loss_e2e.py +145 -0
- codevira-3.7.1/tests/test_opt_in.py +456 -0
- codevira-3.7.1/tests/test_path_glob_and_scrub.py +113 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_paths.py +154 -2
- codevira-3.7.1/tests/test_phase27_quality_fixes.py +139 -0
- codevira-3.7.1/tests/test_pin_generation.py +186 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_project_binding.py +40 -0
- codevira-3.7.1/tests/test_reconcile.py +101 -0
- codevira-3.7.1/tests/test_registration_heal.py +90 -0
- codevira-3.7.1/tests/test_remote_hijack.py +129 -0
- codevira-3.7.1/tests/test_repair_ids.py +278 -0
- codevira-3.7.1/tests/test_repair_ids_race.py +199 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_repair_init.py +62 -3
- codevira-3.7.1/tests/test_retirement_and_amendments.py +208 -0
- codevira-3.7.1/tests/test_review_round2.py +186 -0
- codevira-3.7.1/tests/test_review_round3.py +168 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_server.py +35 -17
- codevira-3.7.1/tests/test_startup_migrations.py +77 -0
- codevira-3.7.1/tests/test_supersede_on_write.py +105 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_tools_graph.py +67 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_tools_learning.py +88 -0
- codevira-3.7.1/tests/test_worktree_and_cache.py +109 -0
- codevira-3.6.0/PKG-INFO +0 -565
- codevira-3.6.0/README.md +0 -516
- codevira-3.6.0/codevira.egg-info/PKG-INFO +0 -565
- codevira-3.6.0/docs/troubleshooting/antigravity.md +0 -21
- codevira-3.6.0/mcp_server/migrate.py +0 -236
- {codevira-3.6.0 → codevira-3.7.1}/LICENSE +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/MANIFEST.in +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/agents/qa/01-code-review.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/agents/qa/02-adversarial-fix-review.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/agents/qa/03-cross-module-impact.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/agents/qa/06-doc-drift.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/agents/qa/07-security-audit.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/agents/qa/12-llm-redteam.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/agents/qa/13-multi-ide-schema.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/agents/qa/22-competitor-benchmark.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/agents/qa/README.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/agents/qa/tier2-scripts.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/agents/qa/tier3-manual.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/codevira.egg-info/dependency_links.txt +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/codevira.egg-info/entry_points.txt +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/codevira.egg-info/requires.txt +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/codevira.egg-info/top_level.txt +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/config.example.yaml +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/alpha-tester-invites.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/audit-2026-05-22.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/demo/README.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/foolproof-product-charter.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/heroes/00-engine.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/heroes/01-decision-lock.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/heroes/02-anti-regression.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/heroes/03-scope-contract.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/heroes/04-blast-radius.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/heroes/05-cross-session.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/heroes/06-token-budget.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/heroes/07-live-style.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/heroes/08-decision-replay.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/heroes/09-intent-inference.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/heroes/10-ai-promotion.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/heroes/README.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/heroes/pillar-1-setup.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/hn-launch-day.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/how-i-built-persistent-memory-for-ai-agents.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/internal/competitive-landscape.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/linkedin-article-ai-agent-memory.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/linkedin-post-ai-agent-memory.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/local-pypi-https.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/medium-your-ai-coding-agent-has-amnesia.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/morning-handoff-2026-05-22.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/plans/v2.1.2.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/plans/v2.1.3.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/plans/v2.2.0.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/plans/v3.0.0.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/qa-playbook.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/release-notes/v3.1.1.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/release-process.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/surface-cuts-2026-05-22.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/v2-completion-plan.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/v2-execution-log.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/docs/v2-master-plan.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/graph/_schema.yaml +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/indexer/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/indexer/_dedupe_migration.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/indexer/_fork_safety.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/indexer/_sqlite_util.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/indexer/chunker.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/indexer/global_db.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/indexer/graph_generator.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/indexer/index_codebase.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/indexer/outcome_classifier.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/indexer/outcome_tracker.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/indexer/sqlite_graph.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/indexer/treesitter_parser.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/__main__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/_ghost_check.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/_mcp_registry.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/_project_inventory.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/_prompts.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/_safe_crash.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli_consensus.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli_eval.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli_export.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli_graph.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli_hooks_admin.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli_induce.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli_projects.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli_reflect.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli_replay.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli_search.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli_sync.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli_transfer.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli_uninstall.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/cli_working.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/crash_logger.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/affordances.yaml +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/config.example.yaml +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/hooks/post_tool_use.sh +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/hooks/pre_tool_use.sh +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/hooks/session_start.sh +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/hooks/stop.sh +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/hooks/user_prompt_submit.sh +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/prompts/reflection_v1.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/rules/coding-standards-generic.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/rules/coding-standards-go.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/rules/coding-standards-typescript.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/rules/coding-standards.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/rules/engineering-excellence.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/rules/git-cicd-governance.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/rules/git_commits.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/rules/incremental-updates.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/rules/master_rule.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/rules/multi-language.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/rules/persistence.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/rules/resilience-observability.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/rules/smoke-testing.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/data/rules/testing-standards.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/decision_replay.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/detect.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/demo_policy.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/events.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/policies/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/policies/_region_detect.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/policies/_signature_detect.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/policies/anti_regression.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/policies/blast_radius.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/policies/decision_lock.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/policies/post_edit_refresh.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/policies/prompt_capture.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/policies/relevance_inject.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/policies/session_log_enforcer.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/policies/token_budget.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/policy.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/runner.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/signals.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/token_meter.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/wiring/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/wiring/_diff_envelope.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/engine/wiring/mcp_dispatch.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/eval/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/eval/composite.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/eval/judge.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/eval/relevance.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/eval/report.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/eval/weight_tuner.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/gitignore.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/graph/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/http_server.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/ingest/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/ingest/claude_code.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/ingest/codex.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/ingest/gemini.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/ingest/heuristics.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/ingest/models.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/ingest/scan.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/launchd.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/log_retention.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/prompts.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/roadmap_drift.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/activity_store.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/atomic.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/config.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/consensus_store.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/learned_weights.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/origin.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/outcomes_writer.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/paths.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/reflections_store.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/sanitize.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/sessions_store.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/skills_store.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/synonyms.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/token_estimator.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/storage/working_store.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/tools/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/tools/changesets.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/tools/code_reader.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/tools/consensus.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/tools/playbook.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/tools/preferences.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/tools/reflections.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/tools/search.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/tools/skills.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/tools/spatial.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/tools/working.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/mcp_server/update_check.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/rules/coding-standards.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/rules/engineering-excellence.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/rules/git-cicd-governance.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/rules/git_commits.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/rules/incremental-updates.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/rules/master_rule.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/rules/persistence.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/rules/resilience-observability.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/rules/smoke-testing.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/rules/testing-standards.md +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/setup.cfg +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test__prompts.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_call_edge_fk_safety.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_check_conflict.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_chunker.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_cli_consensus.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_cli_export.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_cli_induce.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_cli_replay.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_cli_search.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_cli_uninstall.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_cli_version.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_cli_working.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_consensus_handshake.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_crash_logger.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_cross_project_search.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_dedupe_migration.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_detect.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_e1_summary_first.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_eval_e3.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_fk_safety_extended.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_fork_safety.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_ghost_check.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_gitignore.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_global_db.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_graph_generator.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_hook_resilience.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_index_codebase.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_ingest_e2.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_launchd.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_log_retention.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_managed_files_e4.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_outcome_reconcile_p17.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_outcome_tracker.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_preferences_tools.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_prompts.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_record_decision.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_reflections.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_roadmap_drift.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_setup_wizard.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_sqlite_graph.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_sqlite_util.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_synonym_widening_e5.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_tools_code_reader.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_tools_playbook.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_tools_roadmap.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_tools_skills.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_tools_spatial.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_tools_working.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_treesitter_parser.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_update_check.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_watcher_circuit.py +0 -0
- {codevira-3.6.0 → codevira-3.7.1}/tests/test_weight_tuning_p13.py +0 -0
|
@@ -7,6 +7,277 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [3.7.1] — 2026-07-20
|
|
11
|
+
|
|
12
|
+
### Fixed — the centralization migration silently orphaned ALL memory (critical)
|
|
13
|
+
|
|
14
|
+
`migrate_to_centralized` copied `config.yaml`, `roadmap.yaml`, `graph.db` and
|
|
15
|
+
`codeindex/`, then renamed `.codevira/` → `.codevira.migrated/` — but it never
|
|
16
|
+
copied the store's memory files. Every migrated project then read as **zero
|
|
17
|
+
decisions** while its real history sat stranded in the renamed directory.
|
|
18
|
+
Observed in the wild: a project with 496 decisions showed 0 after an IDE
|
|
19
|
+
restart. The migration predates the JSONL memory files (added in 2.2.0) and was
|
|
20
|
+
never updated for them.
|
|
21
|
+
|
|
22
|
+
The root cause is that the centralized store is **write-only for memory**:
|
|
23
|
+
`storage/paths.py::codevira_dir()` hardcodes `<project>/.codevira` and is the
|
|
24
|
+
sole route for decisions, sessions, outcomes, skills, digest and manifest.
|
|
25
|
+
`get_data_dir()` — the centralized resolver — is consulted only for `graph.db`,
|
|
26
|
+
`codeindex/`, `logs/` and `config.yaml`. So the memory was copied somewhere
|
|
27
|
+
nothing reads, and the rename removed the copy that mattered.
|
|
28
|
+
|
|
29
|
+
- **Migration is now non-destructive.** It never moves memory and never renames
|
|
30
|
+
`.codevira/`. Centralization is a *mirror* of derived/global artifacts, not a
|
|
31
|
+
move of the source of truth — so nothing can be stranded, and no
|
|
32
|
+
`.codevira.migrated/` is created at all.
|
|
33
|
+
- **Self-heal on every start.** `v371_recover_orphaned_memory` restores
|
|
34
|
+
stranded memory **into the in-repo store**, checking both stranding sites,
|
|
35
|
+
never clobbering a live file, and never dragging a 20M+ graph into the repo.
|
|
36
|
+
It is exempt from the migration ledger so it can't be sealed shut by a run
|
|
37
|
+
that found nothing to do.
|
|
38
|
+
- **Backups are no longer destroyed.** A second migration used to `rmtree` an
|
|
39
|
+
existing `.codevira.migrated/` — which fired whenever a project directory was
|
|
40
|
+
renamed (new path key) and destroyed the last copy. `cleanup_legacy_dir` (and
|
|
41
|
+
therefore `codevira clean --legacy`, which described these as "harmless")
|
|
42
|
+
now refuses to delete a backup holding the only copy of a memory file.
|
|
43
|
+
- **In-repo stores are never migrated** — `git_shared: true` or a git-tracked
|
|
44
|
+
store stays put. Renaming those away broke team sharing and showed up as a
|
|
45
|
+
wall of deletions that reads like data loss.
|
|
46
|
+
|
|
47
|
+
If a project was hit before upgrading and its store was git-tracked, recover it
|
|
48
|
+
with `git checkout -- .codevira/`; otherwise the new migration restores it
|
|
49
|
+
automatically on next start.
|
|
50
|
+
|
|
51
|
+
### Fixed — sessions bound to the wrong project
|
|
52
|
+
|
|
53
|
+
Several independent defects could make a session read or write **another
|
|
54
|
+
project's** store. All were found by an adversarial review pass.
|
|
55
|
+
|
|
56
|
+
- **A rebind only bound one tool call.** The MCP SDK starts a fresh task per
|
|
57
|
+
message, and `main()` pinned the project root in the *root* context before
|
|
58
|
+
`asyncio.run`, so every task inherited that pin and clearing it only affected
|
|
59
|
+
the calling task. `set_project_dir()` therefore took effect once and every
|
|
60
|
+
later call silently reverted — the "my LH session returns UDAP's decisions"
|
|
61
|
+
symptom. A pin generation counter now invalidates inherited pins across tasks.
|
|
62
|
+
- **A shared git remote hijacked an initialized project.** The remote lookup ran
|
|
63
|
+
before the in-repo check, so any clone, fork or second checkout could be
|
|
64
|
+
routed to a sibling's store. An explicit local init now outranks a remote
|
|
65
|
+
match; the remote lookup keeps its real job (finding the store after a rename).
|
|
66
|
+
- **A ghost directory beat a real store.** The lookup matched on `metadata.json`
|
|
67
|
+
alone, so a metadata-only directory out-ranked a genuinely initialized project;
|
|
68
|
+
`glob()` order also made the winner vary between runs. Candidates now require
|
|
69
|
+
a real store and are chosen deterministically.
|
|
70
|
+
- **Git worktrees and submodules were unrecognized.** `.git` is a *file* there,
|
|
71
|
+
not a directory, so binding declined and the server kept the wrong project.
|
|
72
|
+
- **A stale cache was never re-resolved.** The "no store yet" guess was cached
|
|
73
|
+
forever, so a server already running when you ran `codevira init` kept using a
|
|
74
|
+
directory the CLI never reads.
|
|
75
|
+
|
|
76
|
+
### Fixed — `repair_ids` could destroy a concurrent decision
|
|
77
|
+
|
|
78
|
+
`repair_ids` released its read lock before taking the write lock, so a decision
|
|
79
|
+
appended in that window was overwritten by the full-file rewrite. It runs at
|
|
80
|
+
**every server start**, so a user with several IDE windows open could lose a
|
|
81
|
+
decision recorded in one while another booted. Read, transform and rewrite now
|
|
82
|
+
happen under a single exclusive lock, and a clean store is left byte-identical
|
|
83
|
+
instead of being rewritten on every boot.
|
|
84
|
+
|
|
85
|
+
### Fixed — IDE config could be replaced wholesale
|
|
86
|
+
|
|
87
|
+
`~/.claude.json` holds your OAuth account, full project history, telemetry and
|
|
88
|
+
every other MCP server. A momentarily unparseable file (a concurrent write by
|
|
89
|
+
the IDE itself, a partial sync) was treated as "missing" and the whole file was
|
|
90
|
+
replaced with a one-key document. Codevira now refuses to overwrite a config it
|
|
91
|
+
cannot read.
|
|
92
|
+
|
|
93
|
+
### Fixed — decision memory correctness
|
|
94
|
+
|
|
95
|
+
A cluster of read-layer defects, all found by adversarial review, that made
|
|
96
|
+
memory wrong rather than lost.
|
|
97
|
+
|
|
98
|
+
- **Retiring a decision now retires it everywhere.** `mark_decision_outdated`
|
|
99
|
+
hid a decision from search but the index regenerators and the AGENTS.md
|
|
100
|
+
writer ignored `is_outdated`, so it was still injected into every prompt and
|
|
101
|
+
still published to the file Cursor / Copilot / Codex / Windsurf read.
|
|
102
|
+
- **Amendments no longer inject as blank noise or reset timestamps.** The
|
|
103
|
+
regenerators read raw lines instead of the merged view, so unprotecting a
|
|
104
|
+
decision never took effect, protected decisions injected with no text, and an
|
|
105
|
+
amendment overwrote the base's creation time — silently resetting the 180-day
|
|
106
|
+
`do_not_revert` staleness clock. `ts` is now preserved (and a missing base
|
|
107
|
+
`ts` is healed rather than nulled).
|
|
108
|
+
- **A decision on a path with glob characters is findable and protectable.**
|
|
109
|
+
`list_decisions` treated the literal path as an `fnmatch` pattern, so a
|
|
110
|
+
decision on `app/[slug]/page.tsx` (every Next.js / SvelteKit / Remix dynamic
|
|
111
|
+
route) was invisible and its lock never fired.
|
|
112
|
+
- **`record_many` scrubs secrets** — it bypassed sanitization, so a credential
|
|
113
|
+
in a bulk-imported decision could reach `decisions.jsonl`, the index and the
|
|
114
|
+
committed `AGENTS.md`.
|
|
115
|
+
- **`supersede` no longer forks a chain.** Superseding an already-superseded
|
|
116
|
+
decision is refused (and points at the current head) instead of producing two
|
|
117
|
+
contradictory active decisions.
|
|
118
|
+
- **An orphan amendment survives a reordered file** (e.g. a git union-merge),
|
|
119
|
+
the human-readable `D0000NN` id scheme survives a cross-engineer merge repair,
|
|
120
|
+
and `get_session_context` now includes each decision's `id` so it can be
|
|
121
|
+
expanded.
|
|
122
|
+
|
|
123
|
+
### Added — `codevira init --shared` (team-shared memory)
|
|
124
|
+
|
|
125
|
+
Two engineers on the same repo need to see each other's decisions, which
|
|
126
|
+
requires `.codevira/` memory to stay committed. The 3.7.1 anti-bleed change
|
|
127
|
+
untracked it unconditionally, which also defeated the cross-engineer merge
|
|
128
|
+
driver: init registered a merge driver for `decisions.jsonl` *and* untracked
|
|
129
|
+
that same file in one run, so the driver could never fire.
|
|
130
|
+
|
|
131
|
+
- `codevira init --shared` writes `git_shared: true`, which keeps memory
|
|
132
|
+
git-tracked and makes `doctor`'s `committed_memory` check pass instead of warn.
|
|
133
|
+
- Default (no flag) still untracks, so cross-project bleed stays fixed for every
|
|
134
|
+
project that did not opt in. The flag persists, so a plain re-init won't undo it.
|
|
135
|
+
|
|
136
|
+
### Fixed — Claude Code bound sessions to the wrong project
|
|
137
|
+
|
|
138
|
+
A **bare** global `codevira` entry (no `--project-dir`) in `~/.claude.json`
|
|
139
|
+
out-ranks project-scoped registrations, so a session bound to a guessed project
|
|
140
|
+
instead of the one you opened — surfacing as "my LH session returns UDAP's
|
|
141
|
+
decisions". Deleting the bare entry by hand didn't stick, because every
|
|
142
|
+
subsequent `init` re-added it.
|
|
143
|
+
|
|
144
|
+
- Writing a project-scoped registration now **displaces** the conflicting bare
|
|
145
|
+
global entry.
|
|
146
|
+
- Global registration is **skipped** when project-scoped entries already exist.
|
|
147
|
+
- A global entry that deliberately pins `--project-dir` is left alone.
|
|
148
|
+
- New `doctor` check `claude_binding_conflict` reports the coexistence.
|
|
149
|
+
|
|
150
|
+
Note: Claude Desktop has a single global MCP config with no per-project scope,
|
|
151
|
+
so it can only ever point at one project.
|
|
152
|
+
|
|
153
|
+
### Fixed — Antigravity
|
|
154
|
+
- Server **degrades gracefully** ("limited mode") instead of EOF-crashing when
|
|
155
|
+
launched on an invalid root — the `/ is a system directory` crash.
|
|
156
|
+
- Antigravity gets **per-project entries, never the bare global one**.
|
|
157
|
+
- **PreToolUse hard-enforcement hook**: `do_not_revert` decisions are now
|
|
158
|
+
enforced in Antigravity, not just Claude Code.
|
|
159
|
+
|
|
160
|
+
### Fixed — cross-project memory bleed
|
|
161
|
+
- `_find_project_by_git_remote` never matches an empty/`None` remote, which had
|
|
162
|
+
made every remote-less project resolve to the same store.
|
|
163
|
+
- `init` + a new `doctor` check stop memory travelling via git-tracked
|
|
164
|
+
`.codevira/` files.
|
|
165
|
+
|
|
166
|
+
### Added
|
|
167
|
+
- `codevira untrack <project>` — surgical per-project un-register.
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## [3.7.0] — 2026-07-16
|
|
172
|
+
|
|
173
|
+
### Changed — opt-in project tracking (no more silent auto-adopt)
|
|
174
|
+
|
|
175
|
+
Codevira now tracks **only projects you explicitly `codevira init`**. With a
|
|
176
|
+
single global MCP registration its tools are available in every IDE window — but
|
|
177
|
+
previously *any* project you merely opened got a data dir and started being
|
|
178
|
+
tracked (the graph-read path alone — e.g. `get_impact` before an edit — adopted
|
|
179
|
+
it, which is how `~/.codevira/projects/` filled with dirs you never chose).
|
|
180
|
+
|
|
181
|
+
- **Un-init'd projects are inert.** Read tools return an empty payload + a
|
|
182
|
+
"run `codevira init`" hint; write tools refuse with the same hint; the engine
|
|
183
|
+
hooks (blast-radius, prompt-capture, memory fan-out) don't fire; nothing is
|
|
184
|
+
written — no `~/.codevira/projects/<key>/` dir, no `global.db` row, no
|
|
185
|
+
`.codevira-cache/`.
|
|
186
|
+
- **Existing tracked projects keep working, zero migration.** A committed
|
|
187
|
+
in-repo `.codevira/config.yaml` (or its centralized equivalent) grandfathers
|
|
188
|
+
a project in. The marker travels via git, so teammates and other IDEs inherit
|
|
189
|
+
the opt-in.
|
|
190
|
+
- **`codevira init`** is the one-time, per-project opt-in.
|
|
191
|
+
- **Escape hatch:** `CODEVIRA_AUTO_ADOPT=1` restores the pre-3.7 behavior (track
|
|
192
|
+
every project you open); `=0` is strict (refuse without hints). Default is
|
|
193
|
+
`hint`.
|
|
194
|
+
|
|
195
|
+
### Fixed
|
|
196
|
+
- **Decision-id drift within a process (D000118).** `get_project_root()`
|
|
197
|
+
re-resolved from `cwd` on every call, so a `cwd` change between `record()`
|
|
198
|
+
and `search()` in one process bound them to two different `.codevira` stores —
|
|
199
|
+
each minting ids independently (non-monotonic / duplicate ids, and a
|
|
200
|
+
just-recorded decision missing from search). The resolved root is now pinned
|
|
201
|
+
for the request; a later drift logs a WARN but the pin wins.
|
|
202
|
+
- **Activity heatmap blind to some edits.** `NotebookEdit` (`notebook_path`) and
|
|
203
|
+
camelCase MCP tools logged `<unknown>` instead of the file they touched; the
|
|
204
|
+
edit-path resolver now covers the full key set.
|
|
205
|
+
- **Anti-Regression fix-history went stale on long-lived servers.** The git
|
|
206
|
+
`fix:`-commit scan ran once at startup; it now self-freshens (HEAD-gated) on
|
|
207
|
+
read, so `fix:` commits made after boot are seen without a restart.
|
|
208
|
+
|
|
209
|
+
### Added — memory freshness (stale decisions no longer block you)
|
|
210
|
+
- **`mark_decision_outdated(id, reason)`** — tombstone a decision that's simply
|
|
211
|
+
no longer true so it stops surfacing in `get_session_context` /
|
|
212
|
+
`search_decisions` / `list_decisions`, without deleting it (reversible via
|
|
213
|
+
`set_decision_flag(is_outdated=false)`).
|
|
214
|
+
- **Freshness ranking on read.** `get_session_context` now hides superseded,
|
|
215
|
+
outdated, and `outcome=reverted` decisions from `recent_decisions`.
|
|
216
|
+
- **Supersede-on-write.** `record_decision` now *supersedes* a strong,
|
|
217
|
+
unprotected near-duplicate instead of appending a parallel twin (the way
|
|
218
|
+
stale twins used to accumulate). Protected (`do_not_revert`) near-duplicates
|
|
219
|
+
are never auto-superseded — the conflict is surfaced for you to act on.
|
|
220
|
+
Opt out with `force=True` or `CODEVIRA_SUPERSEDE_ON_RECORD=0`.
|
|
221
|
+
|
|
222
|
+
### Added — cross-engineer, one repo
|
|
223
|
+
- **Deterministic decision-id collision repair.** When two engineers on two
|
|
224
|
+
branches both mint the same id, `git merge` combines the appended lines
|
|
225
|
+
cleanly and one decision used to be silently shadowed on read. New:
|
|
226
|
+
- `read_merged` now WARNS on a base-id collision instead of hiding it.
|
|
227
|
+
- **`codevira repair-ids [--apply] [--semantic]`** — deterministic repair:
|
|
228
|
+
the earliest writer keeps the id; the loser gets a content-derived id;
|
|
229
|
+
byte-identical duplicates are dropped. `--semantic` also *reports*
|
|
230
|
+
near-duplicate decisions (different ids, similar text) for review — never
|
|
231
|
+
auto-merged. Idempotent; converges (a fixed point, so it can't oscillate).
|
|
232
|
+
- **git merge driver** (`codevira merge-driver`) registered by `codevira init`
|
|
233
|
+
via `.gitattributes` + git config, so collisions resolve automatically on
|
|
234
|
+
`git merge` / rebase — both engineers converge to byte-identical output.
|
|
235
|
+
|
|
236
|
+
### Added — one MCP registration for all your projects
|
|
237
|
+
- **Single user-scope registration by default.** `codevira init` now registers
|
|
238
|
+
ONE user-scope MCP server instead of a per-project entry, so N projects no
|
|
239
|
+
longer create N codevira servers in your IDE. The single server resolves the
|
|
240
|
+
active project from the MCP client's workspace roots at runtime. IDEs that
|
|
241
|
+
can't do project-agnostic config (Claude Desktop, Antigravity) still get a
|
|
242
|
+
per-project entry. Opt back with `codevira init --per-project` or
|
|
243
|
+
`CODEVIRA_INIT_PER_PROJECT=1`.
|
|
244
|
+
- **Per-request project-root pin.** The project-root pin is now a `ContextVar`
|
|
245
|
+
— scoped per request instead of process-global, so it can't leak across
|
|
246
|
+
requests. (Each IDE window already runs its own codevira process bound to its
|
|
247
|
+
workspace; one process serving many projects *concurrently* also needs the
|
|
248
|
+
explicit override to be per-request, which is a follow-on.)
|
|
249
|
+
|
|
250
|
+
### Added — automatic, non-breaking upgrade (self-heal, zero manual steps)
|
|
251
|
+
- **Startup self-heal.** `migrate.run_startup_migrations()` runs at server
|
|
252
|
+
startup: version/ledger-gated (each step runs at most once), lock-protected
|
|
253
|
+
(concurrent IDE processes can't race), backup-first, and failure-isolated (it
|
|
254
|
+
can never block startup). Users never run a manual command after upgrading.
|
|
255
|
+
- **Pre-3.7 id collisions are repaired automatically** — backup to
|
|
256
|
+
`decisions.jsonl.bak-pre-v370`, then the deterministic repair, through the
|
|
257
|
+
same exclusive lock + atomic replace a normal append uses (safe during
|
|
258
|
+
active use — a concurrent `record_decision` is serialized, not lost).
|
|
259
|
+
- **The decision-log merge driver self-installs.**
|
|
260
|
+
- **A stale per-project MCP entry is removed** — but only when a global entry
|
|
261
|
+
already exists, so a per-project-only user is never orphaned
|
|
262
|
+
(`heal_stale_registration`, surgical + atomic; other `mcpServers` preserved).
|
|
263
|
+
`codevira init` global-mode also removes it right after writing the global
|
|
264
|
+
entry, so re-init never leaves a duplicate.
|
|
265
|
+
- **`doctor` gains a `decision_collisions` check** that surfaces any collision
|
|
266
|
+
the one-time startup heal wouldn't re-catch (18 checks total).
|
|
267
|
+
- **AGENTS.md carries a branded, token-guard usage line** — steers the agent to
|
|
268
|
+
the codevira MCP tools and away from reading `.codevira/*.jsonl` directly
|
|
269
|
+
(which would cost tens of thousands of tokens). The 5 KB block cap is now a
|
|
270
|
+
hard cap.
|
|
271
|
+
- Fixed a `clean`-path bug: per-project Claude cleanup targeted
|
|
272
|
+
`.claude/settings.json`, but the MCP entry lives in `.mcp.json`.
|
|
273
|
+
|
|
274
|
+
### Internal
|
|
275
|
+
- Extracted the shared decision-similarity core (`storage/reconcile.py`) used by
|
|
276
|
+
`check_conflict`, `consensus`, supersede-on-write, and the cross-engineer
|
|
277
|
+
reconcile — single source of truth for the Jaccard/overlap classification.
|
|
278
|
+
|
|
279
|
+
---
|
|
280
|
+
|
|
10
281
|
## [3.6.0] — 2026-06-27
|
|
11
282
|
|
|
12
283
|
### Added
|