docs(research): close client recovery and publication stories
This commit is contained in:
parent
cc49f0389c
commit
f5eeb807b6
6 changed files with 38 additions and 12 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Revised development roadmap
|
||||
|
||||
Current follow-up: [real-data research workflow](real-data-research.md). RP15/RP16 correct verified AI-client receipt recovery and publication-lineage defects. 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 79 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). 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 81 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
|
||||
|
||||
|
|
|
|||
|
|
@ -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: 92 retained IDs — 79 done, 2 in progress, 7 deferred, 4 merged.** RP01–RP16 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: 92 retained IDs — 81 done, 7 deferred, 4 merged.** RP01–RP16 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.
|
||||
|
||||
|
|
@ -182,5 +182,5 @@ Owner authorized planning and per-task implementation commits. [Execution plan a
|
|||
|
||||
- [RP14: Backtest dialog navigation](tasks/RP14.md) — done, `0d022ecc`; preserve drafts and pending saves during same-tab strategy inspection.
|
||||
|
||||
- [RP15: CLI recovery evidence](tasks/RP15.md) — in progress; preserve accepted receipts when journal persistence fails.
|
||||
- [RP16: Automatic publication lineage](tasks/RP16.md) — in progress; accept valid server-assigned parents and exact publication retries.
|
||||
- [RP15: CLI recovery evidence](tasks/RP15.md) — done, `e3d6512b`; preserve accepted receipts when journal persistence fails.
|
||||
- [RP16: Automatic publication lineage](tasks/RP16.md) — done, `cc49f038`; accept valid server-assigned parents and exact publication retries.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"schema_version": 1,
|
||||
"plan_revision": "2026-10-27.105",
|
||||
"plan_revision": "2026-10-27.106",
|
||||
"repository_base": "b7aeca4",
|
||||
"plan_status": "ai_client_receipt_recovery_in_progress",
|
||||
"plan_status": "ai_client_receipt_recovery_complete",
|
||||
"execution_authorized": true,
|
||||
"execution_scope": {
|
||||
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
|
||||
|
|
@ -3480,7 +3480,7 @@
|
|||
"epic": "E12",
|
||||
"priority": "P1",
|
||||
"severity": "High",
|
||||
"status": "in_progress",
|
||||
"status": "done",
|
||||
"dependencies": [
|
||||
"A03"
|
||||
],
|
||||
|
|
@ -3492,10 +3492,14 @@
|
|||
"research-cycle-cli-recovery"
|
||||
],
|
||||
"blocker": null,
|
||||
"integration_state": "pending",
|
||||
"integration_state": "accepted",
|
||||
"completion_evidence": "real-data-research.md",
|
||||
"release_gates": [],
|
||||
"review_status": "pending"
|
||||
"review_status": "accepted",
|
||||
"completed_commit": "e3d6512b8f14b88a03b803a3744eda6c143b66de",
|
||||
"integration_base": "14b28a3428f52aa9f8d95b106c3ef7688a868e97",
|
||||
"reviewer": "/root/review_recovery_changes",
|
||||
"review_notes": "Independent review accepted 26 client/cycle tests / 164 assertions, including seven executable no-network regressions. Exact accepted/stopped events survive write/sync and close failure; no automatic retries or invented acceptance. Root full check, authored types, scoped lint/formatting passed; see real-data-research.md."
|
||||
},
|
||||
{
|
||||
"id": "RP16",
|
||||
|
|
@ -3503,7 +3507,7 @@
|
|||
"epic": "E12",
|
||||
"priority": "P1",
|
||||
"severity": "High",
|
||||
"status": "in_progress",
|
||||
"status": "done",
|
||||
"dependencies": [
|
||||
"A03",
|
||||
"R01"
|
||||
|
|
@ -3516,10 +3520,14 @@
|
|||
"research-client-publication"
|
||||
],
|
||||
"blocker": null,
|
||||
"integration_state": "pending",
|
||||
"integration_state": "accepted",
|
||||
"completion_evidence": "real-data-research.md",
|
||||
"release_gates": [],
|
||||
"review_status": "pending"
|
||||
"review_status": "accepted",
|
||||
"completed_commit": "cc49f0389c5432c2f9ee556b6da631a96a673b46",
|
||||
"integration_base": "14b28a3428f52aa9f8d95b106c3ef7688a868e97",
|
||||
"reviewer": "/root/review_recovery_changes",
|
||||
"review_notes": "Independent review accepted 22 client/cycle tests / 138 assertions. Real authenticated PostgreSQL workflow suite passed 3 tests / 148 assertions, including automatic/null/explicit lineage and exact receipt replay after later publications, four versions and zero runs. Root full check, authored types, scoped lint/formatting passed; see real-data-research.md."
|
||||
}
|
||||
],
|
||||
"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.",
|
||||
|
|
|
|||
|
|
@ -11,3 +11,5 @@ Ownership: agent owns `scripts/examples/research-cycle.ts`, `scripts/test/resear
|
|||
Acceptance/tests: run the actual executable with deterministic no-network fetch and journal faults after server acceptance; assert exact recovery event in stderr, empty success output, exit 1, original intent retained and no later mutation. Cover write/sync failure and a simultaneous close failure; ordinary pre-admission errors must not invent receipts or reveal the credential. Existing callable receipt/cancellation and successful workflow tests remain green.
|
||||
|
||||
Gates: research-cycle/client tooling suites, subprocess recovery regressions, authored types, scoped lint/formatting, root repository check. No browser suite required for a CLI-only change. Existing untrusted-candidate isolation and research authorization stay unchanged.
|
||||
|
||||
Accepted October 27, 2026; implementation `e3d6512b`. Independent review accepted 26 client/cycle tests / 164 assertions, including seven executable no-network regressions. Exact accepted/stopped events survive write/sync and close failure; no automatic retries or invented acceptance. Root full check, authored types, scoped lint/formatting passed; see real-data-research.md.
|
||||
|
|
|
|||
|
|
@ -11,3 +11,5 @@ Ownership: agent owns `scripts/research-client.ts` and `scripts/test/research-cl
|
|||
Acceptance/tests: first publication accepts null lineage; later default/null publication accepts the actual earlier version ID. Explicit parent mismatch still fails. Wrong family/origin/hash/invalid parent shape still fails. A repeated exact receipt recovers the same version even after a later publication becomes latest; it sends identical body/key, creates no duplicate and never executes candidate code. Verify these normal paths through real authorized routes and PostgreSQL with the existing fixture.
|
||||
|
||||
Gates: focused client/cycle tooling tests, authored types, scoped lint/formatting, root repository check, real PostgreSQL AI workflow tests. No browser change or browser suite needed. Preserve backend lineage and all existing authorization rules.
|
||||
|
||||
Accepted October 27, 2026; implementation `cc49f038`. Independent review accepted 22 client/cycle tests / 138 assertions. Real authenticated PostgreSQL workflow suite passed 3 tests / 148 assertions, including automatic/null/explicit lineage and exact receipt replay after later publications, four versions and zero runs. Root full check, authored types, scoped lint/formatting passed; see real-data-research.md.
|
||||
|
|
|
|||
|
|
@ -247,3 +247,17 @@ Root validation:
|
|||
- Application and authored test types, focused lint/formatting and diff checks passed. The browser fixture waits for the initial backtest catalog read to finish before delaying the save, so that unrelated read cannot consume its delay.
|
||||
|
||||
Logs: `/tmp/stock-bot-rp14-baseline.log`, `/tmp/stock-bot-rp14-red.log`, `/tmp/stock-bot-rp14-independent.log`, `/tmp/stock-bot-rp14-root-check.log`, `/tmp/stock-bot-rp14-root-test-types-final.log` and `/tmp/stock-bot-rp14-browser.log`. PostgreSQL/Redis were fresh disposable fixtures. No development research execution, paper/live activation or conditional performance work was performed.
|
||||
|
||||
## RP15 / RP16 — AI client recovery and candidate revisions
|
||||
|
||||
Planning commit `14b28a34`; accepted implementations `e3d6512b` (RP15) and `cc49f038` (RP16). The manifest now contains 81 completed tasks, seven deferred tasks and four merged redirects: 92 IDs total.
|
||||
|
||||
RP15 preserves the exact structured `ResearchCycleStopped` event at the executable error boundary when receipt persistence fails. Cleanup failure cannot replace the original recovery event. Rejected operations retain their original uncertainty; failures before admission do not invent accepted receipts. The journal remains exclusively created, execution stops with exit 1, and no automatic retry or alternate journal is introduced.
|
||||
|
||||
RP16 fixes a client/catalog contract mismatch: a null publication parent asks the catalog to select its latest version, rather than requiring the response parent to remain null. Explicit parents still require an exact match. Existing schema, candidate origin, family and package checks remain. Receipt retries use the original body/key and recover the original lineage even after newer publications.
|
||||
|
||||
Independent reviewer `/root/review_recovery_changes` accepted both patches: RP15 had 26 client/cycle tests / 164 assertions, including seven actual CLI subprocess regressions without network access; RP16 had 22 client/cycle tests / 138 assertions. These isolated counts overlap and are not additive. The real-agent PostgreSQL lineage regression failed before the fix, then the complete authenticated AI workflow suite passed **3 tests / 148 assertions**, including native execution and quota/evidence rejection. The added case verifies automatic and explicit parents, delayed receipt replay, exactly four versions and zero research runs from publication alone.
|
||||
|
||||
Root `CARGO_BUILD_JOBS=2 bun run check` passed: **144 tooling, 43 utility, 44 calculation, 1,364 integration and 150 Rust tests**. Existing 14 conditional integration skips and four ignored Rust measurements remain. Build, application and authored test types, contracts, lint, formatting, diff check and secret audit passed. No browser suite was rerun for these script-only changes. The PostgreSQL fixture was disposable and stopped afterward.
|
||||
|
||||
Evidence: `/tmp/stock-bot-cycle-journal-probe/`, `/tmp/stock-bot-rp16-regression-red.log`, `/tmp/stock-bot-rp15-independent.log`, `/tmp/stock-bot-rp16-independent.log`, `/tmp/stock-bot-rp16-postgres.log`, `/tmp/stock-bot-rp15-rp16-root-check.log`, `/tmp/stock-bot-rp15-rp16-types.log` and `/tmp/stock-bot-rp15-rp16-lint.log`. Development research execution, paper/live activation and conditional performance work remain inactive.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue