feat(research): prepare stored EOD datasets before canonical admission

This commit is contained in:
Boki 2026-10-24 15:26:38 -04:00
parent 366bee810b
commit 0c6aec4dc6
16 changed files with 1897 additions and 61 deletions

View file

@ -1,8 +1,8 @@
# Revised development roadmap
**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.
Authorization update: the owner requested “commit and continue”. R09 citations were committed as `06039d1`; the R05 explicit source-export preparation slice is now independently reviewed and validated. Performance work remains paused. No new-wave commit, push, PR, candidate execution or trading/default activation occurred.
Authorization update: the owner requested “commit and continue”. R05 export preparation was committed as `366bee8`; stored EOD preparation is now independently reviewed and validated. Performance work remains paused. No new-wave commit, push, PR, candidate execution or trading/default activation occurred.
## Strategy and review outcome
@ -711,3 +711,17 @@ Final validation passed: **1077 integration /150 Rust** tests, plus 93 tooling,
Independent review accepted all eleven agent-owned files plus root contract/transport/browser composition. Review fixed synchronous retry-state clearing, non-strict manifest response parsing and definitive-rejection handling. Exact 16-file archive SHA256 `029dd93e14ee7a9fa72f7b06118c708ce1ecad6711fa6d0411bc0fe2e0ada7fa`, file hashes, reviewer evidence and logs are recorded in `manifest.json` → `thirty_fifth_wave_validation`, under `/tmp/stock-bot-wave35.fQycky/`. The unchanged release engine was restored before final database/browser gates. Both exact disposable containers were stopped; development services were untouched.
Source metadata is supplied evidence, not independently certified provider truth. V1 conversion and automatic provider preparation remain outside this slice. R07 performance measurement and other performance work remain paused; default/multiasset/candidate/AI/paper/live gates are unchanged. No new-wave commit, push or PR occurred.
## Thirty-sixth-wave handoff — 2026-10-24
The owner accepted explicit export preparation, committed as `366bee8`. R05's stored EOD intraday preparation component is independently reviewed and validated, with new changes uncommitted. There are still **37/45 scheduled tasks committed**: two partial (R05/R07), six blocked (S06/P04/A01–A04), six additional deferred and four merged IDs. Counts measure task closure, not remaining effort.
- **Real storage adapter:** The existing preparation panel now accepts complete metadata for one stored EOD raw1m/5m/1h series. The server validates and detaches declarations before querying the existing StorageService with exact bounds and explicit EOD selection. No initialization, shared paper state, external provider request, synthetic/auto fallback or inferred metadata. The row ordinal is deterministic adapter ordering, not a vendor publication sequence; missing VWAP stays null and interval-end availability is explicitly an assumption.
- **Captured data:** Preparation returns the full materialized input and the existing normalized manifest/hash. Retention submits those captured bytes through the unchanged endpoint. Source edits can change a fresh preview but cannot change the original retention/retry or admitted run. The export mode remains intact, invalid/unavailable evidence remains visible, and stale mode/file/parent responses cannot replace the active selection. Cancellation fences late data; the underlying Mongo request may finish in flight without producing a successful cancelled preview.
- **Simpler admission:** The original pending-source-query/first-binding run proposal is intentionally superseded. Canonical data is prepared, reviewed and retained before existing atomic request/hash admission, which the worker verifies before decisions. No new run kind, SQL, scheduler, result schema, financial semantics or runner path. Wider cutover/default/multiasset policy gates remain, so R05 and S06 are not declared complete.
All final gates passed: **1126 integration /150 Rust** tests, plus93 tooling/43 utility/44 calculation tests; build, secret audit, types, contracts and lint. Final release **PostgreSQL/Redis:242 tests /2196 assertions**; **Chromium:16 workflows /612 assertions**. Root strict affected/new-test types and all11-file lint/format/hash/DAG/diff checks pass without exceptions. Four existing manual Rust cases remain ignored. The browser preserves source-export coverage, materializes EOD through the actual adapter, changes stored prices, proves a fresh hash differs, retains/retries the original without another source read, and verifies the existing hand-calculated Rust economics plus reopening. Mongo transport is replaced in fixtures; real MongoDB-server conformance and vendor coverage certification are not claimed.
Independent review accepted five backend and three frontend files plus root shared DTO/fixture/native workflow. The exact11-file archive SHA256 `0fd200ae1a1a27eb919ca7326ced5c9e89c25f1c4d729124b3386fd36ea5ea0d`, source hashes, review evidence, logs and limitations are recorded in `manifest.json` → `thirty_sixth_wave_validation`, under `/tmp/stock-bot-wave36.3Ntmmj/`. The unchanged release engine was restored before final database/browser checks. Both exact disposable containers were stopped; development services were untouched.
Supported source preparation is now available before admission. Remaining substantive decisions concern broader cutover/multiasset mark-risk policy and ADR-007 AI trust; optional daily/QuestDB/v1 adapters are not prerequisites or substitute backlog work. Performance stays paused. No new-wave commit, push, PR or trading/AI activation occurred.