diff --git a/docs/development/backlog/README.md b/docs/development/backlog/README.md index d16004a7..044259b8 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: 107 retained IDs — 96 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: 108 retained IDs — 96 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. @@ -211,3 +211,4 @@ Owner authorized planning and per-task implementation commits. [Execution plan a - [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) — done (`57ba86d0`); verify project/hypothesis/note/finding creations before leaving drafts or displaying saved success. +- [RP32: Project/archive acknowledgement custody](tasks/RP32.md) — in progress; verify project patches and entry archive outcomes, preserving uncertain drafts until explicit reload. diff --git a/docs/development/backlog/dependencies.mmd b/docs/development/backlog/dependencies.mmd index 421c95fc..931727f0 100644 --- a/docs/development/backlog/dependencies.mmd +++ b/docs/development/backlog/dependencies.mmd @@ -362,3 +362,6 @@ flowchart TD R04 --> RP31 RP24 --> RP31 RP30 --> RP31 + + R04 --> RP32 + RP30 --> RP32 diff --git a/docs/development/backlog/manifest.json b/docs/development/backlog/manifest.json index 35c68aa2..b243354f 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.135", + "plan_revision": "2026-10-28.136", "repository_base": "b7aeca4", - "plan_status": "research_creation_acknowledgements_complete", + "plan_status": "research_project_archive_acknowledgements_in_progress", "execution_authorized": true, "execution_scope": { "authorized_by": "Owner: commit and continue with the rest of the tasks till 100%", @@ -3656,6 +3656,28 @@ "reviewer": "/root", "planning_commit": "b09b2de4", "review_notes": "Root reviewed project/hypothesis/note/finding creation acknowledgements, normalized proposal fields and preserved uncertain drafts. All 34 baseline regressions failed before the fix. Final focused UI 231 tests / 1,594 assertions; complete built Chromium 25 / 931 with four real committed creations, corrupted acknowledgements, blocked original drafts, one POST each, exact reopened records, unchanged native result and bounded row counts. App/authored types, contracts, scoped lint/formatting, secrets and diff passed. Placeholder success fixtures now match submitted narrative; note wire inputs include existing shared defaults. No independent review/full repository or integration rerun/native rebuild claimed. Disposable stores stopped; no real study changes or deferred work." + }, + { + "id": "RP32", + "title": "Verify project updates and archive outcomes before releasing drafts", + "epic": "E12", + "priority": "P1", + "severity": "High", + "status": "in_progress", + "dependencies": ["R04", "RP30"], + "decision_dependencies": [], + "task_file": "backlog/tasks/RP32.md", + "complexity": "M", + "assignment": "/root", + "write_locks": ["research-project-archive-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 project/entry archive acknowledgements, preserve uncertain drafts and explicitly reload; preserve concurrent narrative revisions and backend semantics. No real research execution or deferred work.", + "integration_base": "ea9ea975" } ], "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/RP32.md b/docs/development/backlog/tasks/RP32.md new file mode 100644 index 00000000..818f2296 --- /dev/null +++ b/docs/development/backlog/tasks/RP32.md @@ -0,0 +1,18 @@ +# RP32 — Verify project updates and archive outcomes before releasing drafts + +Parent E12. Priority P1 / High draft-custody/state defect. Complexity M. Dependencies R04, RP30. Owner continuation authorizes implementation and commits. All seven conditional tasks remain deferred. + +Verified baseline: `ResearchProjectPage.mutateProject` accepts any readable project response, replaces local project state and discards metadata/child drafts. Its conflict flag blocks metadata saves but archive actions and child writes can bypass it. `ResearchEntry.archive` ignores the returned record, clears editing and refreshes; an uncertain outcome leaves archive retries enabled. Existing project conflict/reload controls and revision draft controls provide most of the necessary recovery UI. + +Scope: verify project edits/archive/restore against the captured normalized patch, stable ID/owner and expected next project revision. Verify hypothesis/note/finding archive acknowledgements against stable entry/project/owner/parent/kind/linkage and requested archive flag. Archive requests do not carry narrative revision preconditions: accept a valid newer latest revision from a concurrent editor; do not compare it to the stale loaded narrative or recalculate evidence. Refuse false success refresh/discard. Block further project/child writes after uncertain project outcomes and entry writes after uncertain archive outcomes, while preserving drafts. Explicit discard/reload must enter loading before releasing uncertainty; ordinary background refresh must not silently release it. Known nonambiguous refusals retain current retry behavior. + +Affected files: `ResearchProjectPage.tsx`, `components/ResearchEntry.tsx`, existing research workspace UI tests, browser workbench and walkthrough. Reuse shared project patch schema, research API errors and current read endpoints. A small entry archive-uncertainty state/control is permitted; do not create a mutation framework. No backend/schema/financial/permission/idempotency change, archive revision precondition, forced narrative equality, strategy membership semantics, real study execution or deferred work. + +Acceptance/tests: + +- Reproduce stale/foreign/altered project patch and entry archive acknowledgements clearing drafts/refreshing falsely. Verify project ID/owner/revision/title/description/archive state and entry ID/project/owner/parent/kind/linkage/target archive flag. Valid normalized project saves and both archive/restore directions work; a legitimately newer narrative revision may accompany entry archival. +- Failed verification and lost/malformed/server-error responses preserve metadata/entry drafts and block one-shot retries. Project uncertainty blocks archive, membership and child writes, including existing child drafts. Refresh alone preserves the block; explicit discard/reload releases it only through loading/verified project reads. Existing known 4xx, conflict, loading/error/empty, historical and stale-response behavior remains intact. +- Actual production-built Chromium commits ordinary metadata/archival writes while corrupting acknowledgements, retains blocked raw drafts with one PATCH each, deliberately reloads and reopens exact committed project/archive state and narrative history. Native result, run/dispatch counts and narrative revision counts remain unchanged by archive/recovery. +- Run workspace/finding/source/canonical UI suites, 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, minimal checks/recovery gates, root review, passing tests, usage/evidence/task updates and commits. No new architecture approval or real study activation.