docs(research): record validated October pilot results (RP18)

This commit is contained in:
Boki 2026-10-27 19:33:11 -04:00
parent 40f00e16d3
commit 6976f1a25e
5 changed files with 52 additions and 10 deletions

View file

@ -280,3 +280,41 @@ Root validation passed:
- Authored test types, scoped lint/formatting and diff checks passed. Isolated worktree execution hit the known `zod/index.js` packaging read failure; the same direct SQL tests passed in the fully built root checkout. No dependency workaround was committed.
Logs: `/tmp/candidate-validation-defaults-probe.log`, `/tmp/stock-bot-rp17-defaults-debug.log`, `/tmp/stock-bot-rp17-postgres-initial-sql.log`, `/tmp/stock-bot-rp17-independent-decoder.log`, `/tmp/stock-bot-rp17-independent-phases.log`, `/tmp/stock-bot-rp17-root-check.log`, `/tmp/stock-bot-rp17-postgres.log`, `/tmp/stock-bot-rp17-root-sql-guards.log`, `/tmp/stock-bot-rp17-browser.log` and `/tmp/stock-bot-rp17-root-types.log`. Disposable PostgreSQL/Redis fixtures were stopped. No development research execution, paper/live activation or conditional performance work occurred.
## RP18 — October multi-session pilot
Plan commit `40f00e16` fixed the dataset, financial policy, two-candidate grid, chronological windows and nine-run bound before execution. This is real local research using existing application functionality; no application source changed. The existing SMA version remained approved, and template admission verified the configured dataset and policy. No new catalog review was fabricated and the historical October 1 approval record was preserved.
Local artifacts are under `.data/research-pilots/aapl-202410-month/`, intentionally outside Git: source capture, metadata, exact plan, preparation/repeat, immutable API receipts, original results, scripts, build identity and finding revisions. The source file hash is `1328c9f32a4a1b5a88a67de52c29cba0c7341da53d220d903d0ee41b12f8a793`; predeclared plan hash is `1f5a9d9c9d0cc88f950104121366dbb3af60ab8e2db00dd550b8cceff6380024`. The retained dataset is `9624ee17fd1b7f7b6787226a004704c5c92461355734a6b01891079816ec8e4b`.
The raw capture contains 1,816 rows. Explicit half-open regular sessions select 1,794 unchanged bars, exactly 78 on each of 23 dates. The remaining 22 rows are 20:00 UTC markers with null volume; October 29 has no marker. They remain in the raw capture and are excluded by query bounds, not removed from selected data or coerced. Independent source review passed 25,297 assertions; actual API preparation repeated exactly, including the normalized dataset hash.
Root rendered and visually inspected the [Nasdaq 2024 calendar](https://www.nasdaqtrader.com/content/technicalsupport/2024tradingcalendar.pdf): October has no exchange closure or early-close marks. [Regular hours](https://www.nasdaq.com/market-activity/stock-market-holiday-schedule) give 13:30–20:00 UTC for these dates. Action-free coverage is an inference from [Apple's published dividend/split history](https://investor.apple.com/dividend-history/), not a certified full corporate-action feed. Historical listing is supported by [Apple's June 2024 10-Q](https://www.sec.gov/Archives/edgar/data/320193/000032019324000081/aapl-20240629.htm), [filed August 2](https://www.sec.gov/Archives/edgar/data/320193/000032019324000081/0000320193-24-000081-index.htm); metadata uses August 3 as its listing cutoff. Asset/window selection remains retrospective. [EODHD's intraday documentation](https://eodhd.com/financial-apis/intraday-historical-data-api) describes UTC bar starts and delayed finalization: simulated availability at interval end is an explicit zero-delay assumption, not observed historical vendor arrival. The 2026 snapshot does not establish 2024 data vintage.
Exactly nine runs completed through the existing `BacktestRunner` and `RustBacktestAdapter`, scoped to newly admitted IDs. Replaying six accepted submission receipts retained exactly those nine IDs. Baseline, exact reproduction and the cost experiment's baseline have identical economic hash `7574c19ff41fa0d1cd01d08c7a71dea99f456276214bcb3b740bf8ee122f1199`. The native binary hash remained `df0ecbd5c3772d7e8aeb0226b40ae290cfaddf9d87fb3a7375f2a31c2acf05e5`; complete worker/wrapper/lock/runtime identities are retained in `execution-provenance.json` and every request.
All accounts start at USD 10,000 with the unchanged USD 1,000 owner budget. Returns below use total account capital, not only deployed strategy capital. Training uses October 2–11, validation October 14–18 and test October 21–31, with prior-session warmup and fresh accounts. Training total return selected SMA 4/8 over SMA 2/8; neither holdout influenced selection. The baseline and cost scenarios use fixed SMA 3/8 over October 2–31.
| Outcome | Final equity (USD) | Fees (USD) | Account return | Fills | Complete reporting periods |
| --- | ---: | ---: | ---: | ---: | ---: |
| SMA 3/8 baseline, reproduced exactly | 9,810.10157801 | 165.51893827 | -1.898984% | 180 | 21 |
| Training SMA 2/8 | 9,882.93199484 | 92.36706460 | -1.170680% | 102 | 7 |
| Training SMA 4/8, selected | 9,904.04487297 | 76.03153611 | -0.959551% | 84 | 7 |
| Validation SMA 4/8 | 9,977.38710995 | 46.48247089 | -0.226129% | 50 | 4 |
| Test SMA 4/8 | 9,846.01047963 | 109.74987085 | -1.539895% | 118 | 8 |
| Cost baseline SMA 3/8 | 9,810.10157801 | 165.51893827 | -1.898984% | 180 | 21 |
| Zero fee/slippage, spread retained | 9,964.80450548 | 0.00000000 | -0.351955% | 262 | 21 |
| Stressed fee/slippage 0.002/0.0005 | 9,805.24661534 | 152.09169682 | -1.947534% | 84 | 21 |
Baseline and stressed-cost runs finished with the configured USD 200 drawdown halt latched; zero fee/slippage did not. Their last observed fills were October 24 13:35, October 11 17:45 and October 31 19:40 UTC respectively. Compact results expose final risk state and fill times, not complete rejection/event histories: exact first halt times and rejection counts are unverified. These are cost-dependent trading paths under risk constraints, not fees subtracted from a common trade list. The fixed-baseline cost study is not a cost validation of the selected winner.
Reporting samples account session openings; the final close is partial. The verified complete counts 21/7/4/8 are not close-to-close daily returns. Accounts reset across phases, so phase returns must not be compounded into one portfolio. Annualized metrics and sampled drawdown are excluded from strategy-quality conclusions. One retrospectively chosen asset/month and two candidates cannot establish alpha, significance or regime robustness. The test interval is now inspected; subsequent strategy changes need genuinely fresh holdouts.
Saved identities and web reopening:
- Project `d4687b34-24cd-4ead-ab2b-d0d71afef153`; backtest `faab4e06-60d1-4d54-a570-41cb1f5ff9cc`; baseline run `5a77c377-4e37-4396-97fc-d60b622d993b`; reproduction `3ceccd32-e562-40e0-a165-8d972663b5c2`.
- Validation `fbdc6b2f-1a39-47e4-af2b-889b57585082`; report `1e0e9150-a903-48f0-88a2-7c2e9a2aba11`, hash `784b7390c7d36ccd679d7c8aa1d8f1816201a2500dabd3862f5553e68329d3e0`; cost experiment `800bd042-b5f3-4152-ad91-7b36ee756536`.
- Finding `0e8c21bd-ba4a-4499-82a5-2efcd56699c8`, revision 2, retains 18 exact metric references. It remains AI-authored and unvalidated; revision 2 adds the verified risk-state interpretation without replacing original evidence.
- Actual Chromium reopening passed for the canonical result, buy fills, saved validation report/hash, cost trial view and opened finding body, including its risk interpretation and exactly 18 cited-run links. The browser blocked every non-read API request except authentication. `browser-reopened.json` retains exact URLs and assertions.
Independent reviewer `/root/review_recovery_changes` accepted 109,207 assertions over all nine results: exact decimal fill pricing/notional/fees/basis/P&L, cash and owner/equity reconciliation, executed quantity/exposure bounds, raw/dataset/slice/package/build hashes, prior-session warmup, training-only selection, reporting counts and finding references. `independent-review.mts` and `independent-audit.json` retain the checks. This file-only audit does not prove absence of unrelated database writes, reconstruct every rejected/reserved order path or establish absence of all possible leakage. Root also validated manifest references/dependencies/counts and `git diff --check`; the application suite was not repeated because no application code changed. The manifest now records 83 done, seven deferred and four merged IDs (94 total). No paper/live deployment or deferred optimization work was activated. The observed losses supply no positive evidence for promotion; the useful next research step is a predeclared economic hypothesis and fresh unseen coverage, not tuning against this inspected month.