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

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