Reduce the pip-equity stream to summary metrics and emit a run manifest #6
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?
C18 (docs/design/INDEX.md) states the walking skeleton emits a manifest +
metrics per run from day one (the queryable run registry is a later milestone
over manifests that already exist). This issue produces that pair.
Scope
A reduction over the recorded pip-equity stream into summary metrics — at least
total pips, peak-to-trough drawdown, and number of exposure sign-flips (a
turnover proxy) — plus a run manifest: the tiny reproducible descriptor of
C18 (node identity / commit, param-set, data-window, RNG-seed, broker profile).
Determinism (C1/C12) makes the run reproducible from this manifest, so the
skeleton stores manifest + metrics and re-derives full results on demand.
Minimal surface: a structured metrics value emitted to stdout (and/or a small
struct), not yet the queryable registry or lineage. The atomic-unit shape is
(frozen topology + param-set + data-window + seed) -> run -> metrics (C12).
Anchors
• C18 — manifest + metrics per run from day one; structured depth later.
• C12 — the atomic sim unit (topology + params + window + seed -> metrics).
Acceptance
[ ] A run emits summary metrics (total pips, max drawdown, exposure sign-flips).
[ ] A run emits a manifest: node identity, params, data-window, seed, broker.
[ ] Output is structured (machine-readable), per the CLI/LLM face (C14).
[ ] Same manifest -> same metrics (C1/C12).