From a490e95fd2347cef7904188c36db3e949c1d485f Mon Sep 17 00:00:00 2001 From: Boki Date: Wed, 28 Oct 2026 09:11:43 -0400 Subject: [PATCH] docs(research): close revision acknowledgement task --- docs/development/backlog/README.md | 4 ++-- docs/development/backlog/manifest.json | 17 ++++++++++------- docs/development/backlog/tasks/RP30.md | 2 ++ docs/development/real-data-research.md | 15 +++++++++++++++ 4 files changed, 29 insertions(+), 9 deletions(-) diff --git a/docs/development/backlog/README.md b/docs/development/backlog/README.md index 18d1a08c..e63ff0b0 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 — 94 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. +**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. 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. @@ -209,4 +209,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) — in progress; verify saved revision identity/content/evidence before clearing web drafts. +- [RP30: Revision acknowledgement custody](tasks/RP30.md) — done (`e4056c7d`); verify saved revision identity/content/evidence before clearing web drafts. diff --git a/docs/development/backlog/manifest.json b/docs/development/backlog/manifest.json index 6a1e88f0..f7f6872c 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.132", + "plan_revision": "2026-10-28.133", "repository_base": "b7aeca4", - "plan_status": "research_revision_acknowledgements_in_progress", + "plan_status": "research_revision_acknowledgements_complete", "execution_authorized": true, "execution_scope": { "authorized_by": "Owner: commit and continue with the rest of the tasks till 100%", @@ -3613,7 +3613,7 @@ "epic": "E12", "priority": "P1", "severity": "High", - "status": "in_progress", + "status": "done", "dependencies": ["R04", "RP24"], "decision_dependencies": [], "task_file": "backlog/tasks/RP30.md", @@ -3621,13 +3621,16 @@ "assignment": "/root", "write_locks": ["research-revision-acknowledgements"], "blocker": null, - "integration_state": "in_progress", - "review_status": "pending", - "completed_commit": null, + "integration_state": "accepted", + "review_status": "accepted", + "completed_commit": "e4056c7d130d113f2cba3dbd51e23fef3215116e", "completion_evidence": "real-data-research.md", "release_gates": [], "authorization": "Owner: commit and continue. Preserve web revision drafts until saved identity/content/evidence are verified; reuse existing uncertainty controls. No real research execution or deferred work.", - "integration_base": "4a28bb9f" + "integration_base": "4a28bb9f", + "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." } ], "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/RP30.md b/docs/development/backlog/tasks/RP30.md index c8cbc8ab..5b6de537 100644 --- a/docs/development/backlog/tasks/RP30.md +++ b/docs/development/backlog/tasks/RP30.md @@ -16,3 +16,5 @@ Acceptance/tests: - Run relevant workspace/finding/source UI suites, complete built browser workbench, application/authored types, contracts, strict scoped lint/formatting, secret audit and diff checks. No native rebuild or performance work. Definition of done: red regressions, smallest form correction using existing schemas/uncertain-state handling, root review, passing gates, task/evidence updates and commits. No new architecture decision or real study activation is needed. + +Accepted after root review: plan `dd8955ec`, implementation `e4056c7d`. All 48 baseline acknowledgement regressions failed before the fix. Final workspace/finding/source/canonical UI suites passed 190 tests / 1,265 assertions. Complete built Chromium workbench passed 24 / 892, including actual committed hypothesis/finding revisions with corrupted acknowledgements, blocked original drafts, one POST each and exact reopened histories. The initial complete browser run passed 23 and failed one existing archive fixture's WebSocket cleanup deadline; the unchanged-source complete rerun passed. Application/authored types, contracts, strict scoped lint, formatting, secrets and diff checks passed. Root removed the unrelated RP29 prerequisite; R04/RP24 are the actual dependencies. Disposable PostgreSQL/Redis fixtures were stopped. [Execution evidence](../../real-data-research.md#rp30--verified-revision-acknowledgements). diff --git a/docs/development/real-data-research.md b/docs/development/real-data-research.md index a1b2a052..325e83b1 100644 --- a/docs/development/real-data-research.md +++ b/docs/development/real-data-research.md @@ -521,3 +521,18 @@ Verification: - Application/authored-test types, contracts, strict scoped lint, formatting, secret audit and diff checks passed. Initial authored-test typing caught widened fixture authorship strings; explicit fixture typing and a string comparison corrected the assertions without changing runtime behavior. Root reviewed read-versus-create validation and original revision selection. No independent review, full integration/repository check, native rebuild or browser rerun is claimed for this client-only addition. Logs: `/tmp/stock-bot-rp29-red.log`, `rp29-client-final.log`, `rp29-tooling-final.log`, `rp29-postgres.log`, `rp29-typecheck.log`, `rp29-authored-types.log`, `rp29-contracts.log`, `rp29-lint.log`, `rp29-format.log` and `rp29-secrets.log`, all under `/tmp/stock-bot-`. The disposable PostgreSQL container was stopped after validation. No real study was changed or executed. All seven conditional tasks remain deferred. + +## RP30 — Verified revision acknowledgements + +Plan `dd8955ec`, implementation `e4056c7d`. The web revision form previously ignored the saved record and cleared its draft after any readable successful response. It now checks entry/project/parent identity, immutable ownership and artifact kind/hypothesis linkage, a distinct revision ID and next ordinal, normalized submitted text/criteria/origin and unvalidated state. Artifact source and evidence reference identities must match, with legacy null/omitted strategy-version and source compatibility. Cited financial values remain server-resolved and are not recalculated or compared by the form. + +Unverifiable acknowledgements use the existing uncertain-save error and blocked-draft controls. There is one POST and no success refresh; title/body/criteria/origin remain available until deliberate discard and history review. Valid normalized saves still clear the draft and reload. The walkthrough describes recovery after a potentially committed write. No backend, financial engine, schema, permission, archive/project/create workflow or execution policy changed. Root removed the unrelated RP29 prerequisite, retaining the actual R04/RP24 dependencies. + +Verification: + +- All **48 baseline acknowledgement regressions failed** before implementation because stale/foreign/altered successful responses discarded the draft. Final workspace/finding/source/canonical UI suites passed **190 tests / 1,265 assertions**. Cases include hypothesis/note/finding identity, ownership, parent/linkage, old/unexpected revision, changed text/criteria/origin/state, missing/extra/substituted evidence and changed source, plus valid normalization, legacy reads and no automatic retries/refreshes. +- Complete production-built Chromium workbench: **24 passed / 892 assertions**, zero failures. The new scenario commits ordinary hypothesis and evidence-backed finding revisions, corrupts only their browser acknowledgements, verifies blocked original drafts and one POST each, deliberately discards/reloads, and reopens exact two-revision histories. Run/dispatch counts stay 1/1; both narrative histories end at two revisions and the original native result is unchanged. +- The initial browser run passed 23 and failed the existing archive test during fixture cleanup (`pendingWebSockets=1`, tracked sockets 0). The new scenario passed in that run. The complete rerun passed with unchanged application/test source; both logs are retained. No cleanup implementation, timeout or retry policy was changed to conceal the failure. +- Application/authored-test types, contracts, strict scoped lint, formatting, secret audit and diff checks passed. The old positive finding fixture incorrectly returned its original revision; it now acknowledges the actual new ID/ordinal/body. Authored typing caught a nested-union narrowing issue in the browser assertion, corrected with the artifact's top-level discriminator. Root reviewed normalization, immutable identity/evidence and draft custody. No independent review, full repository check/full integration rerun or native rebuild is claimed. The production build retains the existing nonblocking Vite chunk warning. + +Logs: `/tmp/stock-bot-rp30-red.log`, `rp30-ui-final.log`, `rp30-browser.log`, `rp30-browser-final.log`, `rp30-typecheck.log`, `rp30-authored-types.log`, `rp30-contracts.log`, `rp30-lint.log`, `rp30-format.log` and `rp30-secrets.log`, all under `/tmp/stock-bot-`. Disposable PostgreSQL and Redis fixtures were stopped and removed after verification. No real study was changed or admitted; fixture-native runs only. All seven conditional tasks remain deferred.