docs(research): plan partial-read recovery fixes
This commit is contained in:
parent
1c359ef8e9
commit
f4cee5affa
6 changed files with 82 additions and 4 deletions
|
|
@ -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: 86 retained IDs — 75 done, 7 deferred, 4 merged.** RP01–RP10 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: 88 retained IDs — 75 done, 2 in progress, 7 deferred, 4 merged.** RP01–RP12 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.
|
||||
|
||||
|
|
@ -174,3 +174,6 @@ Owner authorized planning and per-task implementation commits. [Execution plan a
|
|||
|
||||
- [RP09: Strategy handoff custody](tasks/RP09.md) — done, `49da701a`; finish or clear publication/clone work before handing a version to backtest setup.
|
||||
- [RP10: Missing-template recovery](tasks/RP10.md) — done, `f0e7d074`; preserve valid experiment choices when the linked template lookup fails.
|
||||
|
||||
- [RP11: Partial hypothesis-history recovery](tasks/RP11.md) — in progress; retain verified exact links despite unrelated history errors.
|
||||
- [RP12: Available run history](tasks/RP12.md) — in progress; keep saved runs selectable while optional metrics load.
|
||||
|
|
|
|||
|
|
@ -299,3 +299,6 @@ flowchart TD
|
|||
R02 --> RP09
|
||||
A02 --> RP09
|
||||
R07 --> RP10
|
||||
|
||||
R04 --> RP11
|
||||
W01 --> RP12
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"schema_version": 1,
|
||||
"plan_revision": "2026-10-27.98",
|
||||
"plan_revision": "2026-10-27.99",
|
||||
"repository_base": "b7aeca4",
|
||||
"plan_status": "strategy_handoff_and_experiment_recovery_complete",
|
||||
"plan_status": "partial_read_recovery_in_progress",
|
||||
"execution_authorized": true,
|
||||
"execution_scope": {
|
||||
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
|
||||
|
|
@ -3363,6 +3363,52 @@
|
|||
"review_status": "accepted",
|
||||
"reviewer": "/root/review_recovery_changes",
|
||||
"review_notes": "Independent review accepted. Full repository check passed: 1334 integration and 150 Rust tests. All 21 browser scenarios covered by 20 successful full-suite scenarios and the corrected RP09 focused rerun (50 assertions); initial fixture lineage-count assumption corrected without application changes. Authored types/lint/build pass; evidence records exact results."
|
||||
},
|
||||
{
|
||||
"id": "RP11",
|
||||
"title": "Preserve verified hypothesis links during partial history failure",
|
||||
"epic": "E12",
|
||||
"priority": "P2",
|
||||
"severity": "Medium",
|
||||
"status": "in_progress",
|
||||
"dependencies": [
|
||||
"R04"
|
||||
],
|
||||
"decision_dependencies": [],
|
||||
"task_file": "backlog/tasks/RP11.md",
|
||||
"complexity": "S",
|
||||
"assignment": "/root/audit_research_entry_recovery",
|
||||
"write_locks": [
|
||||
"research-hypothesis-reference"
|
||||
],
|
||||
"blocker": null,
|
||||
"integration_state": "pending",
|
||||
"completion_evidence": "real-data-research.md",
|
||||
"release_gates": [],
|
||||
"review_status": "pending"
|
||||
},
|
||||
{
|
||||
"id": "RP12",
|
||||
"title": "Keep run history usable while result metrics load",
|
||||
"epic": "E12",
|
||||
"priority": "P2",
|
||||
"severity": "Medium",
|
||||
"status": "in_progress",
|
||||
"dependencies": [
|
||||
"W01"
|
||||
],
|
||||
"decision_dependencies": [],
|
||||
"task_file": "backlog/tasks/RP12.md",
|
||||
"complexity": "S",
|
||||
"assignment": "/root/audit_recovery_next",
|
||||
"write_locks": [
|
||||
"run-history-enrichment"
|
||||
],
|
||||
"blocker": null,
|
||||
"integration_state": "pending",
|
||||
"completion_evidence": "real-data-research.md",
|
||||
"release_gates": [],
|
||||
"review_status": "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.",
|
||||
|
|
|
|||
13
docs/development/backlog/tasks/RP11.md
Normal file
13
docs/development/backlog/tasks/RP11.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# RP11 — Preserve verified hypothesis links during partial history failure
|
||||
|
||||
Parent E12. Priority P2 / Medium recovery defect. Complexity S. Dependency R04. Owner continuation authorizes this correction.
|
||||
|
||||
Verified baseline: `ResearchEntry.tsx` resolves a finding's older hypothesis revision with `Promise.all` across every project hypothesis. A 503 from an unrelated history discards a successful exact match. The existing HappyDOM workspace harness reproduces the missing link; `/tmp/stock-bot-rp11-baseline.log` records the failing assertion.
|
||||
|
||||
Scope: preserve an identity-verified match despite unrelated lookup failures. When no match is found, distinguish incomplete lookup from confirmed absence. Preserve project ownership, exact revision navigation, cancellation and stale-response fencing. Use existing project refresh for retry. No API/schema change, new resolver service or persistent cache.
|
||||
|
||||
Ownership: implementation agent owns `apps/stock/web-app/src/features/research/components/ResearchEntry.tsx` and `test/integration/research-workspace-ui.test.tsx`. Root owns shared browser tests, planning state and commits. Parallel with RP12; independent review required.
|
||||
|
||||
Acceptance/tests: a valid historical match plus unrelated HTTP failure still links the exact hypothesis/revision. No match with a failed read reports incomplete resolution; all successful reads without a match report unavailable history. Refresh recovers a failed lookup. A late previous response cannot attach a link to a different selected finding or project. Existing archived-hypothesis and evidence revision behavior remains intact.
|
||||
|
||||
Gates: focused workspace UI regressions, application/authored types, lint/build, root repository check and the existing research browser workflow. No financial or execution changes.
|
||||
13
docs/development/backlog/tasks/RP12.md
Normal file
13
docs/development/backlog/tasks/RP12.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# RP12 — Keep run history usable while result metrics load
|
||||
|
||||
Parent E12. Priority P2 / Medium recovery defect. Complexity S. Dependency W01. Owner continuation authorizes this correction.
|
||||
|
||||
Verified baseline: `RunsListWithMetrics.tsx` waits for every completed result before publishing any rows and passes a blocking loading state to `DataTable`. One delayed result hides already-loaded failed/active run rows. `useRunMonitoring.ts` replaces the runs array on each active poll, restarting the reads. The existing HappyDOM/Virtuoso harness reproduces zero selectable rows while two run records are already available; `/tmp/stock-bot-rp12-baseline.log` records the failure.
|
||||
|
||||
Scope: render authoritative current run records immediately and enrich their metrics independently by run/backtest identity. A pending or failed result must not hide other rows or replace current status. Preserve honest unavailable values, canonical/legacy display conventions, identity validation and stale-response fencing. Keep the fix local to the history component; no result-summary endpoint, shared table redesign, global cache or financial/throughput optimization.
|
||||
|
||||
Ownership: implementation agent owns `apps/stock/web-app/src/features/backtest/components/RunsListWithMetrics.tsx` and `test/integration/canonical-workbench.test.tsx`. Root owns shared browser tests, planning state and commits. Parallel with RP11; independent review required.
|
||||
|
||||
Acceptance/tests: all current rows remain visible/selectable while result reads are pending or failed. Polling updates status without hiding history or starving unchanged result reads. Healthy metrics become visible without waiting for unrelated reads. Removed/changed-parent rows and late unmounted reads cannot restore obsolete data. Failed reads have an honest local state and an explicit local retry. Preserve existing foreign-parent rejection and canonical/legacy drawdown tests. Browser: delay a completed result and open another saved run without creating a new one.
|
||||
|
||||
Gates: focused canonical workbench regressions, application/authored types, lint/build, root repository check and browser delayed-result navigation. No backend, accounting or API changes.
|
||||
Loading…
Add table
Add a link
Reference in a new issue