docs(research): freeze October multi-session pilot plan (RP18)

This commit is contained in:
Boki 2026-10-27 19:24:28 -04:00
parent 1a60c04603
commit 40f00e16d3
4 changed files with 72 additions and 4 deletions

View file

@ -1,6 +1,6 @@
# Revised development roadmap
Current follow-up: [real-data research workflow](real-data-research.md). RP17 is complete: candidate defaults are accepted consistently by the shared response decoder and additive SQL admission migration, preserving original inputs and hashes. RP15/RP16 are complete: structured CLI receipts survive journal/cleanup failure, and candidate publication accepts automatic catalog lineage while preserving exact retries. RP14 protects drafts and pending saves when following the creation dialog’s strategy link. RP13 restores browser reproduction of eligible unreviewed isolated candidates; RP11/RP12 are complete. CL01–CL20 are independently accepted. RP01 adds scoped stored-source inspection; RP02 completed nine retained real-data runs after explicit strategy approval, exact reproduction and an evidence-linked finding reopened in the web app. RP03 adds explicit declared-session preparation with read-only two-session source verification; RP04 explains the retained evaluation horizon beside CAGR. RP05 enables older-page and known-hash dataset reuse; RP06 preserves settings and captured retention retries across same-backtest tabs/run URLs. RP07 downloads validated original datasets; RP08 downloads their original run results for local exploration. RP09 protects publication/clone custody during backtest handoff; RP10 preserves experiment choices when a linked template fails to load. RP11 preserves exact hypothesis links during unrelated history failures; RP12 keeps run history selectable while metrics load and retry. All 82 scheduled tasks across the original backlog and extensions are accepted; 7 conditional tasks and 4 merged redirects remain. CL21 and performance extensions remain deferred. Historical milestones below remain evidence, not a new activation request.
Current follow-up: [real-data research workflow](real-data-research.md). [RP18](backlog/tasks/RP18.md) is in progress: a frozen 1,794-bar October dataset, October 1 warmup and October 2–31 trading, with exactly nine predeclared baseline/reproduction, training/holdout and fixed-cost runs. Reuse the existing approved SMA version and financial policy; independent accounting/evidence review and web reopening are required before completion. RP17 is complete: candidate defaults are accepted consistently by the shared response decoder and additive SQL admission migration, preserving original inputs and hashes. RP15/RP16 are complete: structured CLI receipts survive journal/cleanup failure, and candidate publication accepts automatic catalog lineage while preserving exact retries. RP14 protects drafts and pending saves when following the creation dialog’s strategy link. RP13 restores browser reproduction of eligible unreviewed isolated candidates; RP11/RP12 are complete. CL01–CL20 are independently accepted. RP01 adds scoped stored-source inspection; RP02 completed nine retained real-data runs after explicit strategy approval, exact reproduction and an evidence-linked finding reopened in the web app. RP03 adds explicit declared-session preparation with read-only two-session source verification; RP04 explains the retained evaluation horizon beside CAGR. RP05 enables older-page and known-hash dataset reuse; RP06 preserves settings and captured retention retries across same-backtest tabs/run URLs. RP07 downloads validated original datasets; RP08 downloads their original run results for local exploration. RP09 protects publication/clone custody during backtest handoff; RP10 preserves experiment choices when a linked template fails to load. RP11 preserves exact hypothesis links during unrelated history failures; RP12 keeps run history selectable while metrics load and retry. The previous 82 scheduled tasks across the original backlog and extensions are accepted; RP18 adds one active task, while 7 conditional tasks and 4 merged redirects remain. CL21 and performance extensions remain deferred. Historical milestones below remain evidence, not a new activation request.
## Cleanup implementation — October 26, 2026

View file

@ -8,7 +8,7 @@
[manifest.json](manifest.json) owns scheduling metadata: status, priorities, dependencies, ADR approvals, assignments and write locks. Task Markdown owns implementation scope/evidence/acceptance. This index and the [graph](dependencies.mmd) are derived views. Only the planning/integration owner updates scheduling state.
**Current total: 93 retained IDs — 82 done, 7 deferred, 4 merged.** RP01–RP17 add the authorized real-data workflow and its dataset reuse, export and workflow recovery follow-ups. The earlier 68 IDs retain their state. E11 adds seven authorized cleanup tasks and one conditional replay extraction; see the manifest for current scheduling. The original backlog accounted for 55 IDs. F09/P07 added projection/profiling work; the owner deferred P08's TypeScript optimization. Merged records preserve traceability; never execute them separately. Deferred work requires its stated trigger and explicit activation.
**Current total: 94 retained IDs — 82 done, 1 in progress, 7 deferred, 4 merged.** RP18 is the bounded October multi-session pilot; RP01–RP17 add the authorized real-data workflow and its dataset reuse, export and workflow recovery follow-ups. The earlier 68 IDs retain their state. E11 adds seven authorized cleanup tasks and one conditional replay extraction; see the manifest for current scheduling. The original backlog accounted for 55 IDs. F09/P07 added projection/profiling work; the owner deferred P08's TypeScript optimization. Merged records preserve traceability; never execute them separately. Deferred work requires its stated trigger and explicit activation.
States: ready, claimed, in_progress, review, done, blocked, deferred, merged. “Ready” means no code/ADR prerequisite, not execution authority. Implementation dependencies require accepted integration. `release_gates` govern enabling an end-to-end feature, not component coding or integration; conditional gates apply only to the named capability. F05 may integrate before F06, but its replay behavior is not released until F06 proves it.
@ -186,3 +186,5 @@ Owner authorized planning and per-task implementation commits. [Execution plan a
- [RP16: Automatic publication lineage](tasks/RP16.md) — done, `cc49f038`; accept valid server-assigned parents and exact publication retries.
- [RP17: Candidate default parameters](tasks/RP17.md) — done, `1502ab41`; decode normalized validation children without changing original inputs or hashes.
- [RP18: October multi-session pilot](tasks/RP18.md) — in progress; freeze the 23-session dataset and exactly nine runs using the existing approved SMA version. Execution, independent accounting/evidence review and web reopening remain required; the seven conditional tasks stay deferred.

View file

@ -1,8 +1,8 @@
{
"schema_version": 1,
"plan_revision": "2026-10-27.108",
"plan_revision": "2026-10-27.109",
"repository_base": "b7aeca4",
"plan_status": "candidate_defaults_validation_complete",
"plan_status": "october_multisession_pilot_in_progress",
"execution_authorized": true,
"execution_scope": {
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
@ -3557,6 +3557,36 @@
"integration_base": "f185f2e253b49c8879745ff6b543933278ffba97",
"reviewer": "/root/review_recovery_changes",
"review_notes": "Independent decoder/SQL review accepted; 40 focused tests / 297 assertions. Root fullcheck passed 1371 integration and 150 Rust tests. Real AI workflow/startup suite 9/217, direct SQL guards 2/25, full browser 21/785. Empty/partial defaults, original input and exact retry preservation, immutable upgrade/reapplication and adversarial parameter rejection verified. SQL precedence correction from review included; real-data-research.md records evidence."
},
{
"id": "RP18",
"title": "Complete a bounded October multi-session research pilot",
"epic": "E12",
"priority": "P1",
"severity": "High",
"status": "in_progress",
"dependencies": [
"RP02",
"RP03",
"R08",
"R09"
],
"decision_dependencies": [],
"task_file": "backlog/tasks/RP18.md",
"complexity": "M",
"assignment": "/root",
"write_locks": [
"aapl-october-research-pilot"
],
"blocker": null,
"integration_state": "in_progress",
"completion_evidence": "real-data-research.md",
"release_gates": [],
"review_status": "pending",
"completed_commit": null,
"integration_base": "1a60c04603622629354a4fc48d203a30634be1b5",
"authorization": "Owner commit-and-continue follows the recommended longer pilot; reuse the existing approved version. Prior October 1 approval record and deferred-task activation gates remain unchanged.",
"review_notes": "Frozen 1794-bar/23-session source passed 25297 independent assertions and exact repeated API preparation. Nine predeclared runs only; actual execution, financial reconciliation, independent review and web reopen remain pending."
}
],
"review_note": "Independent skeptical revision: four superseded tasks retain stable IDs; deferred work is not a dependency of scheduled tasks. Release gates are distinct from implementation prerequisites.",

View file

@ -0,0 +1,36 @@
# RP18 — Complete a bounded October multi-session research pilot
Parent E12. Priority P1. Complexity M. Dependencies RP02, RP03, R08 and R09. Status remains `in_progress` until execution, independent reconciliation and web reopening are accepted. Root owns pilot artifacts and execution; independent review can run against frozen captures and completed results without writing research state.
Authorization: the owner's current “commit and continue” follows the recommended longer pilot. Reuse the already approved SMA version `a67fb31d-7d13-4337-91fb-b49745983160`, artifact `008a42dc373168ba17d5e73a1cc769de6b0bc24b7e487f07a422ceaa3618aa71`. Verify its current catalog eligibility. Catalog approval is version-scoped (`canonical-research.service.ts:240`, `strategy-catalog.service.ts:476`); this continuation does not fabricate a new review event or broaden the historical October 1 approval record. A changed or unavailable version is a blocker.
Frozen input: dataset `9624ee17fd1b7f7b6787226a004704c5c92461355734a6b01891079816ec8e4b`, 1,794 unchanged AAPL.US five-minute bars across 23 October 2024 regular sessions. October 1 is warmup; trading runs October 2–31. Source preparation has 25,297 independent assertions and an exact repeated actual API preview. Root visually verified the Nasdaq calendar has no October closure or early-close markers. These establish preparation evidence, not completed research execution.
Scope: use the existing declared-session preparation, immutable catalog, retained dataset, durable Rust runner, reproduction, chronological validation, cost experiment and evidence APIs. Preserve append-only intent/receipt custody in `.data/research-pilots/aapl-202410-month/`; retries reuse original bodies, keys and saved IDs. Only this pilot's new research records may be written. No source-history changes, application refactor, new strategy, simulator, optimizer, framework, paper/live activation or activation of any of the seven deferred tasks.
The exact predeclared plan is retained at `.data/research-pilots/aapl-202410-month/predeclared-plan.json`, SHA256 `1f5a9d9c9d0cc88f950104121366dbb3af60ab8e2db00dd550b8cceff6380024`, before any runs. Freeze the following nine unique runs before reading results. Date ranges below are inclusive regular-session dates, implemented with exact session-open/session-close instants in `America/New_York`.
| Runs | Parameters and policy | Trading dates | Warmup |
| --- | --- | --- | --- |
| 1 baseline + 1 exact reproduction | SMA fast 3 / slow 8 | October 2–31 | October 1 |
| 2 training candidates | Fast 2 or 4; slow 8 | October 2–11 | October 1 |
| 1 validation | Frozen training winner | October 14–18 | October 11 |
| 1 test | Same frozen winner | October 21–31 | October 18 |
| 3 cost scenarios | Fixed baseline SMA 3/8, independent of winner | October 2–31 | October 1 |
Selection: highest training total return, with lowest candidate index breaking ties. Freeze the winner before holdout execution. Each phase starts a fresh account; do not compound phase returns or tune parameters, windows or costs after inspecting results. No extra trials beyond the nine retained run identities; stop and report unexpected failures or scope changes.
Financial policy remains the RP02 policy: initial capital USD 10,000, owner budget 1,000, seed 42, fee rate 0.001, half-spread 0.0001, slippage 0.0001, latency 0, participation 0.01, order/position quantity caps 10, symbol/gross exposure caps 1,500, daily loss cap 100, drawdown cap 200, mark age 300,000 ms, 252 periods/year and zero annual risk-free rate. Cost scenarios are the retained baseline, fee/slippage 0/0, and fee/slippage 0.002/0.0005; half-spread remains 0.0001 in all three. They are scenario assumptions, not calibrated execution costs.
Acceptance and mandatory checks:
- Exactly nine completed run identities; saved submission replay creates no duplicates. Record original source, parent/phase dataset, strategy artifact, engine/build, configuration and result hashes. Reproduction matches baseline economic hashes/results exactly.
- Independently reconcile cash, owned positions, terminal equity, fees applied once and risk limits from retained requests, events/fills and results. Keep policy identical except the declared cost changes. Lower costs need not preserve fills or imply monotonic returns.
- Training alone determines the frozen winner; validation/test use that version and parameter set. Verify the phase datasets contain only their declared warmup/trading windows and that warmup creates no trades.
- Verify complete session-open return-period counts: baseline/reproduction/costs 21, each training candidate 7, validation 4, test 8. The terminal close is a visible partial period excluded from periodic statistics; report the actual sampling and sample sizes without claiming close-to-close returns or significant risk estimates.
- Save an evidence-linked finding referencing the exact runs/validation/cost results, with separate hypothesis and observed evidence. Reopen the saved run, trades, chronological report, costs and finding through the existing web application and APIs.
- Independent reviewer accepts provenance, accounting, selection, period counts, limitations and absence of unintended records. Root records execution IDs, results and any unavailable evidence in `real-data-research.md` before marking the manifest done.
Limits are frozen in `.data/research-pilots/aapl-202410-month/evidence.json`: retrospective asset/window selection; 2026 capture without historical vendor arrival/vintage evidence; assumed zero-delay bar-end availability; inferred rather than certified action-free coverage; scenario costs; independent phase accounts; and a small single-asset sample that cannot establish alpha, regime robustness or statistically meaningful out-of-sample superiority. Boundary markers remain in raw captures and are outside explicit half-open sessions; selected bars are never coerced or post-filtered.
Regression risk: confusing preparation with execution, duplicating submissions after interruption, changing the winning rule after results, or treating valid metadata as certified market evidence. Existing RP02/RP03/R08/R09 behavior is retained; no new application tests or performance work are required unless execution exposes a concrete defect.