Add comprehensive docs and supercharged tests for Code Domain V2 (#70)
Documentation - docs/reference/code-domain-v2.md: complete 11-section reference covering all 7 phases — symbol identity model, every new command, predicate grammar, index infrastructure, coordination layer, merge engine v2, semantic versioning, call-graph tier, architecture internals, and full type reference.
Tests (7 new test files, 273 new tests → 1070 total) - test_predicate.py: tokeniser, all 10 keys × 7 operators, OR/NOT/AND/grouping, parse_query list mode, 9 error cases. - test_refactor_classify.py: classify_exact (all 8 classifications), classify_composite (exact rename/move/rename+move detection, inferred extract), RefactorClassification.to_dict. - test_callgraph.py: build_forward_graph, build_reverse_graph, transitive_callers including cycle-safety, diamond dependency, max_depth limit. - test_coordination.py: Reservation and Intent create/load/active/round-trip, TTL expiry, corrupt-file resilience. - test_indices.py: SymbolHistoryEntry round-trip, symbol_history and hash_occurrence save/load/schema compliance, index_info absent/present/corrupt reporting. - test_sem_ver.py: infer_sem_ver_bump for all op types, ConflictRecord dataclass, major-wins precedence, multiple breaking changes accumulation. - test_code_commands_v2.py: 96 CLI integration tests covering all Phase 1–7 commands and call-graph tier (lineage, api-surface, codemap, clones, checkout-symbol, semantic-cherry-pick, query v2, query-history, index rebuild/status, detect-refactor schema v2, reserve, intent, forecast, plan-merge, shard, reconcile, breakage, invariants, commit sem_ver_bump, impact, dead, coverage, deps, find-symbol, patch).
Co-authored-by: Gabriel Cardona <gabriel@tellurstori.com>
Comments
0No comments yet. Be the first to start the discussion.