feat(research): compare immutable fee and slippage scenarios
This commit is contained in:
parent
3ed7b98f7c
commit
397cd0e160
41 changed files with 3234 additions and 144 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Canonical development backlog
|
||||
|
||||
**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.
|
||||
|
||||
## One source of truth
|
||||
|
||||
|
|
@ -79,7 +79,7 @@ Relative size: S narrow correction, M coherent boundary, L sensitive owner-contr
|
|||
| [R05 Freeze complete provenance and cut over durable canonical runs](tasks/R05.md) | P0 / in_progress | F08, S02, R01, R10, D01, W03, C06, ADR-006 | Multi-asset default mark-policy disposition | Full-stack research product / M |
|
||||
| [R06 Create immutable experiments and bounded sweep expansion](tasks/R06.md) | P1 / done | Accepted R05 retained-input component; R01/R10/F08/S02/D01/W03/C06/R12, ADR-006 | — | Full-stack research product / M |
|
||||
| [R07 Deliver sweep configuration and comparable-result views](tasks/R07.md) | P1 / in_progress (component) | R06 component API pinned; release after integration, ADR-006 | W04 | Full-stack research product / M |
|
||||
| [R08 Add bounded chronological and reset-segment validation](tasks/R08.md) | P1 / in_progress (walk-forward) | R06, ADR-006 | — | Quantitative research integrity / M |
|
||||
| [R08 Add bounded chronological and reset-segment validation](tasks/R08.md) | P1 / review (validated, awaiting commit) | R06, ADR-006 | — | Quantitative research integrity / M |
|
||||
| [R09 Expose validation, cost and regime evidence in the workbench](tasks/R09.md) | P1 / blocked | R07, R08, ADR-006 | S05 when Regime comparison is enabled; R03 when Saving or linking a research finding is enabled | Full-stack research product / M |
|
||||
| [R10 Protect retained research evidence and artifact integrity](tasks/R10.md) | P1 / done | R01, ADR-006 | — | Full-stack research product / M |
|
||||
| [R11 Select and reuse frozen datasets in the workbench](tasks/R11.md) | P1 / done | D01, O01, ADR-003, ADR-006 | W04 | Full-stack market data/research / M |
|
||||
|
|
@ -118,4 +118,4 @@ Relative size: S narrow correction, M coherent boundary, L sensitive owner-contr
|
|||
|
||||
Before any wave: unique IDs; existing task/ADR references; acyclic implementation graph; no scheduled task dependent on merged/deferred work; approvals/readiness; actual file locks; isolated native build outputs/workspace dependencies and test databases. Release gates are checked separately at activation.
|
||||
|
||||
R06 is complete and committed as `b373410`; the durable single-recipe R08 component is committed as `abd1c5b`. Repeated walk-forward windows are in progress; bounded cost sensitivity remains a separate next slice. R05/R07 remain partial; R09 and AI/default/trading activation retain their gates. Provider preparation is independent of experiments over retained data, and performance work remains paused.
|
||||
R06 is complete and committed as `b373410`; R08's walk-forward component is committed as `3ed7b98`. Bounded cost sensitivity now completes supported R08 implementation, independently validated and awaiting acceptance/commit. Next non-performance work is R07 comparison across saved experiments. R05/R07 remain partial; R09 also depends on R07, and AI/default/trading activation retain their gates. Provider preparation is independent of experiments over retained data; performance work remains paused.
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"schema_version": 1,
|
||||
"plan_revision": "2026-10-24.66",
|
||||
"plan_revision": "2026-10-24.68",
|
||||
"repository_base": "b7aeca4",
|
||||
"plan_status": "thirty_first_wave_validated_awaiting_commit",
|
||||
"plan_status": "thirty_second_wave_validated_awaiting_commit",
|
||||
"execution_authorized": true,
|
||||
"execution_scope": {
|
||||
"authorized_by": "User: commit and continue; accepted durable chronological workflow committed abd1c5b83d55ad49b562408cb3a87a1c7b7f952e",
|
||||
"authorized_by": "User: commit and continue; accepted walk-forward workflow committed 3ed7b98f7cf0e7e1da8f00fc990c3511bd875ce9",
|
||||
"tasks": ["R08"],
|
||||
"permissions": [
|
||||
"R08 bounded walk-forward series: freeze all ordered recipes/common inputs, atomically admit existing training windows, reuse per-window actions and save an immutable reset-segment report with integrated web workflow"
|
||||
"Complete R08 bounded fee/slippage sensitivity as an existing experiment mode with immutable fixed-template inputs, Rust simulation and integrated web results/retry/reproduction"
|
||||
],
|
||||
"excluded": [
|
||||
"performance_profiling_or_optimization",
|
||||
|
|
@ -25,7 +25,9 @@
|
|||
"historical_binary_provisioning",
|
||||
"cross_experiment_ranking",
|
||||
"strategy_performance_conclusions",
|
||||
"cost_sensitivity_execution"
|
||||
"cost_parameter_cartesian_optimization",
|
||||
"cost_source_run_selector",
|
||||
"cost_walk_forward_joint_studies"
|
||||
],
|
||||
"pending_policy_decisions": [
|
||||
"ADR-007",
|
||||
|
|
@ -1428,7 +1430,7 @@
|
|||
"epic": "E6",
|
||||
"priority": "P1",
|
||||
"severity": "High",
|
||||
"status": "in_progress",
|
||||
"status": "review",
|
||||
"dependencies": ["R06"],
|
||||
"decision_dependencies": ["ADR-006"],
|
||||
"task_file": "backlog/tasks/R08.md",
|
||||
|
|
@ -1443,34 +1445,36 @@
|
|||
"completed_commit": null,
|
||||
"blocker": null,
|
||||
"release_gates": [],
|
||||
"integration_state": "component_validated_uncommitted",
|
||||
"integration_base": "abd1c5b83d55ad49b562408cb3a87a1c7b7f952e",
|
||||
"integration_state": "validated_uncommitted",
|
||||
"integration_base": "3ed7b98f7cf0e7e1da8f00fc990c3511bd875ce9",
|
||||
"worktree": "/home/boki/repos/stock-bot",
|
||||
"execution_component": "Bounded repeated walk-forward windows and immutable independent reset-segment reports",
|
||||
"execution_component": "Bounded immutable fee/slippage diagnostics in the existing experiment lifecycle",
|
||||
"component_exclusions": [
|
||||
"bounded cost-sensitivity execution",
|
||||
"completed-source-run cost studies",
|
||||
"cost-by-parameter or cost-by-window searches",
|
||||
"findings/regime evidence integration"
|
||||
],
|
||||
"reviewed_by": "/root/r04_review",
|
||||
"verification_reference": "ROADMAP.md#thirty-first-wave-handoff--2026-10-24",
|
||||
"review_notes": "Independent backend/frontend/root integration reviews accepted exact snapshots. Native all-window admission, immutable reports, no future suffix leakage, cancellation and receipt races, existing flow preservation and complete browser lifecycle pass. Full R08 remains partial for bounded cost sensitivity.",
|
||||
"verification_reference": "ROADMAP.md#thirty-second-wave-handoff--2026-10-24",
|
||||
"review_notes": "Full supported R08 scope independently accepted: chronological preflight, durable fixed-winner validation, repeated reset-segment walk-forward and bounded template cost sensitivity. All root repository/PostgreSQL/Chromium gates pass. Awaiting owner acceptance/commit; unsupported trained/nonzero-horizon models remain explicit refusals, not missing purge infrastructure.",
|
||||
"implementation_slices": [
|
||||
{
|
||||
"owner": "/root/r12_backend",
|
||||
"worktree": "/tmp/stock-bot-wave31.QqUT6Z/backend",
|
||||
"scope": "SQL25 header/membership guards, walk-forward service/preparation/routes, narrow transaction-scoped chronological admission/report reuse, new pure/API/PostgreSQL tests"
|
||||
"worktree": "/tmp/stock-bot-wave32.Dg3iwI/backend",
|
||||
"scope": "SQL26, cost preview/request helpers, existing experiments service/routes and narrow v1 chrono reader, pure/API/native PostgreSQL tests"
|
||||
},
|
||||
{
|
||||
"owner": "/root/r12_frontend",
|
||||
"worktree": "/tmp/stock-bot-wave31.QqUT6Z/frontend",
|
||||
"scope": "Explicit window editor with shared submission ownership, series detail/list/report UI and focused regressions"
|
||||
"worktree": "/tmp/stock-bot-wave32.Dg3iwI/frontend",
|
||||
"scope": "Existing editor cost mode, kind-aware detail/list/inputs/retry decoder and focused UI tests"
|
||||
},
|
||||
{
|
||||
"owner": "/root",
|
||||
"scope": "Shared DTO/export and fixture, migration registry/old fixture chains, App/index composition, actual native browser lifecycle, final gates and planning"
|
||||
"scope": "Shared DTO/export, old migration chains/registry, actual native browser lifecycle, integration gates and planning"
|
||||
}
|
||||
],
|
||||
"partial_commit": "abd1c5b83d55ad49b562408cb3a87a1c7b7f952e"
|
||||
"partial_commit": "3ed7b98f7cf0e7e1da8f00fc990c3511bd875ce9",
|
||||
"completion_scope": "Deterministic unfitted registered strategies; chronological selection and immutable reports; bounded reset-window series; fixed-template fee/slippage diagnostics."
|
||||
},
|
||||
{
|
||||
"id": "R09",
|
||||
|
|
@ -7031,7 +7035,7 @@
|
|||
"Performance remains paused. Full R08 stays partial for cost sensitivity; R09 and candidate/AI/multi-asset/default/trading activation gates unchanged."
|
||||
],
|
||||
"thirty_first_wave_validation": {
|
||||
"state": "component_validated_uncommitted",
|
||||
"state": "component_committed",
|
||||
"scope": "R08 bounded repeated walk-forward windows and immutable independent reset-segment reports; full R08 remains in_progress for cost sensitivity and R09 blocked",
|
||||
"integration_base": "abd1c5b83d55ad49b562408cb3a87a1c7b7f952e",
|
||||
"log_directory": "/tmp/stock-bot-wave31.QqUT6Z",
|
||||
|
|
@ -7142,6 +7146,118 @@
|
|||
"Performance work, R09 evidence integration and candidate/AI/multi-asset/default/paper/live activation gates remain unchanged."
|
||||
],
|
||||
"fixture_cleanup": "Removed both exact disposable PostgreSQL/Redis containers after all final gates; development services untouched. Worktrees and local evidence retained.",
|
||||
"commits": "Previous wave committed as abd1c5b. This validated component remains uncommitted; no push or PR."
|
||||
"commits": "Committed as 3ed7b98f7cf0e7e1da8f00fc990c3511bd875ce9 following owner authorization. No push or PR.",
|
||||
"completed_commit": "3ed7b98f7cf0e7e1da8f00fc990c3511bd875ce9"
|
||||
},
|
||||
"thirty_second_wave": ["R08"],
|
||||
"thirty_second_wave_base": "3ed7b98f7cf0e7e1da8f00fc990c3511bd875ce9",
|
||||
"thirty_second_wave_notes": [
|
||||
"One existing research_experiments row with cost-sensitivity-preview/v1; no new table, run column, report lifecycle or scheduler.",
|
||||
"Source is current approved template through ordinary empty-grid preview. Automatic unchanged-cost baseline plus1–99 explicit normalized distinct fee/slippage pairs; fixed parameters and every other financial/data/build policy.",
|
||||
"Existing Rust engine reruns each scenario; costs can change funding/fills/decisions. No adjusted-P&L shortcut, ranking or universal monotonicity claim.",
|
||||
"SQL26 preserves v1 callable and old SQL22–25 files; one expected-request helper used by existing run/retry guards. All other ordinary/reproduction guards preserved.",
|
||||
"Web cost mode shares ordinary editor owner, list/detail/retry/history and exact receipt flow. Strict v1 chronological/walkforward decoders remain separate.",
|
||||
"R08 completion subject to native cost/funding/baseline parity, SQL/adversarial/upgrade, retry/reproduction and real browser gates. R09 also depends on partial R07; no blanket readiness claim.",
|
||||
"Performance and candidate/AI/multiasset/default/paper/live activation remain paused or gated."
|
||||
],
|
||||
"thirty_second_wave_validation": {
|
||||
"state": "validated_uncommitted",
|
||||
"scope": "Completes supported R08 implementation; owner acceptance/commit pending. R09 also depends on partial R07.",
|
||||
"integration_base": "3ed7b98f7cf0e7e1da8f00fc990c3511bd875ce9",
|
||||
"log_directory": "/tmp/stock-bot-wave32.Dg3iwI",
|
||||
"source_archive": "/tmp/stock-bot-wave32.Dg3iwI/validated-source.tar.gz",
|
||||
"source_archive_sha256": "f8e1f155b91eaaec95c7e8d7e60c7ccbb3700f35976b84af25b3faeda431dc34",
|
||||
"source_files": {
|
||||
"apps/stock/config/package.json": "e55394c7e8097f83ce1a063e3d14ec7f8a3018d8db67fa2b711cbd76072110cc",
|
||||
"apps/stock/config/src/contracts/cost-sensitivity.ts": "b813d61402097f113d2c546dc82b7f3eee7c0eeffde2d3374849fd38cb77ace3",
|
||||
"apps/stock/config/src/contracts/experiments.ts": "a815acbd53f51a1f30c21f877df45b298033336a40957abd1f5b5bfacb4bfa9d",
|
||||
"apps/stock/web-api/src/migrations/migration-runner.ts": "3b0287922e9bc01570c23684ac3d801ee4b932bd23923cc06ff42964625b359c",
|
||||
"apps/stock/web-api/src/routes/experiments.routes.ts": "8bf96923e11a36bfc090c4610622c39403c13a6e057db6363d4989a5c167fa5f",
|
||||
"apps/stock/web-api/src/services/chronological-validation.service.ts": "c744a370353c550ecaa3ad57cdcd333604d3a1e3c0cec1cce4d4168beac18294",
|
||||
"apps/stock/web-api/src/services/cost-sensitivity-input.ts": "aa6c022736f5e03fca5a08dbc0e69c4e61b82e43c530edcfd60fe7e5f17ed2e9",
|
||||
"apps/stock/web-api/src/services/experiments.service.ts": "ff5a73ceae61873d5aeaabe5167386c6287dd4f1348baa4eac9819c5626ff9b4",
|
||||
"apps/stock/web-app/src/features/experiments/ExperimentDetailPage.tsx": "9aef5c87fac0148d6f7ccc4bfdf8fba20589ba62e0a0eadd6e1533f743e4a1e9",
|
||||
"apps/stock/web-app/src/features/experiments/ExperimentListPage.tsx": "77454cbbebdf8ed7586b7836cc7f5b4cfcbc1afbd900e2a57c339c6de99d0263",
|
||||
"apps/stock/web-app/src/features/experiments/components/ExperimentEditor.tsx": "f25645212eb324ff2f282c25eb23ff0580b93d6b7f0d22ff33abcf51897177ee",
|
||||
"apps/stock/web-app/src/features/experiments/components/ExperimentInputs.tsx": "2d8dddfca2ff3eda66f759ff727292288a856198466960d57823f25fb4a70162",
|
||||
"apps/stock/web-app/src/features/experiments/components/ExperimentTrialRecovery.tsx": "921dec1609c4ba6d19fd13457f55ed68cbf264c6ecc6d2231fb7f197f0bf60cb",
|
||||
"apps/stock/web-app/src/features/experiments/services/experimentApi.ts": "1e2c8be957a7c0af1a0cb88e9ada6edc5f306907063d0ea1e1bdc624363fc622",
|
||||
"database/postgres/init/26-cost-sensitivity.sql": "a9c8c2b698507d5ed12aa01548d9319111437c84126a8c6d03d1e709d7c47bae",
|
||||
"test/e2e/fixture.ts": "4b83bbec2733fb95d75d62325d8b159ac035f52ec25663dfd397dd31f44cdd95",
|
||||
"test/e2e/workbench.test.ts": "75b4cd7c8af1ccce9883b3d7161e28040aa6c1c0ab03dcf17dfd7a8615f06232",
|
||||
"test/integration/cost-sensitivity-api.test.ts": "5c9156210a9292c659472e51a51753edc5db00330e826d187c572b6928f4f12d",
|
||||
"test/integration/cost-sensitivity-ui.test.tsx": "04bf1eefd9f2462de847f28f8e53d9a39147f48e896179fc3cb58116dc0c69b6",
|
||||
"test/integration/cost-sensitivity.test.ts": "4c1cebc37ec469597745cef8290b3ef4b6e63a31fd2767608ac88ae123fdd3e6",
|
||||
"test/integration/experiment-retries-ui.test.tsx": "07517358d50eb94d477e8f966605714fc9dde012d8f58fdd75cfb41715fa9d32",
|
||||
"test/postgres/canonical-durable-backtest.test.ts": "061ac5de9fc69d64f7a1fba0d350db909a3a4408068abf8cf14f598004cb6c18",
|
||||
"test/postgres/canonical-research.test.ts": "b1275d034cb817bbafe9fbd7a36d0d35be698855f3cbfae88bec4fe86e3a0106",
|
||||
"test/postgres/catalog-backtest-drafts.test.ts": "66ebe25f82fea58664a0a9c0707e4eab1749ef0904e19ecda11d8567a6a768c6",
|
||||
"test/postgres/chronological-validation-durable.test.ts": "e961f4b16979563c7495bf314b13aa2e7c27caa2d77aa9ae04e521e3fa4ffb92",
|
||||
"test/postgres/chronological-validation.test.ts": "27c72d9d41b665396b5b253429f0ab67c4deb3feb4d67d5fd80a92b0a6c096b2",
|
||||
"test/postgres/cost-sensitivity.test.ts": "187fe117b85266b19f6f3c7a9e515020419053166c8b34cda98d6f6cef7e18d2",
|
||||
"test/postgres/dataset-catalog.test.ts": "e09f3ac167aabfc825b31728b339fc7c0ac25be02e96169092643efdbf1635c9",
|
||||
"test/postgres/durable-backtest.test.ts": "6820c928541ad1c64b2cdb3e80eb16551813955dea4e33122f36be4ee2b24819",
|
||||
"test/postgres/experiment-retries.test.ts": "c152655d8a3a03180f3b0a4bb8557143482bf7f153119763fcb4a34f6528cc2a",
|
||||
"test/postgres/experiments.test.ts": "d339f36502ced9f8237d695699a7226c79b681ca8386993522032b54ff72bbd1",
|
||||
"test/postgres/migration-runner.test.ts": "4614b1df7663c22dc8d9902950ee7c3c6ed64ce45ec9fcdef9f397a80dd59a3a",
|
||||
"test/postgres/research-retention.test.ts": "926b138534f7f099f0934f64cb0fae572a06fa1981a5ddba0e71bccd5c2fd3a2",
|
||||
"test/postgres/research-runtime-isolation.test.ts": "3e468bb341186544d694f495231fb9e03a91b6ddf62282fa868d0460588c6c91",
|
||||
"test/postgres/research-workspace.test.ts": "c051507fdecf6d58435f716fcf7a84a5415d4b74014656a49adbfaabdc723cae",
|
||||
"test/postgres/run-reproduction.test.ts": "8b894282fa6512a6d1adf7c2da9b1a14d62c2294d9245a647dc42a5ef342a592",
|
||||
"test/postgres/walk-forward.test.ts": "7d6fd3f4c41bad6ea03b2d6214348c90dcf4e6a636df57ec8e851d5adc11d480"
|
||||
},
|
||||
"checks": [
|
||||
{
|
||||
"command": "CARGO_BUILD_JOBS=2 bun run check",
|
||||
"log": "integration-check.log",
|
||||
"result": "Passed every repository gate: secret audit/build/types/contracts/lint; 93 tooling, 43 utility, 44 calculation, 926 integration and 150 Rust tests; zero failures. Four preexisting Rust cases remain ignored."
|
||||
},
|
||||
{
|
||||
"command": "bun run test:postgres",
|
||||
"log": "integration-postgres-final.log",
|
||||
"result": "224 passed, 1967 assertions, zero failures against disposable PostgreSQL and Redis DB15. All current-schema fixture chains include SQL26; intentional historical-upgrade chains remain scoped."
|
||||
},
|
||||
{
|
||||
"command": "bun run test:e2e",
|
||||
"log": "integration-browser-final.log",
|
||||
"result": "15 passed, 457 assertions, zero failures using same-origin production build, Chromium and native release engine."
|
||||
},
|
||||
{
|
||||
"command": "Strict authored-test TypeScript and explicit authored source/test ESLint",
|
||||
"logs": ["root-tests-types-final.log", "authored-lint-final.log"],
|
||||
"result": "Passed, including all new tests and modified browser/retry UI tests."
|
||||
},
|
||||
{
|
||||
"command": "Changed-source Prettier, git diff --check, manifest references and dependency DAG",
|
||||
"logs": ["source-format-final.log"],
|
||||
"result": "Passed; all55 unique task references exist and implementation dependency graph is acyclic."
|
||||
}
|
||||
],
|
||||
"review": {
|
||||
"independent_reviewer": "/root/r04_review",
|
||||
"backend": "Accepted exact eight-file source/test overlay; independent pure/API7/77, reviewed native PostgreSQL9/86 including hand-derived fees/slippage/equity/funding, baseline parity, original-policy retry/reproduction, SQL26 guard-body comparison, atomicity and races.",
|
||||
"backend_archive": "/tmp/stock-bot-wave32.Dg3iwI/backend-final.tar",
|
||||
"backend_archive_sha256": "adfd6aa464f5251ec18b47a060a0ce94d1c96295f28c139a088e3208783c8227",
|
||||
"frontend": "Accepted exact eight-file overlay; independent cost/retry74/317; owner combined UI322/1438. Cost mode shares ordinary owner and existing detail/recovery lifecycle.",
|
||||
"frontend_archive": "/tmp/stock-bot-wave32.Dg3iwI/frontend-final.tar.gz",
|
||||
"frontend_archive_sha256": "d7eae27357a7c5bdcb55d051ab2f403ddf17c5b96953ed4a88b53873810a411e",
|
||||
"root": "Read-only integration review caught two missing SQL26 fixture-chain entries, corrected before final full gates. Shared DTO and actual native browser approved, including exact native financial policy/identity after template edits.",
|
||||
"task_completion": "Reviewer checked all R08 acceptance across waves29–32; no completed-source selector, joint cost/window optimizer or trainable-model framework is required to close supported scope."
|
||||
},
|
||||
"engine": {
|
||||
"debug_sha256": "75e33ffdd1e2738537879e62243a9d8f63665864835a58c46087bb4b78f274ff",
|
||||
"release_sha256": "ef00eed556f5c32332d36a9a00ef710682e90deb00b54552e4b5c8bfdfbe8103",
|
||||
"note": "Existing authoritative Rust engine unchanged; release restored before final database/browser gates."
|
||||
},
|
||||
"limits": [
|
||||
"One current-approved saved template, fixed parameters and retained dataset; automatic original-cost baseline plus1–99 explicit normalized distinct fee/slippage pairs.",
|
||||
"Template diagnostics only; not a completed-source-run study or heldout/OOS validation. No joint cost×parameter/window search, ranking or best-cost selection.",
|
||||
"Only feeRate and slippageRate vary. Spread, latency, participation, all other risk/capital/ownership, seed, package/build/data and analytics policy remain fixed.",
|
||||
"Costs can alter affordability, fills and future strategy decisions; no general monotonic-profit claim or TS adjusted-P&L calculation.",
|
||||
"Chronological/walk-forward models remain deterministic-unfitted with zero label horizon. Unsupported nonzero/missing horizon/trainable inputs reject; no purge/fitting infrastructure is claimed.",
|
||||
"Performance work stays paused. R07 comparison remains partial and R09 retains its R07 dependency; candidate/AI/multiasset/default/paper/live gates unchanged."
|
||||
],
|
||||
"fixture_cleanup": "Both exact disposable PostgreSQL and Redis containers removed after all final gates. Development services untouched; isolated worktrees and local evidence retained.",
|
||||
"commits": "Wave31 committed3ed7b98. Wave32 remains uncommitted; no push or PR."
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ Scheduling source of truth: [manifest entry R08](../manifest.json). No task is a
|
|||
|
||||
## Intended behavior and implementation scope
|
||||
|
||||
First implement bounded chronological parameter selection and nonoverlapping walk-forward recipes for deterministic registered strategies. Explicit warmup and evaluation windows; each validation segment starts from its declared initial capital and empty positions with warmed indicators, not carried money/state. Aggregate segment returns as a labelled reset-segment research series, never claim one continuous tradable equity curve. Parameter sensitivity reuses the existing bounded grid. Cost sensitivity needs a separate explicit immutable financial-policy admission contract; costs are not strategy parameters and must not mutate saved templates. Reject trainable/overlapping-label models until their fit-artifact and declared horizon/embargo contracts are supplied; do not invent general ML infrastructure for SMA.
|
||||
First implement bounded chronological parameter selection and nonoverlapping walk-forward recipes for deterministic registered strategies. Explicit warmup and evaluation windows; each validation segment starts from its declared initial capital and empty positions with warmed indicators, not carried money/state. Present ordered segment returns as a labelled reset-segment research series; do not compound, average risk-adjusted metrics or claim one continuous tradable equity curve. Parameter sensitivity reuses the existing bounded grid. Cost sensitivity needs a separate explicit immutable financial-policy admission contract; costs are not strategy parameters and must not mutate saved templates. Reject trainable/overlapping-label models until their fit-artifact and declared horizon/embargo contracts are supplied; do not invent general ML infrastructure for SMA.
|
||||
|
||||
Persist the immutable validation manifest/report as experiment-owned JSON on the R06 experiment (or a focused child row if immutability requires it), keyed by experiment/report version and containing every contributing run ID, selection rule and segment policy. This is not R03 research-findings storage. Reopening an experiment must recover the same report; new inputs require a new experiment/report identity.
|
||||
|
||||
|
|
@ -109,8 +109,22 @@ The web provides explicit windows, preview, submission, member links, report sav
|
|||
|
||||
### Validated walk-forward handoff
|
||||
|
||||
The repeated-window component is independently accepted and `component_validated_uncommitted`. Forty-one source/test/config files preserve the existing Rust financial engine, worker/run/outbox model and SQL22–24 behavior. New SQL25 headers and exact train-root membership guards keep all-window admission atomic; full native evidence is checked again before sealing an immutable ordered reset-segment report. Member cancellation stays local; series cancellation prevents new member actions without changing completed evidence.
|
||||
The repeated-window component is independently accepted and committed as `3ed7b98`. Forty-one source/test/config files preserve the existing Rust financial engine, worker/run/outbox model and SQL22–24 behavior. New SQL25 headers and exact train-root membership guards keep all-window admission atomic; full native evidence is checked again before sealing an immutable ordered reset-segment report. Member cancellation stays local; series cancellation prevents new member actions without changing completed evidence.
|
||||
|
||||
The web supports explicit 2–10-window recipes, full promised-run counts, synchronous shared submission ownership, member actions through existing pages, and saved report reopen. Native tests prove future-suffix independence, unchanged old migrations/receipts/leases, partial-admission rollback, actual lock contention, finalization receipt races and rejection of corrupted financial/analytics evidence. Repository test gates pass (882 integration /150 Rust), PostgreSQL/Redis 215 tests /1881 assertions, Chromium 14 workflows /412 assertions; final source and authored-test lint/types pass. Exact commands, formatting-only corrections and old fixture lint limitations are recorded in `manifest.json` → `thirty_first_wave_validation`.
|
||||
|
||||
Full R08 remains partial for bounded cost sensitivity; R09 remains blocked. Next scope should define supported fee/slippage scenarios as immutable execution-policy inputs and reuse canonical runs/results, without template mutation, strategy-parameter hacks, a second simulator or a window×cost scheduler. No regime/finding integration, performance work or AI/default/trading activation is included.
|
||||
|
||||
## Authorized cost-sensitivity component — 2026-10-24
|
||||
|
||||
Complete the remaining bounded-cost diagnostic requirement using one existing experiment row with a versioned cost manifest. Its baseline is the current approved saved template and empty parameter grid; trial 0 preserves original costs, while1–99 explicit normalized distinct fee/slippage pairs vary only those two canonical rate fields. Every trial reruns Rust with independent account state. Preserve all other strategy/data/build/risk/execution/analysis inputs. Costs can change fills and funding decisions, so do not subtract estimates from old P&L or assume monotonic returns.
|
||||
|
||||
Reuse the existing editor ordinary owner, list/detail/retry/history and receipt APIs; no new header/report/scheduler. Preserve strict v1 validation sources, ordinary parameter keys, old SQL22–25 and all reproduction guards. Add SQL26 version dispatch and one expected-request helper for run/retry insertion. Require native baseline economic parity, controlled fee/slippage/funding fixtures, original-policy retry/reproduction after template edits, direct SQL/atomicity/receipt/cancel races, upgrade preservation and actual browser reopen. This template study makes no heldout/OOS claim; a completed-source selector and joint cost×parameter/window studies are excluded.
|
||||
|
||||
### Validated full-task handoff — 2026-10-24
|
||||
|
||||
Full supported R08 is independently reviewed and `validated_uncommitted`, awaiting owner acceptance/commit. Waves 29–31 provide frozen chronological input preparation, durable fixed-winner selection, immutable reports and bounded nonoverlapping heldout reset-window series. Wave 32 closes bounded cost diagnostics with one existing experiment type, automatic original-cost baseline and 1–99 explicit fee/slippage pairs. Fixed parameters/data/capital/other risk/build settings and the authoritative Rust engine are preserved; existing retry/reproduction and web workbench flows are reused.
|
||||
|
||||
Every repository gate passed (926 integration /150 Rust), final PostgreSQL/Redis 224 tests /1967 assertions and Chromium 15 workflows /457 assertions. Exact sources, independent reviews, controlled native fee/slippage/funding oracles, baseline economic parity, SQL/admission/recovery proofs and root browser evidence: `manifest.json` → `thirty_second_wave_validation`.
|
||||
|
||||
The unsupported-model acceptance is implemented as explicit rejection of trained/nonzero/missing-horizon inputs, not general purge/embargo fitting. Template cost diagnostics do not claim heldout/OOS validation or automatic ranking. Completed-source selectors, cost×parameter/window studies and fitted-model infrastructure remain optional future scope. No performance work, AI/candidate or trading/default activation occurred. R09 also depends on partial R07; next non-performance work is cross-experiment comparison, with table measurements still paused.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue