feat(research): reproduce retained canonical runs with economic comparison

This commit is contained in:
Boki 2026-10-24 10:02:21 -04:00
parent e3bd708838
commit 30accfcf43
31 changed files with 2969 additions and 28 deletions

View file

@ -1,8 +1,8 @@
# Revised development roadmap
Baseline `b7aeca4` · execution 2026-10-24 · **R03 committed; R04 workspace validated and awaiting acceptance/commit**
Baseline `b7aeca4` · execution 2026-10-24 · **R04 committed; R12 original reproduction validated and awaiting acceptance/commit**
Authorization update: the owner requested “commit and continue”. R03 is committed as `ee45257`; R04 is implemented under ADR-006. Performance work remains paused. New R04 commits, pushes, PRs and trading/default-engine operations remain outside this continuation’s scope.
Authorization update: the owner requested “how far are we in the backlog, also commit and continue”. R04 is committed as `e3bd708`; R12 is implemented under ADR-006 using the accepted retained-input R05 component. **33/45 scheduled tasks are committed; R12 is the next validated task.** Full R05 remains partial. Performance work remains paused. New R12 commits, pushes, PRs and trading/default-engine operations remain outside this continuation's scope.
## Strategy and review outcome
@ -568,3 +568,18 @@ The initial sandbox check stalled on native-worker IPC; permitted checks passed.
No backend financial authority, second evidence store or creation-receipt framework was added. Initial metadata creation still cannot guarantee exactly-once semantics across an ambiguous response; the UI makes this explicit. No performance work, new-wave commit, push, PR, candidate execution, default/multi-asset activation or trading operation occurred.
**Recommended next product slice: R12 original-run reproduction**, limited to already-retained inputs and a supported installed build. The current manifest still blocks R12 on full R05. Before implementation, record its narrower component prerequisite and pin lineage/admission/current-approval rules; migration 19 presently binds ordinary admission to current template settings, so snapshot copying alone is insufficient. Keep R05 incomplete, R06/S06 gated, and historical build provisioning/source preparation outside that slice.
## Twenty-sixth-wave handoff — 2026-10-24
R04 is accepted and committed as `e3bd708`. R12 is independently reviewed and `validated_uncommitted`. Twenty-six implementation/test files add original reproduction through the existing durable runner, retained artifacts and financial engine. Backend/frontend agents used disjoint worktrees under `/tmp/stock-bot-wave26.38tu9A/`; root owned shared contracts, comparison, migrations/fixtures and browser integration.
- **Original versus current:** the run detail previews the original dataset, immutable strategy version, parameters, financial policies and build. Reproduce original creates a new linked run; ordinary submission continues to use current template settings. Missing inputs or unsupported builds remain explicit, with old results readable.
- **Guarded admission:** authenticated preview/POST/comparison routes preserve the original economic request. Only new run/session/account identities and current approval of the original version change. Migration 21 enforces immutable lineage, retained identity and source-copy guards. Accepted idempotency receipts precede current eligibility checks; no provider or current-code fallback.
- **Comparison:** versioned server-side hashes cover the complete validated request, Rust financial envelope and canonical analytics. Normalize only admission identity; retain actual market sessions, owner/order/fill IDs, monetary strings, null reasons and ordered arrays. No second accounting implementation.
- **UI reliability:** ambiguous submissions retain the same intent/key; late responses cannot navigate away from a newer selection. Lineage and match/mismatch diagnostics survive reload. The existing controls test now restores its own ResizeObserver harness correctly.
- **Validation:** full repository check passed, including **662 integration and 150 Rust tests** (4 manual Rust ignored), build/source/contracts/secrets/lint and 93 tooling/43 utility/44 calculation tests. Full PostgreSQL/Redis: **169 tests / 1376 assertions**. Chromium: **9 workflows / 215 assertions**, including actual original-versus-current execution and receipt replay. Focused SQL: **10 / 97**; independent UI: **106 / 555**; independent HTTP/hash: **10 / 96**. Strict changed-test types, scoped lint/format and diff checks passed.
- **Recorded identity:** source archive/hash and all 26 authored file hashes are in `manifest.json` → `twenty_sixth_wave_validation`. Release addon SHA256 `ef00eed556f5c32332d36a9a00ef710682e90deb00b54552e4b5c8bfdfbe8103` matches the previous wave; no Rust semantics changed. Both exact disposable test containers were stopped; development services were untouched.
Scope is completed retained canonical single-asset trusted built-ins on the same installed build. Hash agreement proves matching retained economic outputs, not statistical validity or profitability. Historical executable provisioning, provider-to-v2 preparation, candidate isolation and multi-asset/default cutover are not included. R05 remains partial; R06/S06 remain blocked. No performance optimization, profiling, benchmark, new-wave commit, push, PR or trading operation occurred.
**Recommended next wave:** an R06 retained-input experiment component, then a focused R07 sweep UI against pinned APIs. One immutable strategy version, eligible single-asset dataset, installed build and fixed policies; deterministic bounded parameter grids expand into the existing durable runs/outbox. Independent review confirms provider preparation is not required for those retained inputs. Before execution, record component prerequisites without marking full R05/R06 complete or silently releasing R06/R07/S06. Experiment admission needs its own SQL guard against the immutable manifest; do not mutate templates per trial or misuse reproduction lineage. Failed retry must preserve diagnostics and fencing; if omitted initially, leave R06 partial. No parallel worker scheduler or performance work. Root owns contracts/browser integration; one backend owner and one frontend owner can work with an independent reviewer.