docs(research): plan candidate default parameter contract correction (RP17)

This commit is contained in:
Boki 2026-10-27 17:57:11 -04:00
parent f5eeb807b6
commit f185f2e253
5 changed files with 46 additions and 4 deletions

View file

@ -1,6 +1,6 @@
# Revised development roadmap
Current follow-up: [real-data research workflow](real-data-research.md). RP15/RP16 are complete: structured CLI receipts survive journal/cleanup failure, and candidate publication accepts automatic catalog lineage while preserving exact retries. RP14 protects drafts and pending saves when following the creation dialog’s strategy link. RP13 restores browser reproduction of eligible unreviewed isolated candidates; RP11/RP12 are complete. CL01–CL20 are independently accepted. RP01 adds scoped stored-source inspection; RP02 completed nine retained real-data runs after explicit strategy approval, exact reproduction and an evidence-linked finding reopened in the web app. RP03 adds explicit declared-session preparation with read-only two-session source verification; RP04 explains the retained evaluation horizon beside CAGR. RP05 enables older-page and known-hash dataset reuse; RP06 preserves settings and captured retention retries across same-backtest tabs/run URLs. RP07 downloads validated original datasets; RP08 downloads their original run results for local exploration. RP09 protects publication/clone custody during backtest handoff; RP10 preserves experiment choices when a linked template fails to load. RP11 preserves exact hypothesis links during unrelated history failures; RP12 keeps run history selectable while metrics load and retry. All 81 scheduled tasks across the original backlog and extensions are accepted; 7 conditional tasks and 4 merged redirects remain. CL21 and performance extensions remain deferred. Historical milestones below remain evidence, not a new activation request.
Current follow-up: [real-data research workflow](real-data-research.md). RP17 corrects a verified response-decoder mismatch for candidate parameter defaults. RP15/RP16 are complete: structured CLI receipts survive journal/cleanup failure, and candidate publication accepts automatic catalog lineage while preserving exact retries. RP14 protects drafts and pending saves when following the creation dialog’s strategy link. RP13 restores browser reproduction of eligible unreviewed isolated candidates; RP11/RP12 are complete. CL01–CL20 are independently accepted. RP01 adds scoped stored-source inspection; RP02 completed nine retained real-data runs after explicit strategy approval, exact reproduction and an evidence-linked finding reopened in the web app. RP03 adds explicit declared-session preparation with read-only two-session source verification; RP04 explains the retained evaluation horizon beside CAGR. RP05 enables older-page and known-hash dataset reuse; RP06 preserves settings and captured retention retries across same-backtest tabs/run URLs. RP07 downloads validated original datasets; RP08 downloads their original run results for local exploration. RP09 protects publication/clone custody during backtest handoff; RP10 preserves experiment choices when a linked template fails to load. RP11 preserves exact hypothesis links during unrelated history failures; RP12 keeps run history selectable while metrics load and retry. All 81 scheduled tasks across the original backlog and extensions are accepted; 7 conditional tasks and 4 merged redirects remain. CL21 and performance extensions remain deferred. Historical milestones below remain evidence, not a new activation request.
## Cleanup implementation — October 26, 2026

View file

@ -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: 92 retained IDs — 81 done, 7 deferred, 4 merged.** RP01–RP16 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: 93 retained IDs — 81 done, 1 in progress, 7 deferred, 4 merged.** 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.
@ -184,3 +184,5 @@ Owner authorized planning and per-task implementation commits. [Execution plan a
- [RP15: CLI recovery evidence](tasks/RP15.md) — done, `e3d6512b`; preserve accepted receipts when journal persistence fails.
- [RP16: Automatic publication lineage](tasks/RP16.md) — done, `cc49f038`; accept valid server-assigned parents and exact publication retries.
- [RP17: Candidate default parameters](tasks/RP17.md) — in progress; decode normalized validation children without changing original inputs or hashes.

View file

@ -312,3 +312,6 @@ flowchart TD
A03 --> RP15
A03 --> RP16
R01 --> RP16
A02 --> RP17
R08 --> RP17

View file

@ -1,8 +1,8 @@
{
"schema_version": 1,
"plan_revision": "2026-10-27.106",
"plan_revision": "2026-10-27.107",
"repository_base": "b7aeca4",
"plan_status": "ai_client_receipt_recovery_complete",
"plan_status": "candidate_defaults_validation_in_progress",
"execution_authorized": true,
"execution_scope": {
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
@ -3528,6 +3528,30 @@
"integration_base": "14b28a3428f52aa9f8d95b106c3ef7688a868e97",
"reviewer": "/root/review_recovery_changes",
"review_notes": "Independent review accepted 22 client/cycle tests / 138 assertions. Real authenticated PostgreSQL workflow suite passed 3 tests / 148 assertions, including automatic/null/explicit lineage and exact receipt replay after later publications, four versions and zero runs. Root full check, authored types, scoped lint/formatting passed; see real-data-research.md."
},
{
"id": "RP17",
"title": "Accept normalized candidate defaults in validation responses",
"epic": "E12",
"priority": "P1",
"severity": "High",
"status": "in_progress",
"dependencies": [
"A02",
"R08"
],
"decision_dependencies": [],
"task_file": "backlog/tasks/RP17.md",
"complexity": "S",
"assignment": "/root/audit_research_entry_recovery",
"write_locks": [
"validation-response-contract"
],
"blocker": null,
"integration_state": "pending",
"completion_evidence": "real-data-research.md",
"release_gates": [],
"review_status": "pending"
}
],
"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.",

View file

@ -0,0 +1,13 @@
# RP17 — Accept normalized candidate defaults in validation responses
Parent E12. Priority P1 / High workflow defect. Complexity S. Dependencies A02 and R08. Owner continuation authorizes this correction.
Verified baseline: `validationPhasePreview` retains normalized candidate parameters in each child, while shared `parseValidationDetail` incorrectly compares training child parameters with the original partial input. An actual preparation/child-builder/service-read probe accepts explicit defaults but rejects omitted defaults after valid admission. Evidence: `/tmp/candidate-validation-defaults-probe.test.ts` and its `.log` (one control pass, one regression failure). This decoder serves both web and AI clients and nested walk-forward details.
Scope: compare each child candidate with the already validated phase parameters: normalized retained request for training, frozen winner for holdouts. Preserve original raw root inputs, child generation, hashes, exact retries and strict version/parameter/evidence identity checks. No backend normalization change, migration, financial policy change or new abstraction.
Ownership: implementation agent owns the shared validation response decoder and focused contract regression tests; root owns real authenticated PostgreSQL workflow coverage, shared documentation and integration. Independent review required. No concurrent edits to these contracts.
Acceptance/tests: omitted and partial default parameters decode actual server-generated training details; explicit parameters and built-ins remain valid. Holdouts use the selected winner. Altered child parameters, version, request or winner still fail. Nested walk-forward details accept valid defaulted candidates. A real research-agent submission can be read and retried with exactly the original body/key and no duplicate runs; full native chronological workflow with defaults can seal evidence. Preserve caller input and preview hashes throughout.
Gates: focused response/validation/walk-forward/client tests; authored and application types, scoped lint/formatting; root repository check; real PostgreSQL AI workflow and relevant browser validation paths using disposable stores. No real development research execution or paper/live activation. Conditional performance stories remain deferred.