docs(research): close candidate default parameter story
This commit is contained in:
parent
1502ab41dc
commit
1a60c04603
5 changed files with 40 additions and 12 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Revised development roadmap
|
||||
|
||||
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.
|
||||
Current follow-up: [real-data research workflow](real-data-research.md). RP17 is complete: candidate defaults are accepted consistently by the shared response decoder and additive SQL admission migration, preserving original inputs and hashes. 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 82 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
|
||||
|
||||
|
|
|
|||
|
|
@ -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: 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.
|
||||
**Current total: 93 retained IDs — 82 done, 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.
|
||||
|
||||
|
|
@ -185,4 +185,4 @@ 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.
|
||||
- [RP17: Candidate default parameters](tasks/RP17.md) — done, `1502ab41`; decode normalized validation children without changing original inputs or hashes.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"schema_version": 1,
|
||||
"plan_revision": "2026-10-27.107",
|
||||
"plan_revision": "2026-10-27.108",
|
||||
"repository_base": "b7aeca4",
|
||||
"plan_status": "candidate_defaults_validation_in_progress",
|
||||
"plan_status": "candidate_defaults_validation_complete",
|
||||
"execution_authorized": true,
|
||||
"execution_scope": {
|
||||
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
|
||||
|
|
@ -3535,7 +3535,7 @@
|
|||
"epic": "E12",
|
||||
"priority": "P1",
|
||||
"severity": "High",
|
||||
"status": "in_progress",
|
||||
"status": "done",
|
||||
"dependencies": [
|
||||
"A02",
|
||||
"R08"
|
||||
|
|
@ -3545,13 +3545,18 @@
|
|||
"complexity": "S",
|
||||
"assignment": "/root/audit_research_entry_recovery",
|
||||
"write_locks": [
|
||||
"validation-response-contract"
|
||||
"validation-response-contract",
|
||||
"candidate-default-admission"
|
||||
],
|
||||
"blocker": null,
|
||||
"integration_state": "pending",
|
||||
"integration_state": "accepted",
|
||||
"completion_evidence": "real-data-research.md",
|
||||
"release_gates": [],
|
||||
"review_status": "pending"
|
||||
"review_status": "accepted",
|
||||
"completed_commit": "1502ab41dca04e580cd4cc2d2662694ead41c687",
|
||||
"integration_base": "f185f2e253b49c8879745ff6b543933278ffba97",
|
||||
"reviewer": "/root/review_recovery_changes",
|
||||
"review_notes": "Independent decoder/SQL review accepted; 40 focused tests / 297 assertions. Root fullcheck passed 1371 integration and 150 Rust tests. Real AI workflow/startup suite 9/217, direct SQL guards 2/25, full browser 21/785. Empty/partial defaults, original input and exact retry preservation, immutable upgrade/reapplication and adversarial parameter rejection verified. SQL precedence correction from review included; real-data-research.md records evidence."
|
||||
}
|
||||
],
|
||||
"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.",
|
||||
|
|
|
|||
|
|
@ -4,10 +4,14 @@ Parent E12. Priority P1 / High workflow defect. Complexity S. Dependencies A02 a
|
|||
|
||||
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.
|
||||
Real PostgreSQL verification exposed the coupled admission defect: migration 29's `validate_experiment_manifest` compares expanded request parameters with raw candidate input, rejecting the same supported empty/partial inputs with SQLSTATE 23514 before admission. `/tmp/stock-bot-rp17-defaults-debug.log` records the exact guard failure. The read-only decoder probe established the separate response mismatch, not successful database admission.
|
||||
|
||||
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.
|
||||
Scope: compare each child candidate with the already validated phase parameters: normalized retained request for training, frozen winner for holdouts. Add a forward SQL migration so the admission comparison expands only defaults declared by the exact retained package, with explicit caller values taking precedence. Preserve original raw root inputs, child generation, hashes, exact retries and all other version/parameter/evidence/authorization checks. No historical-row rewrite, financial policy change or new abstraction.
|
||||
|
||||
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.
|
||||
Ownership: one implementation agent owns the shared validation response decoder and focused contract regressions; a separate SQL owner owns the additive migration and direct guard regressions. Root owns real authenticated PostgreSQL workflow/browser coverage, shared documentation and integration. Independent review required. No concurrent edits to the same 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. Direct SQL mutations that substitute an explicit parameter or invented default remain rejected; migration reapplication is safe and existing immutable records remain unchanged.
|
||||
|
||||
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.
|
||||
|
||||
Accepted October 27, 2026; implementation `1502ab41`. Independent review accepted the decoder and SQL32 correction. Root full check passed (1,371 integration / 150 Rust tests); authenticated AI/startup tests passed 9 / 217 assertions, direct SQL guards 2 / 25, and all 21 browser scenarios / 785 assertions. Application/authored types, lint and formatting passed. Migration 32 is included in the existing additive startup allowlist; no development database was migrated during this work. [Combined evidence](../../real-data-research.md) records the initial SQL precedence correction and worktree-only dependency limitation.
|
||||
|
|
|
|||
|
|
@ -261,3 +261,22 @@ Independent reviewer `/root/review_recovery_changes` accepted both patches: RP15
|
|||
Root `CARGO_BUILD_JOBS=2 bun run check` passed: **144 tooling, 43 utility, 44 calculation, 1,364 integration and 150 Rust tests**. Existing 14 conditional integration skips and four ignored Rust measurements remain. Build, application and authored test types, contracts, lint, formatting, diff check and secret audit passed. No browser suite was rerun for these script-only changes. The PostgreSQL fixture was disposable and stopped afterward.
|
||||
|
||||
Evidence: `/tmp/stock-bot-cycle-journal-probe/`, `/tmp/stock-bot-rp16-regression-red.log`, `/tmp/stock-bot-rp15-independent.log`, `/tmp/stock-bot-rp16-independent.log`, `/tmp/stock-bot-rp16-postgres.log`, `/tmp/stock-bot-rp15-rp16-root-check.log`, `/tmp/stock-bot-rp15-rp16-types.log` and `/tmp/stock-bot-rp15-rp16-lint.log`. Development research execution, paper/live activation and conditional performance work remain inactive.
|
||||
|
||||
## RP17 — Candidate parameter defaults
|
||||
|
||||
Planning `f185f2e2`; accepted implementation `1502ab41`. The manifest contains 82 completed tasks, seven deferred tasks and four merged redirects: 93 IDs total.
|
||||
|
||||
Two comparisons rejected supported empty/partial candidate inputs. The response decoder compared a normalized training child with raw root parameters; SQL29's admission guard made the same assumption about the source preview. The first was verified with real builders/service readers and read-only rows, while actual authenticated PostgreSQL submission proved the second failed before admission with SQLSTATE 23514. These are distinct baseline observations.
|
||||
|
||||
The decoder now uses its already validated phase parameters: normalized training request or frozen holdout winner. Forward migration `32-candidate-parameter-defaults.sql` expands only declared defaults and overlays explicit caller values for the SQL comparison. It retains every other admission guard, leaves built-in template equality unchanged, and performs no row writes. Original root inputs, hashes, receipt keys and child generation are preserved. Migration 32 is included in the existing additive startup allowlist; development databases were not changed during verification.
|
||||
|
||||
Independent reviewer `/root/review_recovery_changes` accepted both corrections, with 40 focused tests / 297 assertions. Review caught an operator-precedence issue in the initial SQL expression; the real API tests reproduced it, and explicit parentheses resolved it before acceptance. Direct guard tests reject changed explicit/default values, malformed or undeclared parameters, forged package defaults and altered built-in parameters. Applying the migration twice preserves existing experiment, run and strategy-version rows.
|
||||
|
||||
Root validation passed:
|
||||
|
||||
- Full repository check: 144 tooling, 43 utility, 44 calculation, 1,371 integration and 150 Rust tests; existing 14 integration skips and four ignored Rust measurements remain. Build, application types, contracts, lint and secret audit passed.
|
||||
- Authenticated AI workflow and migration startup suite: 9 tests / 217 assertions. Empty and partial inputs survive admission, reopen and exact retry without duplicate runs. The full native AI cycle uses a partial candidate through training, holdouts, saved findings and costs. Startup concurrency, rollback and historical-data preservation remain covered.
|
||||
- Direct SQL guard/upgrade tests: 2 tests / 25 assertions. Complete browser suite: 21 scenarios / 785 assertions, including reopening partial-default validation and its sealed report.
|
||||
- Authored test types, scoped lint/formatting and diff checks passed. Isolated worktree execution hit the known `zod/index.js` packaging read failure; the same direct SQL tests passed in the fully built root checkout. No dependency workaround was committed.
|
||||
|
||||
Logs: `/tmp/candidate-validation-defaults-probe.log`, `/tmp/stock-bot-rp17-defaults-debug.log`, `/tmp/stock-bot-rp17-postgres-initial-sql.log`, `/tmp/stock-bot-rp17-independent-decoder.log`, `/tmp/stock-bot-rp17-independent-phases.log`, `/tmp/stock-bot-rp17-root-check.log`, `/tmp/stock-bot-rp17-postgres.log`, `/tmp/stock-bot-rp17-root-sql-guards.log`, `/tmp/stock-bot-rp17-browser.log` and `/tmp/stock-bot-rp17-root-types.log`. Disposable PostgreSQL/Redis fixtures were stopped. No development research execution, paper/live activation or conditional performance work occurred.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue