a56ab7859d
C28 phase 2 (Stratification); realizes item 1 of the deferred #147. The engine's production surface no longer names a backtest-metric type: - RunReport becomes generic over its metric payload M; sweep/mc/walkforward/ blueprint thread the parameter (SweepPoint<M>, SweepFamily<M>, WindowRun<M>, WalkForwardResult<M>). RunManifest stays concrete and engine-owned (its selection: Option<FamilySelection> embeds the foundation-grade analysis type). - summarize and the MC assembly (McDraw/McFamily/McAggregate/RBootstrap/ r_bootstrap/monte_carlo) move to aura-backtest - McAggregate::from_draws reads RunMetrics fields by name, so generifying it is the phase-6 metric-vocabulary abstraction (#147 item 2), still deferred; wholesale relocation is the honest cut. The concrete instantiation lives in aura-backtest as `type RunReport = aura_engine::RunReport<RunMetrics>` + sibling aliases. - the statistics kernel (MetricStats/quantile/resample_block/SplitMix64) moves to the aura-analysis foundation; the engine re-imports it (inner->foundation, legal) and re-exports it so existing consumers stay source-compatible. Dependency inversion in one commit: aura-engine drops aura-backtest from [dependencies] (back to dev-deps for its SimBroker/RunMetrics test fixtures); aura-backtest gains aura-engine. Cycle-free for lib targets - the cycle closes only through the engine's dev-dep edge, the pattern aura-vocabulary already uses. aura-backtest reaches the kernel transitively through the engine re-export, so no aura-backtest -> aura-analysis edge exists (the C28 ladder permits backtest -> {core, engine} only). run_indexed / SplitMix64::next_f64 widened pub(crate) -> pub for cross-crate use. Consumers (registry/campaign/cli/composites/ingest/bench) rewired by import path only, no call-site logic changed. The c28_layering structural test extends to the full ladder: aura-analysis (no aura-* deps), aura-engine ⊆ {core, analysis}, aura-backtest ⊆ {core, engine}. Behaviour-preserving: 1448/0 tests, clippy -D warnings clean, serde shapes byte-identical (C18 - RunReport<M> keeps field order manifest,metrics; the CLI pre-serialized-splice contract unchanged), moved code traceable via git rename detection. Cycle-introduced broken intra-doc links fixed. closes #292
43 lines
1.8 KiB
TOML
43 lines
1.8 KiB
TOML
[package]
|
|
name = "aura-bench"
|
|
edition.workspace = true
|
|
version.workspace = true
|
|
license.workspace = true
|
|
publish.workspace = true
|
|
|
|
[[bin]]
|
|
name = "aura-bench"
|
|
path = "src/main.rs"
|
|
|
|
# Dev-only measurement tool (issue #251): benches the engine / ingest / campaign
|
|
# surfaces against committed baselines under baselines/. No production crate
|
|
# depends on this crate; nothing here reaches a frozen deploy artifact (C13).
|
|
[dependencies]
|
|
aura-core = { path = "../aura-core" }
|
|
aura-engine = { path = "../aura-engine" }
|
|
aura-std = { path = "../aura-std" }
|
|
aura-ingest = { path = "../aura-ingest" }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
# clap: same CLI surface convention as aura-cli (usage errors exit 2).
|
|
clap = { version = "4", features = ["derive"] }
|
|
# zip: writes the synthetic 48-byte M1 archives the ingest/campaign surfaces
|
|
# measure — the same on-disk format the test suites hand-pack as a dev-dep
|
|
# (aura-cli/aura-ingest). First runtime (non-dev) use in the workspace, admitted
|
|
# under the C16 per-case policy: aura-bench is a dev tool outside every deploy
|
|
# path, and zip is already in the build graph via data-server.
|
|
zip = "2"
|
|
|
|
[dev-dependencies]
|
|
# Lockstep guard for the campaign fingerprint's stdout-schema coupling: the
|
|
# winner_fingerprint test constructs a REAL CampaignRunRecord (aura-registry)
|
|
# with a real FamilySelection (aura-analysis) and serializes it, so a field
|
|
# rename in those crates fails this crate's tests instead of silently eroding
|
|
# fingerprint coverage.
|
|
aura-registry = { path = "../aura-registry" }
|
|
aura-analysis = { path = "../aura-analysis" }
|
|
# the winner_fingerprint lockstep guard's RBootstrap literal (moved from
|
|
# aura-engine, #291/#292) — test-only, same coupling-guard rationale as the
|
|
# other three dev-deps above.
|
|
aura-backtest = { path = "../aura-backtest" }
|