Wire --trace (per-member stream tracing) for the stage1-r sweep #135

Closed
opened 2026-06-24 16:16:45 +02:00 by Brummel · 1 comment
Owner

Cycle 0066 (#133) added aura sweep --strategy stage1-r, but per-member stream
tracing is not wired for it: aura sweep --strategy stage1-r --trace <n> is refused
explicitly (exit 2) rather than writing per-member trace dirs, because a stage1-r
member has four taps (equity / exposure / R-record / r_equity) and would need
persist_traces_r per member_key — unlike the sma/momentum sweeps, whose --trace
writes two-tap member dirs (tested at cli_run.rs *_trace_persists_*).

Scope: have stage1_r_sweep_family honour --trace by persisting each member's
equity / exposure / r_equity under runs/traces/<n>/<member_key>/ (via
persist_traces_r + member_key, mirroring momentum_sweep_family), then drop the
--trace-refusal guard in run_sweep and update the refusal test to assert the
member dirs instead. This makes --trace symmetric across all three sweep strategies
and lets a swept stage1-r member be charted (aura chart <n>/<member_key> --tap r_equity).

Deferred from 0066 by design (the cycle's deliverable was the rankable family store +
rank-by-SQN, not per-member chart persistence); the refusal is the honest interim
(no silent no-op). Reference: the _trace slot + guard in run_sweep,
stage1_r_sweep_family doc in crates/aura-cli/src/main.rs.

Cycle 0066 (#133) added `aura sweep --strategy stage1-r`, but per-member stream tracing is not wired for it: `aura sweep --strategy stage1-r --trace <n>` is refused explicitly (exit 2) rather than writing per-member trace dirs, because a stage1-r member has four taps (equity / exposure / R-record / r_equity) and would need `persist_traces_r` per `member_key` — unlike the sma/momentum sweeps, whose `--trace` writes two-tap member dirs (tested at cli_run.rs `*_trace_persists_*`). Scope: have `stage1_r_sweep_family` honour `--trace` by persisting each member's equity / exposure / r_equity under `runs/traces/<n>/<member_key>/` (via `persist_traces_r` + `member_key`, mirroring `momentum_sweep_family`), then drop the `--trace`-refusal guard in `run_sweep` and update the refusal test to assert the member dirs instead. This makes `--trace` symmetric across all three sweep strategies and lets a swept stage1-r member be charted (`aura chart <n>/<member_key> --tap r_equity`). Deferred from 0066 by design (the cycle's deliverable was the rankable family store + rank-by-SQN, not per-member chart persistence); the refusal is the honest interim (no silent no-op). Reference: the `_trace` slot + guard in `run_sweep`, `stage1_r_sweep_family` doc in crates/aura-cli/src/main.rs.
Brummel added the idea label 2026-06-24 16:16:45 +02:00
Author
Owner

Design reconciliation (specify) — cycle 0067

Spec: 0067-r-sweep-followups. Approach resolved below (derived autonomously
under /boss; reply to veto).

  • Fork: how to persist a stage1-r member's taps → mirror
    momentum_sweep_family's persist pattern, reusing the existing
    persist_traces_r (3 taps: equity / exposure / r_equity), keyed by the
    generic member_key over the varying fast/slow axes; drop the
    --trace-refusal guard in run_sweep.
    Basis: derived — this is the issue's prescribed approach and the established
    sibling template; it makes --trace symmetric across all three sweep
    strategies (sma / momentum / stage1-r). The fixed R-params
    (stop_length / stop_k / bias_scale) stay in the manifest but are
    excluded from member_key (they are not varying), exactly as the 0066
    manifest-completeness fix arranged. A swept member is then chartable via
    aura chart <n>/<member_key> --tap r_equity.
## Design reconciliation (specify) — cycle 0067 Spec: `0067-r-sweep-followups`. Approach resolved below (derived autonomously under `/boss`; reply to veto). - **Fork: how to persist a stage1-r member's taps** → mirror `momentum_sweep_family`'s persist pattern, reusing the existing `persist_traces_r` (3 taps: equity / exposure / r_equity), keyed by the generic `member_key` over the varying fast/slow axes; drop the `--trace`-refusal guard in `run_sweep`. Basis: derived — this is the issue's prescribed approach and the established sibling template; it makes `--trace` symmetric across all three sweep strategies (sma / momentum / stage1-r). The fixed R-params (`stop_length` / `stop_k` / `bias_scale`) stay in the manifest but are excluded from `member_key` (they are not varying), exactly as the 0066 manifest-completeness fix arranged. A swept member is then chartable via `aura chart <n>/<member_key> --tap r_equity`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Brummel/Aura#135