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

@ -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.