docs(research): plan creation acknowledgement verification (RP31)

This commit is contained in:
Boki 2026-10-28 09:15:51 -04:00
parent a490e95fd2
commit b09b2de406
4 changed files with 49 additions and 3 deletions

View file

@ -0,0 +1,19 @@
# RP31 — Verify research creation acknowledgements before leaving drafts
Parent E12. Priority P1 / High draft-custody defect. Complexity M. Dependencies R04, RP24, RP30. Owner continuation authorizes implementation and commits. All seven conditional tasks remain deferred.
Verified baseline: `ResearchListPage.create` navigates using any readable project acknowledgement. `CreateResearchEntry.submit` uses only the returned hypothesis/artifact ID before closing its form. `SaveFindingDialog` verifies destination/linkage/source/references but ignores returned title/body/content origin and initial revision identity/state. A successful stale or altered response can discard a proposal or present a different narrative as saved. Existing uncertainty controls already preserve drafts after lost/unreadable responses; RP30 demonstrates the corresponding revision fix.
Scope: complete acknowledgement checks for existing project, hypothesis, note and finding creation. Match shared-schema-normalized title/proposition plus untrimmed description/body/criteria and declared origin. Require active initial project revision or narrative revision ordinal 1; narratives remain unvalidated with matching project and revision-parent identity. Notes retain null hypothesis/source and no evidence; finding identity/source/reference checks stay intact and gain narrative/initial-state checks. Reuse the existing uncertain-create controls before navigation, closing the draft or showing a saved link. No automatic replay. Validate normalized successes and preserve legitimate human/AI/unknown declarations and legacy citations.
Affected files: `ResearchListPage.tsx`, `components/CreateResearchEntry.tsx`, `components/SaveFindingDialog.tsx`, existing workspace/finding/source UI tests, browser workbench and walkthrough. No backend/API/schema/engine, financial arithmetic, quota, permission, archive/project-update/revision workflow, new client framework or real research execution changes.
Acceptance/tests:
- Reproduce altered successful acknowledgements losing creation drafts or showing false saved findings before implementation. Reject changed normalized title/text/criteria/origin, wrong project/parent, archived records, noninitial ordinals, validated narratives and notes with fabricated linkage/source/evidence. Existing malformed transport and reference mismatch cases retain their behavior.
- On failure preserve raw draft fields and selected origin/citations, show uncertainty, disable resubmission, issue one POST and avoid success navigation/refresh/link. Checking saved records retains the blocked draft; only the existing explicit new-request/discard controls reset it. Loading/error/empty state and stale-response guards remain intact.
- Valid normalized creations navigate/open saved records as before, including empty notes, all declared origins, canonical and legacy finding evidence and null/omitted sources.
- Production-built Chromium commits ordinary project/hypothesis/note/finding creations while corrupting only their acknowledgements, verifies one POST and preserved blocked drafts per form, reopens the exact committed records and their original content/citations, and observes no extra runs/dispatch/revisions. Original native result remains unchanged.
- Run relevant workspace/finding/source/canonical UI tests, complete browser workbench, application/authored types, contracts, strict scoped lint/formatting, secrets and diff checks. No native rebuild or performance work.
Definition of done: focused red regressions, small checks using existing request schemas/uncertainty handling, root review, passing gates, usage/evidence/task updates and commits. No new architecture approval or real study activation.