fix(research): verify revision acknowledgements before clearing drafts (RP30)

This commit is contained in:
Boki 2026-10-28 09:10:46 -04:00
parent dd8955ecbf
commit e4056c7d13
7 changed files with 434 additions and 21 deletions

View file

@ -358,4 +358,3 @@ flowchart TD
R04 --> RP30
RP24 --> RP30
RP29 --> RP30

View file

@ -3614,7 +3614,7 @@
"priority": "P1",
"severity": "High",
"status": "in_progress",
"dependencies": ["R04", "RP24", "RP29"],
"dependencies": ["R04", "RP24"],
"decision_dependencies": [],
"task_file": "backlog/tasks/RP30.md",
"complexity": "M",

View file

@ -1,6 +1,6 @@
# RP30 — Verify saved research revisions before clearing drafts
Parent E12. Priority P1 / High draft-custody defect. Complexity M. Dependencies R04, RP24, RP29. Owner continuation authorizes implementation and commits. All seven conditional tasks remain deferred.
Parent E12. Priority P1 / High draft-custody defect. Complexity M. Dependencies R04, RP24. Owner continuation authorizes implementation and commits. All seven conditional tasks remain deferred.
Verified baseline: `ResearchEntry.save` awaits `researchApi.reviseHypothesis` or `reviseArtifact` but ignores the returned record, immediately clears editing and reloads. The transport checks only a broad envelope/record ID. A stale, foreign or altered successful acknowledgement therefore discards the draft. The existing finding-create dialog already verifies its source/reference acknowledgement; the revision form already preserves uncertain drafts and prevents automatic replay for transport failures/conflicts.