feat(research): add retained-input parameter sweep workbench
This commit is contained in:
parent
30accfcf43
commit
6f64ef62ba
41 changed files with 4469 additions and 34 deletions
|
|
@ -1,8 +1,8 @@
|
|||
# Revised development roadmap
|
||||
|
||||
Baseline `b7aeca4` · execution 2026-10-24 · **R04 committed; R12 original reproduction validated and awaiting acceptance/commit**
|
||||
Baseline `b7aeca4` · execution 2026-10-24 · **R12 committed; retained-input R06/R07 experiment components validated and uncommitted**
|
||||
|
||||
Authorization update: the owner requested “how far are we in the backlog, also commit and continue”. R04 is committed as `e3bd708`; R12 is implemented under ADR-006 using the accepted retained-input R05 component. **33/45 scheduled tasks are committed; R12 is the next validated task.** Full R05 remains partial. Performance work remains paused. New R12 commits, pushes, PRs and trading/default-engine operations remain outside this continuation's scope.
|
||||
Authorization update: the owner requested “comit and continue”. R12 is committed as `30accfc`; **34/45 scheduled tasks are committed**. R06/R07 components use the accepted retained-input R05 runner with pinned preview, atomic admission and same-experiment UI contracts. Full R05 remains partial; this slice excludes failed-trial retry, cross-experiment comparisons and all performance work. New-wave commits, pushes, PRs and trading/default-engine operations remain outside this continuation's scope.
|
||||
|
||||
## Strategy and review outcome
|
||||
|
||||
|
|
@ -583,3 +583,19 @@ R04 is accepted and committed as `e3bd708`. R12 is independently reviewed and `v
|
|||
Scope is completed retained canonical single-asset trusted built-ins on the same installed build. Hash agreement proves matching retained economic outputs, not statistical validity or profitability. Historical executable provisioning, provider-to-v2 preparation, candidate isolation and multi-asset/default cutover are not included. R05 remains partial; R06/S06 remain blocked. No performance optimization, profiling, benchmark, new-wave commit, push, PR or trading operation occurred.
|
||||
|
||||
**Recommended next wave:** an R06 retained-input experiment component, then a focused R07 sweep UI against pinned APIs. One immutable strategy version, eligible single-asset dataset, installed build and fixed policies; deterministic bounded parameter grids expand into the existing durable runs/outbox. Independent review confirms provider preparation is not required for those retained inputs. Before execution, record component prerequisites without marking full R05/R06 complete or silently releasing R06/R07/S06. Experiment admission needs its own SQL guard against the immutable manifest; do not mutate templates per trial or misuse reproduction lineage. Failed retry must preserve diagnostics and fencing; if omitted initially, leave R06 partial. No parallel worker scheduler or performance work. Root owns contracts/browser integration; one backend owner and one frontend owner can work with an independent reviewer.
|
||||
|
||||
## Twenty-seventh-wave handoff — 2026-10-24
|
||||
|
||||
R12 is accepted and committed as `30accfc`. R06/R07 retained-input components are independently reviewed and `partial_validated_uncommitted`; both full tasks remain in progress. Thirty-five implementation/test files deliver the first bounded experiment workflow through the existing APIs, durable runs and authoritative Rust engine. Backend/frontend worktrees are under `/tmp/stock-bot-wave27.iR6JOC/`; root owned shared contracts, composition, existing fixtures and browser acceptance.
|
||||
|
||||
- **Usable research flow:** start from a saved canonical backtest or Experiments, enter a named parameter grid, preview the exact retained dataset/version/window/build/policies, submit and inspect every candidate. Detail shows scalar metrics, units/null reasons, failures, missing/incomparable outcomes and exact saved-run links. Explicit refresh, cancellation and reopening are supported.
|
||||
- **One execution path:** at most 100 trials are atomically admitted with the experiment receipt and existing dispatch outbox. Only validated strategy parameters and new run/account/session identities vary. All combinations must pass retained schema and built-in cross-field validation; normalized duplicates and reserved keys reject. No template rewrite loop, second scheduler, accounting logic or runner rewrite.
|
||||
- **Reproducible admission:** the submit body commits to its preview hash, including current review/build and retained manifest. Drift rejects before persistence. Accepted receipts replay before current eligibility checks. SQL22 protects immutable experiment/trial identity, exact request reconstruction, current approval and retained inputs; ordinary/reproduction admission behavior is preserved.
|
||||
- **Truthful outcomes:** cancellation latches and stops pending trials while existing workers acknowledge active cancellation. Terminal results remain unchanged. Detail counts come from the same loaded trial rows; comparison validates complete v1 statistical conventions and compact financial identity/policy. Summaries read selected JSON fields without financial/trade/OHLC/return arrays and do not recalculate economics.
|
||||
- **Validation:** full repository check passed **696 integration and 150 Rust tests** (4 manual Rust ignored), plus 93 tooling / 43 utility / 44 calculation tests and build/source/contracts/secrets/lint. Full disposable PostgreSQL/Redis: **179 tests / 1508 assertions**. Full Chromium: **10 workflows / 258 assertions**, including actual varied-parameter native trials, rendered returns, receipt replay, post-admission template changes, standalone reproduction of an experiment trial, cancellation and reopening. The initial new browser selector included nested option text; correcting the selector resolved the test without production changes. Scoped strict types, lint, formatting and diff checks passed.
|
||||
- **Independent review:** all 14 agent-owned hashes verified. Combined experiment contract/API/UI tests independently passed 34/230; isolated PostgreSQL/native 10/132 evidence reviewed. Review corrected pre-parser reserved-key loss, normalized duplicates, count/read consistency, full provenance comparisons, cancellation fencing, owned-link draft loss and retained timeframe rendering.
|
||||
- **Recorded identity:** the manifest holds all 35 source/test hashes and archive identity. Release addon SHA256 `ef00eed556f5c32332d36a9a00ef710682e90deb00b54552e4b5c8bfdfbe8103` matches the previous wave. Both exact disposable containers were stopped; development services were untouched.
|
||||
|
||||
Full R06 remains incomplete until failed-trial retry preserves prior diagnostics and passes stale-attempt fencing tests. R07 broader comparisons/table measurement remain outstanding; all performance work stays paused. R05 provider preparation and broader cutover remain partial; R08/A01/S06 are not silently released. No candidate/multi-asset/default/paper/live/AI execution, new-wave commit, push or PR occurred. Editor retry state lives in the current page; saved experiments and accepted receipts are durable. Hash/provenance agreement does not establish strategy merit.
|
||||
|
||||
**Next after acceptance/commit: complete R06 failed-trial retry** using the same immutable logical run and existing attempts/outbox. Append prior diagnostics before clearing active errors; reject retries with stored results or completed/cancelled state, retain old-attempt fencing and add a focused UI action only after the backend contract passes. Performance remains paused.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Canonical development backlog
|
||||
|
||||
**First twenty-five waves committed; R12 is validated and uncommitted.** R04 is accepted as `e3bd708`. Original-run reproduction now preserves retained inputs independently of current settings, with lineage, repeat-safe submission and economic comparison. **33 of 45 scheduled tasks are committed (73% by count); R12 adds one validated task awaiting acceptance/commit.** Broader R05 remains in progress. Performance work remains paused. See [current handoff](../ROADMAP.md#twenty-sixth-wave-handoff--2026-10-24) and manifest execution scope.
|
||||
**First twenty-six waves committed; R06/R07 retained-input experiment components are validated and uncommitted.** R12 is accepted as `30accfc`. **34 of 45 scheduled tasks are committed (76% by count).** The web workbench now previews/submits bounded grids, compares every trial outcome and reopens evidence through existing durable canonical runs. Full R05 remains partial; failed-trial retry and broader comparisons are excluded from this component. Performance work remains paused.
|
||||
|
||||
## One source of truth
|
||||
|
||||
|
|
@ -77,13 +77,13 @@ Relative size: S narrow correction, M coherent boundary, L sensitive owner-contr
|
|||
| [R03 Add projects, hypotheses and evidence-linked findings APIs](tasks/R03.md) | P1 / done | R01, R10, ADR-006 | — | Full-stack research product / M |
|
||||
| [R04 Deliver research workspace and save-findings flow](tasks/R04.md) | P1 / done | R03, W02, ADR-006 | W04 | Full-stack research product / M |
|
||||
| [R05 Freeze complete provenance and cut over durable canonical runs](tasks/R05.md) | P0 / in_progress | F08, S02, R01, R10, D01, W03, C06, ADR-006 | Multi-asset default mark-policy disposition | Full-stack research product / M |
|
||||
| [R06 Create immutable experiments and bounded sweep expansion](tasks/R06.md) | P1 / blocked | R05, ADR-006 | — | Full-stack research product / M |
|
||||
| [R07 Deliver sweep configuration and comparable-result views](tasks/R07.md) | P1 / blocked | R06, ADR-006 | W04 | Full-stack research product / M |
|
||||
| [R06 Create immutable experiments and bounded sweep expansion](tasks/R06.md) | P1 / in_progress (component) | Accepted R05 retained-input component; R01/R10/F08/S02/D01/W03/C06/R12, ADR-006 | — | Full-stack research product / M |
|
||||
| [R07 Deliver sweep configuration and comparable-result views](tasks/R07.md) | P1 / in_progress (component) | R06 component API pinned; release after integration, ADR-006 | W04 | Full-stack research product / M |
|
||||
| [R08 Add bounded chronological and reset-segment validation](tasks/R08.md) | P1 / blocked | R06, ADR-006 | — | Quantitative research integrity / M |
|
||||
| [R09 Expose validation, cost and regime evidence in the workbench](tasks/R09.md) | P1 / blocked | R07, R08, ADR-006 | S05 when Regime comparison is enabled; R03 when Saving or linking a research finding is enabled | Full-stack research product / M |
|
||||
| [R10 Protect retained research evidence and artifact integrity](tasks/R10.md) | P1 / done | R01, ADR-006 | — | Full-stack research product / M |
|
||||
| [R11 Select and reuse frozen datasets in the workbench](tasks/R11.md) | P1 / done | D01, O01, ADR-003, ADR-006 | W04 | Full-stack market data/research / M |
|
||||
| [R12 Reproduce an original run separately from rerunning current settings](tasks/R12.md) | P1 / review | Accepted R05 retained-input component; W04/R01/R10/F08/S02/D01/W03/C06, ADR-006 | — | Full-stack reproducible research / S |
|
||||
| [R12 Reproduce an original run separately from rerunning current settings](tasks/R12.md) | P1 / done | Accepted R05 retained-input component; W04/R01/R10/F08/S02/D01/W03/C06, ADR-006 | — | Full-stack reproducible research / S |
|
||||
|
||||
### E7 — Measured research throughput
|
||||
|
||||
|
|
@ -118,4 +118,4 @@ Relative size: S narrow correction, M coherent boundary, L sensitive owner-contr
|
|||
|
||||
Before any wave: unique IDs; existing task/ADR references; acyclic implementation graph; no scheduled task dependent on merged/deferred work; approvals/readiness; actual file locks; isolated native build outputs/workspace dependencies and test databases. Release gates are checked separately at activation.
|
||||
|
||||
R04 is committed; R12 awaits acceptance/commit after independent review and full repository/PostgreSQL/browser checks. R12 uses the accepted retained-input R05 component, not full R05 completion. Recommended next: an R06 retained-dataset experiment component and focused R07 UI after the planning owner records narrower prerequisites. Provider preparation is independent of sweeps over already eligible retained data. R05 broader cutover remains incomplete; R06/S06 are not unblocked. Performance and multi-asset/default/paper activation remain excluded.
|
||||
R12 is committed. R06/R07 retained-input components passed independent review and full repository/PostgreSQL/browser gates; they await acceptance/commit. See the [current handoff](../ROADMAP.md#twenty-seventh-wave-handoff--2026-10-24). Next implement R06 failed-trial retry with preserved diagnostics and attempt fencing. Full R05 remains partial, R06 failed retry remains outstanding, and R08/A01/S06 dependencies are not released by this component. Provider preparation is independent of sweeps over already eligible retained data. Performance and multi-asset/default/paper activation remain excluded.
|
||||
|
|
|
|||
|
|
@ -142,7 +142,15 @@ flowchart TD
|
|||
W03 --> R05
|
||||
C06 --> R05
|
||||
ADR006 --> R05
|
||||
R05 --> R06
|
||||
%% R06 component consumes accepted R05 retained-input slice 618fb9e; full R05 stays partial.
|
||||
R01 --> R06
|
||||
R10 --> R06
|
||||
F08 --> R06
|
||||
S02 --> R06
|
||||
D01 --> R06
|
||||
W03 --> R06
|
||||
C06 --> R06
|
||||
R12 --> R06
|
||||
ADR006 --> R06
|
||||
R06 --> R07
|
||||
ADR006 --> R07
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"schema_version": 1,
|
||||
"plan_revision": "2026-10-24.56",
|
||||
"plan_revision": "2026-10-24.58",
|
||||
"repository_base": "b7aeca4",
|
||||
"plan_status": "twenty_sixth_wave_validated_uncommitted",
|
||||
"plan_status": "twenty_seventh_wave_validated_uncommitted",
|
||||
"execution_authorized": true,
|
||||
"execution_scope": {
|
||||
"authorized_by": "User: how far are we in the backlog, also commit and continue after R04 handoff naming original reproduction; R04 committed e3bd708838ce17a4da0bc2b4d6be701b72625dd8",
|
||||
"tasks": ["R12"],
|
||||
"authorized_by": "User: comit and continue after R12 handoff recommending bounded experiments and sweep UI",
|
||||
"tasks": ["R06", "R07"],
|
||||
"permissions": [
|
||||
"Scoped same-installed-build retained canonical single-asset reproduction; independent implementation/review, fixtures and validation"
|
||||
"Retained-input single-asset experiment and sweep UI components under pinned existing ADR-006; isolated implementation/review and full validation"
|
||||
],
|
||||
"excluded": [
|
||||
"performance_profiling_or_optimization",
|
||||
|
|
@ -21,9 +21,10 @@
|
|||
"candidate_execution",
|
||||
"provider_to_v2_inference",
|
||||
"multi_asset_activation",
|
||||
"other_backlog_tasks",
|
||||
"AI_execution_or_credentials",
|
||||
"historical_binary_provisioning"
|
||||
"historical_binary_provisioning",
|
||||
"failed_run_retry",
|
||||
"cross_experiment_ranking"
|
||||
],
|
||||
"pending_policy_decisions": [
|
||||
"ADR-007",
|
||||
|
|
@ -1334,8 +1335,8 @@
|
|||
"epic": "E6",
|
||||
"priority": "P1",
|
||||
"severity": "High",
|
||||
"status": "blocked",
|
||||
"dependencies": ["R05"],
|
||||
"status": "in_progress",
|
||||
"dependencies": ["R01", "R10", "F08", "S02", "D01", "W03", "C06", "R12"],
|
||||
"decision_dependencies": ["ADR-006"],
|
||||
"task_file": "backlog/tasks/R06.md",
|
||||
"findings": ["WEB-01", "WEB-04", "KEEP-02"],
|
||||
|
|
@ -1343,12 +1344,38 @@
|
|||
"specialization": "Full-stack research product",
|
||||
"write_locks": ["sql-migrations", "experiment-api"],
|
||||
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
|
||||
"assignment": null,
|
||||
"assignment": "/root",
|
||||
"branch": null,
|
||||
"pull_request": null,
|
||||
"completed_commit": null,
|
||||
"blocker": null,
|
||||
"release_gates": []
|
||||
"release_gates": [],
|
||||
"integration_state": "partial_validated_uncommitted",
|
||||
"integration_base": "30accfcf4370e96e58f771dff67639ea2a278188",
|
||||
"worktree": "/home/boki/repos/stock-bot",
|
||||
"execution_component": "Retained-input atomic bounded experiments",
|
||||
"component_exclusions": ["failed retry and broader R05 cutover"],
|
||||
"satisfied_component_dependencies": [
|
||||
{
|
||||
"task": "R05",
|
||||
"scope": "Accepted retained-input single-asset durable runner only; provider preparation/default cutover not required",
|
||||
"commit": "618fb9e33cebc1fde4869eb1f975a12c55bd9b94"
|
||||
}
|
||||
],
|
||||
"reviewed_by": "/root/r04_review",
|
||||
"verification_reference": "ROADMAP.md#twenty-seventh-wave-handoff--2026-10-24",
|
||||
"review_notes": "Retained-input component independently reviewed and fully integrated. Full task stays in progress for its recorded exclusions; no downstream task is silently released.",
|
||||
"implementation_slices": [
|
||||
{
|
||||
"owner": "/root/r12_backend",
|
||||
"worktree": "/tmp/stock-bot-wave27.iR6JOC/backend",
|
||||
"scope": "Atomic experiment service/routes, SQL22 admission/retention, compact summaries and API/PostgreSQL tests"
|
||||
},
|
||||
{
|
||||
"owner": "/root",
|
||||
"scope": "Shared DTO/export, API/web composition, old migration fixtures, actual native browser workflow and planning"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "R07",
|
||||
|
|
@ -1356,7 +1383,7 @@
|
|||
"epic": "E6",
|
||||
"priority": "P1",
|
||||
"severity": "High",
|
||||
"status": "blocked",
|
||||
"status": "in_progress",
|
||||
"dependencies": ["R06"],
|
||||
"decision_dependencies": ["ADR-006"],
|
||||
"task_file": "backlog/tasks/R07.md",
|
||||
|
|
@ -1365,12 +1392,32 @@
|
|||
"specialization": "Full-stack research product",
|
||||
"write_locks": ["web-experiments"],
|
||||
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
|
||||
"assignment": null,
|
||||
"assignment": "/root",
|
||||
"branch": null,
|
||||
"pull_request": null,
|
||||
"completed_commit": null,
|
||||
"blocker": null,
|
||||
"release_gates": ["W04"]
|
||||
"release_gates": ["W04"],
|
||||
"integration_state": "partial_validated_uncommitted",
|
||||
"integration_base": "30accfcf4370e96e58f771dff67639ea2a278188",
|
||||
"worktree": "/home/boki/repos/stock-bot",
|
||||
"execution_component": "Same-experiment preview/progress/comparison UI",
|
||||
"component_exclusions": ["cross-experiment comparisons and table performance measurements"],
|
||||
"component_readiness": "May implement against root-pinned shared DTO; release requires accepted integration of R06 retained-input component. Full R06 is not claimed complete.",
|
||||
"reviewed_by": "/root/r04_review",
|
||||
"verification_reference": "ROADMAP.md#twenty-seventh-wave-handoff--2026-10-24",
|
||||
"review_notes": "Retained-input component independently reviewed and fully integrated. Full task stays in progress for its recorded exclusions; no downstream task is silently released.",
|
||||
"implementation_slices": [
|
||||
{
|
||||
"owner": "/root/r12_frontend",
|
||||
"worktree": "/tmp/stock-bot-wave27.iR6JOC/frontend",
|
||||
"scope": "Experiment editor/list/detail, browser client and focused interaction tests"
|
||||
},
|
||||
{
|
||||
"owner": "/root",
|
||||
"scope": "Shared DTO/export, API/web composition, old migration fixtures, actual native browser workflow and planning"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "R08",
|
||||
|
|
@ -1514,7 +1561,7 @@
|
|||
"epic": "E6",
|
||||
"priority": "P1",
|
||||
"severity": "High",
|
||||
"status": "review",
|
||||
"status": "done",
|
||||
"dependencies": ["W04", "R01", "R10", "F08", "S02", "D01", "W03", "C06"],
|
||||
"decision_dependencies": ["ADR-006"],
|
||||
"task_file": "backlog/tasks/R12.md",
|
||||
|
|
@ -1526,10 +1573,10 @@
|
|||
"assignment": "/root",
|
||||
"branch": null,
|
||||
"pull_request": null,
|
||||
"completed_commit": null,
|
||||
"completed_commit": "30accfcf4370e96e58f771dff67639ea2a278188",
|
||||
"blocker": null,
|
||||
"release_gates": [],
|
||||
"integration_state": "validated_uncommitted",
|
||||
"integration_state": "validated_committed",
|
||||
"integration_base": "e3bd708838ce17a4da0bc2b4d6be701b72625dd8",
|
||||
"worktree": "/home/boki/repos/stock-bot",
|
||||
"satisfied_component_dependencies": [
|
||||
|
|
@ -5422,7 +5469,7 @@
|
|||
"log": "/tmp/stock-bot-wave17.JfETUx/root-tests-typecheck-final.log"
|
||||
},
|
||||
{
|
||||
"command": "Scoped ESLint --no-ignore --max-warnings0 over all new tests/fixtures; scoped Prettier --check over all20 source/test files; git diff --check",
|
||||
"command": "Scoped ESLint --no-ignore --max-warnings 0 over all new tests/fixtures; scoped Prettier --check over all20 source/test files; git diff --check",
|
||||
"result": "passed",
|
||||
"logs": [
|
||||
"/tmp/stock-bot-wave17.JfETUx/root-test-lint.log",
|
||||
|
|
@ -5563,7 +5610,7 @@
|
|||
"log": "/tmp/stock-bot-wave18.V1G17v/root-tests-typecheck-final.log"
|
||||
},
|
||||
{
|
||||
"command": "Scoped ESLint --no-ignore --max-warnings0, Prettier --check and git diff --check; final schema-matrix test separately formatted/linted",
|
||||
"command": "Scoped ESLint --no-ignore --max-warnings 0, Prettier --check and git diff --check; final schema-matrix test separately formatted/linted",
|
||||
"result": "passed",
|
||||
"logs": [
|
||||
"/tmp/stock-bot-wave18.V1G17v/integration-lint.log",
|
||||
|
|
@ -6442,7 +6489,7 @@
|
|||
"Reproduction preserves frozen economic inputs, current original-version approval and repeat-safe receipts. No current-template dependency or historical executable manager."
|
||||
],
|
||||
"twenty_sixth_wave_validation": {
|
||||
"state": "validated_uncommitted",
|
||||
"state": "validated_committed",
|
||||
"log_directory": "/tmp/stock-bot-wave26.38tu9A",
|
||||
"integration_base": "e3bd708838ce17a4da0bc2b4d6be701b72625dd8",
|
||||
"source_archive": "/tmp/stock-bot-wave26.38tu9A/r12-integrated-source.tar",
|
||||
|
|
@ -6524,6 +6571,108 @@
|
|||
"Chromium only; existing build bundle-size/Rust warnings remain. No new-wave commit, push or PR."
|
||||
],
|
||||
"cleanup": "Both exact --rm PostgreSQL/Redis fixture containers stopped successfully. All 26 source/test hashes frozen; source archive, worktrees and logs retained. Development/production services and data untouched.",
|
||||
"next": "Recommend an R06 retained-input experiment component using one immutable strategy version, eligible single-asset dataset, installed build and bounded parameter grid; a focused R07 UI component may follow pinned APIs. Before execution, explicitly record component prerequisites rather than treating full R05/R06 as complete. Reuse durable runs/outbox with guarded experiment admission; do not mutate templates per trial or misuse reproduction lineage. Keep provider preparation, candidate isolation, multi-asset/default cutover and performance work separately gated."
|
||||
"next": "Recommend an R06 retained-input experiment component using one immutable strategy version, eligible single-asset dataset, installed build and bounded parameter grid; a focused R07 UI component may follow pinned APIs. Before execution, explicitly record component prerequisites rather than treating full R05/R06 as complete. Reuse durable runs/outbox with guarded experiment admission; do not mutate templates per trial or misuse reproduction lineage. Keep provider preparation, candidate isolation, multi-asset/default cutover and performance work separately gated.",
|
||||
"completed_commit": "30accfcf4370e96e58f771dff67639ea2a278188"
|
||||
},
|
||||
"twenty_seventh_wave": ["R06", "R07"],
|
||||
"twenty_seventh_wave_base": "30accfcf4370e96e58f771dff67639ea2a278188",
|
||||
"twenty_seventh_wave_notes": [
|
||||
"Explicit component prerequisite review: bounded retained-data grids do not require provider-to-v2 preparation. Full R05 remains partial; R06/R07 will remain partial pending exclusions.",
|
||||
"One atomic expansion reuses existing durable runs/outbox; fixed input preview commitment prevents mutable-template drift. Financial and performance policies unchanged."
|
||||
],
|
||||
"twenty_seventh_wave_validation": {
|
||||
"state": "validated_uncommitted",
|
||||
"scope": "R06/R07 retained-input components; both full tasks remain in_progress",
|
||||
"integration_base": "30accfcf4370e96e58f771dff67639ea2a278188",
|
||||
"log_directory": "/tmp/stock-bot-wave27.iR6JOC",
|
||||
"source_archive": "/tmp/stock-bot-wave27.iR6JOC/experiments-integrated-source.tar",
|
||||
"source_archive_sha256": "928b1a8ee8f50af139eda98a59b18427d1dfc91c1cd5127b32a19caec2b7e518",
|
||||
"source_file_count": 35,
|
||||
"source_sha256": {
|
||||
"apps/stock/config/package.json": "2f3990236eba9e4a628cdc2d9fadbdde298814487a88f7fab53774cf2184172b",
|
||||
"apps/stock/config/src/contracts/experiments.ts": "aa313979685cd2a65cf90128ce81cfa4c712039a9919c00c2f33d5f3f5b2cd99",
|
||||
"apps/stock/web-api/src/migrations/migration-runner.ts": "3031324068bd2758256bafb0797c2c80ea4ecdfb50ed0ab76f517a2c1ee2774c",
|
||||
"apps/stock/web-api/src/routes/create-routes.ts": "2b5addd782d0f8c5ff5ec220d40c961c94ce785c97938a5224e8f748064bee50",
|
||||
"apps/stock/web-api/src/routes/experiments.routes.ts": "65a7f4e4c8c39924c29d7928d9863e03bb6ca72663e745a4d6e358f00d76b95d",
|
||||
"apps/stock/web-api/src/services/experiment-input.ts": "406fba42b7a3e34f82a70800763be51a36da18fe0a1b682cec69a8b7a775596a",
|
||||
"apps/stock/web-api/src/services/experiments.service.ts": "c705479b5627af9f5cbd3c99e6bd071a97d98f2a743bdd840e019bb815bb1e67",
|
||||
"apps/stock/web-app/src/app/App.tsx": "c61b008451e049b9927aed9a37bf448e2c2359d6b816c0f7a191c306d2c1ba2e",
|
||||
"apps/stock/web-app/src/components/layout/Layout.tsx": "6551bb4819a8b7a7b12b6e5a5d2613ca9ff9aeb1b5ee15507dae2e844217f4bd",
|
||||
"apps/stock/web-app/src/features/backtest/BacktestDetailPageV2.tsx": "6e9975b52b99a80753a195849d16edc3c5d1cbc9a0ffcadff28c10f35749763b",
|
||||
"apps/stock/web-app/src/features/experiments/ExperimentDetailPage.tsx": "b18f9056108886e7c06c57f306337982b652266142a9bcd9bb0b2f31c65bb16d",
|
||||
"apps/stock/web-app/src/features/experiments/ExperimentListPage.tsx": "1faa4fde018e3661b20a4ba9cb4e683dbe6915168197c4b7feb98b0c84ac64be",
|
||||
"apps/stock/web-app/src/features/experiments/components/ExperimentCounts.tsx": "19215678ccb56e3453ae6787b2412e6df55c1ebfd4278afb873ca422ab79a22d",
|
||||
"apps/stock/web-app/src/features/experiments/components/ExperimentEditor.tsx": "cd38441c7387fcf19903459d7d5b4cb689741c2acbab8284c3ea9a997c1cb1a2",
|
||||
"apps/stock/web-app/src/features/experiments/components/ExperimentInputs.tsx": "fb701f90d46b185952c6e87ffaf427ae3f064fe68ea277dcb18a9b69ccfb4ab4",
|
||||
"apps/stock/web-app/src/features/experiments/index.ts": "9aa6104fc4f3eed210417423e8e3f5284b212b5ef6dbbeb6039343d3f32b4053",
|
||||
"apps/stock/web-app/src/features/experiments/services/experimentApi.ts": "88f1ab5bc884058d1a973836bec32cc5a280cbcff5c31063f1b6f3bd22d14b9d",
|
||||
"apps/stock/web-app/src/lib/constants.ts": "630a37afdb28256144cdf30ea78b3a0b0ced4ca712df55f969764e3389201777",
|
||||
"database/postgres/init/22-experiments.sql": "046e6c5e5e85e76d401c7e98eedcf51e1f64a2d3510471e97b2359a710bfb85a",
|
||||
"test/e2e/fixture.ts": "a10f996326d95e91a6980e922b03628a8dbd47dda702afc9b0bde985c977432d",
|
||||
"test/e2e/workbench.test.ts": "3afa027430295d35918deab7e4d9920dea6756401c28f82478d176f938416797",
|
||||
"test/integration/experiments-api.test.ts": "ab4b0ccd22ad93fa4f533bc9c1be88834650e5cd21a1ef0c9fbc692f67682c28",
|
||||
"test/integration/experiments-contracts.test.ts": "eec66ba6590d588fca6cd4b36f0eb683ad5c19cdc647654c50941bea45cdb34f",
|
||||
"test/integration/experiments-ui.test.tsx": "32ea7114cdd52a71e2501272ef64912c91e8da5927d571434877011f80c258e6",
|
||||
"test/postgres/canonical-durable-backtest.test.ts": "d9d4446e509d84df8e6d63c3acd16584a0e29c06d17019c078d39a77b937dcca",
|
||||
"test/postgres/canonical-research.test.ts": "f7befa2f2a0dbe4b72bd7d0262c691687c58f04a748ab69287fd969d17415e1b",
|
||||
"test/postgres/catalog-backtest-drafts.test.ts": "7ec1db246013177d912907c07ebbf99ce1b610d579b59fabfb6230aa13fa3929",
|
||||
"test/postgres/dataset-catalog.test.ts": "4bc0cb8292bb4096165eb7a28738d027f9d484c4e0763762435cc67e313c576a",
|
||||
"test/postgres/durable-backtest.test.ts": "db1a54e718bd1767bf8ffc2ac8bb0c380349668804deec8986062583381a9f46",
|
||||
"test/postgres/experiments.test.ts": "94c095f002c5edffb0f870f082bb8177a6d3ba1fb6f8615528b5cdafa8229bfe",
|
||||
"test/postgres/migration-runner.test.ts": "755f56f6f0368c28d4344c89444d956807a9ae90d26106ede04e677aebb16980",
|
||||
"test/postgres/research-retention.test.ts": "4da75d980e6c0cff6af4da2c79fd248eda9acbabd80ee84f6638de176b96aa8a",
|
||||
"test/postgres/research-runtime-isolation.test.ts": "a074ba4a12c3b6c9efa9510aa5348ca0e7e784e45db4ac6901584317fc5de644",
|
||||
"test/postgres/research-workspace.test.ts": "76095e19b4b578bf6e69d1de18cbd972240633948c04daee329fea4f9975cbf4",
|
||||
"test/postgres/run-reproduction.test.ts": "f8677363d3619091ff3e94346190d8a5641dcc75666a4051d9f4324822e6dacf"
|
||||
},
|
||||
"checks": [
|
||||
{
|
||||
"command": "CARGO_BUILD_JOBS=2 bun run check",
|
||||
"log": "/tmp/stock-bot-wave27.iR6JOC/check.log",
|
||||
"outcome": "All repository checks passed: build/source/contracts/secrets/lint; 93 tooling, 43 utility, 44 calculation, 696 integration and 150 Rust tests (4 manual Rust ignored)."
|
||||
},
|
||||
{
|
||||
"command": "PIPELINE_TEST_DATABASE_URL=<disposable PG> BACKTEST_TEST_REDIS_URL=<dedicated Redis /15> bun run test:postgres",
|
||||
"log": "/tmp/stock-bot-wave27.iR6JOC/postgres.log",
|
||||
"outcome": "179 tests / 1508 assertions passed across 20 files. Focused isolated SQL/native gate separately passed 10/132, including native candidate execution, rollback, receipt/approval/archive races, cancellation fencing, compact provenance and first migration preservation."
|
||||
},
|
||||
{
|
||||
"command": "PIPELINE_TEST_DATABASE_URL=<disposable PG> BACKTEST_TEST_REDIS_URL=<dedicated Redis /15> bun run test:e2e",
|
||||
"log": "/tmp/stock-bot-wave27.iR6JOC/e2e-final.log",
|
||||
"outcome": "10 Chromium workflows /258 assertions passed. New flow previews/submits2 real native trials, mutates template after admission, replays receipt, verifies rendered comparable returns, reproduces a trial with separate lineage, reopens experiment and cancels a separate pending batch. Initial new-test failure was an exact label selector including nested option text; corrected selector, focused 1/43 and final full 10/258 passed. Existing 9 workflows remained green."
|
||||
},
|
||||
{
|
||||
"command": "bunx tsc --project /tmp/stock-bot-wave27.iR6JOC/tests-tsconfig.json --noEmit",
|
||||
"log": "/tmp/stock-bot-wave27.iR6JOC/integrated-types-final.log",
|
||||
"outcome": "Strict new/changed tests and dependent sources passed; root web TypeScript check also passed. Initial narrow typed assertion mismatch fixed without changing the compared values."
|
||||
},
|
||||
{
|
||||
"command": "bunx eslint <new contract/tests and changed browser test> --max-warnings 0; bunx prettier --check <all changed TS/TSX/JSON>; git diff --check",
|
||||
"log": "/tmp/stock-bot-wave27.iR6JOC/integrated-test-lint.log",
|
||||
"outcome": "Scoped test lint, final source formatting and diff checks passed. Last browser formatting is whitespace only after browser verification; agent-owned hashes unchanged."
|
||||
},
|
||||
{
|
||||
"command": "CARGO_BUILD_JOBS=2 bun run --cwd apps/stock/engine build:release",
|
||||
"log": "/tmp/stock-bot-wave27.iR6JOC/native-release.log",
|
||||
"outcome": "Release addon restored before PostgreSQL/browser tests. SHA256 ef00eed556f5c32332d36a9a00ef710682e90deb00b54552e4b5c8bfdfbe8103 matches previous wave and checkout release library; no financial engine or runner changes."
|
||||
}
|
||||
],
|
||||
"reviews": [
|
||||
{
|
||||
"reviewer": "/root/r04_review",
|
||||
"scope": "Both isolated implementations, shared contract, SQL admission and migration compatibility, actual native/browser integration",
|
||||
"outcome": "Accepted all 14 agent-owned source/test hashes and final root integration delta. Independently ran combined experiment contract/API/UI 34 tests / 230 assertions, including API7/96 and UI26/127. Reviewed focused PG 10/132 evidence; root ran full suites."
|
||||
}
|
||||
],
|
||||
"limitations": [
|
||||
"Supports one current approved retained built-in version, eligible single-asset dataset and exact installed build; fixed seed/cost/risk/reporting policies. Only strategy parameters vary. Maximum 100 trials bounds one atomic admission; existing worker scheduling is unchanged.",
|
||||
"R06 remains partial: failed-trial retry and preserving historical retry diagnostics are not implemented; there is no retry-failed endpoint or UI action. R07 remains partial for broader cross-experiment comparison and paused table performance measurements.",
|
||||
"R05 provider preparation/default cutover remains incomplete. R08/A01/S06 dependencies are not released. No candidate code, multi-asset/default/paper/live activation, AI execution, historical binary provisioning, new simulator or job framework.",
|
||||
"Summary comparisons validate retained identity and reporting conventions; they do not establish profitability or out-of-sample validity. Null, failed, missing and incomparable outcomes are explicit.",
|
||||
"Ambiguous submission body/key stays in the active editor and owned-link navigation is guarded. Saved experiments are durable; unsent editor/retry state is not persisted across a deliberate unload.",
|
||||
"Chromium only; existing bundle-size/Rust warnings remain. No performance profiling/optimization/benchmark runs, new-wave commit, push or PR."
|
||||
],
|
||||
"cleanup": "Both exact --rm disposable PostgreSQL/Redis containers stopped successfully. 35 authored source/test files archived and hashed. Worktrees/logs retained; development/production services and data untouched.",
|
||||
"next": "Finish R06 failed-trial retry as a narrow durable-state change: retain prior diagnostics, keep immutable logical trial inputs, create a new fenced attempt only for failed runs without results, and reject completed/cancelled retries. Reuse existing lease/outbox machinery and expose truthful retry controls after backend integration. Keep performance paused and other release gates intact."
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ Write locks: sql-migrations, experiment-api. One agent owns this change. Lock na
|
|||
|
||||
## Dependencies and blockers
|
||||
|
||||
Implementation requires [R05](R05.md) integrated.
|
||||
The retained-input component requires the accepted R05 durable-run/provenance slice plus R01/R10/F08/S02/D01/W03/C06/R12. The manifest records that narrower prerequisite; provider preparation and broader default cutover remain outside it. Full R06 still requires the failed-retry acceptance below.
|
||||
|
||||
Architecture decisions: ADR-006. Agents may not independently amend their policies.
|
||||
|
||||
|
|
@ -66,3 +66,19 @@ Keep migrations additive and previous results readable. Do not add a switch that
|
|||
## Handoff
|
||||
|
||||
Report scope changes (if any), fixture expectations, API/schema changes, measurements, remaining limitations and commit/PR references once authorized. Request independent review; only the integration/planning owner may mark the manifest done.
|
||||
|
||||
## Authorized component — 2026-10-24
|
||||
|
||||
Retained-input single-asset experiments depend on the accepted R05 runner/provenance component (`618fb9e`), not provider preparation or default cutover. One atomic bounded grid uses a current approved retained built-in, one eligible dataset and installed build, and fixed financial/reporting policy. Preview commits to exact inputs; submission receipts survive current eligibility changes. Existing runs/outbox/worker own execution. Failed retry is excluded from this component; full R06 remains incomplete until retry diagnostics/fencing acceptance is met.
|
||||
|
||||
### Pinned experiment contract
|
||||
|
||||
`@stock-bot/stock-config/experiments` owns shared request/result DTOs. POST `/api/v2/experiments/preview` validates a saved canonical template plus bounded parameter grid; POST `/api/v2/experiments` requires its exact preview hash and an idempotency key. GET collection/detail exposes every frozen candidate and scalar result evidence; POST `/:id/cancel` is idempotent. Existing authenticated reads and credential mutations apply. Preview includes retained dataset manifest, current approved built-in package, complete financial/reporting policies and installed build. A template/review/build change before submission invalidates the preview. An accepted receipt is replayed before rechecking eligibility.
|
||||
|
||||
All children and outbox rows commit with the immutable experiment in one transaction. The initial bound is 100 trials; it bounds atomic admission and does not introduce a parallel scheduler. Only parameters and new run/account/session identities vary. `experiment_id`/`trial_key`/`trial_index` are immutable and mutually exclusive with new-run reproduction lineage. Child submission receipts are null; the experiment owns the unique principal/key receipt. SQL reconstructs exact trial requests from the manifest and preserves ordinary/reproduction admission guards. No template cloning/edit loop or separate financial engine.
|
||||
|
||||
Cancellation latches once, cancels pending children and requests worker acknowledgement for active children, preserving terminal outcomes. Counts are derived from actual children; the frozen candidate count exposes missing rows. Compact summaries validate retained provenance and statistical conventions, preserve null reasons and list inconsistent results as incomparable. No detail-array loading or financial recalculation is needed. Failed-run retry remains absent until history/fencing tests are implemented.
|
||||
|
||||
### Validated component handoff
|
||||
|
||||
The retained-input component is implemented and independently reviewed. Full repository, PostgreSQL and Chromium gates passed; exact source hashes and logs are in `manifest.json` → `twenty_seventh_wave_validation`. See the twenty-seventh-wave roadmap handoff. This component is uncommitted and does not complete the full task or release its downstream dependencies.
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ Write locks: web-experiments. One agent owns this change. Lock names do not over
|
|||
|
||||
## Dependencies and blockers
|
||||
|
||||
Implementation requires [R06](R06.md) integrated.
|
||||
Component implementation may proceed against root-pinned R06 DTOs; activation requires integrated retained-input R06 admission/results. Full R06 failed-retry work is independent of this component and no retry action is exposed.
|
||||
|
||||
Architecture decisions: ADR-006. Agents may not independently amend their policies.
|
||||
|
||||
|
|
@ -64,3 +64,17 @@ Keep migrations additive and previous results readable. Do not add a switch that
|
|||
## Handoff
|
||||
|
||||
Report scope changes (if any), fixture expectations, API/schema changes, measurements, remaining limitations and commit/PR references once authorized. Request independent review; only the integration/planning owner may mark the manifest done.
|
||||
|
||||
## Authorized component — 2026-10-24
|
||||
|
||||
Implement same-experiment preview, submission, progress, cancellation, scalar comparison and exact run reopening against the pinned R06 component API. Component coding may proceed in parallel; release requires integrated R06 component. Cross-experiment comparison and table performance measurements remain outstanding, with all performance work paused. Full R07 remains incomplete.
|
||||
|
||||
### Pinned web workflow
|
||||
|
||||
`/experiments` selects a saved canonical backtest, names a sweep and previews a small parameter grid before submission. `/experiments/:experimentId` shows the frozen inputs, all trial outcomes, comparable scalar metrics with units/null reasons, cancellation state and exact saved-run links. An optional backtest query parameter starts from its detail page. The API is shared with other authorized clients; the browser does not calculate economics or rank incompatible runs.
|
||||
|
||||
Ambiguous submission preserves its exact body/key, and only an explicit new intent may replace it. Form edits invalidate previews; route changes and late reads/mutations cannot replace another experiment. Loading, empty, failed, missing and incomparable outcomes remain distinct. Refresh/reopen must retain immutable evidence and cancelled/partial outcomes. The browser acceptance executes real retained native trials, mutates the template after admission, replays the submission receipt, opens results and cancels a separate pending batch.
|
||||
|
||||
### Validated component handoff
|
||||
|
||||
The retained-input component is implemented and independently reviewed. Full repository, PostgreSQL and Chromium gates passed; exact source hashes and logs are in `manifest.json` → `twenty_seventh_wave_validation`. See the twenty-seventh-wave roadmap handoff. This component is uncommitted and does not complete the full task or release its downstream dependencies.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue