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,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."
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue