Single-source the stage1-r param-name suffix remapping (FAST/SLOW_LENGTH lockstep) #167

Closed
opened 2026-06-30 22:44:35 +02:00 by Brummel · 0 comments
Owner

The cycle-0092 restructure of stage1_r_graph into stage1_signal() +
wrap_stage1r() (#165) nests the signal as a Composite, which prefixes its
param-space names (stage1_signal.fast.length). The sweep / walkforward / MC
by-name binding (.axis("fast.length")) is reconciled by suffix-resolution:
FAST_LENGTH_SUFFIX / SLOW_LENGTH_SUFFIX consts + per-axis
.ends_with(...).expect(...) lookups + stage1_r_friendly_name arms mapping the
prefixed names back to the bare manifest names (the #137 stop-knob pattern,
extended) — all in crates/aura-cli/src/main.rs.

Claim (verified by the cycle-0092 architect review + the green suite): this is
hand-kept in lockstep and grows per nesting-level / per knob; a miss panics the
sweep path (the .expect). Build-validated today — full suite green, no
correctness risk in the interim — but a maintenance hazard.

Single-source the prefix-resolution: one helper / const set that the SMA-axis
resolution and the friendly-name remapping both derive from, so a new knob or an
added nesting level cannot silently desync (or panic). Surfaced by the
cycle-0092 architect drift review (classified debt-med).

The cycle-0092 restructure of `stage1_r_graph` into `stage1_signal()` + `wrap_stage1r()` (#165) nests the signal as a `Composite`, which prefixes its param-space names (`stage1_signal.fast.length`). The sweep / walkforward / MC by-name binding (`.axis("fast.length")`) is reconciled by suffix-resolution: `FAST_LENGTH_SUFFIX` / `SLOW_LENGTH_SUFFIX` consts + per-axis `.ends_with(...).expect(...)` lookups + `stage1_r_friendly_name` arms mapping the prefixed names back to the bare manifest names (the #137 stop-knob pattern, extended) — all in `crates/aura-cli/src/main.rs`. Claim (verified by the cycle-0092 architect review + the green suite): this is hand-kept in lockstep and grows per nesting-level / per knob; a miss panics the sweep path (the `.expect`). Build-validated today — full suite green, no correctness risk in the interim — but a maintenance hazard. Single-source the prefix-resolution: one helper / const set that the SMA-axis resolution and the friendly-name remapping both derive from, so a new knob or an added nesting level cannot silently desync (or panic). Surfaced by the cycle-0092 architect drift review (classified debt-med).
Brummel added the idea label 2026-06-30 22:44:35 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Brummel/Aura#167