Two-way duplication of the SMA-cross sample harness topology (aura-engine test ↔ test) #53
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The value-empty SMA-cross signal-quality harness topology (the
sma_crosscomposite + the 5-node root with two
Recordersinks) is now defined verbatimat three sites that must move in lockstep:
crates/aura-engine/src/blueprint.rs(#[cfg(test)] composite_sma_cross_harness)crates/aura-engine/src/sweep.rs(#[cfg(test)], duplicated for thesweep_equals_n_independent_runstest)crates/aura-cli/src/main.rs(productionsample_blueprint_with_sinks)No shared fixture and no test pins them equal; an edit to one silently diverges
the others. Surfaced by the cycle-0028 architect drift review.
Possible directions (none chosen): a shared
#[cfg(test)]fixture for the twoengine copies; or the CLI/engine sharing one sample builder. Constraint: the
engine ships no sample (C16 — only
examples/fixtures for its own tests), so asingle production sample shared across engine+CLI is not free.
context: pure tidy debt, blocks nothing. Related to the closed #14 (Recorder
fixture duplication). depends on: nothing.
Re-scoped three-way → two-way (title updated).
Cycle 0036 (
94af4c7) enriched the CLI sample (sample_blueprint_with_sinks,aura-cli/src/main.rs) into a nested trend+momentum blend, so the CLI is no longer a verbatim peer of the bare SMA-cross harness — that leg of the duplication is gone.What remains is a genuine same-crate two-copy
#[cfg(test)]duplication insideaura-engine:blueprint.rs:1593sma_cross()+:1614composite_sma_cross_harness()sweep.rs:274sma_cross()+:298composite_sma_cross_harness()(sweep.rs:271documents itself as "duplicated from blueprint.rs")No test pins them equal; an edit to one silently diverges the other. Both live in the same crate, so a shared
#[cfg(test)]fixtures module is the natural fix — the C16 cross-crate tension the original raised is now moot.Note:
graph_model.rs:311/:340holds a fourth, intentionally-minimal copy kept small for the golden — leave it out of the dedup. Picking this up now as a tidy.Three-way duplication of the SMA-cross sample harness topology (test+test+CLI)to Two-way duplication of the SMA-cross sample harness topology (aura-engine test ↔ test)