diff --git a/docs/development/backlog/README.md b/docs/development/backlog/README.md index 2af88a2c..08d5f084 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: 99 retained IDs — 88 done, 7 deferred, 4 merged.** RP18 completes 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. +**Current total: 100 retained IDs — 88 done, 1 in progress, 7 deferred, 4 merged.** RP18 completes 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. @@ -198,3 +198,5 @@ Owner authorized planning and per-task implementation commits. [Execution plan a - [RP22: Candidate decimal admission](tasks/RP22.md) — done, `b7116473`; additive SQL33 preserves known-program decimal normalization and exact raw-input receipts. - [RP23: Cross-study findings client](tasks/RP23.md) — done, `8dc8724c`; typed comparisons accept null/omitted source while preserving canonical versioned evidence and supplied-source identity checks. + +- [RP24: Single-run finding acknowledgements](tasks/RP24.md) — in progress; verify returned source and selected citations before displaying saved success. diff --git a/docs/development/backlog/dependencies.mmd b/docs/development/backlog/dependencies.mmd index 5dc23dda..fc4eacb8 100644 --- a/docs/development/backlog/dependencies.mmd +++ b/docs/development/backlog/dependencies.mmd @@ -332,3 +332,7 @@ flowchart TD A03 --> RP23 RP21 --> RP23 + + R04 --> RP24 + R09 --> RP24 + RP23 --> RP24 diff --git a/docs/development/backlog/manifest.json b/docs/development/backlog/manifest.json index a40975a6..c5576f17 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.119", + "plan_revision": "2026-10-27.120", "repository_base": "b7aeca4", - "plan_status": "cross_study_finding_client_complete", + "plan_status": "single_run_finding_acknowledgement_in_progress", "execution_authorized": true, "execution_scope": { "authorized_by": "Owner: commit and continue with the rest of the tasks till 100%", @@ -3752,6 +3752,34 @@ "integration_base": "24d20dd5", "planning_commit": "27d2bc96", "review_notes": "Two-line client correction; null and omitted sources match backend normalization without weakening canonical versioned evidence or supplied-source identity. Independent client/cycle 34 tests / 294 assertions; full tooling 149 / 14,250; authenticated PostgreSQL/native workflow 4 / 215. Authored/application types, contracts, explicit scoped lint, formatting, secrets and diff passed. No full build/full integration rerun; no real study writes or deferred work." + }, + { + "id": "RP24", + "title": "Verify single-run finding acknowledgements in the web app", + "epic": "E12", + "priority": "P2", + "severity": "Medium", + "status": "in_progress", + "dependencies": [ + "R04", + "R09", + "RP23" + ], + "decision_dependencies": [], + "task_file": "backlog/tasks/RP24.md", + "complexity": "S", + "assignment": "/root", + "write_locks": [ + "finding-dialog-acknowledgement" + ], + "blocker": null, + "integration_state": "in_progress", + "review_status": "pending", + "completed_commit": null, + "completion_evidence": "real-data-research.md", + "release_gates": [], + "authorization": "Owner: commit and continue. Correct the verified single-run finding response gap; no real research execution or deferred work.", + "integration_base": "1a75377a" } ], "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/RP24.md b/docs/development/backlog/tasks/RP24.md new file mode 100644 index 00000000..336cd844 --- /dev/null +++ b/docs/development/backlog/tasks/RP24.md @@ -0,0 +1,18 @@ +# RP24 — Verify single-run finding acknowledgements in the web app + +Parent E12. Priority P2 / Medium workflow defect. Complexity S. Dependencies R04, R09, RP23. Owner continuation authorizes implementation and commits. All seven conditional tasks remain deferred. + +Verified baseline: `SaveFindingDialog.tsx` checks returned source/evidence identities only when `source.context !== null`. `singleRunFindingSource` always has null context, so a successful response with missing evidence or a different cited run/version/metric is displayed as saved. The existing canonical UI success fixture even returns an empty evidence array. This differs from the strict identity checks used by report findings and the typed research client. + +Scope: compare returned source and selected evidence identities for every finding. Treat absent/null source as equivalent, and absent/null strategy version as equivalent for unversioned historical references. Keep exact canonical strategy versions and selected run/metric identities. Preserve legacy result support and server-resolved measurements. A response that cannot be verified must retain the draft, block duplicate creation and use the existing uncertain-save recovery UI. + +Affected modules: `apps/stock/web-app/src/features/research/components/SaveFindingDialog.tsx`; `test/integration/research-finding-ui.test.tsx`; existing source-dialog and browser research tests if required. Backend/schema, financial engine and data capture are excluded. Do not add a simulator, generic response framework, new recovery flow or financial recomputation. + +Acceptance and tests: + +- A single-run acknowledgement with empty/missing/extra or substituted run/version/metrics evidence, or an unexpected aggregate source, never displays saved success. It preserves the draft, exposes the existing uncertain-save notice and sends no retry. +- Canonical selected references succeed with omitted/null aggregate source and exact returned identities. Legacy references with absent/null version continue to succeed, retain their qualifications and never acquire a version. +- A matching attached report/experiment still succeeds; changed source/evidence still fails. Existing preflight, cancellation, stale-response and draft-recovery tests remain green. +- Run the focused finding/source UI tests, authored/application types, strict scoped lint/formatting, web build and the research browser workflow where available. Record actual outcomes and any limitations. No new real-data research or paper/live activation. + +Definition of done: reproduce the skipped identity check before changing source, apply the smallest correction, review the diff against both canonical and legacy response shapes, pass the relevant checks, update canonical task state and commit. No new architecture decision is required.