docs(research): plan typed cross-study findings (RP23)
This commit is contained in:
parent
24d20dd5d8
commit
27d2bc961c
4 changed files with 55 additions and 3 deletions
|
|
@ -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: 98 retained IDs — 87 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: 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.
|
||||
|
||||
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.
|
||||
|
||||
|
|
@ -196,3 +196,5 @@ Owner authorized planning and per-task implementation commits. [Execution plan a
|
|||
- [RP21: Bounded volatility-filter study](tasks/RP21.md) — done; ten isolated trials, exact receipt recovery, independently audited results and reopened findings. Both variants lost money on test and whole-window cost runs; credential revoked.
|
||||
|
||||
- [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.
|
||||
|
|
|
|||
|
|
@ -329,3 +329,6 @@ flowchart TD
|
|||
A02 --> RP22
|
||||
RP17 --> RP22
|
||||
RP22 --> RP21
|
||||
|
||||
A03 --> RP23
|
||||
RP21 --> RP23
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"schema_version": 1,
|
||||
"plan_revision": "2026-10-27.117",
|
||||
"plan_revision": "2026-10-27.118",
|
||||
"repository_base": "b7aeca4",
|
||||
"plan_status": "bounded_signal_study_complete",
|
||||
"plan_status": "cross_study_finding_client_in_progress",
|
||||
"execution_authorized": true,
|
||||
"execution_scope": {
|
||||
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
|
||||
|
|
@ -3722,6 +3722,34 @@
|
|||
"branch": "rp22/candidate-decimal",
|
||||
"worktree": "/tmp/stock-bot-rp22-decimal",
|
||||
"review_notes": "Known-program strict fixed-eight comparison only; existing admission/financial guards and raw inputs preserved. Final PostgreSQL gate passed 14 tests / 310 assertions; actual AI fixture explicitly advanced to SQL33 and passed 4 / 178. Integration passed 1,382 tests with 14 existing conditional skips. Types/contracts/lint/format/secret/diff passed; no build during frozen study. Normal runner verified exact installed migration (already registered by dev startup), zero study runs/receipts and unchanged build before exact recovery."
|
||||
},
|
||||
{
|
||||
"id": "RP23",
|
||||
"title": "Save cross-study findings through the typed research client",
|
||||
"epic": "E12",
|
||||
"priority": "P2",
|
||||
"severity": "Medium",
|
||||
"status": "in_progress",
|
||||
"dependencies": [
|
||||
"A03",
|
||||
"RP21"
|
||||
],
|
||||
"decision_dependencies": [],
|
||||
"task_file": "backlog/tasks/RP23.md",
|
||||
"complexity": "S",
|
||||
"assignment": "/root/audit_recovery_next",
|
||||
"write_locks": [
|
||||
"research-client-findings"
|
||||
],
|
||||
"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. 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"
|
||||
}
|
||||
],
|
||||
"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.",
|
||||
|
|
|
|||
19
docs/development/backlog/tasks/RP23.md
Normal file
19
docs/development/backlog/tasks/RP23.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# RP23 — Save cross-study findings through the typed research client
|
||||
|
||||
Parent E12. Priority P2 / Medium workflow defect. Complexity S. Dependencies A03, RP21. Owner continuation authorizes implementation and commits; all seven conditional tasks remain deferred.
|
||||
|
||||
Verified baseline: `scripts/research-client.ts:708` requires a truthy finding source although `createResearchArtifactSchema` accepts omitted/null sources. `ResearchService.createArtifact` normalizes omission to null; `ResearchEvidenceResolver.resolveAll` still verifies every completed retained run and strategy-version reference. RP21's cross-variant conclusion therefore used a custom authenticated POST in ignored `close-study.mts` instead of the typed client. This is a client contract mismatch, not a missing backend capability.
|
||||
|
||||
Scope: allow an explicit null or omitted source in `ResearchClient.saveFinding`; compare the returned source with the backend's null normalization. Keep nonempty canonical, version-specific evidence mandatory. Preserve AI/unvalidated authorship, response identity and availability checks, exact supplied source validation, non-idempotent request behavior and uncertainty reporting. A finding without a single report attachment does not become a sealed report or certify comparability.
|
||||
|
||||
Ownership: implementation agent owns `scripts/research-client.ts` and `scripts/test/research-client.test.ts`; root owns `test/postgres/ai-research-workflow.test.ts`, existing usage documentation, manifest and integration. Independent review is required. These disjoint files can be edited in parallel.
|
||||
|
||||
Acceptance and mandatory tests:
|
||||
|
||||
- Null and omitted source both save a cross-run, cross-version finding through the typed client; server-returned null is accepted, evidence references/values are retained and authorship stays AI/unvalidated.
|
||||
- Request bodies preserve explicit null versus omission. Supplied report/experiment sources retain exact equality checks. Unexpected returned source, changed version/run/metric, malformed availability, wrong project or authorship fail as uncertain accepted-response errors without automatic retry.
|
||||
- Empty, legacy, unversioned, duplicate or malformed evidence and malformed supplied sources fail before network access. Notes remain outside this method.
|
||||
- Extend the existing disposable PostgreSQL/native AI workflow, reusing its completed runs. Save and reopen a null-source finding referring to both successful candidate versions; compare server-resolved values to retained results and assert no new runs. Failed/missing runs and incorrect strategy versions remain rejected with no artifact persisted. Project authorization remains enforced.
|
||||
- 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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue