feat(research): prepare stored EOD datasets before canonical admission
This commit is contained in:
parent
366bee810b
commit
0c6aec4dc6
16 changed files with 1897 additions and 61 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Canonical development backlog
|
||||
|
||||
**First thirty-four waves committed; R05 explicit source-export preparation is validated and ready to commit.** R09 is committed as `06039d1`; **37 of 45 scheduled tasks are fully committed (82% by count)**. Full R05 remains partial, and R07 retains its paused table measurement.
|
||||
**First thirty-five waves committed; R05 stored EOD source preparation is validated and ready to commit.** Explicit export preparation is committed as `366bee8`; **37 of 45 scheduled tasks are fully committed (82% by count)**. Full R05 remains partial for broader cutover, and R07 retains its paused table measurement.
|
||||
|
||||
## One source of truth
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"schema_version": 1,
|
||||
"plan_revision": "2026-10-24.72",
|
||||
"plan_revision": "2026-10-24.73",
|
||||
"repository_base": "b7aeca4",
|
||||
"plan_status": "thirty_fifth_wave_validated_awaiting_commit",
|
||||
"plan_status": "thirty_sixth_wave_validated_awaiting_commit",
|
||||
"execution_authorized": true,
|
||||
"execution_scope": {
|
||||
"authorized_by": "User: commit and continue; accepted R09 committed 06039d17bac7220d8504e68d1d4f66896eb13b91",
|
||||
"authorized_by": "User: how far in backlog, commit and continue; wave35 accepted and committed 366bee810b8c1881172fe5553a1a61a2242ffbe5",
|
||||
"tasks": ["R05"],
|
||||
"permissions": [
|
||||
"R05 partial explicit source-export web preparation: read-only normalization preview, exact content-addressed retention and existing canonical dataset selection."
|
||||
"R05 explicit stored EOD intraday source materialization before existing retained-data admission; reuse source preview/retention and canonical setup, no inferred metadata."
|
||||
],
|
||||
"excluded": [
|
||||
"performance_profiling_or_optimization",
|
||||
|
|
@ -1304,33 +1304,36 @@
|
|||
"Explicit owner disposition of the simultaneous multi-asset mark/risk policy before canonical default activation"
|
||||
],
|
||||
"integration_state": "partial_validated_uncommitted",
|
||||
"integration_base": "06039d17bac7220d8504e68d1d4f66896eb13b91",
|
||||
"integration_base": "366bee810b8c1881172fe5553a1a61a2242ffbe5",
|
||||
"worktree": "/home/boki/repos/stock-bot",
|
||||
"implementation_slices": [
|
||||
{
|
||||
"owner": "/root/r12_backend",
|
||||
"worktree": "/tmp/stock-bot-wave35.fQycky/backend",
|
||||
"scope": "Preparation routes/service, shared retention and existing eligibility reuse, focused integration/PostgreSQL tests"
|
||||
"worktree": "/tmp/stock-bot-wave36.3Ntmmj/backend",
|
||||
"scope": "Existing metadata validator export, request-local stored EOD adapter/routes and focused integration/PostgreSQL tests"
|
||||
},
|
||||
{
|
||||
"owner": "/root/r12_frontend",
|
||||
"worktree": "/tmp/stock-bot-wave35.fQycky/frontend",
|
||||
"scope": "Canonical setup source-file panel, existing API client, focused UI tests"
|
||||
"worktree": "/tmp/stock-bot-wave36.3Ntmmj/frontend",
|
||||
"scope": "Stored metadata input mode in existing preparation panel/client; strict response capture and state/retry regressions"
|
||||
},
|
||||
{
|
||||
"owner": "/root",
|
||||
"scope": "Shared DTO, actual native browser lifecycle, integrated gates and planning"
|
||||
"scope": "Shared DTO, actual adapter/native browser proof, combined gates and deliberate before-admission planning simplification"
|
||||
}
|
||||
],
|
||||
"reviewed_by": "/root/r04_review",
|
||||
"verification_reference": "ROADMAP.md#thirty-fifth-wave-handoff--2026-10-24",
|
||||
"review_notes": "Independent exact-source review accepted explicit source-export preparation component; all integrated gates pass. Existing retained execution remains; full R05 remains partial for provider-query preparation/first binding and broader cutover. No inferred source evidence or activation.",
|
||||
"partial_commit": "618fb9e33cebc1fde4869eb1f975a12c55bd9b94",
|
||||
"execution_component": "Explicit source-export JSON preview and content-addressed retention through the existing web canonical setup",
|
||||
"verification_reference": "ROADMAP.md#thirty-sixth-wave-handoff--2026-10-24",
|
||||
"review_notes": "Independent exact-source review and final repository/PostgreSQL/Chromium gates passed. Supported stored EOD source preparation materializes and retains before canonical admission; former in-run preparation proposal explicitly superseded. R05 remains partial for broader cutover/default gates; S06 is not unblocked.",
|
||||
"partial_commit": "366bee810b8c1881172fe5553a1a61a2242ffbe5",
|
||||
"execution_component": "Explicit stored EOD intraday metadata + raw bars materialized once before existing content retention and canonical admission",
|
||||
"component_exclusions": [
|
||||
"No automatic provider-query preparation, durable pending source request/first-run binding, default or multiasset activation; source metadata is supplied evidence, not independently certified.",
|
||||
"Performance and AI/paper/live activation remain paused or separately gated."
|
||||
]
|
||||
"No default/multiasset/candidate/AI/paper/live activation, new run kind, SQL/runner mutation, source-query receipt or scheduler.",
|
||||
"Source-query-inside-run proposal intentionally superseded by prepare-and-retain before canonical admission; not claimed implemented.",
|
||||
"Stored-source scope1m/5m/1h EOD raw interval-start and explicitly assumed interval-end availability. No daily/QuestDB/auto/synthetic path or inferred evidence.",
|
||||
"Performance and R07 measurement remain paused."
|
||||
],
|
||||
"source_preparation_disposition": "Canonical source inputs are materialized, reviewed and retained before admission. Existing atomic request/hash admission and worker binding verification remain authoritative. This replaces earlier pending-query/fenced-first-binding work with fewer states and no loss of frozen-input correctness; wider cutover remains incomplete."
|
||||
},
|
||||
{
|
||||
"id": "R06",
|
||||
|
|
@ -3379,7 +3382,7 @@
|
|||
"files": 1153,
|
||||
"scope": "Tracked and nonignored untracked file paths/content, including dirty changes; generated ignored artifacts excluded."
|
||||
},
|
||||
"workload": "1k/10k total bars;1asset/1owner or10assets/2owners;2fresh processes ×2fresh native sessions, second reverses callback evaluation. Alternating unit targets,1% fee,initialcapital1000000,600bars/session with retained gaps. No randomness, storage, queue, indicators or parallel simulation.",
|
||||
"workload": "1k/10k total bars;1asset/1owner or10assets/2owners;2fresh processes \u00d72fresh native sessions, second reverses callback evaluation. Alternating unit targets,1% fee,initialcapital1000000,600bars/session with retained gaps. No randomness, storage, queue, indicators or parallel simulation.",
|
||||
"equality": "Exact complete normalized result hashes match every repeat and debug/release profile. Independent integer-cent cash/equity/remaining basis/owner fees/fill count oracle passes. Economically different results invalidate measurement.",
|
||||
"timing": "Report separates imports, detached D01 verify, once-per-child prepared-JS mapping, fresh native load, actual advance/submit/decision/finalize and validation/hash. Native call timers include JS encoding/schema/immutable projection plus Rust work/serialization, not pure crossing cost. Trial wall includes load+replay+finalization+oracle/hash, excludes one-time preparation/import and parent aggregation. No explicit warmup or OS-cache flush; means only, not latency distributions. Shared host; release focused checks briefly overlapped initial measurement, so not an isolated performance SLA.",
|
||||
"workloads": [
|
||||
|
|
@ -5266,7 +5269,7 @@
|
|||
"Two separate processes per mode, two fresh timed sessions each, counterbalanced mode order. Second SMA session reverses owner callback order and must preserve financial and diagnostic hashes. This checks fresh whole-attempt recomputation, not native checkpoint resume.",
|
||||
"Shared host, no timing assertion, confidence interval, cold-start SLA, or cross-artifact performance attribution. Root must freeze source and use the matching release addon before execution."
|
||||
],
|
||||
"interpretation": "Verified aggregate host/strategy/state overhead, not per-function attribution. Long-window decision phase is about51–62%of total owner-dense wall. Profiles in P08 must distinguish schema parsing, copying/freezing, trailing calculations and allocation before optimization. No cross-shape scaling or S02 speedup claim."
|
||||
"interpretation": "Verified aggregate host/strategy/state overhead, not per-function attribution. Long-window decision phase is about51\u201362%of total owner-dense wall. Profiles in P08 must distinguish schema parsing, copying/freezing, trailing calculations and allocation before optimization. No cross-shape scaling or S02 speedup claim."
|
||||
},
|
||||
"cleanup": {
|
||||
"stopped_exact_containers": [
|
||||
|
|
@ -7064,10 +7067,10 @@
|
|||
"thirty_first_wave_notes": [
|
||||
"Walk-forward only: cost scenarios change financial-policy admission and stay a separate next slice. No template mutation or cost-as-strategy-parameter workaround.",
|
||||
"Focused research_walk_forwards header plus train-root membership columns; every member remains an existing standalone chronological validation. Avoid overloading first-window cancellation.",
|
||||
"Freeze 2–10 recipes/common source/grid/build/policies before any execution; total promised training plus future holdouts<=100. Nondecreasing training starts, strictly increasing train cutoffs and previous test.end<=next validation.start.",
|
||||
"Freeze 2\u201310 recipes/common source/grid/build/policies before any execution; total promised training plus future holdouts<=100. Nondecreasing training starts, strictly increasing train cutoffs and previous test.end<=next validation.start.",
|
||||
"Atomic all-training admission with exact deferred membership/run/outbox guards. Existing member select/finalize/retry paths reused; no scheduler or automatic advancement.",
|
||||
"Historical series finalization verifies full canonical evidence and every sealed member report, copying ordered validation/test reset segments without compounding or new analytics. Accepted receipts replay before current eligibility.",
|
||||
"Whole-series cancellation propagates downward to every member; local member cancellation remains local and blocks series completion. SQL22–24 files remain unchanged.",
|
||||
"Whole-series cancellation propagates downward to every member; local member cancellation remains local and blocks series completion. SQL22\u201324 files remain unchanged.",
|
||||
"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": {
|
||||
|
|
@ -7173,7 +7176,7 @@
|
|||
"note": "Unchanged financial engine. Release restored before final PostgreSQL and browser suites."
|
||||
},
|
||||
"limits": [
|
||||
"2–10 explicit windows; at most 100 planned runs including both future holdouts per window.",
|
||||
"2\u201310 explicit windows; at most 100 planned runs including both future holdouts per window.",
|
||||
"Deterministic registered built-ins and zero label horizon only; no trained models, candidate execution or AI authorization.",
|
||||
"Training may overlap earlier historical holdouts; frozen recipes and own-training-only selection do not certify globally unseen data.",
|
||||
"Separate reset-account validation/test segments, not compounded equity or averaged Sharpe/CAGR; execution completeness is not statistical adequacy.",
|
||||
|
|
@ -7189,9 +7192,9 @@
|
|||
"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.",
|
||||
"Source is current approved template through ordinary empty-grid preview. Automatic unchanged-cost baseline plus1\u201399 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.",
|
||||
"SQL26 preserves v1 callable and old SQL22\u201325 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."
|
||||
|
|
@ -7278,7 +7281,7 @@
|
|||
"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."
|
||||
"task_completion": "Reviewer checked all R08 acceptance across waves29\u201332; no completed-source selector, joint cost/window optimizer or trainable-model framework is required to close supported scope."
|
||||
},
|
||||
"engine": {
|
||||
"debug_sha256": "75e33ffdd1e2738537879e62243a9d8f63665864835a58c46087bb4b78f274ff",
|
||||
|
|
@ -7286,8 +7289,8 @@
|
|||
"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.",
|
||||
"One current-approved saved template, fixed parameters and retained dataset; automatic original-cost baseline plus1\u201399 explicit normalized distinct fee/slippage pairs.",
|
||||
"Template diagnostics only; not a completed-source-run study or heldout/OOS validation. No joint cost\u00d7parameter/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.",
|
||||
|
|
@ -7397,7 +7400,7 @@
|
|||
"Existing result/sample/phase/warmup/reset/cost display retained. Add one optional exact source to each immutable artifact revision, existing run/metric references unchanged.",
|
||||
"Source variants standalone experiment/chrono report/walk-forward report; no copied metric store or new API/entity. Omitted revision source preserves old; explicit null detaches new revision only.",
|
||||
"Same-client historical full retained-result verification, complete report/member facts, readonly snapshot reads; no current approval/build/cancel gate or operational row locks.",
|
||||
"SQL27 additive nullable JSONB+source membership guard, existingSQL20/22–26 unchanged. Sources/results retain existing deletion guards.",
|
||||
"SQL27 additive nullable JSONB+source membership guard, existingSQL20/22\u201326 unchanged. Sources/results retain existing deletion guards.",
|
||||
"Generic detail exposes optional server standalone boolean, absent fails closed for source action. Existing single-run finding behavior/ambiguous response handling remains.",
|
||||
"No retained as-of regime annotations exist; explicit unavailable counts/coverage. No classifier, inferred labels, current analytics API or fabricated sample counts.",
|
||||
"No performance, native financial changes, candidate/AI/default/multiasset/paper/live activation or new-wave commits/push/PR."
|
||||
|
|
@ -7471,7 +7474,7 @@
|
|||
},
|
||||
{
|
||||
"command": "git diff --check; manifest references/dependency DAG; exact overlay/source SHA256 and historical SQL verification",
|
||||
"result": "Passed: 55 unique task references, acyclic implementation DAG, 20 exact accepted agent files and all 30 integrated source hashes. SQL20/22–26 byte-for-byte unchanged."
|
||||
"result": "Passed: 55 unique task references, acyclic implementation DAG, 20 exact accepted agent files and all 30 integrated source hashes. SQL20/22\u201326 byte-for-byte unchanged."
|
||||
}
|
||||
],
|
||||
"review": {
|
||||
|
|
@ -7508,7 +7511,7 @@
|
|||
"completed_commit": "06039d17bac7220d8504e68d1d4f66896eb13b91"
|
||||
},
|
||||
"thirty_fifth_wave_validation": {
|
||||
"state": "validated_uncommitted",
|
||||
"state": "validated_committed",
|
||||
"integration_base": "06039d17bac7220d8504e68d1d4f66896eb13b91",
|
||||
"log_directory": "/tmp/stock-bot-wave35.fQycky",
|
||||
"scope": "Partial R05 explicit source-export web normalization preview and content-addressed retention; existing canonical selection and Rust execution unchanged.",
|
||||
|
|
@ -7571,7 +7574,7 @@
|
|||
"frontend_archive_sha256": "f4136bb6e3cd8f8590c60cc623fdd2162eee30ffadbd7230a9fa456ecf2a5a44",
|
||||
"frontend": "Accepted all four exact integrated files. Focused45/166, combined existing/new UI132/662. New tests cover unknown-response exact retries, definitive rejection repair, source/parent stale responses, different-hash selection, disabled/save races and metadata display. Root strict affected-test check passes without the owner local inherited noUnusedParameters exception.",
|
||||
"root": "Shared DTO, web-only transport setting and fixture, actual existing native browser oracle extended with file preview/retention/reopen accepted. Focused browser1/119,15 unselected workflows skipped; actual >1MiB JSON consumption preserves identical normalized content and zero preview writes. Final full repository, database and browser suites passed on the frozen integrated source.",
|
||||
"corrections": "Review closed same-event Retain→Clear retry-state loss, response parser unknown-field stripping/direct-source lineage gap, and distinguished definitive400/409 from uncertain retention. First browser failures were exact hash/overbroad calendar selectors; scoped visible metadata selectors fixed them with unchanged application behavior."
|
||||
"corrections": "Review closed same-event Retain\u2192Clear retry-state loss, response parser unknown-field stripping/direct-source lineage gap, and distinguished definitive400/409 from uncertain retention. First browser failures were exact hash/overbroad calendar selectors; scoped visible metadata selectors fixed them with unchanged application behavior."
|
||||
},
|
||||
"engine": {
|
||||
"debug_sha256": "75e33ffdd1e2738537879e62243a9d8f63665864835a58c46087bb4b78f274ff",
|
||||
|
|
@ -7586,11 +7589,95 @@
|
|||
"Existing mounted operator/service/admin and browser-origin authorization retained, including existing local AUTH_DISABLED development semantics. No new research-agent credentials.",
|
||||
"Performance/R07 measurement paused; candidate/AI/multiasset/paper/live/default activation gates unchanged."
|
||||
],
|
||||
"commits": "R09 committed06039d1 at owner request. Wave35 changes uncommitted; no push or PR.",
|
||||
"commits": "Wave35 accepted and committed 366bee810b8c1881172fe5553a1a61a2242ffbe5 at owner request; no push or PR.",
|
||||
"fixture_cleanup": {
|
||||
"result": "Both exact disposable --rm containers stopped after final suites passed; development services untouched.",
|
||||
"postgres": "cd8467b474238ca03f14fc2a0d24a0ff9d400e87c5161957c78b5847f81e42c8",
|
||||
"redis": "3acb7f10faa1bfe77c0ca72fe58f5a2251770a73f8ed080fc9982571ab4f354d"
|
||||
},
|
||||
"completed_commit": "366bee810b8c1881172fe5553a1a61a2242ffbe5"
|
||||
},
|
||||
"thirty_sixth_wave_validation": {
|
||||
"state": "validated_uncommitted",
|
||||
"integration_base": "366bee810b8c1881172fe5553a1a61a2242ffbe5",
|
||||
"log_directory": "/tmp/stock-bot-wave36.3Ntmmj",
|
||||
"scope": "Partial R05 explicit stored EOD intraday source materialization before existing immutable retention/admission; no in-run source preparation lifecycle.",
|
||||
"source_archive": "/tmp/stock-bot-wave36.3Ntmmj/validated-source.tar.gz",
|
||||
"source_archive_sha256": "0fd200ae1a1a27eb919ca7326ced5c9e89c25f1c4d729124b3386fd36ea5ea0d",
|
||||
"source_hashes": {
|
||||
"apps/stock/config/src/contracts/canonical-research.ts": "97532f726c37a8ab71bc98bb4c0f2f3e2fa182b1b6331eb45a8bfcc619d5a4e0",
|
||||
"apps/stock/orchestrator/src/data/historical-dataset-v2.ts": "af17314b6fe2492199f4f2902bbd80247de9df71dd855dcc6f90cf7b19b9e456",
|
||||
"apps/stock/web-api/src/routes/datasets.routes.ts": "034d2bf7c80deb3e96e4e2abeb306a5dbacbeef49c54f28bdd4d47ca0040678c",
|
||||
"apps/stock/web-api/src/services/stored-dataset-preparation.ts": "1082fbbacc6c56cb6c8eded37d1cf1eb0cefff045d7537e42ac9aab874aa1699",
|
||||
"apps/stock/web-app/src/features/backtest/components/DatasetPreparation.tsx": "202c92f0b8b8447ff08cad2a2a004cbb521306ab7e3e937b137a728b6b2c11cb",
|
||||
"apps/stock/web-app/src/features/backtest/services/backtestApiV2.ts": "885287eb8d73fdeb6c6641806187ae8016f7f1850699f95f7fb9656682fd0955",
|
||||
"test/e2e/fixture.ts": "0c6348ad5a587596990b29fecb2f497eb0464b76074350c8fbe1b038156d9239",
|
||||
"test/e2e/workbench.test.ts": "59a0ed6c3ca181d20acc72995616edb8e8cb1174bd4b17ec2467fc5c97a7927e",
|
||||
"test/integration/dataset-source-preparation-ui.test.tsx": "5467eb7e41878450a3f56575d0bacc1d03e3073e51851218126a986488ab1a32",
|
||||
"test/integration/stored-dataset-preparation.test.ts": "82dab9a017843597afb551cfab27adc466f7565e2f50ab9dd4d96ef61a701dc7",
|
||||
"test/postgres/stored-dataset-preparation.test.ts": "4e5c9c19de219f6c25f153999a7ba78a9ac799bd7de3d7e6f62073da1d50858d"
|
||||
},
|
||||
"commands": [
|
||||
{
|
||||
"command": "CARGO_BUILD_JOBS=2 bun run check",
|
||||
"log": "integration-check-final.log",
|
||||
"result": "Passed build/secret audit/types/contracts/lint; 93 tooling, 43 utility, 44 calculation, 1126 integration and 150 Rust tests; zero failures. Four preexisting manual Rust cases remain ignored."
|
||||
},
|
||||
{
|
||||
"command": "bun run test:postgres",
|
||||
"log": "integration-postgres-final.log",
|
||||
"result": "Passed final release PostgreSQL/Redis: 242 tests /2196 assertions across29 files; zero failures."
|
||||
},
|
||||
{
|
||||
"command": "bun run test:e2e",
|
||||
"log": "integration-browser-final.log",
|
||||
"result": "Passed final production Chromium: 16 workflows /612 assertions; zero failures. Preserves export workflow and adds stored-source mutation/retention/native execution/reopen proof."
|
||||
},
|
||||
{
|
||||
"command": "Strict all affected/new test TypeScript; all eleven source/test files ESLint/Prettier",
|
||||
"logs": [
|
||||
"root-tests-types-final.log",
|
||||
"authored-lint-final.log",
|
||||
"source-format-final.log"
|
||||
],
|
||||
"result": "Passed without local exceptions."
|
||||
},
|
||||
{
|
||||
"command": "git diff --check; source/archive/native hashes; manifest task references/DAG",
|
||||
"result": "Passed:11 frozen source hashes/archive/release native hash,55 unique task files and acyclic dependencies; SQL, Rust engine and backtest runner sources unchanged."
|
||||
}
|
||||
],
|
||||
"review": {
|
||||
"independent_reviewer": "/root/r04_review",
|
||||
"backend_archive": "/tmp/stock-bot-wave36.3Ntmmj/backend-final.tar",
|
||||
"backend_archive_sha256": "41135c4e89589c528e4a213141dfc36bb591a752e48a3c6cc94ca0ef9270f3c6",
|
||||
"backend": "Accepted five-file overlay. Focused integration/native/auth9/156; PostgreSQL2/39; compatibility42/423. Full source/scoped-test types, lint and format pass. Native-worker compatibility needed escalation after sandbox timeout; fully green rerun recorded, no test omitted.",
|
||||
"frontend_archive": "/tmp/stock-bot-wave36.3Ntmmj/frontend-final.tar",
|
||||
"frontend_archive_sha256": "56fa1a072537172e813a7c979b12b57f01be53b8752db4e1a49007b933da83da",
|
||||
"frontend": "Accepted three-file overlay. Focused85/283; combined172/779; whole-app and scoped types/lint/format pass. Root strict affected-test check passes without owner local inherited noUnusedParameters exception.",
|
||||
"root": "Shared DTO and existing native browser/fixture composition accepted. Focused1/141 pass,15 unselected workflows intentionally skipped; prior export flow preserved. Actual EOD StorageService uses test-only Mongo transport, not a second reader. Mutated store makes fresh preview hash differ; captured retention/retry and actual native economics/reopen remain unchanged, without requery.",
|
||||
"notes": "No review source blocker. Thin metadata-validator export preserves existing semantics. Standard Response.json499 carries explicit no-store because Hono typed helper excludes499. Frontend final cleanup only replaced non-null prior-row assertion with fail-closed optional lookup.",
|
||||
"planning": "Independent reviewer verified current before-admission contracts, 37 done + 2 partial + 6 blocked scheduled counts, final source/archive hashes and all validation log totals. Active R05 API/state wording was corrected; dated handoffs remain historical."
|
||||
},
|
||||
"engine": {
|
||||
"debug_sha256": "75e33ffdd1e2738537879e62243a9d8f63665864835a58c46087bb4b78f274ff",
|
||||
"release_sha256": "ef00eed556f5c32332d36a9a00ef710682e90deb00b54552e4b5c8bfdfbe8103",
|
||||
"note": "Rust/runner source unchanged; verified unchanged release restored after fullcheck before database/browser gates."
|
||||
},
|
||||
"limits": [
|
||||
"One EOD raw1m/5m/1h interval-start execution series with explicitly assumed interval-end availability. No daily/QuestDB/auto/synthetic fallback or external provider request.",
|
||||
"Calendar, action coverage, source revision and point-in-time universe remain operator declarations, not independently certified. Adapter sequence is sorted row ordinal, not vendor publication sequence; missing VWAP remains null.",
|
||||
"Source preparation reads once and writes nothing. The complete returned input/hash is reused by existing retention; only a new explicit preview rereads mutable storage.",
|
||||
"Prepare-and-retain before admission intentionally replaces old R05 pending-query/first-binding run proposal. Existing immutable admission/lease verification remains; no claim that deferred preparation was implemented.",
|
||||
"Abort checked before and after reads and normalization; existing Mongo transport may finish its in-flight read after cancellation. No durable job or successful cancelled source response is created.",
|
||||
"Real PostgreSQL/Redis and Chromium gates; Mongo transport is replaced for deterministic adapter tests. No real MongoDB-server conformance or actual vendor coverage certification claimed.",
|
||||
"Full R05/default cutover and S06 remain incomplete; AI ADR007 and multiasset risk policy decisions remain gated. Performance/R07 measurement paused."
|
||||
],
|
||||
"commits": "Wave35 committed366bee8 at owner request. Wave36 uncommitted; no push or PR.",
|
||||
"fixture_cleanup": {
|
||||
"result": "Both exact disposable --rm containers stopped after final suites passed; development services untouched.",
|
||||
"postgres": "4589bf23f51696e5f77709b10c694e17cacde84809681ac31cc201ae3edb8b7c",
|
||||
"redis": "9c85c66fb68a91a34affc3a3cc2d9f0ed86bd1fb3bb777e9ab35239f1da93439"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ Scheduling source of truth: [manifest entry R05](../manifest.json). No task is a
|
|||
|
||||
## Intended behavior and implementation scope
|
||||
|
||||
Freeze strategy/model artifact IDs, parameters, seed, code/lockfile/build hashes and execution policies at submission. For a selected frozen dataset, pin its hash immediately; for a source request, retain the immutable query and atomically attach the first prepared dataset/hash before replay begins. Expose preparing versus reproducibility-finalized state. Wire the canonical Rust session with existing registered TS strategies into the durable runner and versioned result DTO. Exact reproduction API/UI is R12.
|
||||
Freeze strategy/model artifact IDs, parameters, seed, code/lockfile/build hashes and execution policies at submission. For canonical research, prepare and retain source data before submission, then atomically pin its exact verified hash with the immutable run request. A preparation query is not a run or frozen dataset. Expose read-only preparation, retained data and admitted run as separate actions. This explicitly supersedes the original proposal for preparation inside an admitted run; see the 2026-10-24 disposition below. Wire the canonical Rust session with existing registered TS strategies into the durable runner and versioned result DTO. Exact reproduction API/UI is R12.
|
||||
|
||||
Consume F08's additive canonical analytics/report contract here. Version the persisted/public projection so canonical fractions, genuine zero exposure and null reasons bypass legacy percentage conversion/placeholder suppression. Preserve owner books and distinguish fills from round trips. Additional position valuations needed by the UI must come from Rust or be explicitly unavailable; do not invent marks, average-price basis or unrealized P&L in TypeScript merely to satisfy the old DTO. Keep historical readers unchanged and prove reopen/render compatibility during this cutover.
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ Parallel eligibility: only with disjoint actual files and reserved write locks;
|
|||
## Acceptance criteria
|
||||
|
||||
- Changing template, strategy source or provider history after dataset freezing cannot alter an admitted run. A source query alone is not labelled a frozen dataset.
|
||||
- No strategy decision executes before artifact verification and atomic dataset binding; failed preparation remains diagnosed and retry-safe.
|
||||
- No canonical run is admitted before source data is retained and verified; artifact verification and atomic dataset binding precede decisions. Failed preparation creates no run. Retention retries reuse captured input/hash, while an explicitly requested fresh source preview may observe changed provider history.
|
||||
- A retained-version/current-build mismatch rejects before execution; successful provenance identifies the executable that actually ran. Changing the current built-in implementation cannot silently change a retained version's behavior.
|
||||
- New results declare financialEngine=rust and strategyExecution separately; correctness-gate evidence requires approved engine/data gates, not a UI flag.
|
||||
- Before making canonical multi-asset research the default, obtain explicit owner disposition of sequential equal-time mark risk: either accept the disclosed versioned approximation or approve a coordinated atomic-mark policy/implementation with independent fixtures. F04/F05 currently evaluate each ordered mark; F06 demonstrates offsetting simultaneous moves can latch intermediate loss/drawdown halts. A passing deterministic replay suite alone does not resolve this material modeling issue. Single-asset component work and additive native integration need not wait for this decision.
|
||||
|
|
@ -66,9 +66,9 @@ Keep migrations additive and previous results readable. Do not add a switch that
|
|||
|
||||
## Web/API contract and user states
|
||||
|
||||
- API: Run/results expose immutable request plus resolved dataset binding, provenance and preparation state. No exact-reproduce endpoint until R12.
|
||||
- API: Preparation returns captured source input plus its normalized descriptor without creating a run. Retention verifies that input/hash; run/results expose the immutable request, retained dataset binding and provenance. Existing R12 owns exact reproduction.
|
||||
- Backend/data dependencies: Existing request_snapshot/dataset_hash/results extended with retained provenance and engine correctness-gate evidence metadata.
|
||||
- Loading/error/empty behavior: API distinguishes preparing, dataset-pinned, running, failed and completed. W02/R11 render these fields without fabricated provenance.
|
||||
- Loading/error/empty behavior: The preparation panel distinguishes reading, previewing, unavailable evidence, retaining and uncertain retention; exact captured retries preserve identity. Admitted runs keep the existing durable queued/running/terminal lifecycle. Preparation is not a run status. W02/R11 render retained evidence without fabricated provenance.
|
||||
- User-facing completion is demonstrated by the acceptance criteria and interaction tests above; a backend-only implementation is insufficient where a UI is in scope.
|
||||
|
||||
## Handoff
|
||||
|
|
@ -121,3 +121,21 @@ The above slice is independently reviewed and `partial_validated_uncommitted` on
|
|||
Final gates: repository check 1077 integration /150 Rust plus93 tooling/43 utility/44 calculation tests; PostgreSQL240/2157; Chromium16/590; strict affected-test types, all16-file lint/format/hash/DAG/diff checks. Independent agent overlays and root browser/transport changes are accepted. Four prior manual Rust cases remain ignored. Logs/hashes/limits are in `manifest.json` → `thirty_fifth_wave_validation` and the [roadmap handoff](../../ROADMAP.md#thirty-fifth-wave-handoff--2026-10-24). Both disposable containers were removed.
|
||||
|
||||
Full R05 stays `in_progress`: automatic provider-query preparation/first binding and default cutover are not delivered. No performance work or candidate/multiasset/paper/live/AI activation occurred. Changes await the next authorized commit.
|
||||
|
||||
## Accepted export and stored-source continuation — 2026-10-24
|
||||
|
||||
Wave35 export preparation is accepted and committed as `366bee8`. Continue with operator metadata plus existing stored EOD intraday bars; one asset/series, raw1m/5m/1h, interval-start and explicit interval-end assumption only. Read through the actual request-local StorageService adapter without initialize/runtime mutation or provider fallback. Return complete captured input plus existing descriptor; the existing Retain action uses those exact bytes/hash. Source edits after preview affect only a new preview.
|
||||
|
||||
**Deliberate simplification:** source preparation is completed before canonical admission. This replaces (does not claim to implement) the earlier pending-query run kind, preparing run phase and first-binding lifecycle. Existing admission already atomically freezes the full immutable request and verified retained hash; the worker checks them under its lease before executing. No second lifecycle is needed to satisfy reproducibility. Asynchronous preparation jobs require a demonstrated product need before reconsideration.
|
||||
|
||||
Acceptance adds metadata/scope validation before IO; exact EOD routing, source identity and range; deterministic adapter ordinal (not provider sequence); no invented availability or VWAP; abort before/after reads; valid unavailable evidence preserved; source changes after materialization cannot alter retention/retry or native execution; fresh reads can change identity. Provider connection, missing range, invalid metadata and malformed stored data have distinct failure paths. Actual browser coverage retains the export path, loads EOD via existing adapter, edits underlying rows, and proves stored identity/economics survive save/run/reopen without requery.
|
||||
|
||||
Full cutover/default activation remains incomplete, and S06 stays blocked. Daily/QuestDB preparation, v1 conversion, generalized query history, new SQL/runner states and performance work are excluded from this slice. Do not add optional adapters solely to avoid the remaining real owner policy decisions.
|
||||
|
||||
## Validated stored-source handoff — 2026-10-24
|
||||
|
||||
The stored EOD component is independently reviewed and `partial_validated_uncommitted` on `366bee8`. One raw1m/5m/1h EOD source with complete explicit metadata can be materialized through the existing adapter, inspected and retained before unchanged canonical admission. Existing export mode remains. Source mutations after preview change only a fresh preview; retention/retry and actual Rust execution preserve captured bytes and expected economics. Unsupported or unknown evidence cannot become an executable selection.
|
||||
|
||||
Final gates: fullcheck1126 integration/150 Rust (+93 tooling/43 utility/44 calculation); PostgreSQL242/2196; Chromium16/612; strict affected/new-test types and all11-file lint/format/hash/DAG/diff checks. Four preexisting Rust cases remain ignored. Both disposable containers removed. Exact evidence: `manifest.json` → `thirty_sixth_wave_validation`, [roadmap handoff](../../ROADMAP.md#thirty-sixth-wave-handoff--2026-10-24).
|
||||
|
||||
The before-admission disposition above replaces deferred preparation rather than claiming to implement it. Full R05 stays `in_progress` for wider cutover/default policy; S06 remains blocked. Daily/QuestDB/v1 adapters are optional, not mandatory work to postpone owner decisions. No performance or AI/paper/live activation. New changes await the next authorized commit.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue