diff --git a/docs/development/backlog/README.md b/docs/development/backlog/README.md index a3c84a88..2af88a2c 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: 99 retained IDs — 87 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: 99 retained IDs — 88 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. @@ -197,4 +197,4 @@ Owner authorized planning and per-task implementation commits. [Execution plan a - [RP22: Candidate decimal admission](tasks/RP22.md) — done, `b7116473`; additive SQL33 preserves known-program decimal normalization and exact raw-input receipts. -- [RP23: Cross-study findings client](tasks/RP23.md) — in progress; align typed finding submission with the existing nullable-source API while preserving canonical evidence checks. +- [RP23: Cross-study findings client](tasks/RP23.md) — done, `8dc8724c`; typed comparisons accept null/omitted source while preserving canonical versioned evidence and supplied-source identity checks. diff --git a/docs/development/backlog/manifest.json b/docs/development/backlog/manifest.json index 281ae469..a40975a6 100644 --- a/docs/development/backlog/manifest.json +++ b/docs/development/backlog/manifest.json @@ -1,8 +1,8 @@ { "schema_version": 1, - "plan_revision": "2026-10-27.118", + "plan_revision": "2026-10-27.119", "repository_base": "b7aeca4", - "plan_status": "cross_study_finding_client_in_progress", + "plan_status": "cross_study_finding_client_complete", "execution_authorized": true, "execution_scope": { "authorized_by": "Owner: commit and continue with the rest of the tasks till 100%", @@ -3729,7 +3729,7 @@ "epic": "E12", "priority": "P2", "severity": "Medium", - "status": "in_progress", + "status": "done", "dependencies": [ "A03", "RP21" @@ -3742,14 +3742,16 @@ "research-client-findings" ], "blocker": null, - "integration_state": "in_progress", - "review_status": "pending", - "completed_commit": null, + "integration_state": "accepted", + "review_status": "accepted", + "completed_commit": "8dc8724c526832dd93adf5eaf69d84b63b7fae3e", "completion_evidence": "real-data-research.md", "release_gates": [], "authorization": "Owner: commit and continue. Narrow correction to an existing supported API, demonstrated by RP21; no new research execution or deferred work.", "reviewer": "/root/review_recovery_changes", - "integration_base": "24d20dd5" + "integration_base": "24d20dd5", + "planning_commit": "27d2bc96", + "review_notes": "Two-line client correction; null and omitted sources match backend normalization without weakening canonical versioned evidence or supplied-source identity. Independent client/cycle 34 tests / 294 assertions; full tooling 149 / 14,250; authenticated PostgreSQL/native workflow 4 / 215. Authored/application types, contracts, explicit scoped lint, formatting, secrets and diff passed. No full build/full integration rerun; no real study writes 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/RP23.md b/docs/development/backlog/tasks/RP23.md index 162b5cd7..075e91e8 100644 --- a/docs/development/backlog/tasks/RP23.md +++ b/docs/development/backlog/tasks/RP23.md @@ -17,3 +17,5 @@ Acceptance and mandatory tests: - Existing sourced-finding and cycle/journal regressions remain green. Run tooling tests, authored-test types, scoped lint/formatting, application types/contracts and the actual PostgreSQL workflow. No new native build is needed for a client-only correction. Exclusions: new persistence/schema, new financial calculations, generic resume framework, automatic summary generation, new experiments, modifying RP21's saved findings, code isolation changes, paper/live activation or performance optimization. Regression risk: treating absent source as permission to weaken evidence identity/authorization; tests must preserve those checks. Benefit: AI callers can save supported cross-study conclusions using the same validated client, eliminating the demonstrated custom HTTP workaround. + +Accepted after independent review: planning `27d2bc96`, implementation `8dc8724c`. Red baseline demonstrated the client rejection. Client/cycle tests passed 34 / 294 assertions; full tooling passed 149 / 14,250; actual authenticated PostgreSQL/native workflow passed 4 / 215. These focused/tooling counts overlap. Authored/application types, contracts, strict scoped lint, formatting, secrets and diff passed. No full build or full integration rerun; no backend or financial change. [Execution evidence](../../real-data-research.md#rp23--typed-cross-study-findings). diff --git a/docs/development/real-data-research.md b/docs/development/real-data-research.md index 63d1f2d3..4d950d89 100644 --- a/docs/development/real-data-research.md +++ b/docs/development/real-data-research.md @@ -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.