codevira 4.0.0b1__tar.gz → 4.1.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.0.0b1 → codevira-4.1.0}/CHANGELOG.md +630 -0
- codevira-4.1.0/PKG-INFO +680 -0
- codevira-4.1.0/README.md +628 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/agents/qa/tier2-scripts.md +1 -1
- codevira-4.1.0/codevira.egg-info/PKG-INFO +680 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/codevira.egg-info/SOURCES.txt +3 -2
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/architecture.md +4 -1
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/troubleshooting/config-hygiene.md +1 -1
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/v2-master-plan.md +19 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/indexer/graph_generator.py +46 -4
- codevira-4.0.0b1/indexer/chunker.py → codevira-4.1.0/indexer/imports.py +75 -379
- {codevira-4.0.0b1 → codevira-4.1.0}/indexer/index_codebase.py +129 -491
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/__init__.py +1 -1
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/_ghost_check.py +17 -9
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/_project_inventory.py +99 -38
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/auto_init.py +1 -1
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli.py +67 -126
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli_init.py +19 -8
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli_projects.py +2 -2
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/policies/relevance_inject.py +22 -1
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/gitignore.py +181 -64
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/ide_inject.py +57 -6
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/migrate.py +61 -3
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/paths.py +1 -1
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/project_binding.py +93 -4
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/retrieval/score.py +92 -2
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/server.py +21 -10
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/decisions_store.py +86 -10
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/digest.py +16 -1
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/fts5_index.py +38 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/id_repair.py +41 -7
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/jsonl_store.py +11 -1
- codevira-4.1.0/mcp_server/storage/reconcile.py +505 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/tools/check_conflict.py +23 -4
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/tools/learning.py +133 -6
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/tools/search.py +6 -8
- {codevira-4.0.0b1 → codevira-4.1.0}/pyproject.toml +1 -1
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/test_product_invariants.py +12 -6
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_relevance_inject.py +91 -4
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_decisions_store.py +141 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_digest.py +13 -2
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_jsonl_store.py +89 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_score_breakdown.py +75 -1
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_check_conflict.py +31 -6
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_ghost_check.py +119 -1
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_git_shared.py +91 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_graph_generator.py +101 -1
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_id_repair.py +85 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_ide_inject.py +146 -2
- codevira-4.1.0/tests/test_imports.py +560 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_index_codebase.py +266 -564
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_project_binding.py +146 -0
- codevira-4.1.0/tests/test_project_inventory.py +188 -0
- codevira-4.1.0/tests/test_prune_and_clean_deprecation.py +103 -0
- codevira-4.1.0/tests/test_reconcile.py +446 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_retrieval_score.py +121 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_server.py +138 -0
- codevira-4.1.0/tests/test_startup_migrations.py +183 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_supersede_on_write.py +70 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_tools_learning.py +346 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_treesitter_parser.py +1 -1
- codevira-4.0.0b1/PKG-INFO +0 -577
- codevira-4.0.0b1/README.md +0 -525
- codevira-4.0.0b1/codevira.egg-info/PKG-INFO +0 -577
- codevira-4.0.0b1/mcp_server/storage/reconcile.py +0 -196
- codevira-4.0.0b1/tests/test_chunker.py +0 -1105
- codevira-4.0.0b1/tests/test_prune_and_clean_deprecation.py +0 -151
- codevira-4.0.0b1/tests/test_reconcile.py +0 -107
- codevira-4.0.0b1/tests/test_startup_migrations.py +0 -77
- {codevira-4.0.0b1 → codevira-4.1.0}/LICENSE +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/MANIFEST.in +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/agents/qa/01-code-review.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/agents/qa/02-adversarial-fix-review.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/agents/qa/03-cross-module-impact.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/agents/qa/06-doc-drift.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/agents/qa/07-security-audit.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/agents/qa/12-llm-redteam.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/agents/qa/13-multi-ide-schema.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/agents/qa/22-competitor-benchmark.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/agents/qa/README.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/agents/qa/tier3-manual.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/codevira.egg-info/dependency_links.txt +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/codevira.egg-info/entry_points.txt +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/codevira.egg-info/requires.txt +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/codevira.egg-info/top_level.txt +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/config.example.yaml +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/alpha-tester-invites.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/audit-2026-05-22.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/demo/README.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/foolproof-product-charter.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/heroes/00-engine.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/heroes/01-decision-lock.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/heroes/02-anti-regression.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/heroes/03-scope-contract.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/heroes/04-blast-radius.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/heroes/05-cross-session.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/heroes/06-token-budget.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/heroes/07-live-style.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/heroes/08-decision-replay.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/heroes/09-intent-inference.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/heroes/10-ai-promotion.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/heroes/README.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/heroes/pillar-1-setup.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/hn-launch-day.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/how-i-built-persistent-memory-for-ai-agents.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/internal/4.0-beta.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/internal/architecture-4.0.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/internal/competitive-landscape.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/internal/memory-strategy-2026-07.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/linkedin-article-ai-agent-memory.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/linkedin-post-ai-agent-memory.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/local-pypi-https.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/medium-your-ai-coding-agent-has-amnesia.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/morning-handoff-2026-05-22.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/plans/opt-in-activation.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/plans/v2.1.2.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/plans/v2.1.3.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/plans/v2.2.0.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/plans/v3.0.0.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/qa-playbook.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/release-notes/v3.1.1.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/release-notes/v3.7.1.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/release-process.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/roadmap.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/surface-cuts-2026-05-22.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/troubleshooting/antigravity.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/v2-completion-plan.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/v2-execution-log.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/docs/vs-other-memory-tools.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/graph/_schema.yaml +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/indexer/__init__.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/indexer/_dedupe_migration.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/indexer/_fork_safety.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/indexer/_sqlite_util.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/indexer/fix_history.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/indexer/global_db.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/indexer/outcome_classifier.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/indexer/sqlite_graph.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/indexer/treesitter_parser.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/__main__.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/_mcp_registry.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/_prompts.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/_repair_init.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/_safe_crash.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli_eval.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli_export.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli_graph.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli_hooks_admin.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli_induce.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli_memory.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli_repair.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli_replay.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli_search.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli_sync.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli_transfer.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli_uninstall.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/cli_working.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/crash_logger.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/__init__.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/config.example.yaml +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/hooks/post_tool_use.sh +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/hooks/pre_tool_use.sh +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/hooks/session_start.sh +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/hooks/stop.sh +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/hooks/user_prompt_submit.sh +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/rules/coding-standards-generic.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/rules/coding-standards-go.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/rules/coding-standards-typescript.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/rules/coding-standards.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/rules/engineering-excellence.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/rules/git-cicd-governance.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/rules/git_commits.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/rules/incremental-updates.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/rules/master_rule.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/rules/multi-language.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/rules/persistence.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/rules/resilience-observability.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/rules/smoke-testing.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/data/rules/testing-standards.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/decision_replay.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/detect.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/doctor.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/egress.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/__init__.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/audit.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/demo_policy.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/events.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/memory_fanout.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/policies/__init__.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/policies/_region_detect.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/policies/_signature_detect.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/policies/anti_regression.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/policies/blast_radius.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/policies/decision_lock.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/policies/post_edit_refresh.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/policies/session_log_enforcer.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/policies/token_budget.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/policy.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/runner.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/signals.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/token_meter.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/wiring/__init__.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/wiring/_diff_envelope.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/wiring/antigravity_hooks.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/wiring/claude_code_hooks.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/wiring/git_hooks.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/engine/wiring/mcp_dispatch.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/eval/__init__.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/eval/judge.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/eval/relevance.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/eval/report.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/global_sync.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/graph/__init__.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/graph/template.html +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/http_server.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/launchd.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/log_retention.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/memory_undo.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/opt_in.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/prompts.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/register_all.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/retrieval/__init__.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/roadmap_drift.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/setup_wizard.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/__init__.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/activity_store.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/agents_md_generator.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/anchor.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/atomic.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/config.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/manifest.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/origin.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/outcomes_writer.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/paths.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/sanitize.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/sessions_store.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/skills_store.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/synonyms.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/text.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/token_estimator.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/uid.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/storage/working_store.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/tenant.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/tools/__init__.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/tools/graph.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/tools/playbook.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/tools/provenance.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/tools/roadmap.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/tools/skills.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/tools/working.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/mcp_server/update_check.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/rules/coding-standards.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/rules/engineering-excellence.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/rules/git-cicd-governance.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/rules/git_commits.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/rules/incremental-updates.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/rules/master_rule.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/rules/persistence.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/rules/resilience-observability.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/rules/smoke-testing.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/rules/testing-standards.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/setup.cfg +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/conftest.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/__init__.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/code_only_python/README.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/code_only_python/pyproject.toml +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/code_only_python/src/widgets.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/code_only_python/tests/test_widgets.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/conftest.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/docs_only/CONTRIBUTING.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/docs_only/README.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/docs_only/docs/architecture.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/docs_only/package.json +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/monorepo/README.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/monorepo/package.json +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/monorepo/packages/foo/package.json +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/monorepo/packages/foo/src/index.ts +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/polyglot/CLAUDE.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/polyglot/README.md +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/polyglot/config/settings.yaml +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/polyglot/pyproject.toml +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/polyglot/src/api.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/fixtures/polyglot/src/client.ts +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/test_cross_tool_universality.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/test_first_contact.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/test_qa_round_v2_completion.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/test_v2_release_candidate.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/e2e/test_v350_acceptance.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/__init__.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_anti_regression.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_antigravity_hooks.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_audit.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_blast_radius.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_block_message_evidence.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_claude_native_memory.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_decision_lock.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_decision_replay.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_diff_envelope.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_events.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_evidence_reaches_readers.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_fix_history.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_git_hook_enforcement.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_integration.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_memory_fanout.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_policies.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_qa_p0_fixes.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_qa_round3.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_qa_round4.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_qa_round5.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_qa_round_week13.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_region_detect.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_runner.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_session_log_enforcer.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_signals_project_scoping.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_token_budget.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_token_meter.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/engine/test_week2_edge_cases.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/integration/__init__.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/integration/test_help_text_consistency.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/integration/test_mcp_roundtrip.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/integration/test_sandboxed_parent.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/__init__.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_activity_store.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_agents_md_generator.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_amendment_provenance.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_anchor_derivation.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_atomic.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_concurrent_writes.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_cross_process_writes.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_device_identity.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_fts5_index.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_id_repair_references.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_manifest.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_origin.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_sanitize.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_search_perf_caches.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_session_identity.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_skills_store.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_stranded_parameters.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_token_estimator.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_uid.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_uid_edges.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/storage/test_working_store.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test__prompts.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_antigravity_hook_portable.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_auto_init.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_binding_conflict_detection.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_binding_e2e.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_call_edge_fk_safety.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_claude_binding_conflict.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_cli_export.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_cli_graph.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_cli_induce.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_cli_projects.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_cli_replay.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_cli_search.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_cli_transfer.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_cli_uninstall.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_cli_untrack.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_cli_version.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_cli_working.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_committed_memory.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_crash_logger.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_cross_project_search.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_decisions_store.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_dedupe_migration.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_detect.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_doctor.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_e1_summary_first.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_egress_boundary.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_eval_e3.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_fk_safety_extended.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_fork_safety.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_g3_hermetic.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_gitignore.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_global_db.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_global_home_isolation.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_global_sync.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_graph_not_indexed_contract.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_hook_resilience.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_http_server.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_launchd.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_log_retention.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_managed_files_e4.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_memory_undo.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_migrate.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_migration_memory_loss.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_migration_no_data_loss_e2e.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_opt_in.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_outcome_reconcile_p17.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_path_glob_and_scrub.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_paths.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_phase27_quality_fixes.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_pin_generation.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_pre_release_block_hook.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_prompts.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_record_decision.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_register_all.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_registration_heal.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_remote_hijack.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_removed_tool_migration.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_repair_ids.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_repair_ids_race.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_repair_init.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_retirement_and_amendments.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_review_round2.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_review_round3.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_roadmap_drift.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_sdist_completeness.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_setup_wizard.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_skill_reinforcement.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_sqlite_graph.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_sqlite_util.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_subprocess_imports_working_tree.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_synonym_widening_e5.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_tenant_isolation.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_tools_graph.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_tools_playbook.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_tools_roadmap.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_tools_skills.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_tools_working.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_update_check.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_watcher_circuit.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_working_promote_skill.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_worktree_and_cache.py +0 -0
- {codevira-4.0.0b1 → codevira-4.1.0}/tests/test_worktree_shared_memory.py +0 -0
|
@@ -9,6 +9,636 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
|
|
13
|
+
## [4.1.0] — 2026-08-16
|
|
14
|
+
|
|
15
|
+
**If you are on 4.0.1, upgrade.** That release will silently replace a decision
|
|
16
|
+
with its own negation: supersede-on-write is on by default and fires at Jaccard
|
|
17
|
+
≥ 0.75, while `"never do X"` and `"do X"` score **0.75–0.83** against each other.
|
|
18
|
+
Measured on the shipped 4.0.1 artifact, not inferred. Only `do_not_revert`
|
|
19
|
+
decisions were exempt. The guard that fixes it is below, and it is the reason
|
|
20
|
+
this release exists.
|
|
21
|
+
|
|
22
|
+
Also here: a workspace root that is a *subdirectory* of your project no longer
|
|
23
|
+
binds to the wrong project, and `get_session_context` now ranks the brief by
|
|
24
|
+
recency × outcome-confidence instead of write order — the one change in this
|
|
25
|
+
release that alters observable output of a documented tool, and so the reason
|
|
26
|
+
this is a minor rather than a patch.
|
|
27
|
+
|
|
28
|
+
`reconcile.cluster_store()` and `reconcile.pick_canonical()` (Phases 25 and 29)
|
|
29
|
+
land as **library internals**. They are complete and tested, but nothing calls
|
|
30
|
+
them yet — no MCP tool, no CLI subcommand. They are groundwork for a merge
|
|
31
|
+
surface, listed here for contributors, not as capabilities you can invoke.
|
|
32
|
+
|
|
33
|
+
### Fixed — a workspace root inside a project no longer binds to the wrong project
|
|
34
|
+
|
|
35
|
+
An MCP client advertises its workspace roots, and codevira uses them to bind to
|
|
36
|
+
the right project when the server is not pinned. Measured against Claude Code
|
|
37
|
+
2.1.221: `roots/list` returns the **literal session directory**, so opening
|
|
38
|
+
`~/repo/packages/web` advertises that path — not `~/repo`.
|
|
39
|
+
|
|
40
|
+
Such a root has neither `.codevira/` nor `.git/`, so it matched no branch of
|
|
41
|
+
`pick_project_root`, fell through to "first valid root", and `choose_binding`
|
|
42
|
+
then kept the inherited cwd. The binding silently landed on whatever project
|
|
43
|
+
the process happened to start in — precisely the failure roots-binding exists
|
|
44
|
+
to prevent.
|
|
45
|
+
|
|
46
|
+
Each candidate root is now resolved to its **enclosing** initialized codevira
|
|
47
|
+
project before being classified, and duplicates are dropped — so `--add-dir`
|
|
48
|
+
of two subdirectories of one repo is one project, not an ambiguous multi-root
|
|
49
|
+
workspace.
|
|
50
|
+
|
|
51
|
+
This closes the same split already documented in `_is_git_repo`: `paths.
|
|
52
|
+
_discover_project_root` has always walked upward, while `pick_project_root`
|
|
53
|
+
judged each root as-is. Two layers disagreeing about what counts as a project.
|
|
54
|
+
|
|
55
|
+
Deliberately the `.codevira` walk **only**, not the generic marker walk — a
|
|
56
|
+
walk that stopped at a bare `.git` would let `choose_binding` rule 2 auto-init
|
|
57
|
+
`.codevira` at a monorepo root the user never opted into. The `$HOME` refusal
|
|
58
|
+
is load-bearing rather than defensive: `~/.codevira` always exists, so an
|
|
59
|
+
unguarded walk would bind every marker-less folder to `$HOME` (the v1.8.0
|
|
60
|
+
rogue-`$HOME`-project crash).
|
|
61
|
+
|
|
62
|
+
Proved end-to-end over the real MCP wire, not only in unit tests: with roots
|
|
63
|
+
pointing at `…/packages/web/src` and cwd set to a *different* project, the
|
|
64
|
+
patched server binds to the enclosing project while the unpatched build binds
|
|
65
|
+
to cwd. *(Tests: `TestSubdirectoryRoots` (6) — 4 fail without the change; 2
|
|
66
|
+
are regression guards for the `$HOME` and bare-`.git` limits.)*
|
|
67
|
+
|
|
68
|
+
### Added — `get_session_context` ranks by recency × outcome-confidence (Phase 26)
|
|
69
|
+
|
|
70
|
+
`recent_decisions` was a binary filter: drop reverted and outdated, then take
|
|
71
|
+
whatever the store returned first. That made the catch-me-up brief a function
|
|
72
|
+
of **write order** — a decision recorded months ago and never confirmed could
|
|
73
|
+
outrank one the git outcome-tracker watched survive last week.
|
|
74
|
+
|
|
75
|
+
Survivors are now ranked. Every signal is already on the row, so this costs no
|
|
76
|
+
extra I/O:
|
|
77
|
+
|
|
78
|
+
| signal | weight |
|
|
79
|
+
|---|---|
|
|
80
|
+
| `outcome="kept"` — the tracker watched the file survive | 1.0 |
|
|
81
|
+
| `outcome` unset — nothing has tested it | 0.7 |
|
|
82
|
+
| `outcome="modified"` — the file changed underneath it | 0.4 |
|
|
83
|
+
| `dnr_soft_expired` — a lock nobody re-confirmed | × 0.5 |
|
|
84
|
+
| recency | exponential, 90-day half-life |
|
|
85
|
+
|
|
86
|
+
Ranking replaces the *ordering*, not the filter: reverted and outdated
|
|
87
|
+
decisions are still hidden entirely.
|
|
88
|
+
|
|
89
|
+
### Added — the same ranking now reaches `search` and prompt injection
|
|
90
|
+
|
|
91
|
+
Phase 26 names **three** read surfaces. Only the session brief got the ranking
|
|
92
|
+
at first; `search` and the relevance-injection hook still ordered purely by
|
|
93
|
+
keyword relevance, so a two-year-old decision the tracker never validated
|
|
94
|
+
outranked a current one scoring a hair lower on BM25.
|
|
95
|
+
|
|
96
|
+
The arithmetic now lives once, in `retrieval.score.freshness()` —
|
|
97
|
+
`outcome_weight × recency_decay`, both of which already existed there while
|
|
98
|
+
three separate copies of the same table sat in `learning.py`, `digest.py` and
|
|
99
|
+
`score.py`. `now` is a **required** keyword argument, unlike `recency_decay`
|
|
100
|
+
which defaults it: one instant must cover a whole comparison, and having no
|
|
101
|
+
default makes the sample-per-row bug unrepresentable rather than discouraged.
|
|
102
|
+
|
|
103
|
+
**`search`** re-ranks by `rank_norm × freshness` and reports `freshness` in
|
|
104
|
+
`score_breakdown`, so an order the reader cannot explain stays impossible. The
|
|
105
|
+
`limit` cap moved *after* ranking — it used to sit inside the BM25 loop, so
|
|
106
|
+
freshness could only reorder rows relevance had already selected. `score` is
|
|
107
|
+
still raw BM25; its meaning is unchanged for callers.
|
|
108
|
+
|
|
109
|
+
**The injection hook** could not do this at all before: it scores digest rows,
|
|
110
|
+
and the digest carried no timestamp from any source (the manifest holds bare id
|
|
111
|
+
lists). `digest_record` now carries `ts` and the raw `outcome` label. `weight`
|
|
112
|
+
alone could not serve — it is a pre-applied, lossy derivative that collapses
|
|
113
|
+
"no outcome" and "unrecognised outcome" onto 0.5 and cannot be re-tabled by a
|
|
114
|
+
caller needing different weights.
|
|
115
|
+
|
|
116
|
+
One deliberate divergence, stated rather than smoothed away: the brief scores
|
|
117
|
+
`modified` **below** an untested decision, search scores it **above**. In a
|
|
118
|
+
catch-up brief churn is the liability that earns `needs_review`; in a search it
|
|
119
|
+
means you asked about this area and someone touched it recently. Same
|
|
120
|
+
arithmetic, two named tables, both in `retrieval/score.py` with the reasoning.
|
|
121
|
+
|
|
122
|
+
> **Existing projects:** the digest is appended incrementally, so decisions
|
|
123
|
+
> recorded before this release keep their old rows until something rebuilds
|
|
124
|
+
> them. Those rows fall back to the previous behaviour *exactly* — not to a
|
|
125
|
+
> neutral score, which would have halved them and pushed real matches under the
|
|
126
|
+
> injection threshold. Run `codevira sync` to rebuild immediately; otherwise it
|
|
127
|
+
> heals as the outcome tracker rewrites the digest.
|
|
128
|
+
|
|
129
|
+
### Added — a churn nudge on decisions whose file moved
|
|
130
|
+
|
|
131
|
+
`outcome="modified"` is exactly the churn signal Phase 26 asks for — the
|
|
132
|
+
tracker saw the decision's file change but not disappear. Those rows now carry
|
|
133
|
+
`needs_review` and a hint to `reaffirm_decision` if the decision still holds,
|
|
134
|
+
or `supersede_decision` / `mark_decision_outdated` if it does not. It needs a
|
|
135
|
+
human verdict, not
|
|
136
|
+
silent removal. The keys are absent on every other row, so the brief stays
|
|
137
|
+
lean.
|
|
138
|
+
|
|
139
|
+
### Fixed — the ranking clock is sampled once, not per row
|
|
140
|
+
|
|
141
|
+
Caught by a tie test while building the above, and worth recording because the
|
|
142
|
+
bug is invisible by inspection: the rank key read `datetime.now()` **inside**
|
|
143
|
+
the sort, so rows evaluated later came out microseconds younger. The score was
|
|
144
|
+
a function of evaluation order rather than of the data, and the sort quietly
|
|
145
|
+
preserved whatever order it was given. `_age_days` now takes the reference
|
|
146
|
+
instant, and any caller ranking a collection must pass one. Unpinning it turns
|
|
147
|
+
the tie test red on 5 runs out of 5.
|
|
148
|
+
|
|
149
|
+
### Fixed — a decision and its negation were classified as duplicates
|
|
150
|
+
|
|
151
|
+
`"never switch the package manager away from pnpm"` and the same sentence
|
|
152
|
+
without `never` differ by one token, so pure set math scores them **Jaccard
|
|
153
|
+
0.83** — comfortably over the 0.60 duplicate threshold.
|
|
154
|
+
|
|
155
|
+
That is the worst false positive available in this codebase. The classifier is
|
|
156
|
+
shared: Tier-1 would have aliased one meaning away, and **supersede-on-write
|
|
157
|
+
would have retired `"never do X"` as a duplicate of `"do X"`**. A protected
|
|
158
|
+
decision is guarded there, but an unprotected one was not.
|
|
159
|
+
|
|
160
|
+
A negation present on one side and absent on the other is now a **conflict by
|
|
161
|
+
construction**, whatever the similarity says. It stays fully deterministic — a
|
|
162
|
+
set difference against a fixed word list, no model. The guard keys on
|
|
163
|
+
*disagreement*, so two decisions that both say `never` are still duplicates.
|
|
164
|
+
|
|
165
|
+
### Added — Tier-1 store clustering: `reconcile.cluster_store()` (Phase 25)
|
|
166
|
+
|
|
167
|
+
Tier-0 (`id_repair`) resolves records that collide on an **id**. Tier-1
|
|
168
|
+
resolves records that say the same **thing** in different words — two engineers
|
|
169
|
+
recording the same decision independently, each with its own id.
|
|
170
|
+
|
|
171
|
+
Returns `{merges, conflicts, scanned, truncated}`. Duplicate grouping is
|
|
172
|
+
transitive via union-find, so A~C and B~C land in one cluster even when A and B
|
|
173
|
+
alone would not classify as duplicates — otherwise the same decision survives
|
|
174
|
+
twice under two canonical ids. Ordering is total before any pairing, so two
|
|
175
|
+
engineers running it over the same store get the same plan.
|
|
176
|
+
|
|
177
|
+
Conflicts come back as **data, never a silent pick**: the structural tier is
|
|
178
|
+
authoritative and this one is assistive. The phase specified routing
|
|
179
|
+
escalations through `consensus_store`, which was removed in 4.0 — returning
|
|
180
|
+
them keeps this layer free of I/O and lets the caller choose the surface.
|
|
181
|
+
|
|
182
|
+
The O(n²) scan is bounded at 2,000 records and the bound is **reported**
|
|
183
|
+
(`truncated`) rather than silently applied.
|
|
184
|
+
|
|
185
|
+
### Added — `reconcile.pick_canonical()`: the deterministic merge winner (Phase 29)
|
|
186
|
+
|
|
187
|
+
The reconcile core could classify a pair as duplicate / conflict / distinct,
|
|
188
|
+
but nothing decided **which record survives** a duplicate cluster. That pick is
|
|
189
|
+
what both the cross-engineer Tier-1 reconcile (Phase 25) and any future
|
|
190
|
+
merge surface consume, so it belongs in the shared core rather than in either
|
|
191
|
+
caller, where it would drift.
|
|
192
|
+
|
|
193
|
+
Returns the canonical record, the union of `tags` and `origin` provenance
|
|
194
|
+
across the cluster, and an **alias map** `old_id → canonical_id` so `[[Dxxxx]]`
|
|
195
|
+
references still resolve after a merge.
|
|
196
|
+
|
|
197
|
+
The winner order is total, and every component is a pure function of the
|
|
198
|
+
record:
|
|
199
|
+
|
|
200
|
+
1. **protected first** — merging a `do_not_revert` record into an unprotected
|
|
201
|
+
one would silently drop the protection, so a lock outranks a plain decision
|
|
202
|
+
regardless of age;
|
|
203
|
+
2. **earliest `ts`** — the oldest id is the one other decisions are most likely
|
|
204
|
+
to reference, so keeping it minimises alias churn;
|
|
205
|
+
3. **writer id**, then **content hash**, then **id** — the components that keep
|
|
206
|
+
the order strict once the first two collide.
|
|
207
|
+
|
|
208
|
+
Two or more *protected* members disagreeing on text sets `ambiguous`. That is a
|
|
209
|
+
real conflict, not a duplicate: the pick stays reproducible, but the caller
|
|
210
|
+
must escalate rather than merge. The committed text is always one of the
|
|
211
|
+
inputs — an LLM may suggest a merged wording upstream, but committing
|
|
212
|
+
synthesised text would make the result a function of sampling instead of
|
|
213
|
+
content, and convergence would be gone.
|
|
214
|
+
|
|
215
|
+
The id tiebreak is load-bearing, not belt-and-braces. Without it, records
|
|
216
|
+
differing only by id hash identically, tie on every component, and `sorted`
|
|
217
|
+
falls back to input position — the same defect fixed in `id_repair` this
|
|
218
|
+
release. A permutation test over the full cluster caught it here *before* it
|
|
219
|
+
shipped; the older order test could not have, because its two entries had
|
|
220
|
+
different similarities so nothing was ever contested. That test now uses
|
|
221
|
+
identical texts. *(Tests: `TestPickCanonical` (7), rewritten
|
|
222
|
+
`test_deterministic_order_independent`.)*
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
## [4.0.1] — 2026-08-12
|
|
226
|
+
|
|
227
|
+
Repairs team-shared memory (`init --shared` never actually worked), removes the
|
|
228
|
+
deprecated `codevira clean` command (a footgun — see below), and lands two
|
|
229
|
+
`doctor` / project-inventory fixes. Existing memory, decision data and MCP
|
|
230
|
+
bindings are unchanged.
|
|
231
|
+
|
|
232
|
+
### Fixed — the code graph had no import edges unless your code lived in `src/`
|
|
233
|
+
|
|
234
|
+
`get_impact` returned nothing. Not "no callers found" — *structurally* nothing,
|
|
235
|
+
for any project not laid out as `src/`. On codevira's own repo the graph held
|
|
236
|
+
**1,197 nodes and 0 edges**, and had done since at least 1 August.
|
|
237
|
+
|
|
238
|
+
Import resolution decides "is this import project-local?" by checking whether it
|
|
239
|
+
starts with a known project package, and that set came from `watched_dirs` in
|
|
240
|
+
`config.yaml` — with a hardcoded `["src"]` fallback when the key is absent. It is
|
|
241
|
+
absent in the common case: the legacy `init` scaffold writes `watched_dirs` into
|
|
242
|
+
`<data_dir>/config.yaml`, the v2.2 scaffold writes `<project>/.codevira/config.yaml`
|
|
243
|
+
**without** it, and creating that second file is precisely what flips
|
|
244
|
+
`get_data_dir()` to the in-repo path — so the config that wins is the one missing
|
|
245
|
+
the key. Every import then failed the gate, no edge was ever written, and
|
|
246
|
+
`get_impact` — the tool `CLAUDE.md` instructs every agent to call before editing —
|
|
247
|
+
answered "blast radius 0" for everything.
|
|
248
|
+
|
|
249
|
+
The package set is now the configured `watched_dirs` **unioned with** the
|
|
250
|
+
directories that actually look importable on disk. A union, not a replacement: it
|
|
251
|
+
can only add correct edges, so no existing project's graph can shrink on upgrade.
|
|
252
|
+
`node_modules`, `.venv`, `build` and friends are excluded, and resolution still
|
|
253
|
+
requires the target file to exist, so `import os` does not become an edge.
|
|
254
|
+
|
|
255
|
+
Measured on this repo after the fix: **793 import edges**, and
|
|
256
|
+
`get_impact("mcp_server/paths.py")` reports a blast radius of 186 where it
|
|
257
|
+
previously reported 0.
|
|
258
|
+
|
|
259
|
+
**No action needed on upgrade.** A graph already on disk stays edgeless until
|
|
260
|
+
something rebuilds it, and a fix that depends on reading a release note is a fix
|
|
261
|
+
most people never get — so a startup migration (`v401_rebuild_import_edges`)
|
|
262
|
+
rebuilds it for you, in the background, the first time the server starts. It is
|
|
263
|
+
deliberately narrow: it fires only when a graph has nodes but *no* import edges —
|
|
264
|
+
exactly the broken shape — so a healthy graph, an empty one, and a genuinely
|
|
265
|
+
edgeless single-file repo all no-op and pay nothing. It runs on a daemon thread
|
|
266
|
+
and is failure-isolated, so it can never delay or break startup. `codevira index
|
|
267
|
+
--full` still forces it by hand. *(Tests: `TestProjectPackagesFromDisk`,
|
|
268
|
+
`TestV401RebuildImportEdges`.)*
|
|
269
|
+
|
|
270
|
+
### Fixed — an installed IDE with an empty config file was invisible to `setup`
|
|
271
|
+
|
|
272
|
+
`codevira setup` detected an IDE only if its config file **parsed as JSON** — and an
|
|
273
|
+
empty file does not. Antigravity ships a 0-byte
|
|
274
|
+
`~/.gemini/config/mcp_config.json` until the first server is added, so on a real
|
|
275
|
+
machine plain `codevira setup` reported *"Detected: Claude Code, Claude Desktop,
|
|
276
|
+
OpenAI Codex"* and **silently skipped an installed Antigravity**. Nothing said why;
|
|
277
|
+
the only way in was the non-obvious `setup --ide antigravity --force`.
|
|
278
|
+
|
|
279
|
+
An app that created its own config file has already proven it is installed, even
|
|
280
|
+
while that file is empty. Detection now treats a present-but-empty config as
|
|
281
|
+
*installed, not yet configured*. Claude Desktop shared the same predicate and is
|
|
282
|
+
fixed with it.
|
|
283
|
+
|
|
284
|
+
The deliberate v3.0.0 refusal for a config whose contents are **non-empty but
|
|
285
|
+
unparseable** is unchanged — that is indistinguishable from an unrelated file at
|
|
286
|
+
the same path — but it no longer passes silently: it now logs what it found, the
|
|
287
|
+
path, and the `--force` escape hatch. *(Tests:
|
|
288
|
+
`test_antigravity_detected_via_EMPTY_config`,
|
|
289
|
+
`test_claude_desktop_detected_via_EMPTY_config`,
|
|
290
|
+
`test_empty_is_detected_but_corrupt_is_still_refused`.)*
|
|
291
|
+
|
|
292
|
+
### Fixed — `codevira init --shared` gitignored the memory it promised to share
|
|
293
|
+
|
|
294
|
+
`--shared` is the team path: it should keep `<repo>/.codevira/` git-**tracked** so
|
|
295
|
+
teammates receive the decision log. It did the opposite. A single `init --shared`
|
|
296
|
+
printed, in order: *"Adding `.codevira/` to .gitignore ... done"*, then its own
|
|
297
|
+
warning that this *"defeats codevira's core promise"*, then *"✓ Team mode —
|
|
298
|
+
`.codevira/` memory stays committed"*, then told you to run `git add .codevira/` —
|
|
299
|
+
which silently staged nothing. No teammate ever received the memory.
|
|
300
|
+
|
|
301
|
+
The cause was a seam: the legacy `init` scaffold owns the `.gitignore` entry, runs
|
|
302
|
+
before the scaffold that handles `--shared`, and took no arguments — so it never
|
|
303
|
+
learned this was a team init and wrote the very line that broke it. It now
|
|
304
|
+
receives the flag and, in shared mode, **removes** the entry (repairing one an
|
|
305
|
+
earlier default `init` or a hand edit wrote) instead of adding it. The "Team mode"
|
|
306
|
+
banner is now conditional and can never claim success while `.codevira/` is still
|
|
307
|
+
ignored. The four `.gitignore` match forms live in one shared definition rather
|
|
308
|
+
than a copy per call site.
|
|
309
|
+
|
|
310
|
+
**Default (non-shared) behaviour is unchanged** — `.codevira/` stays gitignored,
|
|
311
|
+
so per-machine memory and the anti-bleed guarantee are untouched.
|
|
312
|
+
|
|
313
|
+
The existing tests missed this because they called the inner scaffold directly and
|
|
314
|
+
bypassed the legacy one; the new regression tests drive the real
|
|
315
|
+
`python -m mcp_server` entry point. *(Tests: `test_init_shared_leaves_memory_git_trackable`,
|
|
316
|
+
`test_init_default_still_ignores_memory`,
|
|
317
|
+
`test_init_shared_repairs_an_ignore_written_by_an_earlier_default_init`.)*
|
|
318
|
+
|
|
319
|
+
### Removed — `codevira clean` (breaking)
|
|
320
|
+
|
|
321
|
+
`clean` read as tidy-up but was a full **uninstall** — it wiped `~/.codevira/`
|
|
322
|
+
(project data dirs, `global.db`, snapshots, `device_id`), stripped codevira from
|
|
323
|
+
every IDE config, and removed the launchd service. It cost a real installation
|
|
324
|
+
when an agent ran `yes | codevira clean` believing it pruned the registry
|
|
325
|
+
(D00012X — "the name is the trap"). Its two jobs are now cleanly split:
|
|
326
|
+
|
|
327
|
+
- **`codevira prune`** — tidy stale / ghost / orphan data dirs (safe; never
|
|
328
|
+
touches decisions, IDE configs, or hooks).
|
|
329
|
+
- **`codevira uninstall`** — remove everything.
|
|
330
|
+
|
|
331
|
+
`codevira clean` now errors with `invalid choice: 'clean'`; any script calling
|
|
332
|
+
it must switch to `prune` (tidy) or `uninstall` (remove). The internal
|
|
333
|
+
full-uninstall code path is guarded so it can never run again. *(Regression
|
|
334
|
+
test: `test_clean_command_removed`.)*
|
|
335
|
+
|
|
336
|
+
### Fixed — `codevira doctor` recommended the *uninstaller* to tidy stale dirs
|
|
337
|
+
|
|
338
|
+
`doctor` printed *"N stale dir(s) — empty leftovers; `codevira clean` tidies
|
|
339
|
+
them"*, but `clean` is the deprecated full **uninstaller** — following the hint
|
|
340
|
+
would wipe `~/.codevira/`, every IDE config and the launchd service. The hint
|
|
341
|
+
now names `codevira prune` / `prune --ghosts`. It also counted *every* stale
|
|
342
|
+
dir while `prune` only removes those ≤ 10 KB, so the number disagreed with what
|
|
343
|
+
`prune` would actually remove (8 vs 0 on a real machine). Both now read one
|
|
344
|
+
shared `empty_stale_dirs()` predicate, so the count and the recommended command
|
|
345
|
+
always match. *(Regression test: `TestStaleHintPointsAtPrune`.)*
|
|
346
|
+
|
|
347
|
+
### Fixed — fix-history-only data dirs shown as removable leftovers
|
|
348
|
+
|
|
349
|
+
A data dir written by a fix-history scan holds only `graph`/`fixes.db` — no
|
|
350
|
+
`metadata.json` or `git_remote`, the two keys the inventory used to join a disk
|
|
351
|
+
dir to its `global.db` row. So a registered project with such a dir split into a
|
|
352
|
+
phantom *tracked* row plus a false *stale* row, and `doctor` / `projects`
|
|
353
|
+
surfaced real fix-history as an empty leftover. A third join key (dir name ==
|
|
354
|
+
sanitized project path) now resolves these to their registration — classified
|
|
355
|
+
`tracked`, never removable. On the maintainer's machine: stale **8 → 1**,
|
|
356
|
+
entries **21 → 14**, nothing newly removable. *(Regression test:
|
|
357
|
+
`TestSlugJoinFallback`.)*
|
|
358
|
+
|
|
359
|
+
### Fixed — the cross-engineer id repair could diverge between two machines
|
|
360
|
+
|
|
361
|
+
`id_repair.normalize()` is the deterministic floor under team-shared memory:
|
|
362
|
+
when two engineers each append a decision that happens to mint the same id,
|
|
363
|
+
it picks a winner by a total order **every machine computes identically**, so
|
|
364
|
+
both checkouts end up byte-identical. The module's own contract promised
|
|
365
|
+
*"the final content hash guarantees a strict order even when ts and writer
|
|
366
|
+
collide."* It did not.
|
|
367
|
+
|
|
368
|
+
`_content_hash` deliberately **excludes** the amendment field — that
|
|
369
|
+
exclusion is what makes `normalize` idempotent. But the winner order used
|
|
370
|
+
that same hash as its last tiebreaker. Two *base* records differing only in a
|
|
371
|
+
present-but-falsy `_amendment_to_id` (`""` or `None` — both falsy, so both
|
|
372
|
+
are bases) hashed identically and tied on every component. `sorted` is
|
|
373
|
+
stable, so the tie fell through to **input order**: two machines merging the
|
|
374
|
+
same records in different orders produced different files. Exactly the
|
|
375
|
+
divergence this layer exists to prevent.
|
|
376
|
+
|
|
377
|
+
The order key gains a fourth component, `_tiebreak_hash`, which hashes
|
|
378
|
+
everything except the id itself — putting the amendment field back and making
|
|
379
|
+
the order genuinely total. Idempotency is untouched, because this hash never
|
|
380
|
+
mints an id (`_mint_loser_id` still goes through `_content_hash`), and
|
|
381
|
+
re-normalizing only changes the id, which it excludes.
|
|
382
|
+
|
|
383
|
+
`ORDER_VERSION` is **2 → 3**, per the module's own rule that winner-selection
|
|
384
|
+
changes must be surfaced rather than silently disagreed over. Only inputs
|
|
385
|
+
that were previously *tied* can change winner; every other input sorts
|
|
386
|
+
exactly as before.
|
|
387
|
+
|
|
388
|
+
**Latent, not live** — no writer in the codebase emits a falsy-but-present
|
|
389
|
+
amendment pointer, so no existing store is affected. It was one hand-edited
|
|
390
|
+
JSONL or one future writer away.
|
|
391
|
+
|
|
392
|
+
Found by writing the randomized property test Phase 25's done-when always
|
|
393
|
+
asked for, which is now in the suite: the hand-written fixtures gave every
|
|
394
|
+
record a distinct `ts`, so the tiebreaker was never exercised. Verified over
|
|
395
|
+
3,000 generated collision fixtures — 0 idempotency failures, 0
|
|
396
|
+
order-dependence failures. *(Regression tests: `TestOrderKeyIsTotal`.)*
|
|
397
|
+
|
|
398
|
+
### Fixed — a failed index write could make a decision permanently unsearchable
|
|
399
|
+
|
|
400
|
+
`record()` appends to `decisions.jsonl` first and updates the FTS5 index
|
|
401
|
+
after, deliberately: the index update is best-effort and must never fail the
|
|
402
|
+
write. So a failing index write was logged and swallowed — correct as far as
|
|
403
|
+
it went, because the decision itself is already durable.
|
|
404
|
+
|
|
405
|
+
Recovery was the hole. `staleness_check` compares mtimes with a **1-second
|
|
406
|
+
epsilon**, for filesystems that only carry second-precision timestamps. A
|
|
407
|
+
decision appended within that second of the last rebuild, whose index write
|
|
408
|
+
then failed, left an index that reported itself **fresh** — so no rebuild
|
|
409
|
+
fired and the row never appeared. Search simply did not have it. If nothing
|
|
410
|
+
else was recorded for a while, that decision stayed invisible indefinitely,
|
|
411
|
+
and the only symptom was one `WARNING` in a log nobody reads.
|
|
412
|
+
|
|
413
|
+
Both write paths (`record`, `record_many`) now flag the index on failure via
|
|
414
|
+
the new `fts5_index.mark_stale()`, which drops the `source_mtime` row so
|
|
415
|
+
`staleness_check` takes its "never indexed" branch and rebuilds
|
|
416
|
+
unconditionally on the next search. Clearing the memoised freshness verdict
|
|
417
|
+
alone is **not** enough — the epsilon still hides the gap — and the
|
|
418
|
+
regression test fails against that weaker fix.
|
|
419
|
+
|
|
420
|
+
Behaviour is otherwise unchanged: the write still never fails, and a healthy
|
|
421
|
+
index still skips the rebuild. *(Regression tests:
|
|
422
|
+
`TestFtsWriteFailureIsRecoverable`, one per write path.)*
|
|
423
|
+
|
|
424
|
+
### Fixed — a record with an empty amendment pointer could have its id re-issued
|
|
425
|
+
|
|
426
|
+
`_compute_next_id_locked` mints the next id as `max(id) + 1`, skipping
|
|
427
|
+
amendment records because an amendment re-uses an id borrowed from an earlier
|
|
428
|
+
record. It decided that with `_amendment_to_id is not None`. `id_repair`
|
|
429
|
+
decides the same question by **truthiness**, and the two disagreed on a
|
|
430
|
+
present-but-empty pointer.
|
|
431
|
+
|
|
432
|
+
A record carrying `_amendment_to_id: ""` borrows nothing — there is no earlier
|
|
433
|
+
record to borrow from — so it is a base that owns its id. jsonl_store skipped
|
|
434
|
+
it anyway, dropping a live id out of the max, and the very next mint re-issued
|
|
435
|
+
it. That is the exact failure the function's own docstring exists to prevent:
|
|
436
|
+
*"`last id + 1` re-issued an id that already existed earlier in the file,
|
|
437
|
+
silently clobbering that record (incl. `do_not_revert` decisions)."*
|
|
438
|
+
Reproduced: with one such record holding `D000001`, the next mint returned
|
|
439
|
+
`D000001`.
|
|
440
|
+
|
|
441
|
+
It also created work for the layer below — two bases sharing an id is exactly
|
|
442
|
+
the collision `id_repair.normalize()` then has to repair, so the writer was
|
|
443
|
+
manufacturing the problem the repair pass cleans up.
|
|
444
|
+
|
|
445
|
+
jsonl_store now tests truthiness, matching `id_repair`. The two modules are
|
|
446
|
+
deliberately kept apart — `id_repair` imports almost nothing, and that purity
|
|
447
|
+
is load-bearing for its convergence proof — so the agreement is pinned by a
|
|
448
|
+
test that reads each module's classification from **behaviour** rather than
|
|
449
|
+
re-implementing either rule.
|
|
450
|
+
|
|
451
|
+
**Latent, not live**: no writer in the codebase emits a falsy-but-present
|
|
452
|
+
pointer. One hand-edited JSONL away. *(Regression tests:
|
|
453
|
+
`TestAmendmentPredicateAgreesWithIdRepair`.)*
|
|
454
|
+
|
|
455
|
+
### Fixed — routine file churn was being written to the crash log
|
|
456
|
+
|
|
457
|
+
A file that vanishes between the directory walk and the hash is ordinary on
|
|
458
|
+
any project with a build directory — Next.js `.next/standalone`, webpack
|
|
459
|
+
chunks, temp fixtures. `_get_changed_files` already handled it correctly
|
|
460
|
+
(catch, skip, continue), but routed the event to `safe_log_crash`.
|
|
461
|
+
|
|
462
|
+
So a normal working day wrote dozens of entries into
|
|
463
|
+
`~/.codevira/logs/crashes.log`. Two real costs: the **G4 release gate is
|
|
464
|
+
"crash log clean"**, which no project with a build directory could ever pass —
|
|
465
|
+
a gate that cannot pass is not a gate — and a genuine crash landed in a file
|
|
466
|
+
already full of non-crashes, which is where real faults go to hide. Measured
|
|
467
|
+
here before the fix: **51 entries, none of them actual crashes** (9 vanished
|
|
468
|
+
build artifacts, 6 a transient mid-upgrade `tree_sitter` import, the rest
|
|
469
|
+
their tracebacks).
|
|
470
|
+
|
|
471
|
+
The vanished-file case now logs at debug. Everything else still goes to the
|
|
472
|
+
crash log — the demotion is deliberately narrow, and a test proves an
|
|
473
|
+
unexpected hash failure is still recorded. *(Regression tests:
|
|
474
|
+
`TestTransientFilesAreNotCrashes`.)*
|
|
475
|
+
|
|
476
|
+
### Fixed — Cursor and per-project Claude Code could still bind to the wrong project
|
|
477
|
+
|
|
478
|
+
D000126 — *"a session in agent-mcp wrote its decisions into Agentic/LH"* — was
|
|
479
|
+
fixed for Claude Code's user-scope entry, Claude Desktop and Antigravity by
|
|
480
|
+
pinning each registration with `--project-dir`. Two writers were missed:
|
|
481
|
+
`_inject_cursor` and `_inject_claude` (the project-local `<project>/.mcp.json`)
|
|
482
|
+
both registered with `args: []` plus a `cwd`.
|
|
483
|
+
|
|
484
|
+
`cwd` is the **bottom** of `paths._resolve_project_root`'s chain, and that
|
|
485
|
+
placement is what makes it unsafe. `server._bind_project_from_client_roots`
|
|
486
|
+
returns early on an explicit pin — *"Respect an explicit pin — never override
|
|
487
|
+
`--project-dir` / the env var"* — so for every pinned IDE the MCP roots
|
|
488
|
+
handshake never runs at all. For these two it did, and `choose_binding` rule 1
|
|
489
|
+
re-binds to the client's workspace root whenever **that** root is itself a
|
|
490
|
+
codevira project, without consulting cwd.
|
|
491
|
+
|
|
492
|
+
So: Cursor configured for project A, opened on a workspace rooted at project B
|
|
493
|
+
(a monorepo parent, a multi-root workspace, or Cursor simply opened a level
|
|
494
|
+
up), silently writes A's decisions into B's store. `choose_binding`'s own
|
|
495
|
+
docstring already named the remedy — *"pin `--project-dir` for that case"* —
|
|
496
|
+
and these were the two registrations that never got it.
|
|
497
|
+
|
|
498
|
+
Both now emit `args: ["--project-dir", "<project>"]`, matching Desktop and
|
|
499
|
+
Antigravity. Existing configs are rewritten on the next `codevira setup`.
|
|
500
|
+
`~/.cursor/mcp.json` (true global mode, one entry for every project) still
|
|
501
|
+
binds dynamically — it has no single project to pin to, by design.
|
|
502
|
+
|
|
503
|
+
*(Regression tests: `TestCursorIsProjectDirPinned`. Two older tests asserted
|
|
504
|
+
`entry["cwd"]`; they now assert the pin, since that is the property that
|
|
505
|
+
actually protects the binding.)*
|
|
506
|
+
|
|
507
|
+
### Fixed — the watcher and a background full-index could rebuild the graph at once
|
|
508
|
+
|
|
509
|
+
The module lock documents itself as preventing *"the background watcher and
|
|
510
|
+
the background full-index from rebuilding the index simultaneously — **both**
|
|
511
|
+
operations must acquire this lock before touching the on-disk index."* Only
|
|
512
|
+
one ever did. `start_background_full_index` took it; the watcher's reindex
|
|
513
|
+
path explicitly did not, its acquisition having sat inside a branch dead since
|
|
514
|
+
v2.2.0.
|
|
515
|
+
|
|
516
|
+
A mutex held by one of two parties is not a mutex. Both write the same
|
|
517
|
+
`graph.db`, and `cmd_full_rebuild(full=True)` **clears the graph before
|
|
518
|
+
rebuilding** — so a node the watcher had just added could vanish mid-rebuild,
|
|
519
|
+
and both writers can collide on SQLite's own lock.
|
|
520
|
+
|
|
521
|
+
**This release made it more reachable, not less**: the new v4.0.1 import-edge
|
|
522
|
+
migration calls `start_background_full_index()` on a daemon thread at server
|
|
523
|
+
start, which is exactly when a watcher is likely to be live.
|
|
524
|
+
|
|
525
|
+
The watcher now acquires the lock too, via a module-level
|
|
526
|
+
`_locked_incremental()` — blocking on purpose, since skipping would drop the
|
|
527
|
+
file change outright, and the debounce timer means at most one reindex can
|
|
528
|
+
queue behind it.
|
|
529
|
+
|
|
530
|
+
Renamed `_chroma_write_lock` → `_index_write_lock`. The ChromaDB writes it was
|
|
531
|
+
named for were deleted in v2.2.0; the name outlived them by four minor
|
|
532
|
+
versions and its own comment had to apologise for it — the same
|
|
533
|
+
misleading-name trap as `codevira clean` and `indexer/chunker.py`, both fixed
|
|
534
|
+
in this release. *(Regression tests:
|
|
535
|
+
`TestWatcherAndFullIndexAreMutuallyExclusive`.)*
|
|
536
|
+
|
|
537
|
+
### Fixed — `index --verbose` emitted nothing at all
|
|
538
|
+
|
|
539
|
+
`codevira index --verbose` advertises *"Emit per-file decisions (matched,
|
|
540
|
+
skipped + reason). Use to diagnose silent 0-chunks."* It emitted nothing. The
|
|
541
|
+
prints lived inside the chunk/embed block gated on `_check_search_deps()`,
|
|
542
|
+
constant-`False` since v2.2.0 — so the flag had been inert for four minor
|
|
543
|
+
versions, and **this release's own dead-code removal deleted that block**,
|
|
544
|
+
making it permanent.
|
|
545
|
+
|
|
546
|
+
It is a *diagnostic* flag. You reach for it precisely when the index came
|
|
547
|
+
back empty and you need to know why — and it told you nothing, so a
|
|
548
|
+
misconfigured `watched_dirs` looked identical to a working one.
|
|
549
|
+
|
|
550
|
+
Re-implemented against the graph walker, which is the only place that knows
|
|
551
|
+
why a file was passed over. Each file now reports as indexed, or skipped with
|
|
552
|
+
its reason: unsupported extension, parser returned no node, already in the
|
|
553
|
+
graph, or unreadable.
|
|
554
|
+
|
|
555
|
+
Excluded directories are **counted, not listed**. Measured on this repo,
|
|
556
|
+
listing them per-file produced 31,354 lines — 30,802 of them `.venv` and
|
|
557
|
+
`.git` — burying the 552 that matter. They now collapse to one line each
|
|
558
|
+
(`30,151 file(s) excluded directory: .venv`), which is still the answer to
|
|
559
|
+
"where did my files go" at 568 lines instead of 31k.
|
|
560
|
+
|
|
561
|
+
Costs nothing when unused: the walker only records decisions when asked, and
|
|
562
|
+
`quiet` still wins so a background rebuild can never write into a live stdio
|
|
563
|
+
JSON-RPC stream. *(Regression tests: `TestVerboseFileDecisions` (4),
|
|
564
|
+
`TestVerboseActuallyPrints` (3).)*
|
|
565
|
+
|
|
566
|
+
### Added — `do_not_revert` soft-expire is finally surfaced
|
|
567
|
+
|
|
568
|
+
v3.2.0 shipped `compute_dnr_soft_expire()` and three docstrings stating the
|
|
569
|
+
result was *"surfaced on search/list output"*. It never was — the helper had
|
|
570
|
+
**zero production consumers**, so a decision locked three years ago read
|
|
571
|
+
exactly like one locked this morning, and `reaffirm_decision` existed to
|
|
572
|
+
reset a clock nothing ever showed you. One of those docstrings also named
|
|
573
|
+
keys the helper does not return (`dnr_age_days` vs `age_days`).
|
|
574
|
+
|
|
575
|
+
`search` and `list_all` (both the slim and `full=True` shapes) now carry:
|
|
576
|
+
|
|
577
|
+
| field | meaning |
|
|
578
|
+
|---|---|
|
|
579
|
+
| `dnr_soft_expired` | the lock is older than the threshold and due a look |
|
|
580
|
+
| `dnr_age_days` | how old, so the flag is actionable rather than binary |
|
|
581
|
+
|
|
582
|
+
Emitted **only on `do_not_revert` decisions**. `soft_expired` is
|
|
583
|
+
definitionally false without a lock to expire, so carrying the pair on every
|
|
584
|
+
row would be pure token cost on a surface that is deliberately
|
|
585
|
+
summary-by-default. Absent keys mean *"not protected"*, never *"not
|
|
586
|
+
computed"*.
|
|
587
|
+
|
|
588
|
+
Threshold is 180 days, override with `CODEVIRA_DNR_SOFT_EXPIRE_DAYS`, `0`
|
|
589
|
+
disables (the age still reports, for observability). **The lock never
|
|
590
|
+
auto-flips** — the flag is advice, and `reaffirm_decision` is how you act on
|
|
591
|
+
it.
|
|
592
|
+
|
|
593
|
+
Guarded by an invariant rather than a fixed wording: `dnr_soft_expired` is
|
|
594
|
+
advertised in a tool description **if and only if** search/list genuinely
|
|
595
|
+
emit it. Both directions are proven by mutation — scrubbing the description
|
|
596
|
+
while the field ships turns it red, and disabling the projection while the
|
|
597
|
+
description stands turns it red too. *(Regression tests:
|
|
598
|
+
`TestSoftExpireIsSurfaced` (6), `TestAdvertisedFieldsExist`.)*
|
|
599
|
+
|
|
600
|
+
### Internal — the code stranded by the v2.2.0 Chroma removal is gone (`indexer.chunker` no longer importable)
|
|
601
|
+
|
|
602
|
+
v2.2.0 dropped ChromaDB, sentence-transformers and torch, but left the code
|
|
603
|
+
*behind* them in the tree — reachable only through a `_check_search_deps()`
|
|
604
|
+
that returns a hardcoded `False`. Reachability was proven with an AST pass
|
|
605
|
+
before anything was deleted, and the graph output was verified byte-identical
|
|
606
|
+
on a temp project afterwards.
|
|
607
|
+
|
|
608
|
+
- **`indexer/chunker.py` → `indexer/imports.py`** (772 → 468 lines). Only the
|
|
609
|
+
import extraction was ever wired to anything; a module named "chunker" that
|
|
610
|
+
no longer chunks is the same misleading-name trap as `clean`. **If you import
|
|
611
|
+
`indexer.chunker` directly you will now get an `ImportError`** — import
|
|
612
|
+
`indexer.imports` instead. There is no public API on this module; nothing in
|
|
613
|
+
the MCP tool surface or the CLI changes.
|
|
614
|
+
- **`indexer/index_codebase.py`** 1,592 → 1,166 lines.
|
|
615
|
+
- 2,545 lines removed across 9 files in one commit, `tests/test_chunker.py`
|
|
616
|
+
replaced by `tests/test_imports.py`.
|
|
617
|
+
|
|
618
|
+
## [4.0.0] — 2026-08-05
|
|
619
|
+
|
|
620
|
+
Promotes 4.0.0b1 to final — same feature set as the beta (tenant isolation,
|
|
621
|
+
content-addressed records, one MCP server per project). This release adds the
|
|
622
|
+
Claude Code per-project binding fixes below, plus the test-suite and stdio
|
|
623
|
+
hardening that landed during the beta. No product code changed between the
|
|
624
|
+
final real-machine verification of 4.0.0b1 and this tag beyond the fixes listed
|
|
625
|
+
here.
|
|
626
|
+
|
|
627
|
+
### Fixed — Claude Code per-project MCP binding (setup / uninstall / untrack)
|
|
628
|
+
|
|
629
|
+
- **`codevira setup` registers Claude Code per-project.** A bare user-scope
|
|
630
|
+
entry (`args: []`, ambient cwd resolution) let the server bind to the wrong
|
|
631
|
+
project — a decision recorded in one repo could surface in another
|
|
632
|
+
(`get_roadmap` returning a sibling project). Setup now writes a scoped
|
|
633
|
+
`codevira-<slug>` entry pinned with `--project-dir` under
|
|
634
|
+
`projects[<path>].mcpServers`, and removes any pre-existing bare entry.
|
|
635
|
+
- **`codevira uninstall` sweeps per-project entries.** It cleaned only the
|
|
636
|
+
top-level `mcpServers`, leaving the scoped `codevira-<slug>` entries that
|
|
637
|
+
`setup` now writes under `projects[<path>].mcpServers`. It now sweeps both.
|
|
638
|
+
- **`codevira untrack <project>` sweeps per-project entries.** Same nested
|
|
639
|
+
blindness; it now removes the target project's scoped Claude Code entry too,
|
|
640
|
+
matched by its `--project-dir`.
|
|
641
|
+
|
|
12
642
|
### Fixed — test suite: three process-global leaks made tests order-dependent
|
|
13
643
|
|
|
14
644
|
Seven tests passed in collection order — the order CI and `make test-unit` use
|