docs(research): close creation acknowledgement task

This commit is contained in:
Boki 2026-10-28 09:29:02 -04:00
parent 57ba86d035
commit ea9ea975c7
4 changed files with 29 additions and 9 deletions

View file

@ -536,3 +536,18 @@ Verification:
- 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.
## RP31 — Verified creation acknowledgements
Plan `b09b2de4`, implementation `57ba86d0`. Project, hypothesis and note forms previously navigated or closed using a readable returned ID without comparing the saved proposal. Finding creation verified its source/citations but not its narrative or initial revision state. These forms now check normalized title/proposition, exact description/body/criteria and declared origin where applicable, active initial revision state and narrative project/parent identity. Notes require null hypothesis/source and no evidence. Findings retain their existing reference/source checks and require matching text/origin and unvalidated initial state.
Mismatches use the existing uncertain-create controls, preserving raw draft fields without navigation, a saved-success link or automatic replay. Checking saved records keeps the draft blocked; explicit new-request/discard controls remain the operator's decision. Valid human/AI/unknown declarations, empty notes, canonical/legacy citations and null/omitted aggregate sources continue to work. Request normalization reuses shared schemas; note POSTs now explicitly carry the backend's existing null-hypothesis/empty-evidence defaults. No backend, engine, schema, financial computation, permission, quota or archive/update/revision behavior changed. The walkthrough describes uncertain creation recovery.
Verification:
- All **34 baseline creation-acknowledgement regressions failed** before implementation. Final workspace/finding/source/canonical UI suites passed **231 tests / 1,594 assertions**. Cases cover changed proposal fields, foreign project/parent, archived/noninitial/validated records, fabricated note linkage/source/evidence, blocked raw drafts, one POST/no success navigation, saved-record refreshes, valid normalization, declared origins, empty notes and existing canonical/legacy citation behavior.
- Complete production-built Chromium workbench: **25 passed / 931 assertions**, zero failures. The new scenario commits ordinary project/hypothesis/note/finding creations and corrupts only their browser acknowledgements. All four drafts remain blocked with one POST each; deliberate review/discard reopens exact original content and citations. Final counts remain one run/dispatch/project/hypothesis revision and two artifact revisions. The original native result is unchanged. Existing revision-custody and financial/reproduction workflows also pass.
- Application/authored-test types, contracts, strict scoped lint, formatting, secret audit and diff checks passed. Older finding success fixtures returned placeholder text/origin; they now echo the actual submitted narrative. The note wire expectation includes the shared defaults above. These accounted for the initial four focused-suite failures; the final suite passes. The last test-helper cleanup uses the actual declared-origin type rather than an AI-only cast; final focused/types/lint/format checks passed again, with no runtime/browser-source change.
- Root reviewed creation normalization, draft custody and retained citation identity. No independent review, full repository check/full integration rerun or native rebuild is claimed. The production build retains the existing nonblocking Vite chunk warning. No browser gate retry or fixture cleanup change was needed in RP31.
Logs: `/tmp/stock-bot-rp31-red.log`, `rp31-ui.log`, `rp31-ui-final.log`, `rp31-browser.log`, `rp31-typecheck.log`, `rp31-authored-types.log`, `rp31-contracts.log`, `rp31-lint.log`, `rp31-format.log` and `rp31-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.