diff --git a/docs/development/ROADMAP.md b/docs/development/ROADMAP.md index 945a4350..186b8aa8 100644 --- a/docs/development/ROADMAP.md +++ b/docs/development/ROADMAP.md @@ -1,6 +1,6 @@ # Revised development roadmap -Current follow-up: [real-data research workflow](real-data-research.md). RP13 corrects a verified browser/backend mismatch blocking unreviewed candidate reproduction; 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 77 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). 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 78 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. ## Cleanup implementation — October 26, 2026 diff --git a/docs/development/backlog/README.md b/docs/development/backlog/README.md index aa9859b7..c2df1015 100644 --- a/docs/development/backlog/README.md +++ b/docs/development/backlog/README.md @@ -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: 89 retained IDs — 77 done, 1 in progress, 7 deferred, 4 merged.** RP01–RP13 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: 89 retained IDs — 78 done, 7 deferred, 4 merged.** RP01–RP13 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. @@ -178,4 +178,4 @@ Owner authorized planning and per-task implementation commits. [Execution plan a - [RP11: Partial hypothesis-history recovery](tasks/RP11.md) — done, `32f40ee7`; retain verified exact links despite unrelated history errors. - [RP12: Available run history](tasks/RP12.md) — done, `a050c710`; keep saved runs selectable while optional metrics load. -- [RP13: Isolated candidate reproduction](tasks/RP13.md) — in progress; accept the existing null-review candidate preview without weakening built-in approval checks. +- [RP13: Isolated candidate reproduction](tasks/RP13.md) — done, `773314d2`; accept the existing null-review candidate preview without weakening built-in approval checks. diff --git a/docs/development/backlog/manifest.json b/docs/development/backlog/manifest.json index 0eb2e3ea..3829d813 100644 --- a/docs/development/backlog/manifest.json +++ b/docs/development/backlog/manifest.json @@ -1,8 +1,8 @@ { "schema_version": 1, - "plan_revision": "2026-10-27.101", + "plan_revision": "2026-10-27.102", "repository_base": "b7aeca4", - "plan_status": "candidate_reproduction_recovery_in_progress", + "plan_status": "candidate_reproduction_recovery_complete", "execution_authorized": true, "execution_scope": { "authorized_by": "Owner: commit and continue with the rest of the tasks till 100%", @@ -3424,7 +3424,7 @@ "epic": "E12", "priority": "P1", "severity": "High", - "status": "in_progress", + "status": "done", "dependencies": [ "R12", "A02" @@ -3437,10 +3437,14 @@ "candidate-reproduction-preview" ], "blocker": null, - "integration_state": "pending", + "integration_state": "accepted", "completion_evidence": "real-data-research.md", "release_gates": [], - "review_status": "pending" + "review_status": "accepted", + "completed_commit": "773314d29ee3081f1b16dd01125efb2f785b9d43", + "integration_base": "8807d9e50427d470b4c79020ff96da0335bf6168", + "reviewer": "/root/review_recovery_changes", + "review_notes": "Independent UI/API review: 41 tests / 238 assertions. Root full check passed: 1358 integration and 150 Rust tests, including economic comparison cases that could not load in the isolated worktree. Focused real PostgreSQL candidate reproduction/revocation: 1 test / 8 assertions. Complete Chromium suite: 21 scenarios / 770 assertions, including unreviewed isolated candidate reproduction, receipt recovery and matching economics. Application/authored types, lint, formatting and builds pass; real-data-research.md records exact evidence." } ], "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.", diff --git a/docs/development/backlog/tasks/RP13.md b/docs/development/backlog/tasks/RP13.md index d06d0e64..7dcc8502 100644 --- a/docs/development/backlog/tasks/RP13.md +++ b/docs/development/backlog/tasks/RP13.md @@ -17,3 +17,5 @@ Acceptance/tests: - Existing PostgreSQL candidate reproduction and revocation/receipt tests continue passing; original built-in browser reproduction remains covered. Gates: focused reproduction UI/API tests, application/authored types, lint/build, root repository check, focused disposable PostgreSQL candidate regression, and the full browser suite. No development runs or paper/live activation; conditional performance tasks stay deferred. + +Accepted October 27, 2026; implementation `773314d2`. Independent UI/API review passed 41 tests / 238 assertions. Root full check passed, including 1,358 integration and 150 Rust tests. Focused PostgreSQL reproduction/revocation passed 1 test / 8 assertions. All 21 browser scenarios passed / 770 assertions, including actual unreviewed candidate reproduction, original provenance, repeat-safe receipt and reopened economic match. Application/authored types, lint, formatting and build passed. [Combined evidence](../../real-data-research.md) records the isolated-worktree module-loading limitation and successful root comparison tests. diff --git a/docs/development/real-data-research.md b/docs/development/real-data-research.md index a67f1eef..f8c5be47 100644 --- a/docs/development/real-data-research.md +++ b/docs/development/real-data-research.md @@ -214,3 +214,20 @@ Root validation: - Authored test types, scoped formatting and diff checks passed. Implementer package-local declaration checking initially encountered the existing `paperApi.ts` TS4023 issue; repository typechecking and the proper no-emit application check passed. No workaround was committed. Logs: `/tmp/stock-bot-rp11-baseline.log`, `/tmp/stock-bot-rp12-baseline.log`, `/tmp/stock-bot-rp11-independent.log`, `/tmp/stock-bot-rp12-independent.log`, `/tmp/stock-bot-rp11-rp12-root-check.log`, `/tmp/stock-bot-rp11-rp12-browser-types.log` and `/tmp/stock-bot-rp11-rp12-browser.log`. No development research execution, paper/live activation or conditional performance work was performed. + +## RP13 — Isolated candidate reproduction + +Planning commit `8807d9e5` scopes the browser/backend contract mismatch; implementation `773314d2` is accepted. The manifest contains 78 completed tasks, seven deferred tasks and four merged redirects: 89 IDs total. + +The backend already permits eligible isolated candidates without a human review, including reproduction with a null review receipt. The browser incorrectly required a current approval receipt for every available preview. RP13 applies that requirement only to built-ins, preserves strict candidate runtime/request validation and displays absent versus unavailable review information accurately. Backend eligibility, revocation, original input custody and financial semantics are unchanged. + +The baseline actual component/transport probe failed with a schema-valid candidate preview. Independent reviewer `/root/review_recovery_changes` accepted 41 UI/API tests / 238 assertions, including reviewed/unreviewed candidates, missing built-in approval, unavailable/revoked candidates, malformed execution data, identity checks and exact-source/key retries. + +Root validation: + +- `CARGO_BUILD_JOBS=2 bun run check`: passed — 134 tooling, 43 utility, 44 calculation, 1,358 integration and 150 Rust tests. Existing 14 conditional integration skips and four ignored Rust measurements remain. Build, application types, contracts, strict lint and secret audit passed. +- Focused `test/postgres/isolated-candidates.test.ts` candidate retry/reproduction case: passed, 8 assertions. This exercises retained candidate inputs after template edits, null-review admission, native economic matching, revocation and recovery of an already accepted receipt. Five unrelated cases were excluded by the name filter. +- Complete Chromium suite: all 21 scenarios passed, zero failures, 770 assertions. The added flow reproduces an actually unreviewed controlled candidate through the durable isolated runner, recovers the same run from its receipt, verifies original strategy/runtime/dataset and analytics, reopens the economic-match result and confirms zero review records before and after reproduction. The existing built-in reproduction and later human-reviewed promotion fixtures also passed. These are disposable test records, not real trading activation. +- Application and authored test types, scoped lint/formatting and diff checks passed. An additional economic-comparison suite could not load `zod` in the isolated implementation worktree; all four comparison cases passed in the root full check. No dependency workaround was committed. + +Logs: `/tmp/stock-bot-rp13-baseline.log`, `/tmp/stock-bot-rp13-independent.log`, `/tmp/stock-bot-rp13-comparison.log`, `/tmp/stock-bot-rp13-root-check.log`, `/tmp/stock-bot-rp13-root-test-types.log`, `/tmp/stock-bot-rp13-postgres.log` and `/tmp/stock-bot-rp13-browser.log`. PostgreSQL/Redis were fresh disposable fixtures. Conditional performance work and development/paper/live execution remain inactive.