stock-bot/docs/development/real-data-research.md

17 lines
2.3 KiB
Markdown

# Real-data research workflow
Authorized follow-up to cleanup on October 26, 2026. Baseline `bd9332b2`. The manifest owns scheduling. RP01 adds read-only source inspection; RP02 exercises existing research paths with actual stored data. Performance, conditional CL21 and paper/live activation remain deferred.
## Independent cleanup reviews
- CL01/CL04: foundation reviewer accepted; CL02/CL03 required owned-cache corrections before acceptance. Real adapter probes reproduced transport leakage, cross-container endpoint reuse and ignored options. The correction owns DI/queue cache transports, preserves shared callers and namespaces, wires supported retries/TTL and diagnoses obsolete controls. Foundation reviewer accepted the fix; root scoped tests passed 38/190 assertions and application types. Expanded implementer gates passed 75/280. Three historical queue-utils expectations independently fail on the old baseline; no claim those passed.
- CL05/CL08/CL12: backend reviewer accepted; 154 domain/admission cases, 15 retained-worker cases, and 55 disposable PostgreSQL cases passed. Dataset/report moves preserve algorithms and transaction/receipt boundaries.
- CL06/CL07/CL09/CL10/CL11/CL13: frontend reviewer accepted; 390 UI/transport and 41 dataset/architecture cases passed. A pre-existing body-read abort diagnostic limitation remains nonblocking because cancelled generations are fenced.
Reviewers: `/root/review_cleanup_foundations`, `/root/review_cleanup_backend`, `/root/review_cleanup_frontend`. Exact logs under `/tmp/stock-bot-*-review*.log` and `/tmp/stock-bot-research-next-20261026/`. Combined integration evidence follows.
## Rechecked source
Read-only Mongo query reproduced the previous AAPL October 2024 snapshot exactly: 1,816 five-minute rows, 22 null volumes at 20:00 UTC, no duplicate timestamps; raw query JSON hash `a8772d01d388b8fc9bca0d2790ad0d37146570fd09d057fcf1f1fcb5e6113bde`. PostgreSQL initially contained zero retained datasets/strategy versions and no experiments; existing runs are not evidence of this pilot. The development API responds on port 2003.
Plan: inspect the full window; prepare one explicitly bounded regular trading session without changing source rows. Complete calendar/timing/action declarations and record limitations. No simulation outcome has yet been claimed here.