codevira 3.6.0__tar.gz → 3.7.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-3.6.0 → codevira-3.7.0}/CHANGELOG.md +110 -0
- {codevira-3.6.0/codevira.egg-info → codevira-3.7.0}/PKG-INFO +53 -17
- {codevira-3.6.0 → codevira-3.7.0}/README.md +52 -16
- {codevira-3.6.0 → codevira-3.7.0/codevira.egg-info}/PKG-INFO +53 -17
- {codevira-3.6.0 → codevira-3.7.0}/codevira.egg-info/SOURCES.txt +14 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/architecture.md +21 -12
- codevira-3.7.0/docs/plans/opt-in-activation.md +236 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/roadmap.md +22 -23
- {codevira-3.6.0 → codevira-3.7.0}/docs/vs-other-memory-tools.md +10 -12
- {codevira-3.6.0 → codevira-3.7.0}/indexer/fix_history.py +115 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/__init__.py +1 -1
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/_repair_init.py +15 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/auto_init.py +14 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli.py +128 -2
- codevira-3.7.0/mcp_server/cli_repair.py +224 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/doctor.py +51 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/memory_fanout.py +27 -1
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/wiring/claude_code_hooks.py +14 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/global_sync.py +9 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/graph/template.html +31 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/ide_inject.py +72 -6
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/migrate.py +179 -0
- codevira-3.7.0/mcp_server/opt_in.py +290 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/paths.py +75 -4
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/project_binding.py +46 -3
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/server.py +128 -6
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/agents_md_generator.py +21 -3
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/decisions_store.py +182 -1
- codevira-3.7.0/mcp_server/storage/id_repair.py +305 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/jsonl_store.py +78 -0
- codevira-3.7.0/mcp_server/storage/reconcile.py +196 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/tools/check_conflict.py +21 -99
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/tools/graph.py +54 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/tools/learning.py +140 -5
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/tools/roadmap.py +8 -0
- {codevira-3.6.0 → codevira-3.7.0}/pyproject.toml +1 -1
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_auto_init.py +78 -2
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_binding_e2e.py +12 -9
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_cli_graph.py +25 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_cli_projects.py +15 -6
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_cli_transfer.py +5 -0
- codevira-3.7.0/tests/test_decisions_store.py +113 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_doctor.py +34 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_global_sync.py +40 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_http_server.py +13 -1
- codevira-3.7.0/tests/test_id_repair.py +211 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_ide_inject.py +125 -35
- codevira-3.7.0/tests/test_opt_in.py +456 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_paths.py +119 -0
- codevira-3.7.0/tests/test_phase27_quality_fixes.py +139 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_project_binding.py +40 -0
- codevira-3.7.0/tests/test_reconcile.py +101 -0
- codevira-3.7.0/tests/test_registration_heal.py +90 -0
- codevira-3.7.0/tests/test_repair_ids.py +278 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_repair_init.py +62 -3
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_server.py +12 -1
- codevira-3.7.0/tests/test_startup_migrations.py +77 -0
- codevira-3.7.0/tests/test_supersede_on_write.py +105 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_tools_graph.py +67 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_tools_learning.py +88 -0
- {codevira-3.6.0 → codevira-3.7.0}/LICENSE +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/MANIFEST.in +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/agents/qa/01-code-review.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/agents/qa/02-adversarial-fix-review.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/agents/qa/03-cross-module-impact.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/agents/qa/06-doc-drift.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/agents/qa/07-security-audit.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/agents/qa/12-llm-redteam.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/agents/qa/13-multi-ide-schema.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/agents/qa/22-competitor-benchmark.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/agents/qa/README.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/agents/qa/tier2-scripts.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/agents/qa/tier3-manual.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/codevira.egg-info/dependency_links.txt +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/codevira.egg-info/entry_points.txt +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/codevira.egg-info/requires.txt +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/codevira.egg-info/top_level.txt +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/config.example.yaml +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/alpha-tester-invites.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/audit-2026-05-22.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/demo/README.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/foolproof-product-charter.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/heroes/00-engine.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/heroes/01-decision-lock.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/heroes/02-anti-regression.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/heroes/03-scope-contract.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/heroes/04-blast-radius.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/heroes/05-cross-session.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/heroes/06-token-budget.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/heroes/07-live-style.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/heroes/08-decision-replay.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/heroes/09-intent-inference.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/heroes/10-ai-promotion.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/heroes/README.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/heroes/pillar-1-setup.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/hn-launch-day.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/how-i-built-persistent-memory-for-ai-agents.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/internal/competitive-landscape.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/linkedin-article-ai-agent-memory.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/linkedin-post-ai-agent-memory.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/local-pypi-https.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/medium-your-ai-coding-agent-has-amnesia.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/morning-handoff-2026-05-22.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/plans/v2.1.2.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/plans/v2.1.3.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/plans/v2.2.0.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/plans/v3.0.0.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/qa-playbook.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/release-notes/v3.1.1.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/release-process.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/surface-cuts-2026-05-22.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/troubleshooting/antigravity.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/v2-completion-plan.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/v2-execution-log.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/docs/v2-master-plan.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/graph/_schema.yaml +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/indexer/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/indexer/_dedupe_migration.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/indexer/_fork_safety.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/indexer/_sqlite_util.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/indexer/chunker.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/indexer/global_db.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/indexer/graph_generator.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/indexer/index_codebase.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/indexer/outcome_classifier.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/indexer/outcome_tracker.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/indexer/sqlite_graph.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/indexer/treesitter_parser.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/__main__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/_ghost_check.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/_mcp_registry.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/_project_inventory.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/_prompts.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/_safe_crash.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli_consensus.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli_eval.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli_export.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli_graph.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli_hooks_admin.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli_induce.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli_init.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli_projects.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli_reflect.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli_replay.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli_search.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli_sync.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli_transfer.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli_uninstall.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/cli_working.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/crash_logger.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/affordances.yaml +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/config.example.yaml +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/hooks/post_tool_use.sh +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/hooks/pre_tool_use.sh +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/hooks/session_start.sh +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/hooks/stop.sh +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/hooks/user_prompt_submit.sh +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/prompts/reflection_v1.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/rules/coding-standards-generic.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/rules/coding-standards-go.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/rules/coding-standards-typescript.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/rules/coding-standards.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/rules/engineering-excellence.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/rules/git-cicd-governance.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/rules/git_commits.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/rules/incremental-updates.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/rules/master_rule.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/rules/multi-language.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/rules/persistence.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/rules/resilience-observability.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/rules/smoke-testing.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/data/rules/testing-standards.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/decision_replay.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/detect.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/demo_policy.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/events.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/policies/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/policies/_region_detect.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/policies/_signature_detect.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/policies/anti_regression.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/policies/blast_radius.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/policies/decision_lock.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/policies/post_edit_refresh.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/policies/prompt_capture.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/policies/relevance_inject.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/policies/session_log_enforcer.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/policies/token_budget.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/policy.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/runner.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/signals.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/token_meter.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/wiring/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/wiring/_diff_envelope.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/engine/wiring/mcp_dispatch.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/eval/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/eval/composite.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/eval/judge.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/eval/relevance.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/eval/report.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/eval/weight_tuner.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/gitignore.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/graph/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/http_server.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/ingest/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/ingest/claude_code.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/ingest/codex.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/ingest/gemini.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/ingest/heuristics.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/ingest/models.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/ingest/scan.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/launchd.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/log_retention.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/prompts.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/roadmap_drift.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/setup_wizard.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/activity_store.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/atomic.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/config.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/consensus_store.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/digest.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/fts5_index.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/learned_weights.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/manifest.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/origin.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/outcomes_writer.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/paths.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/reflections_store.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/sanitize.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/sessions_store.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/skills_store.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/synonyms.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/token_estimator.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/storage/working_store.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/tools/__init__.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/tools/changesets.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/tools/code_reader.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/tools/consensus.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/tools/playbook.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/tools/preferences.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/tools/reflections.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/tools/search.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/tools/skills.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/tools/spatial.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/tools/working.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/mcp_server/update_check.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/rules/coding-standards.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/rules/engineering-excellence.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/rules/git-cicd-governance.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/rules/git_commits.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/rules/incremental-updates.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/rules/master_rule.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/rules/persistence.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/rules/resilience-observability.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/rules/smoke-testing.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/rules/testing-standards.md +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/setup.cfg +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test__prompts.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_call_edge_fk_safety.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_check_conflict.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_chunker.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_cli_consensus.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_cli_export.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_cli_induce.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_cli_replay.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_cli_search.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_cli_uninstall.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_cli_version.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_cli_working.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_consensus_handshake.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_crash_logger.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_cross_project_search.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_dedupe_migration.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_detect.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_e1_summary_first.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_eval_e3.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_fk_safety_extended.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_fork_safety.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_ghost_check.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_gitignore.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_global_db.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_graph_generator.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_hook_resilience.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_index_codebase.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_ingest_e2.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_launchd.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_log_retention.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_managed_files_e4.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_migrate.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_outcome_reconcile_p17.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_outcome_tracker.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_preferences_tools.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_prompts.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_record_decision.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_reflections.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_roadmap_drift.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_setup_wizard.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_sqlite_graph.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_sqlite_util.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_synonym_widening_e5.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_tools_code_reader.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_tools_playbook.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_tools_roadmap.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_tools_skills.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_tools_spatial.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_tools_working.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_treesitter_parser.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_update_check.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_watcher_circuit.py +0 -0
- {codevira-3.6.0 → codevira-3.7.0}/tests/test_weight_tuning_p13.py +0 -0
|
@@ -7,6 +7,116 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [3.7.0] — 2026-07-16
|
|
11
|
+
|
|
12
|
+
### Changed — opt-in project tracking (no more silent auto-adopt)
|
|
13
|
+
|
|
14
|
+
Codevira now tracks **only projects you explicitly `codevira init`**. With a
|
|
15
|
+
single global MCP registration its tools are available in every IDE window — but
|
|
16
|
+
previously *any* project you merely opened got a data dir and started being
|
|
17
|
+
tracked (the graph-read path alone — e.g. `get_impact` before an edit — adopted
|
|
18
|
+
it, which is how `~/.codevira/projects/` filled with dirs you never chose).
|
|
19
|
+
|
|
20
|
+
- **Un-init'd projects are inert.** Read tools return an empty payload + a
|
|
21
|
+
"run `codevira init`" hint; write tools refuse with the same hint; the engine
|
|
22
|
+
hooks (blast-radius, prompt-capture, memory fan-out) don't fire; nothing is
|
|
23
|
+
written — no `~/.codevira/projects/<key>/` dir, no `global.db` row, no
|
|
24
|
+
`.codevira-cache/`.
|
|
25
|
+
- **Existing tracked projects keep working, zero migration.** A committed
|
|
26
|
+
in-repo `.codevira/config.yaml` (or its centralized equivalent) grandfathers
|
|
27
|
+
a project in. The marker travels via git, so teammates and other IDEs inherit
|
|
28
|
+
the opt-in.
|
|
29
|
+
- **`codevira init`** is the one-time, per-project opt-in.
|
|
30
|
+
- **Escape hatch:** `CODEVIRA_AUTO_ADOPT=1` restores the pre-3.7 behavior (track
|
|
31
|
+
every project you open); `=0` is strict (refuse without hints). Default is
|
|
32
|
+
`hint`.
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
- **Decision-id drift within a process (D000118).** `get_project_root()`
|
|
36
|
+
re-resolved from `cwd` on every call, so a `cwd` change between `record()`
|
|
37
|
+
and `search()` in one process bound them to two different `.codevira` stores —
|
|
38
|
+
each minting ids independently (non-monotonic / duplicate ids, and a
|
|
39
|
+
just-recorded decision missing from search). The resolved root is now pinned
|
|
40
|
+
for the request; a later drift logs a WARN but the pin wins.
|
|
41
|
+
- **Activity heatmap blind to some edits.** `NotebookEdit` (`notebook_path`) and
|
|
42
|
+
camelCase MCP tools logged `<unknown>` instead of the file they touched; the
|
|
43
|
+
edit-path resolver now covers the full key set.
|
|
44
|
+
- **Anti-Regression fix-history went stale on long-lived servers.** The git
|
|
45
|
+
`fix:`-commit scan ran once at startup; it now self-freshens (HEAD-gated) on
|
|
46
|
+
read, so `fix:` commits made after boot are seen without a restart.
|
|
47
|
+
|
|
48
|
+
### Added — memory freshness (stale decisions no longer block you)
|
|
49
|
+
- **`mark_decision_outdated(id, reason)`** — tombstone a decision that's simply
|
|
50
|
+
no longer true so it stops surfacing in `get_session_context` /
|
|
51
|
+
`search_decisions` / `list_decisions`, without deleting it (reversible via
|
|
52
|
+
`set_decision_flag(is_outdated=false)`).
|
|
53
|
+
- **Freshness ranking on read.** `get_session_context` now hides superseded,
|
|
54
|
+
outdated, and `outcome=reverted` decisions from `recent_decisions`.
|
|
55
|
+
- **Supersede-on-write.** `record_decision` now *supersedes* a strong,
|
|
56
|
+
unprotected near-duplicate instead of appending a parallel twin (the way
|
|
57
|
+
stale twins used to accumulate). Protected (`do_not_revert`) near-duplicates
|
|
58
|
+
are never auto-superseded — the conflict is surfaced for you to act on.
|
|
59
|
+
Opt out with `force=True` or `CODEVIRA_SUPERSEDE_ON_RECORD=0`.
|
|
60
|
+
|
|
61
|
+
### Added — cross-engineer, one repo
|
|
62
|
+
- **Deterministic decision-id collision repair.** When two engineers on two
|
|
63
|
+
branches both mint the same id, `git merge` combines the appended lines
|
|
64
|
+
cleanly and one decision used to be silently shadowed on read. New:
|
|
65
|
+
- `read_merged` now WARNS on a base-id collision instead of hiding it.
|
|
66
|
+
- **`codevira repair-ids [--apply] [--semantic]`** — deterministic repair:
|
|
67
|
+
the earliest writer keeps the id; the loser gets a content-derived id;
|
|
68
|
+
byte-identical duplicates are dropped. `--semantic` also *reports*
|
|
69
|
+
near-duplicate decisions (different ids, similar text) for review — never
|
|
70
|
+
auto-merged. Idempotent; converges (a fixed point, so it can't oscillate).
|
|
71
|
+
- **git merge driver** (`codevira merge-driver`) registered by `codevira init`
|
|
72
|
+
via `.gitattributes` + git config, so collisions resolve automatically on
|
|
73
|
+
`git merge` / rebase — both engineers converge to byte-identical output.
|
|
74
|
+
|
|
75
|
+
### Added — one MCP registration for all your projects
|
|
76
|
+
- **Single user-scope registration by default.** `codevira init` now registers
|
|
77
|
+
ONE user-scope MCP server instead of a per-project entry, so N projects no
|
|
78
|
+
longer create N codevira servers in your IDE. The single server resolves the
|
|
79
|
+
active project from the MCP client's workspace roots at runtime. IDEs that
|
|
80
|
+
can't do project-agnostic config (Claude Desktop, Antigravity) still get a
|
|
81
|
+
per-project entry. Opt back with `codevira init --per-project` or
|
|
82
|
+
`CODEVIRA_INIT_PER_PROJECT=1`.
|
|
83
|
+
- **Per-request project-root pin.** The project-root pin is now a `ContextVar`
|
|
84
|
+
— scoped per request instead of process-global, so it can't leak across
|
|
85
|
+
requests. (Each IDE window already runs its own codevira process bound to its
|
|
86
|
+
workspace; one process serving many projects *concurrently* also needs the
|
|
87
|
+
explicit override to be per-request, which is a follow-on.)
|
|
88
|
+
|
|
89
|
+
### Added — automatic, non-breaking upgrade (self-heal, zero manual steps)
|
|
90
|
+
- **Startup self-heal.** `migrate.run_startup_migrations()` runs at server
|
|
91
|
+
startup: version/ledger-gated (each step runs at most once), lock-protected
|
|
92
|
+
(concurrent IDE processes can't race), backup-first, and failure-isolated (it
|
|
93
|
+
can never block startup). Users never run a manual command after upgrading.
|
|
94
|
+
- **Pre-3.7 id collisions are repaired automatically** — backup to
|
|
95
|
+
`decisions.jsonl.bak-pre-v370`, then the deterministic repair, through the
|
|
96
|
+
same exclusive lock + atomic replace a normal append uses (safe during
|
|
97
|
+
active use — a concurrent `record_decision` is serialized, not lost).
|
|
98
|
+
- **The decision-log merge driver self-installs.**
|
|
99
|
+
- **A stale per-project MCP entry is removed** — but only when a global entry
|
|
100
|
+
already exists, so a per-project-only user is never orphaned
|
|
101
|
+
(`heal_stale_registration`, surgical + atomic; other `mcpServers` preserved).
|
|
102
|
+
`codevira init` global-mode also removes it right after writing the global
|
|
103
|
+
entry, so re-init never leaves a duplicate.
|
|
104
|
+
- **`doctor` gains a `decision_collisions` check** that surfaces any collision
|
|
105
|
+
the one-time startup heal wouldn't re-catch (18 checks total).
|
|
106
|
+
- **AGENTS.md carries a branded, token-guard usage line** — steers the agent to
|
|
107
|
+
the codevira MCP tools and away from reading `.codevira/*.jsonl` directly
|
|
108
|
+
(which would cost tens of thousands of tokens). The 5 KB block cap is now a
|
|
109
|
+
hard cap.
|
|
110
|
+
- Fixed a `clean`-path bug: per-project Claude cleanup targeted
|
|
111
|
+
`.claude/settings.json`, but the MCP entry lives in `.mcp.json`.
|
|
112
|
+
|
|
113
|
+
### Internal
|
|
114
|
+
- Extracted the shared decision-similarity core (`storage/reconcile.py`) used by
|
|
115
|
+
`check_conflict`, `consensus`, supersede-on-write, and the cross-engineer
|
|
116
|
+
reconcile — single source of truth for the Jaccard/overlap classification.
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
10
120
|
## [3.6.0] — 2026-06-27
|
|
11
121
|
|
|
12
122
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: codevira
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.7.0
|
|
4
4
|
Summary: Cross-IDE decision enforcement for AI coding agents. 1 MB per project, in your repo, no cloud, no vectors. Claude Code, Cursor, Windsurf, Antigravity, Codex all share the same in-repo memory; hooks block AI tool calls that violate prior decisions. MIT, local-first.
|
|
5
5
|
Author-email: Sachin Shelke <sachin.worldnet@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -47,7 +47,11 @@ Requires-Dist: mypy>=1.10; extra == "dev"
|
|
|
47
47
|
Requires-Dist: types-PyYAML; extra == "dev"
|
|
48
48
|
Requires-Dist: pre-commit>=3.5; extra == "dev"
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
<p align="center">
|
|
51
|
+
<img src="https://raw.githubusercontent.com/sachinshelke/codevira/main/website/assets/logo.png" alt="Codevira" width="140" height="140">
|
|
52
|
+
</p>
|
|
53
|
+
|
|
54
|
+
<h1 align="center">Codevira</h1>
|
|
51
55
|
|
|
52
56
|
> **Cross-IDE decision memory for AI coding agents.** One in-repo memory
|
|
53
57
|
> layer that every AI tool you use can read — plus PreToolUse hooks that
|
|
@@ -160,11 +164,18 @@ Then commit `.codevira/` + `AGENTS.md` + `.gitignore` to git so your
|
|
|
160
164
|
teammates inherit the project memory. Open any IDE; codevira's MCP
|
|
161
165
|
server is ready.
|
|
162
166
|
|
|
167
|
+
> **Opt-in tracking (v3.7.0).** `codevira init` is the explicit opt-in:
|
|
168
|
+
> codevira tracks **only** projects you've `init`-ed. A project you merely
|
|
169
|
+
> open — but never `init` — stays inert (its tools return a "run `codevira
|
|
170
|
+
> init`" hint and nothing is written), so `~/.codevira/projects/` never fills
|
|
171
|
+
> with projects you didn't choose. Set `CODEVIRA_AUTO_ADOPT=1` to track every
|
|
172
|
+
> project you open instead.
|
|
173
|
+
|
|
163
174
|
**Verify:**
|
|
164
175
|
|
|
165
176
|
```bash
|
|
166
|
-
codevira doctor #
|
|
167
|
-
codevira
|
|
177
|
+
codevira doctor # 18 health checks, ✓/⚠/✗
|
|
178
|
+
codevira replay # browse the decisions timeline (any recorded yet?)
|
|
168
179
|
codevira sync # regen AGENTS.md from current decisions.jsonl
|
|
169
180
|
```
|
|
170
181
|
|
|
@@ -205,7 +216,7 @@ Flags:
|
|
|
205
216
|
|
|
206
217
|
### What `codevira doctor` reports
|
|
207
218
|
|
|
208
|
-
|
|
219
|
+
18 health checks in one run, each with a concrete `fix_command` for
|
|
209
220
|
any WARN or FAIL. Read-only — never modifies anything.
|
|
210
221
|
|
|
211
222
|
```text
|
|
@@ -215,6 +226,7 @@ Codevira health check
|
|
|
215
226
|
✓ python_version Python 3.13 (≥ 3.10 required)
|
|
216
227
|
✓ codevira_data_dir /Users/you/.codevira exists and is writable
|
|
217
228
|
✓ project_root /Users/you/Projects/my-project is a valid project root
|
|
229
|
+
✓ project_binding resolved from workspace → /Users/you/Projects/my-project
|
|
218
230
|
✓ codevira_dir .codevira/ present (4 decision(s))
|
|
219
231
|
✓ agents_md_size AGENTS.md is 1,234 bytes (≤10 KB safety threshold)
|
|
220
232
|
✓ graph_db graph.db has all 4 expected tables
|
|
@@ -224,14 +236,17 @@ Codevira health check
|
|
|
224
236
|
✓ watcher_circuit watcher circuit clean (no recent failures)
|
|
225
237
|
✓ engine_kill_switch engine ON (default; CODEVIRA_ENGINE not set)
|
|
226
238
|
✓ claude_mcp_visibility codevira visible to Claude Code
|
|
239
|
+
✓ mcp_running_versions in-memory server matches installed wheel
|
|
240
|
+
✓ ghost_projects no stale project registrations
|
|
227
241
|
✓ crash_log_size no crash log (clean state)
|
|
242
|
+
✓ merge_driver decision-log merge driver configured
|
|
228
243
|
────────────────────────────────────────────────────────────
|
|
229
|
-
summary:
|
|
244
|
+
summary: 17 pass · 0 warn · 0 fail
|
|
230
245
|
```
|
|
231
246
|
|
|
232
247
|
### Daily-use commands
|
|
233
248
|
|
|
234
|
-
The CLI surface is
|
|
249
|
+
The CLI surface is 26 commands (the daily-use ones below):
|
|
235
250
|
|
|
236
251
|
| Command | What it does |
|
|
237
252
|
|---|---|
|
|
@@ -242,6 +257,7 @@ The CLI surface is 23 commands (the daily-use ones below):
|
|
|
242
257
|
| `codevira projects` | List tracked projects with staleness (`today` / `5d ago` / `stale 45d`); `projects archive <name>` drops one from the registry |
|
|
243
258
|
| `codevira index` | Build / refresh the code graph cache |
|
|
244
259
|
| `codevira sync` | Regenerate AGENTS.md + manifest + digest from `decisions.jsonl` |
|
|
260
|
+
| `codevira repair-ids` | **v3.7** — detect/repair cross-engineer decision-id collisions (`--apply` to rewrite; `--semantic` also reports near-duplicate decisions for review) |
|
|
245
261
|
| `codevira observe-git` | Classify past decisions as kept/modified/reverted from git history |
|
|
246
262
|
| `codevira replay` | Browse the decisions timeline (terminal / markdown / HTML) |
|
|
247
263
|
| `codevira search <query>` | Search decisions from the terminal (FTS5/BM25); `--all-projects` searches every registered repo, `--json` for scripts |
|
|
@@ -280,6 +296,23 @@ versions. User content outside the codevira markers stays.
|
|
|
280
296
|
|
|
281
297
|
---
|
|
282
298
|
|
|
299
|
+
## What's new in v3.7.0 — fresh memory, shared repos, one registration
|
|
300
|
+
|
|
301
|
+
> Three things users asked for: memory that *updates* instead of piling up
|
|
302
|
+
> stale decisions, memory that survives *two engineers on one repo*, and *one*
|
|
303
|
+
> MCP entry instead of one-per-project. All model-free, all local.
|
|
304
|
+
|
|
305
|
+
| Area | What you get |
|
|
306
|
+
|---|---|
|
|
307
|
+
| **Memory stays fresh** | `record_decision` now **supersedes** a strong, unprotected near-duplicate instead of appending a parallel twin, so stale copies stop accumulating. `get_session_context` hides superseded / outdated / reverted decisions. New `mark_decision_outdated(id)` retires a decision that's simply no longer true (reversible). Protected `do_not_revert` decisions are never auto-retired — the conflict is surfaced. |
|
|
308
|
+
| **Two engineers, one repo** | Decision ids used to collide silently when two branches merged (one decision shadowed on read). Now `read_merged` warns, `codevira repair-ids [--apply]` deterministically repairs (earliest writer keeps the id; losers get content-derived ids; a *fixed point*, so it can't oscillate), and a git **merge driver** — installed by `codevira init` — resolves collisions automatically on `git merge`. `--semantic` also reports near-duplicate decisions for review (never auto-merged). |
|
|
309
|
+
| **One MCP for all projects** | `codevira init` registers **one** user-scope server by default instead of one-per-project; it resolves the active project from the MCP client's workspace roots at runtime, so N projects no longer mean N entries in your IDE. Opt back with `--per-project`. The project-root pin is now per-request (`ContextVar`) so it can't leak across requests. |
|
|
310
|
+
| **Fixes** | Decision-id drift within a process (D000118) — record/search no longer split across two stores. `NotebookEdit` / camelCase edits no longer log `<unknown>` to the activity heatmap. Anti-Regression fix-history self-freshens on read instead of going stale until restart. |
|
|
311
|
+
|
|
312
|
+
Full v3.7.0 release notes: [CHANGELOG.md](CHANGELOG.md#370--2026-07-10).
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
283
316
|
## What's new in v3.5.0 — the read side gets intelligent
|
|
284
317
|
|
|
285
318
|
> Codevira's leverage is the **read** side: does it surface the *right*
|
|
@@ -373,7 +406,7 @@ data:
|
|
|
373
406
|
The agent always asks for what it needs, in the size it needs.
|
|
374
407
|
|
|
375
408
|
**Shrink the tool surface itself.** The advertised MCP `tools/list` is a
|
|
376
|
-
fixed per-session cost (~8K tokens for the full
|
|
409
|
+
fixed per-session cost (~8K tokens for the full 51-tool surface). Set
|
|
377
410
|
`CODEVIRA_TOOL_PROFILE=lean` in the MCP server's `env` block to advertise
|
|
378
411
|
only the 12 daily-driver tools (~71% smaller); hidden tools still work
|
|
379
412
|
when called explicitly. Bigger wins usually come from disabling MCP
|
|
@@ -383,10 +416,11 @@ servers you aren't actively using.
|
|
|
383
416
|
|
|
384
417
|
## MCP Tools
|
|
385
418
|
|
|
386
|
-
**
|
|
419
|
+
**51 tools** surfaced to AI clients via `tools/list` (token-optimized,
|
|
387
420
|
summary-first): the core decision/roadmap/graph surface plus the
|
|
388
421
|
v3.1.0 memory subsystems (working memory, skills, spatial, consensus,
|
|
389
|
-
reflections), the v3.3.0 preference tools,
|
|
422
|
+
reflections), the v3.3.0 preference tools, v3.5.0's `expand`, and v3.7.0's
|
|
423
|
+
`mark_decision_outdated`. One additional admin
|
|
390
424
|
tool (`refresh_graph`) is registered but hidden from `tools/list`
|
|
391
425
|
because it runs automatically in the background — humans invoke it via
|
|
392
426
|
`codevira sync`. Set `CODEVIRA_TOOL_PROFILE=lean` to advertise only
|
|
@@ -412,8 +446,9 @@ kill list.
|
|
|
412
446
|
|---|---|
|
|
413
447
|
| `record_decision` | Capture an architectural decision. Optional `do_not_revert=true` triggers hard enforcement at the Claude Code PreToolUse hook. Supports `tags`, `force`, `session_id`. |
|
|
414
448
|
| `supersede_decision(old_id, new_decision, reason)` | Retire an old decision and link to its replacement. Audit trail preserved. |
|
|
449
|
+
| `mark_decision_outdated(decision_id, reason)` | **v3.7** — tombstone a decision that's no longer true (with no successor) so it stops surfacing. Reversible via `set_decision_flag(is_outdated=false)`. |
|
|
415
450
|
| `reaffirm_decision(decision_id)` | Re-confirm a soft-expired `do_not_revert` lock is still wanted. |
|
|
416
|
-
| `set_decision_flag(decision_id, ...)` | Toggle `do_not_revert` / tags on an existing decision. |
|
|
451
|
+
| `set_decision_flag(decision_id, ...)` | Toggle `do_not_revert` / tags / `is_outdated` on an existing decision. |
|
|
417
452
|
| `write_session_log` | Structured session record. |
|
|
418
453
|
|
|
419
454
|
### Roadmap
|
|
@@ -497,7 +532,7 @@ the install lean (v2.3.0 may re-add specific grammars on demand).
|
|
|
497
532
|
| `do_not_revert` enforcement at Claude Code PreToolUse | Symbol tools (`get_signature` / `get_code`) cover Python / TS / JS / Go / Rust; for other languages the AI `Read`s the file directly (the legacy `[all-languages]` grammar pack was removed in v2.2.0) |
|
|
498
533
|
| FTS5 decision search with BM25 ranking | Real-time multi-machine sync — by design, codevira is local-first; for team sharing, commit `.codevira/` to git |
|
|
499
534
|
| Per-project + cross-machine project inventory (`global.db`) | Web UI for browsing decisions — use the `codevira://decisions` MCP resource in Claude Desktop, or `codevira replay --format html` for a static file |
|
|
500
|
-
| All
|
|
535
|
+
| All 51 surfaced MCP tools + 26 CLI commands + 8 engine policies | The HTTP server (`codevira serve`) is single-project per launch — for daily use, stick with stdio via `codevira setup` |
|
|
501
536
|
| Concurrent-safe storage layer (Posix `fcntl.flock` + Windows sentinel fallback). Proven against 50-thread + 20-subprocess stress + 29-attack chaos harness | The cross-process file-lock contract has been exercised on macOS + Linux CI; the Windows sentinel-file fallback is verified via unit-test simulation but hasn't been load-tested on real Windows yet |
|
|
502
537
|
| Code graph data store is functional but the v3.0.0 spec target (`<project>/.codevira-cache/graph.sqlite`) and the actual location (`<data_dir>/graph/graph.db`) drifted during the surface-cut audit. Tracked for v3.1 reconciliation | n/a (functional today; spec-truthfulness gap only) |
|
|
503
538
|
|
|
@@ -533,11 +568,12 @@ Common questions about setup, usage, architecture, and troubleshooting
|
|
|
533
568
|
|
|
534
569
|
## Roadmap
|
|
535
570
|
|
|
536
|
-
**Current release:** **v3.
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
571
|
+
**Current release:** **v3.7.0** — fresh memory, shared repos, one
|
|
572
|
+
registration: supersede-on-write + freshness-ranked reads +
|
|
573
|
+
`mark_decision_outdated` (stale decisions stop piling up), deterministic
|
|
574
|
+
cross-engineer decision-id collision repair (`repair-ids` + a git merge
|
|
575
|
+
driver), and one user-scope MCP registration for all your projects — all
|
|
576
|
+
model-free, all local.
|
|
541
577
|
|
|
542
578
|
**Next up** (directional, not dated):
|
|
543
579
|
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/sachinshelke/codevira/main/website/assets/logo.png" alt="Codevira" width="140" height="140">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">Codevira</h1>
|
|
2
6
|
|
|
3
7
|
> **Cross-IDE decision memory for AI coding agents.** One in-repo memory
|
|
4
8
|
> layer that every AI tool you use can read — plus PreToolUse hooks that
|
|
@@ -111,11 +115,18 @@ Then commit `.codevira/` + `AGENTS.md` + `.gitignore` to git so your
|
|
|
111
115
|
teammates inherit the project memory. Open any IDE; codevira's MCP
|
|
112
116
|
server is ready.
|
|
113
117
|
|
|
118
|
+
> **Opt-in tracking (v3.7.0).** `codevira init` is the explicit opt-in:
|
|
119
|
+
> codevira tracks **only** projects you've `init`-ed. A project you merely
|
|
120
|
+
> open — but never `init` — stays inert (its tools return a "run `codevira
|
|
121
|
+
> init`" hint and nothing is written), so `~/.codevira/projects/` never fills
|
|
122
|
+
> with projects you didn't choose. Set `CODEVIRA_AUTO_ADOPT=1` to track every
|
|
123
|
+
> project you open instead.
|
|
124
|
+
|
|
114
125
|
**Verify:**
|
|
115
126
|
|
|
116
127
|
```bash
|
|
117
|
-
codevira doctor #
|
|
118
|
-
codevira
|
|
128
|
+
codevira doctor # 18 health checks, ✓/⚠/✗
|
|
129
|
+
codevira replay # browse the decisions timeline (any recorded yet?)
|
|
119
130
|
codevira sync # regen AGENTS.md from current decisions.jsonl
|
|
120
131
|
```
|
|
121
132
|
|
|
@@ -156,7 +167,7 @@ Flags:
|
|
|
156
167
|
|
|
157
168
|
### What `codevira doctor` reports
|
|
158
169
|
|
|
159
|
-
|
|
170
|
+
18 health checks in one run, each with a concrete `fix_command` for
|
|
160
171
|
any WARN or FAIL. Read-only — never modifies anything.
|
|
161
172
|
|
|
162
173
|
```text
|
|
@@ -166,6 +177,7 @@ Codevira health check
|
|
|
166
177
|
✓ python_version Python 3.13 (≥ 3.10 required)
|
|
167
178
|
✓ codevira_data_dir /Users/you/.codevira exists and is writable
|
|
168
179
|
✓ project_root /Users/you/Projects/my-project is a valid project root
|
|
180
|
+
✓ project_binding resolved from workspace → /Users/you/Projects/my-project
|
|
169
181
|
✓ codevira_dir .codevira/ present (4 decision(s))
|
|
170
182
|
✓ agents_md_size AGENTS.md is 1,234 bytes (≤10 KB safety threshold)
|
|
171
183
|
✓ graph_db graph.db has all 4 expected tables
|
|
@@ -175,14 +187,17 @@ Codevira health check
|
|
|
175
187
|
✓ watcher_circuit watcher circuit clean (no recent failures)
|
|
176
188
|
✓ engine_kill_switch engine ON (default; CODEVIRA_ENGINE not set)
|
|
177
189
|
✓ claude_mcp_visibility codevira visible to Claude Code
|
|
190
|
+
✓ mcp_running_versions in-memory server matches installed wheel
|
|
191
|
+
✓ ghost_projects no stale project registrations
|
|
178
192
|
✓ crash_log_size no crash log (clean state)
|
|
193
|
+
✓ merge_driver decision-log merge driver configured
|
|
179
194
|
────────────────────────────────────────────────────────────
|
|
180
|
-
summary:
|
|
195
|
+
summary: 17 pass · 0 warn · 0 fail
|
|
181
196
|
```
|
|
182
197
|
|
|
183
198
|
### Daily-use commands
|
|
184
199
|
|
|
185
|
-
The CLI surface is
|
|
200
|
+
The CLI surface is 26 commands (the daily-use ones below):
|
|
186
201
|
|
|
187
202
|
| Command | What it does |
|
|
188
203
|
|---|---|
|
|
@@ -193,6 +208,7 @@ The CLI surface is 23 commands (the daily-use ones below):
|
|
|
193
208
|
| `codevira projects` | List tracked projects with staleness (`today` / `5d ago` / `stale 45d`); `projects archive <name>` drops one from the registry |
|
|
194
209
|
| `codevira index` | Build / refresh the code graph cache |
|
|
195
210
|
| `codevira sync` | Regenerate AGENTS.md + manifest + digest from `decisions.jsonl` |
|
|
211
|
+
| `codevira repair-ids` | **v3.7** — detect/repair cross-engineer decision-id collisions (`--apply` to rewrite; `--semantic` also reports near-duplicate decisions for review) |
|
|
196
212
|
| `codevira observe-git` | Classify past decisions as kept/modified/reverted from git history |
|
|
197
213
|
| `codevira replay` | Browse the decisions timeline (terminal / markdown / HTML) |
|
|
198
214
|
| `codevira search <query>` | Search decisions from the terminal (FTS5/BM25); `--all-projects` searches every registered repo, `--json` for scripts |
|
|
@@ -231,6 +247,23 @@ versions. User content outside the codevira markers stays.
|
|
|
231
247
|
|
|
232
248
|
---
|
|
233
249
|
|
|
250
|
+
## What's new in v3.7.0 — fresh memory, shared repos, one registration
|
|
251
|
+
|
|
252
|
+
> Three things users asked for: memory that *updates* instead of piling up
|
|
253
|
+
> stale decisions, memory that survives *two engineers on one repo*, and *one*
|
|
254
|
+
> MCP entry instead of one-per-project. All model-free, all local.
|
|
255
|
+
|
|
256
|
+
| Area | What you get |
|
|
257
|
+
|---|---|
|
|
258
|
+
| **Memory stays fresh** | `record_decision` now **supersedes** a strong, unprotected near-duplicate instead of appending a parallel twin, so stale copies stop accumulating. `get_session_context` hides superseded / outdated / reverted decisions. New `mark_decision_outdated(id)` retires a decision that's simply no longer true (reversible). Protected `do_not_revert` decisions are never auto-retired — the conflict is surfaced. |
|
|
259
|
+
| **Two engineers, one repo** | Decision ids used to collide silently when two branches merged (one decision shadowed on read). Now `read_merged` warns, `codevira repair-ids [--apply]` deterministically repairs (earliest writer keeps the id; losers get content-derived ids; a *fixed point*, so it can't oscillate), and a git **merge driver** — installed by `codevira init` — resolves collisions automatically on `git merge`. `--semantic` also reports near-duplicate decisions for review (never auto-merged). |
|
|
260
|
+
| **One MCP for all projects** | `codevira init` registers **one** user-scope server by default instead of one-per-project; it resolves the active project from the MCP client's workspace roots at runtime, so N projects no longer mean N entries in your IDE. Opt back with `--per-project`. The project-root pin is now per-request (`ContextVar`) so it can't leak across requests. |
|
|
261
|
+
| **Fixes** | Decision-id drift within a process (D000118) — record/search no longer split across two stores. `NotebookEdit` / camelCase edits no longer log `<unknown>` to the activity heatmap. Anti-Regression fix-history self-freshens on read instead of going stale until restart. |
|
|
262
|
+
|
|
263
|
+
Full v3.7.0 release notes: [CHANGELOG.md](CHANGELOG.md#370--2026-07-10).
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
234
267
|
## What's new in v3.5.0 — the read side gets intelligent
|
|
235
268
|
|
|
236
269
|
> Codevira's leverage is the **read** side: does it surface the *right*
|
|
@@ -324,7 +357,7 @@ data:
|
|
|
324
357
|
The agent always asks for what it needs, in the size it needs.
|
|
325
358
|
|
|
326
359
|
**Shrink the tool surface itself.** The advertised MCP `tools/list` is a
|
|
327
|
-
fixed per-session cost (~8K tokens for the full
|
|
360
|
+
fixed per-session cost (~8K tokens for the full 51-tool surface). Set
|
|
328
361
|
`CODEVIRA_TOOL_PROFILE=lean` in the MCP server's `env` block to advertise
|
|
329
362
|
only the 12 daily-driver tools (~71% smaller); hidden tools still work
|
|
330
363
|
when called explicitly. Bigger wins usually come from disabling MCP
|
|
@@ -334,10 +367,11 @@ servers you aren't actively using.
|
|
|
334
367
|
|
|
335
368
|
## MCP Tools
|
|
336
369
|
|
|
337
|
-
**
|
|
370
|
+
**51 tools** surfaced to AI clients via `tools/list` (token-optimized,
|
|
338
371
|
summary-first): the core decision/roadmap/graph surface plus the
|
|
339
372
|
v3.1.0 memory subsystems (working memory, skills, spatial, consensus,
|
|
340
|
-
reflections), the v3.3.0 preference tools,
|
|
373
|
+
reflections), the v3.3.0 preference tools, v3.5.0's `expand`, and v3.7.0's
|
|
374
|
+
`mark_decision_outdated`. One additional admin
|
|
341
375
|
tool (`refresh_graph`) is registered but hidden from `tools/list`
|
|
342
376
|
because it runs automatically in the background — humans invoke it via
|
|
343
377
|
`codevira sync`. Set `CODEVIRA_TOOL_PROFILE=lean` to advertise only
|
|
@@ -363,8 +397,9 @@ kill list.
|
|
|
363
397
|
|---|---|
|
|
364
398
|
| `record_decision` | Capture an architectural decision. Optional `do_not_revert=true` triggers hard enforcement at the Claude Code PreToolUse hook. Supports `tags`, `force`, `session_id`. |
|
|
365
399
|
| `supersede_decision(old_id, new_decision, reason)` | Retire an old decision and link to its replacement. Audit trail preserved. |
|
|
400
|
+
| `mark_decision_outdated(decision_id, reason)` | **v3.7** — tombstone a decision that's no longer true (with no successor) so it stops surfacing. Reversible via `set_decision_flag(is_outdated=false)`. |
|
|
366
401
|
| `reaffirm_decision(decision_id)` | Re-confirm a soft-expired `do_not_revert` lock is still wanted. |
|
|
367
|
-
| `set_decision_flag(decision_id, ...)` | Toggle `do_not_revert` / tags on an existing decision. |
|
|
402
|
+
| `set_decision_flag(decision_id, ...)` | Toggle `do_not_revert` / tags / `is_outdated` on an existing decision. |
|
|
368
403
|
| `write_session_log` | Structured session record. |
|
|
369
404
|
|
|
370
405
|
### Roadmap
|
|
@@ -448,7 +483,7 @@ the install lean (v2.3.0 may re-add specific grammars on demand).
|
|
|
448
483
|
| `do_not_revert` enforcement at Claude Code PreToolUse | Symbol tools (`get_signature` / `get_code`) cover Python / TS / JS / Go / Rust; for other languages the AI `Read`s the file directly (the legacy `[all-languages]` grammar pack was removed in v2.2.0) |
|
|
449
484
|
| FTS5 decision search with BM25 ranking | Real-time multi-machine sync — by design, codevira is local-first; for team sharing, commit `.codevira/` to git |
|
|
450
485
|
| Per-project + cross-machine project inventory (`global.db`) | Web UI for browsing decisions — use the `codevira://decisions` MCP resource in Claude Desktop, or `codevira replay --format html` for a static file |
|
|
451
|
-
| All
|
|
486
|
+
| All 51 surfaced MCP tools + 26 CLI commands + 8 engine policies | The HTTP server (`codevira serve`) is single-project per launch — for daily use, stick with stdio via `codevira setup` |
|
|
452
487
|
| Concurrent-safe storage layer (Posix `fcntl.flock` + Windows sentinel fallback). Proven against 50-thread + 20-subprocess stress + 29-attack chaos harness | The cross-process file-lock contract has been exercised on macOS + Linux CI; the Windows sentinel-file fallback is verified via unit-test simulation but hasn't been load-tested on real Windows yet |
|
|
453
488
|
| Code graph data store is functional but the v3.0.0 spec target (`<project>/.codevira-cache/graph.sqlite`) and the actual location (`<data_dir>/graph/graph.db`) drifted during the surface-cut audit. Tracked for v3.1 reconciliation | n/a (functional today; spec-truthfulness gap only) |
|
|
454
489
|
|
|
@@ -484,11 +519,12 @@ Common questions about setup, usage, architecture, and troubleshooting
|
|
|
484
519
|
|
|
485
520
|
## Roadmap
|
|
486
521
|
|
|
487
|
-
**Current release:** **v3.
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
522
|
+
**Current release:** **v3.7.0** — fresh memory, shared repos, one
|
|
523
|
+
registration: supersede-on-write + freshness-ranked reads +
|
|
524
|
+
`mark_decision_outdated` (stale decisions stop piling up), deterministic
|
|
525
|
+
cross-engineer decision-id collision repair (`repair-ids` + a git merge
|
|
526
|
+
driver), and one user-scope MCP registration for all your projects — all
|
|
527
|
+
model-free, all local.
|
|
492
528
|
|
|
493
529
|
**Next up** (directional, not dated):
|
|
494
530
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: codevira
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.7.0
|
|
4
4
|
Summary: Cross-IDE decision enforcement for AI coding agents. 1 MB per project, in your repo, no cloud, no vectors. Claude Code, Cursor, Windsurf, Antigravity, Codex all share the same in-repo memory; hooks block AI tool calls that violate prior decisions. MIT, local-first.
|
|
5
5
|
Author-email: Sachin Shelke <sachin.worldnet@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -47,7 +47,11 @@ Requires-Dist: mypy>=1.10; extra == "dev"
|
|
|
47
47
|
Requires-Dist: types-PyYAML; extra == "dev"
|
|
48
48
|
Requires-Dist: pre-commit>=3.5; extra == "dev"
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
<p align="center">
|
|
51
|
+
<img src="https://raw.githubusercontent.com/sachinshelke/codevira/main/website/assets/logo.png" alt="Codevira" width="140" height="140">
|
|
52
|
+
</p>
|
|
53
|
+
|
|
54
|
+
<h1 align="center">Codevira</h1>
|
|
51
55
|
|
|
52
56
|
> **Cross-IDE decision memory for AI coding agents.** One in-repo memory
|
|
53
57
|
> layer that every AI tool you use can read — plus PreToolUse hooks that
|
|
@@ -160,11 +164,18 @@ Then commit `.codevira/` + `AGENTS.md` + `.gitignore` to git so your
|
|
|
160
164
|
teammates inherit the project memory. Open any IDE; codevira's MCP
|
|
161
165
|
server is ready.
|
|
162
166
|
|
|
167
|
+
> **Opt-in tracking (v3.7.0).** `codevira init` is the explicit opt-in:
|
|
168
|
+
> codevira tracks **only** projects you've `init`-ed. A project you merely
|
|
169
|
+
> open — but never `init` — stays inert (its tools return a "run `codevira
|
|
170
|
+
> init`" hint and nothing is written), so `~/.codevira/projects/` never fills
|
|
171
|
+
> with projects you didn't choose. Set `CODEVIRA_AUTO_ADOPT=1` to track every
|
|
172
|
+
> project you open instead.
|
|
173
|
+
|
|
163
174
|
**Verify:**
|
|
164
175
|
|
|
165
176
|
```bash
|
|
166
|
-
codevira doctor #
|
|
167
|
-
codevira
|
|
177
|
+
codevira doctor # 18 health checks, ✓/⚠/✗
|
|
178
|
+
codevira replay # browse the decisions timeline (any recorded yet?)
|
|
168
179
|
codevira sync # regen AGENTS.md from current decisions.jsonl
|
|
169
180
|
```
|
|
170
181
|
|
|
@@ -205,7 +216,7 @@ Flags:
|
|
|
205
216
|
|
|
206
217
|
### What `codevira doctor` reports
|
|
207
218
|
|
|
208
|
-
|
|
219
|
+
18 health checks in one run, each with a concrete `fix_command` for
|
|
209
220
|
any WARN or FAIL. Read-only — never modifies anything.
|
|
210
221
|
|
|
211
222
|
```text
|
|
@@ -215,6 +226,7 @@ Codevira health check
|
|
|
215
226
|
✓ python_version Python 3.13 (≥ 3.10 required)
|
|
216
227
|
✓ codevira_data_dir /Users/you/.codevira exists and is writable
|
|
217
228
|
✓ project_root /Users/you/Projects/my-project is a valid project root
|
|
229
|
+
✓ project_binding resolved from workspace → /Users/you/Projects/my-project
|
|
218
230
|
✓ codevira_dir .codevira/ present (4 decision(s))
|
|
219
231
|
✓ agents_md_size AGENTS.md is 1,234 bytes (≤10 KB safety threshold)
|
|
220
232
|
✓ graph_db graph.db has all 4 expected tables
|
|
@@ -224,14 +236,17 @@ Codevira health check
|
|
|
224
236
|
✓ watcher_circuit watcher circuit clean (no recent failures)
|
|
225
237
|
✓ engine_kill_switch engine ON (default; CODEVIRA_ENGINE not set)
|
|
226
238
|
✓ claude_mcp_visibility codevira visible to Claude Code
|
|
239
|
+
✓ mcp_running_versions in-memory server matches installed wheel
|
|
240
|
+
✓ ghost_projects no stale project registrations
|
|
227
241
|
✓ crash_log_size no crash log (clean state)
|
|
242
|
+
✓ merge_driver decision-log merge driver configured
|
|
228
243
|
────────────────────────────────────────────────────────────
|
|
229
|
-
summary:
|
|
244
|
+
summary: 17 pass · 0 warn · 0 fail
|
|
230
245
|
```
|
|
231
246
|
|
|
232
247
|
### Daily-use commands
|
|
233
248
|
|
|
234
|
-
The CLI surface is
|
|
249
|
+
The CLI surface is 26 commands (the daily-use ones below):
|
|
235
250
|
|
|
236
251
|
| Command | What it does |
|
|
237
252
|
|---|---|
|
|
@@ -242,6 +257,7 @@ The CLI surface is 23 commands (the daily-use ones below):
|
|
|
242
257
|
| `codevira projects` | List tracked projects with staleness (`today` / `5d ago` / `stale 45d`); `projects archive <name>` drops one from the registry |
|
|
243
258
|
| `codevira index` | Build / refresh the code graph cache |
|
|
244
259
|
| `codevira sync` | Regenerate AGENTS.md + manifest + digest from `decisions.jsonl` |
|
|
260
|
+
| `codevira repair-ids` | **v3.7** — detect/repair cross-engineer decision-id collisions (`--apply` to rewrite; `--semantic` also reports near-duplicate decisions for review) |
|
|
245
261
|
| `codevira observe-git` | Classify past decisions as kept/modified/reverted from git history |
|
|
246
262
|
| `codevira replay` | Browse the decisions timeline (terminal / markdown / HTML) |
|
|
247
263
|
| `codevira search <query>` | Search decisions from the terminal (FTS5/BM25); `--all-projects` searches every registered repo, `--json` for scripts |
|
|
@@ -280,6 +296,23 @@ versions. User content outside the codevira markers stays.
|
|
|
280
296
|
|
|
281
297
|
---
|
|
282
298
|
|
|
299
|
+
## What's new in v3.7.0 — fresh memory, shared repos, one registration
|
|
300
|
+
|
|
301
|
+
> Three things users asked for: memory that *updates* instead of piling up
|
|
302
|
+
> stale decisions, memory that survives *two engineers on one repo*, and *one*
|
|
303
|
+
> MCP entry instead of one-per-project. All model-free, all local.
|
|
304
|
+
|
|
305
|
+
| Area | What you get |
|
|
306
|
+
|---|---|
|
|
307
|
+
| **Memory stays fresh** | `record_decision` now **supersedes** a strong, unprotected near-duplicate instead of appending a parallel twin, so stale copies stop accumulating. `get_session_context` hides superseded / outdated / reverted decisions. New `mark_decision_outdated(id)` retires a decision that's simply no longer true (reversible). Protected `do_not_revert` decisions are never auto-retired — the conflict is surfaced. |
|
|
308
|
+
| **Two engineers, one repo** | Decision ids used to collide silently when two branches merged (one decision shadowed on read). Now `read_merged` warns, `codevira repair-ids [--apply]` deterministically repairs (earliest writer keeps the id; losers get content-derived ids; a *fixed point*, so it can't oscillate), and a git **merge driver** — installed by `codevira init` — resolves collisions automatically on `git merge`. `--semantic` also reports near-duplicate decisions for review (never auto-merged). |
|
|
309
|
+
| **One MCP for all projects** | `codevira init` registers **one** user-scope server by default instead of one-per-project; it resolves the active project from the MCP client's workspace roots at runtime, so N projects no longer mean N entries in your IDE. Opt back with `--per-project`. The project-root pin is now per-request (`ContextVar`) so it can't leak across requests. |
|
|
310
|
+
| **Fixes** | Decision-id drift within a process (D000118) — record/search no longer split across two stores. `NotebookEdit` / camelCase edits no longer log `<unknown>` to the activity heatmap. Anti-Regression fix-history self-freshens on read instead of going stale until restart. |
|
|
311
|
+
|
|
312
|
+
Full v3.7.0 release notes: [CHANGELOG.md](CHANGELOG.md#370--2026-07-10).
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
283
316
|
## What's new in v3.5.0 — the read side gets intelligent
|
|
284
317
|
|
|
285
318
|
> Codevira's leverage is the **read** side: does it surface the *right*
|
|
@@ -373,7 +406,7 @@ data:
|
|
|
373
406
|
The agent always asks for what it needs, in the size it needs.
|
|
374
407
|
|
|
375
408
|
**Shrink the tool surface itself.** The advertised MCP `tools/list` is a
|
|
376
|
-
fixed per-session cost (~8K tokens for the full
|
|
409
|
+
fixed per-session cost (~8K tokens for the full 51-tool surface). Set
|
|
377
410
|
`CODEVIRA_TOOL_PROFILE=lean` in the MCP server's `env` block to advertise
|
|
378
411
|
only the 12 daily-driver tools (~71% smaller); hidden tools still work
|
|
379
412
|
when called explicitly. Bigger wins usually come from disabling MCP
|
|
@@ -383,10 +416,11 @@ servers you aren't actively using.
|
|
|
383
416
|
|
|
384
417
|
## MCP Tools
|
|
385
418
|
|
|
386
|
-
**
|
|
419
|
+
**51 tools** surfaced to AI clients via `tools/list` (token-optimized,
|
|
387
420
|
summary-first): the core decision/roadmap/graph surface plus the
|
|
388
421
|
v3.1.0 memory subsystems (working memory, skills, spatial, consensus,
|
|
389
|
-
reflections), the v3.3.0 preference tools,
|
|
422
|
+
reflections), the v3.3.0 preference tools, v3.5.0's `expand`, and v3.7.0's
|
|
423
|
+
`mark_decision_outdated`. One additional admin
|
|
390
424
|
tool (`refresh_graph`) is registered but hidden from `tools/list`
|
|
391
425
|
because it runs automatically in the background — humans invoke it via
|
|
392
426
|
`codevira sync`. Set `CODEVIRA_TOOL_PROFILE=lean` to advertise only
|
|
@@ -412,8 +446,9 @@ kill list.
|
|
|
412
446
|
|---|---|
|
|
413
447
|
| `record_decision` | Capture an architectural decision. Optional `do_not_revert=true` triggers hard enforcement at the Claude Code PreToolUse hook. Supports `tags`, `force`, `session_id`. |
|
|
414
448
|
| `supersede_decision(old_id, new_decision, reason)` | Retire an old decision and link to its replacement. Audit trail preserved. |
|
|
449
|
+
| `mark_decision_outdated(decision_id, reason)` | **v3.7** — tombstone a decision that's no longer true (with no successor) so it stops surfacing. Reversible via `set_decision_flag(is_outdated=false)`. |
|
|
415
450
|
| `reaffirm_decision(decision_id)` | Re-confirm a soft-expired `do_not_revert` lock is still wanted. |
|
|
416
|
-
| `set_decision_flag(decision_id, ...)` | Toggle `do_not_revert` / tags on an existing decision. |
|
|
451
|
+
| `set_decision_flag(decision_id, ...)` | Toggle `do_not_revert` / tags / `is_outdated` on an existing decision. |
|
|
417
452
|
| `write_session_log` | Structured session record. |
|
|
418
453
|
|
|
419
454
|
### Roadmap
|
|
@@ -497,7 +532,7 @@ the install lean (v2.3.0 may re-add specific grammars on demand).
|
|
|
497
532
|
| `do_not_revert` enforcement at Claude Code PreToolUse | Symbol tools (`get_signature` / `get_code`) cover Python / TS / JS / Go / Rust; for other languages the AI `Read`s the file directly (the legacy `[all-languages]` grammar pack was removed in v2.2.0) |
|
|
498
533
|
| FTS5 decision search with BM25 ranking | Real-time multi-machine sync — by design, codevira is local-first; for team sharing, commit `.codevira/` to git |
|
|
499
534
|
| Per-project + cross-machine project inventory (`global.db`) | Web UI for browsing decisions — use the `codevira://decisions` MCP resource in Claude Desktop, or `codevira replay --format html` for a static file |
|
|
500
|
-
| All
|
|
535
|
+
| All 51 surfaced MCP tools + 26 CLI commands + 8 engine policies | The HTTP server (`codevira serve`) is single-project per launch — for daily use, stick with stdio via `codevira setup` |
|
|
501
536
|
| Concurrent-safe storage layer (Posix `fcntl.flock` + Windows sentinel fallback). Proven against 50-thread + 20-subprocess stress + 29-attack chaos harness | The cross-process file-lock contract has been exercised on macOS + Linux CI; the Windows sentinel-file fallback is verified via unit-test simulation but hasn't been load-tested on real Windows yet |
|
|
502
537
|
| Code graph data store is functional but the v3.0.0 spec target (`<project>/.codevira-cache/graph.sqlite`) and the actual location (`<data_dir>/graph/graph.db`) drifted during the surface-cut audit. Tracked for v3.1 reconciliation | n/a (functional today; spec-truthfulness gap only) |
|
|
503
538
|
|
|
@@ -533,11 +568,12 @@ Common questions about setup, usage, architecture, and troubleshooting
|
|
|
533
568
|
|
|
534
569
|
## Roadmap
|
|
535
570
|
|
|
536
|
-
**Current release:** **v3.
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
571
|
+
**Current release:** **v3.7.0** — fresh memory, shared repos, one
|
|
572
|
+
registration: supersede-on-write + freshness-ranked reads +
|
|
573
|
+
`mark_decision_outdated` (stale decisions stop piling up), deterministic
|
|
574
|
+
cross-engineer decision-id collision repair (`repair-ids` + a git merge
|
|
575
|
+
driver), and one user-scope MCP registration for all your projects — all
|
|
576
|
+
model-free, all local.
|
|
541
577
|
|
|
542
578
|
**Next up** (directional, not dated):
|
|
543
579
|
|