docs(research): record bounded signal study and close RP21/RP22
This commit is contained in:
parent
b7116473e6
commit
24d20dd5d8
5 changed files with 95 additions and 16 deletions
|
|
@ -353,3 +353,67 @@ Validation:
|
|||
Two new database assertions initially used the wrong existing contracts: admission is 202 rather than 201, and trial ownership uses `research_agent_id` while experiment submission uses `submission_principal`. Both were corrected against the route and SQL28 contracts; no application change followed. Logs: `/tmp/stock-bot-rp20-baseline.log`, `/tmp/stock-bot-rp20-independent-security.log`, `/tmp/stock-bot-rp20-check.log`, `/tmp/stock-bot-rp20-postgres.log`, `/tmp/stock-bot-rp20-postgres-final.log`, `/tmp/stock-bot-rp20-postgres-accepted.log`, `/tmp/stock-bot-rp20-root-types.log` and `/tmp/stock-bot-rp20-root-lint.log`.
|
||||
|
||||
Next, [RP21](backlog/tasks/RP21.md) predeclares a September volatility-filter comparison using the existing bundled mean-reversion candidate and at most ten runs. Only timestamps, counts and missing-volume counts were inspected for that window so far; no September price/return analysis or research submission occurred. Reusing the already-tested isolated artifact avoids new strategy code. The plan labels the earlier-than-October window as retrospective holdout research and keeps all seven conditional tasks deferred.
|
||||
|
||||
## RP21 — Bounded volatility-filter study
|
||||
|
||||
Completed October 27, 2026 (America/Toronto; runtime receipts extend into October 28 UTC). The predeclaration was committed in `2949680b`; execution claim/source freeze was `86013538`. Both candidate versions use identical existing mean-reversion bundle bytes in OS isolation, with only `regimeFilter` differing. No strategy, indicator, financial-policy or performance optimization was implemented for this study.
|
||||
|
||||
The source capture contains 1,580 rows. Exactly 20 session-close null-volume markers fall outside declared half-open sessions; all 1,560 selected bars remain unchanged and pass strict OHLCV/grid validation. Repeated API preparation produces the same dataset. The package and numeric rules were frozen before September prices were captured. September precedes the previously inspected October pilot, so this is retrospective holdout research, not prospective validation or proof against global selection bias.
|
||||
|
||||
| Retained identity | Value |
|
||||
| --- | --- |
|
||||
| Dataset | `f116a5d8107fe1dba62d7e019167d56df75cc634e3b6b601e5962d39b36e9804` |
|
||||
| Raw capture SHA256 | `fe26c5981caef9e74a5ce896b6dc428e30fbac204e572bd107b67b0703ba83f9` |
|
||||
| Strategy source revision | `86013538a15a9153b721ea99ddcad4c6b6beaede` |
|
||||
| Shared candidate artifact SHA256 | `83a4a9c99dd779a02370efd00a8374f279d5121068950201cdd8cb45245f04d6` |
|
||||
| Native binary SHA256 | `df0ecbd5c3772d7e8aeb0226b40ae290cfaddf9d87fb3a7375f2a31c2acf05e5` |
|
||||
| Project / template | `47b266ab-7b26-43a1-afcd-05549a42ea6a` / `58101664-11cd-4a4b-b1a2-6f50aa0d819d` |
|
||||
| Filtered / control versions | `dd1d183f-fbda-4fd6-85f9-15deab39c79e` / `cb90aeff-9cc9-4ae1-abcd-27b827e724d3` |
|
||||
| Filtered / control validations | `711c3582-b7ff-4f1b-9530-d481b4e5b3ad` / `54f0528c-fdf4-46ab-a836-ec00950942aa` |
|
||||
| Filtered / control cost experiments | `e92b2e25-faf4-40c7-8b79-e41722d96a7c` / `7fe11ce2-cd76-481c-aa97-d78ea55f362e` |
|
||||
| Summary finding | `9a06b519-3b40-4a34-a2ff-56cef093c594` |
|
||||
|
||||
All **ten trials completed once**, with no manual retry or replacement run. Each variant used one training run, independent validation/test accounts, and baseline/stressed whole-window costs. Training evaluated September 4–16, validation September 17–23 and test September 24–30; every phase used its declared preceding session as warmup. Each singleton training selection froze its own parameters, rather than selecting between the two variants before holdouts.
|
||||
|
||||
The following are native net returns, displayed as percentages (stored metrics are fractions):
|
||||
|
||||
| Phase | Volatility filter | Unfiltered control | Complete reporting periods |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| Training | −0.245725% | −0.279616% | 8 |
|
||||
| Validation | +0.052139% | +0.052139% | 4 |
|
||||
| Test | −0.007529% | −0.008730% | 4 |
|
||||
| Whole-window baseline costs | −0.201115% | −0.236207% | 18 |
|
||||
| Whole-window stressed costs | −0.802065% | −0.886521% | 18 |
|
||||
|
||||
Filtered/control test equity was `9999.24714560` / `9999.12700558` from capital `10000`. Validation economics match; test executions differ slightly despite equal 12-fill counts. Whole-window baseline fills numbered 48 / 52, with fees `42.92498589` / `46.45098852`. Baseline gross realized P&L was `22.81348996` / `22.83027744`: the filtered variant's higher net result in that window reflects lower assumed fees despite slightly lower gross P&L. This is descriptive accounting, not proof of predictive value.
|
||||
|
||||
Within each variant, the baseline and stress scenarios have matching executed timestamps, sides, quantities and instruments, with different prices/fees. All retained terminal marked holdings are zero and final daily/drawdown halt flags are false. Final snapshots do not establish every earlier halt or rejection. No liquidation was invented. Phase accounts reset; returns are not a compounded portfolio. Reporting periods are opening-to-opening, with terminal partial periods, not exchange-close daily returns. Four complete periods per holdout and retrospective single-asset selection do not establish significance, robust alpha or useful annualized performance. The test interval is now inspected; no new tuning/search was authorized by these results.
|
||||
|
||||
Three AI-authored, unvalidated findings were saved through the dedicated research credential: two sealed-report findings and the cross-variant conclusion. Their 42 stored scalar references represent 34 distinct run/metric pairs. The credential was revoked after the final write, and its actual budget request returned 401. No paper/live deployment or additional experiment was activated.
|
||||
|
||||
Independent `/root/review_recovery_changes` accepted file-only audits of **25,078 input**, **49,406 financial/result**, and **513 closure assertions**. These reconcile exact fixed-eight fills, fees, released basis, ownership, cash/equity/marks, exposure bounds, package/build/policy identities, phase slices and report hashes, single-attempt run inventory, receipt recovery and all evidence references. File audits do not independently prove absence of unrelated database writes or certify vendor availability/action assumptions.
|
||||
|
||||
Actual Chromium reopened both test results and fills, both sealed reports and both cost experiments, plus the [project and summary finding](http://localhost:5173/research/47b266ab-7b26-43a1-afcd-05549a42ea6a). It checked report hashes, 30 visible summary evidence links and unchanged saved run rows. The final-risk **section** survived result reload; numerical flags were verified separately from retained native artifacts. The browser blocked all non-read API requests except authentication.
|
||||
|
||||
Runtime evidence remains in ignored `.data/research-pilots/aapl-202409-signals/`: immutable predeclaration/package/source, original and continuation journals, requests/results, reopened reports, findings, revocation proof, browser record and independent audit scripts/reports. `execution-status.json` and `execution-summary.json` index the completed work. Source/availability limitations remain those in the committed RP21 task and `evidence.json`.
|
||||
|
||||
Pre-execution gates passed: 53 strategy/package/cycle tests / 367 assertions, 14 actual sandbox tests / 58 assertions, and four actual AI workflow tests / 178 assertions using a disposable PostgreSQL database. The first read-only sandbox identity attempt was denied by filesystem permissions and succeeded with the permitted rerun. A helper's wrong validation argument was corrected before any package/data write. No host-execution fallback or rebuild occurred. Logs: `/tmp/stock-bot-rp21-preflight-{strategy,sandbox,ai-workflow}.log`, `rp21-execution.log`, `rp21-recovery.log`, `rp21-close.log` and `rp21-browser.log`, all under `/tmp/stock-bot-`. The initial real admission failure is explained below.
|
||||
|
||||
## RP22 — Decimal admission and exact receipt recovery
|
||||
|
||||
The first real filtered training submission returned HTTP 500. PostgreSQL's SQL32 guard compared raw `minNotionalVolume: "0"` against the known program's normalized `"0.00000000"`. Existing workflow fixtures supplied already-normalized parameters and missed this valid-input failure. Read-only inspection of the exact principal/key and template established **zero committed experiments and zero runs**; the client preserved its stopped receipt. No candidate outcome was replaced or hidden.
|
||||
|
||||
Plan `b51612e5`, implementation `b7116473`. Additive migration33 retains original input/preview hashes and all other guards. It normalizes only the known mean-reversion parameter for comparison, matching the existing plain fixed-eight grammar/range and negative-zero behavior. Arbitrary candidate strings remain literal; malformed, excessive-precision, out-of-range or negative nonzero values are rejected without rounding. Previous migrations and financial engine semantics remain unchanged.
|
||||
|
||||
The running development API had already registered migration33 by the time the explicit normal-runner verification executed, consistent with its watch-mode startup. Verification retained the exact installed function and migration hashes, unchanged worker/native identity and zero study runs/receipt before recovery. No historical rows were rewritten.
|
||||
|
||||
The original journal and script were preserved. A reviewed local continuation reopened and verified the four acknowledged resources (hypothesis, family, project link, version), returned their saved acknowledgements without new writes, and separately marked them in a new exclusive fsynced journal. Before retrying, it required the same original training body, key and preview hash. Existing `runResearchCycle` then performed the remaining ordinary admissions; its original recipe, numeric parameters, raw `"0"`, ten-trial bound and Rust financial policy stayed frozen. There was no blind CLI restart or new filtered version.
|
||||
|
||||
Verification:
|
||||
|
||||
- Direct candidate/default and startup migration regressions demonstrate SQL32 rejection with no row changes, then exact-body/key/hash success and replay after SQL33, strict paired-invalid-value rejection, arbitrary-string preservation and migration reapplication without history changes.
|
||||
- Final combined PostgreSQL gate: **14 passed / 310 assertions**. Independent review noticed the AI fixture initially installed only through SQL32; after adding SQL33 to that fixture, its actual isolated/native workflow reran **4 passed / 178 assertions**. These overlapping runs are not additive test totals.
|
||||
- Integration: **1,382 passed / 14 existing conditional skips**, 10,415 assertions. Application/authored-test types, contracts, strict lint, formatting, secret audit and diff checks passed. Repository builds and the complete build-driving `check` command were intentionally not rerun during the frozen study; installed worker/native/sandbox bytes stayed unchanged. No Rust source changed.
|
||||
- Independent source and recovery review accepted the correction and requested the stronger malformed-value tests and explicit AI fixture migration above. The disposable PostgreSQL container was stopped after all gates.
|
||||
|
||||
Logs: `/tmp/stock-bot-rp22-postgres.log` (initial 10 / 123), `rp22-postgres-final.log`, `rp22-ai-sql33.log`, `rp22-integration.log`, `rp22-types.log`, `rp22-lint.log`, `rp22-format.log` and `rp22-apply.log`, all under `/tmp/stock-bot-`. All seven conditional tasks remain deferred. RP21 and RP22 are complete; no further study was admitted automatically.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue