feat(research): compare immutable fee and slippage scenarios

This commit is contained in:
Boki 2026-10-24 13:10:01 -04:00
parent 3ed7b98f7c
commit 397cd0e160
41 changed files with 3234 additions and 144 deletions

View file

@ -1,8 +1,8 @@
# Revised development roadmap
**First thirty waves committed; the walk-forward component is validated and awaiting commit.** Durable single-window validation is committed as `abd1c5b`; **35 of 45 scheduled tasks are fully committed (78% by count)**. Repeated windows now freeze and execute through the existing durable paths, with immutable reset-segment reports in the web workbench. Full R08 still needs bounded cost sensitivity; R05/R07 remain partial. Performance work stays paused.
**First thirty-one waves committed; full R08 is validated and awaiting commit.** Walk-forward is committed as `3ed7b98`; **35 of 45 scheduled tasks are fully committed (78% by count), with R08 ready for acceptance**. Fee/slippage diagnostics now reuse the existing experiment workbench. R05/R07 remain partial; performance work stays paused.
Authorization update: the owner requested “commit and continue”. The single chronological workflow is accepted and committed as `abd1c5b`; the walk-forward component is now independently reviewed and validated. No performance work, cost overrides, new-wave commits/pushes/PRs, candidate execution or trading/default activation are included.
Authorization update: the owner requested “commit and continue”. Walk-forward is committed as `3ed7b98`; bounded fee/slippage sensitivity is now implemented and independently validated. No performance work, new-wave commits/pushes/PRs, candidate execution or trading/default activation is included.
## Strategy and review outcome
@ -644,7 +644,7 @@ Next after acceptance/commit: finish R08 with repeated nonoverlapping walk-forwa
## Thirty-first wave handoff — 2026-10-24
R08's bounded walk-forward component is independently accepted and `component_validated_uncommitted` on base `abd1c5b`. Full R08 remains `in_progress` for bounded cost sensitivity; R09 remains blocked. Forty-one source/test/config files and four existing planning files comprise this wave.
R08's bounded walk-forward component is independently accepted and committed as `3ed7b98` on base `abd1c5b`. At this wave's completion, full R08 remained `in_progress` for bounded cost sensitivity; R09 remained blocked. Forty-one source/test/config files and four existing planning files comprise this wave.
- **Frozen series:** A focused `research_walk_forwards` header owns 2–10 ordered recipes and immutable train-root memberships. Every source/grid/build/policy is frozen before training. Total promised work includes all candidates and both future holdouts, capped at 100 runs. Training cutoffs increase and heldout intervals cannot overlap.
- **Reuse and integrity:** Existing chronological validations, per-window actions, durable runs/outbox and retries execute every member. SQL25 is additive; SQL22–24 are unchanged. All training roots/slices/runs/outbox admit in one transaction, including a pool-size-one proof. Exact membership, write-once reports and receipts resist direct SQL mutation. Series cancellation reaches all remaining member work; member cancellation stays local and completed evidence is preserved.
@ -656,3 +656,18 @@ Validation: 93 tooling, 43 utility, 44 calculation, **882 integration** and **15
Independent backend/frontend reviews accepted the exact eight/eleven-file overlays; root composition and browser coverage were independently reviewed. Source archive, 41 file hashes, native identities, commands and local logs: `manifest.json` → `thirty_first_wave_validation`, under `/tmp/stock-bot-wave31.QqUT6Z/`. Release addon was restored for final database/browser tests. Both disposable fixture containers were removed after validation; development services were untouched. No new-wave commit, push, PR or trading operation occurred.
Next: bounded fee/slippage sensitivity with an explicit immutable financial-policy admission contract, reusing the authoritative Rust engine. Do not encode costs as strategy parameters or mutate saved templates. Keep cost scenarios separate from frozen walk-forward selection unless an explicit later study requires their combination. Performance, candidate/AI execution and multi-asset/default/paper/live activation remain gated.
## Thirty-second wave handoff — 2026-10-24
Full supported R08 is independently accepted and `validated_uncommitted` on base `3ed7b98`; task status is `review` pending owner acceptance/commit. Thirty-seven source/test/config files and four existing planning files comprise this wave. The earlier chronological preflight, durable single-window and reset-window workflows remain intact.
- **Cost diagnostics:** One existing experiment stores a versioned fixed-template cost preview. Automatic original-cost baseline plus 1–99 explicit distinct normalized fee/slippage pairs; parameters and every other financial/data/build policy remain frozen. Each scenario reruns Rust, including fee reservation, funding, fills and subsequent strategy decisions. No cost-as-parameter trick, adjusted-P&L subtraction, ranking or universal monotonic-profit claim.
- **Reuse and SQL integrity:** Existing submission receipts, runs/outbox, cancellation, retries/results and original-run reproduction handle cost studies. SQL26 introduces no tables or columns. It leaves SQL22–25 and the callable v1 manifest validator unchanged, adds explicit version dispatch and one request reconstruction helper for admission/retry, and preserves all remaining guard bodies. Deferred checks require every scenario and dispatch row to commit together. Chronological/walk-forward sources remain v1-only.
- **Web:** Cost mode uses the ordinary experiment submission owner and existing list/detail/retry/history screens. Normalized rates, original baseline, fixed inputs and scenario order are visible; failed/missing/incomparable/null outcomes stay explicit. The detail page now synchronously owns refresh before a competing mutation. Exact ambiguous body/key and late-route protections are preserved. No new report lifecycle, scheduler or financial engine.
- **Evidence:** Hand-derived native fixtures assert exact execution prices, fees and terminal equity, including fee-inclusive funding rejection. The baseline reproduces the ordinary empty-grid economic hash. Original scenario inputs survive template edits, retry and reproduction. SQL tampering, atomic rollback, cross-kind receipts, observed lock contention and first/idempotent migration preservation pass. The actual browser verifies native policy/identity and metrics after template changes, then receipt replay, saved reopening and run drilldown.
All repository gates passed: **926 integration /150 Rust** tests, plus 93 tooling, 43 utility and 44 calculation cases; build, types, contracts, lint and secret audit. Final release **PostgreSQL/Redis: 224 tests /1967 assertions**; **Chromium: 15 workflows /457 assertions**. Authored-test strict types/lint, changed-source formatting and diff checks pass. Existing four ignored Rust tests and build warnings remain. No performance measurements ran.
Independent reviewer accepted exact backend/frontend eight-file overlays; root composition/browser/migration-chain fixes were independently reviewed. Source archive, 37 file hashes, native identities and logs are recorded in `manifest.json` → `thirty_second_wave_validation`, under `/tmp/stock-bot-wave32.Dg3iwI/`. The release engine was restored before database/browser validation. Both disposable fixture containers were removed after validation; development services remain untouched. New wave is uncommitted; no push, PR or trading operation occurred.
R08 completion covers deterministic unfitted strategies, explicit zero label horizon, frozen chronological selection, separate reset segments and bounded template cost diagnostics. Unsupported trainable/nonzero-horizon models reject; no purge/fitting framework or global OOS certification is claimed. Next non-performance slice: R07 comparisons across saved experiments with explicit policy/window/cost compatibility. Table measurements stay paused. R09 still also depends on partial R07; do not declare all downstream work ready merely because R08 is validated.