docs(research): close validated cross-study findings task

This commit is contained in:
Boki 2026-10-27 22:01:12 -04:00
parent 8dc8724c52
commit 1a75377ae0
4 changed files with 28 additions and 9 deletions

View file

@ -417,3 +417,18 @@ Verification:
- Independent source and recovery review accepted the correction and requested the stronger malformed-value tests and explicit AI fixture migration above. The disposable PostgreSQL container was stopped after all gates.
Logs: `/tmp/stock-bot-rp22-postgres.log` (initial 10 / 123), `rp22-postgres-final.log`, `rp22-ai-sql33.log`, `rp22-integration.log`, `rp22-types.log`, `rp22-lint.log`, `rp22-format.log` and `rp22-apply.log`, all under `/tmp/stock-bot-`. All seven conditional tasks remain deferred. RP21 and RP22 are complete; no further study was admitted automatically.
## RP23 — Typed cross-study findings
Plan `27d2bc96`, implementation `8dc8724c`. RP21's summary compared several studies and therefore had no single attached experiment/report. Its custom authenticated POST exposed a client mismatch: `ResearchClient.saveFinding` required a source although the shared API schema permits null or omission. Two client lines now accept those inputs and compare the response against the server's null normalization. Request bodies preserve explicit null versus omission; supplied sources still match exactly.
Canonical, version-specific, nonempty evidence remains mandatory. Values come from completed retained Rust results; findings remain AI-authored and unvalidated. This does not establish comparability or turn a comparison into a sealed report. Existing response identity, availability, project authorization and uncertain-write behavior remain enforced. No backend/schema, financial engine, candidate isolation or cycle recovery behavior changed. README documents the existing client method; no new API or framework was added.
Verification:
- Both new null/omitted-source cases failed at the original truthiness guard before the fix. Client/cycle tests then passed **34 / 294 assertions**, independently repeated by `/root/review_recovery_changes`.
- Complete tooling suite: **149 passed / 14,250 assertions**, zero failures. This includes the focused cases above; counts are not additive.
- Actual authenticated PostgreSQL/isolated-native workflow: **4 passed / 215 assertions**. The comparison regression reused two existing successful candidate versions, saved/reopened both null and omitted-source findings, compared native metric/version/dataset identities and confirmed no additional runs. Missing/failed runs, incorrect versions and ungranted projects were rejected without new artifacts. The disposable database was stopped after verification.
- Authored-test/application types, contracts, explicit scoped ESLint, formatting, secret audit and diff checks passed. The initial lint invocation warned that scripts were ignored; rerunning with `--no-ignore` checked them successfully. No full build or full integration-suite rerun was needed for this client-only correction.
Logs: `/tmp/stock-bot-rp23-client-red.log`, `rp23-client-cycle-green.log`, `rp23-independent-client.log`, `rp23-postgres.log`, `rp23-tooling.log`, `rp23-authored-types.log`, `rp23-typecheck.log`, `rp23-contracts.log`, `rp23-lint.log`, `rp23-format.log` and `rp23-secrets.log`, all under `/tmp/stock-bot-`. Independent review accepted the source, test coverage and final gates. RP21's real findings were not rewritten and no new real-data research was executed. The seven conditional tasks remain deferred; generic CLI resume was not introduced.