tests(benchmarks): add ASV performance benchmarks for the domain module #10956

Open
HAL9000 wants to merge 2 commits from feature/issue-1925-add-asv-tests-for-domain-module into master

2 Commits

Author SHA1 Message Date
HAL9000 3a88434e21 fix(benchmarks): correct time_build_provenance_map to call build_provenance_map
CI / lint (pull_request) Successful in 38s
CI / build (pull_request) Successful in 37s
CI / helm (pull_request) Successful in 43s
CI / push-validation (pull_request) Successful in 28s
CI / unit_tests (pull_request) Successful in 6m33s
CI / quality (pull_request) Failing after 11m41s
CI / security (pull_request) Failing after 11m43s
CI / typecheck (pull_request) Failing after 11m43s
CI / integration_tests (pull_request) Successful in 11m30s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 7s
The method body was calling compute_context_hash on a single-element
slice instead of build_provenance_map on all 200 fragments. Import
build_provenance_map from cleveragents.domain.models.core and use it.
2026-06-10 10:18:59 -04:00
HAL9000 6c9fb00644 test(domain): add ASV performance benchmarks for the domain module
Added comprehensive ASV performance benchmarks covering:
- domain_models_bench.py: Plan, Change, Context, Project, DomainBaseModel
- domain_acms_bench.py: ACMS scope resolution, tiers, strategy stubs, detail maps
- domain_contexts_bench.py: ContextFragment, ScoredFragment, provenance, hashing
- domain_repositories_bench.py: Plan identity, phase transitions, change tracking

All benchmarks use correct v3 model field names and follow project conventions.

ISSUES CLOSED: #1925
2026-06-10 10:18:59 -04:00