From b09b2de40645b6e768c571923c9ca797885c19bf Mon Sep 17 00:00:00 2001 From: Boki Date: Wed, 28 Oct 2026 09:15:51 -0400 Subject: [PATCH] docs(research): plan creation acknowledgement verification (RP31) --- docs/development/backlog/README.md | 3 ++- docs/development/backlog/dependencies.mmd | 4 ++++ docs/development/backlog/manifest.json | 26 +++++++++++++++++++++-- docs/development/backlog/tasks/RP31.md | 19 +++++++++++++++++ 4 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 docs/development/backlog/tasks/RP31.md diff --git a/docs/development/backlog/README.md b/docs/development/backlog/README.md index e63ff0b0..1fe38df5 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: 106 retained IDs — 95 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: 107 retained IDs — 95 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. @@ -210,3 +210,4 @@ Owner authorized planning and per-task implementation commits. [Execution plan a - [RP28: Frozen data reads for research](tasks/RP28.md) — done (`4b9c6428`); exact retained exports with complete content/hash verification in the typed client. - [RP29: Original hypothesis reads](tasks/RP29.md) — done (`fa78b6a7`); reopen saved hypotheses and select their original immutable revisions through the typed client. - [RP30: Revision acknowledgement custody](tasks/RP30.md) — done (`e4056c7d`); verify saved revision identity/content/evidence before clearing web drafts. +- [RP31: Creation acknowledgement custody](tasks/RP31.md) — in progress; verify project/hypothesis/note/finding creations before leaving drafts or displaying saved success. diff --git a/docs/development/backlog/dependencies.mmd b/docs/development/backlog/dependencies.mmd index 2d7a9e07..421c95fc 100644 --- a/docs/development/backlog/dependencies.mmd +++ b/docs/development/backlog/dependencies.mmd @@ -358,3 +358,7 @@ flowchart TD R04 --> RP30 RP24 --> RP30 + + R04 --> RP31 + RP24 --> RP31 + RP30 --> RP31 diff --git a/docs/development/backlog/manifest.json b/docs/development/backlog/manifest.json index f7f6872c..ca90af33 100644 --- a/docs/development/backlog/manifest.json +++ b/docs/development/backlog/manifest.json @@ -1,8 +1,8 @@ { "schema_version": 1, - "plan_revision": "2026-10-28.133", + "plan_revision": "2026-10-28.134", "repository_base": "b7aeca4", - "plan_status": "research_revision_acknowledgements_complete", + "plan_status": "research_creation_acknowledgements_in_progress", "execution_authorized": true, "execution_scope": { "authorized_by": "Owner: commit and continue with the rest of the tasks till 100%", @@ -3631,6 +3631,28 @@ "reviewer": "/root", "planning_commit": "dd8955ec", "review_notes": "Root reviewed normalized revision intent, immutable identities/evidence/source and draft custody; removed unrelated RP29 prerequisite. All 48 baseline acknowledgement regressions failed before the fix. Final focused UI 190 tests / 1,265 assertions; complete built Chromium 24 / 892 with actual committed hypothesis/finding revisions, corrupted acknowledgements, blocked original drafts, one POST each and exact reopened histories. Initial browser 23 passed / one existing archive WebSocket cleanup deadline; unchanged-source full rerun passed, both logs retained. App/authored types, contracts, scoped lint/formatting, secrets and diff passed. Stale positive acknowledgement fixture and browser union typing corrected. No independent review/full repository or integration rerun/native rebuild claimed. Disposable stores stopped; no real study changes or deferred work." + }, + { + "id": "RP31", + "title": "Verify research creation acknowledgements before leaving drafts", + "epic": "E12", + "priority": "P1", + "severity": "High", + "status": "in_progress", + "dependencies": ["R04", "RP24", "RP30"], + "decision_dependencies": [], + "task_file": "backlog/tasks/RP31.md", + "complexity": "M", + "assignment": "/root", + "write_locks": ["research-creation-acknowledgements"], + "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. Verify existing research create acknowledgements and preserve uncertain drafts using existing controls; no real research execution or deferred work.", + "integration_base": "a490e95f" } ], "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/RP31.md b/docs/development/backlog/tasks/RP31.md new file mode 100644 index 00000000..34bcd874 --- /dev/null +++ b/docs/development/backlog/tasks/RP31.md @@ -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.