feat(research): retry failed experiment trials with retained history
This commit is contained in:
parent
6f64ef62ba
commit
b373410320
32 changed files with 3336 additions and 61 deletions
|
|
@ -1,8 +1,8 @@
|
|||
# Revised development roadmap
|
||||
|
||||
Baseline `b7aeca4` · execution 2026-10-24 · **R12 committed; retained-input R06/R07 experiment components validated and uncommitted**
|
||||
**First twenty-seven waves committed; failed-trial retries are validated and await commit.** The experiment workbench is committed as `6f64ef6`. **34 of 45 scheduled tasks are fully committed (76% by count)**; R06 now satisfies its retained-input acceptance and is in review. R07 retry/history controls are validated, while broader comparison work and full R05 remain partial. Next after acceptance: R08 chronological validation. Performance work remains paused.
|
||||
|
||||
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.
|
||||
Authorization update: the owner requested “commit and start”. The first R06/R07 experiment workbench is committed as `6f64ef6`; **34/45 scheduled tasks are fully committed**, plus these partial components. This continuation adds failed-trial retry receipts, diagnostic preservation, fencing and UI history using existing durable runs/outbox. Full R05 and broader R07 work remain partial. Performance stays paused; new-wave commits, pushes, PRs and trading/default-engine operations are outside this continuation's scope.
|
||||
|
||||
## Strategy and review outcome
|
||||
|
||||
|
|
@ -599,3 +599,17 @@ R12 is accepted and committed as `30accfc`. R06/R07 retained-input components ar
|
|||
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.
|
||||
|
||||
## Twenty-eighth-wave handoff — 2026-10-24
|
||||
|
||||
The previous experiment workbench is committed as `6f64ef6`. R06 failed-trial retries and focused R07 controls are implemented, independently reviewed and validated; these new changes are uncommitted. R06 is now in review with its retained-input acceptance satisfied. R05 and full R07 remain partial.
|
||||
|
||||
- **Durable retry:** A manual retry preserves the logical run, immutable request, dataset, strategy parameters and original approval snapshot. Current original-version approval/build eligibility is checked separately. One atomic SQL transaction captures the exact failure, advances the manual retry counter, clears active execution state and makes the existing dispatch outbox due. Lifetime attempt counters never decrease; recovery budgets are not reset. Existing workers supply the next fresh attempt UUID.
|
||||
- **Recovery evidence:** Append-only receipts preserve PostgreSQL timestamp precision. Repeated acceptance returns the same receipt, including after completion or later eligibility changes. Cancellation, retained results, stale failure counters, direct SQL tampering and late old-worker callbacks cannot create an unauthorized retry or overwrite results. No financial engine, runner or dispatcher source changed.
|
||||
- **Workbench:** Per-trial review/retry/history controls retain the exact unresolved request through refresh and uncertain responses. Saved history survives reopening. This records failures captured by manual retries, not invented historical automatic-attempt logs.
|
||||
|
||||
Validation passed: `bun run check` (93 tooling, 43 utility, 44 calculation, 738 integration and 150 Rust tests; four existing manual Rust tests ignored), full PostgreSQL/Redis (190 tests / 1609 assertions), and Chromium (11 workflows / 285 assertions). Strict test types, scoped lint, changed-file formatting and whitespace checks passed. Independent review accepted all 12 agent-owned hashes and the root browser fixture/test delta. All 27 source/test files are archived and hashed in `manifest.json` → `twenty_eighth_wave_validation`.
|
||||
|
||||
The release addon remains `ef00eed556f5c32332d36a9a00ef710682e90deb00b54552e4b5c8bfdfbe8103`. Both disposable fixture containers were stopped; development services were untouched. Worktrees and logs remain under `/tmp/stock-bot-wave28.AqRnN8/`.
|
||||
|
||||
Next after acceptance/commit: **R08 bounded chronological selection and reset-segment validation**. Freeze train/validation/test windows and selection rules before execution, retain all tried candidates and distinguish reset segments from continuous portfolio performance. No performance work, standalone/bulk retries, candidate execution, multi-asset/default/paper/live activation, AI execution, new-wave commit, push or PR occurred.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Canonical development backlog
|
||||
|
||||
**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.
|
||||
**First twenty-seven waves committed; failed-trial retries are validated and await commit.** The experiment workbench is committed as `6f64ef6`. **34 of 45 scheduled tasks are fully committed (76% by count)**; R06 now satisfies its retained-input acceptance and is in review. R07 retry/history controls are validated, while broader comparison work and full R05 remain partial. Next after acceptance: R08 chronological validation. Performance work remains paused.
|
||||
|
||||
## One source of truth
|
||||
|
||||
|
|
@ -77,7 +77,7 @@ 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 / in_progress (component) | Accepted R05 retained-input component; R01/R10/F08/S02/D01/W03/C06/R12, ADR-006 | — | Full-stack research product / M |
|
||||
| [R06 Create immutable experiments and bounded sweep expansion](tasks/R06.md) | P1 / review (validated, uncommitted) | 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 |
|
||||
|
|
@ -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.
|
||||
|
||||
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.
|
||||
The R06/R07 retained-input components are committed as `6f64ef6`. Current work completes failed-trial retry with preserved diagnostics and attempt fencing plus focused UI controls. Full R05 stays partial; R08/A01/S06 are not released before accepted integration and their own approval gates. Provider preparation is independent of sweeps over retained data. Performance and multi-asset/default/paper activation remain excluded.
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"schema_version": 1,
|
||||
"plan_revision": "2026-10-24.58",
|
||||
"plan_revision": "2026-10-24.60",
|
||||
"repository_base": "b7aeca4",
|
||||
"plan_status": "twenty_seventh_wave_validated_uncommitted",
|
||||
"plan_status": "twenty_eighth_wave_validated_awaiting_commit",
|
||||
"execution_authorized": true,
|
||||
"execution_scope": {
|
||||
"authorized_by": "User: comit and continue after R12 handoff recommending bounded experiments and sweep UI",
|
||||
"authorized_by": "User: commit and start after wave27 named safe failed-trial retries; prior slice committed6f64ef6",
|
||||
"tasks": ["R06", "R07"],
|
||||
"permissions": [
|
||||
"Retained-input single-asset experiment and sweep UI components under pinned existing ADR-006; isolated implementation/review and full validation"
|
||||
"Failed canonical experiment trial retry with immutable diagnostic receipts, SQL fencing and focused history/retry controls; isolated implementation/review and full validation"
|
||||
],
|
||||
"excluded": [
|
||||
"performance_profiling_or_optimization",
|
||||
|
|
@ -23,7 +23,6 @@
|
|||
"multi_asset_activation",
|
||||
"AI_execution_or_credentials",
|
||||
"historical_binary_provisioning",
|
||||
"failed_run_retry",
|
||||
"cross_experiment_ranking"
|
||||
],
|
||||
"pending_policy_decisions": [
|
||||
|
|
@ -1335,7 +1334,7 @@
|
|||
"epic": "E6",
|
||||
"priority": "P1",
|
||||
"severity": "High",
|
||||
"status": "in_progress",
|
||||
"status": "review",
|
||||
"dependencies": ["R01", "R10", "F08", "S02", "D01", "W03", "C06", "R12"],
|
||||
"decision_dependencies": ["ADR-006"],
|
||||
"task_file": "backlog/tasks/R06.md",
|
||||
|
|
@ -1350,11 +1349,11 @@
|
|||
"completed_commit": null,
|
||||
"blocker": null,
|
||||
"release_gates": [],
|
||||
"integration_state": "partial_validated_uncommitted",
|
||||
"integration_base": "30accfcf4370e96e58f771dff67639ea2a278188",
|
||||
"integration_state": "validated_uncommitted",
|
||||
"integration_base": "6f64ef62ba233b293ea1374c753bd0b467703792",
|
||||
"worktree": "/home/boki/repos/stock-bot",
|
||||
"execution_component": "Retained-input atomic bounded experiments",
|
||||
"component_exclusions": ["failed retry and broader R05 cutover"],
|
||||
"execution_component": "Failed-trial retry with immutable diagnostic history",
|
||||
"component_exclusions": ["broader R05 source/default cutover, standalone or batch retry"],
|
||||
"satisfied_component_dependencies": [
|
||||
{
|
||||
"task": "R05",
|
||||
|
|
@ -1363,19 +1362,20 @@
|
|||
}
|
||||
],
|
||||
"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.",
|
||||
"verification_reference": "ROADMAP.md#twenty-eighth-wave-handoff--2026-10-24",
|
||||
"review_notes": "Retained-input experiment and retry acceptance complete; independently reviewed and all integrated gates passed. Awaiting owner acceptance/commit before downstream readiness changes.",
|
||||
"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"
|
||||
"worktree": "/tmp/stock-bot-wave28.AqRnN8/backend",
|
||||
"scope": "Guarded manual retry service/routes, immutable SQL23 failure receipts, HTTP/native/PostgreSQL/Redis regressions"
|
||||
},
|
||||
{
|
||||
"owner": "/root",
|
||||
"scope": "Shared DTO/export, API/web composition, old migration fixtures, actual native browser workflow and planning"
|
||||
"scope": "Shared DTO, migration allowlist/old fixtures, actual native browser workflow, integrated gates and planning"
|
||||
}
|
||||
]
|
||||
],
|
||||
"partial_commit": "6f64ef62ba233b293ea1374c753bd0b467703792"
|
||||
},
|
||||
{
|
||||
"id": "R07",
|
||||
|
|
@ -1398,26 +1398,27 @@
|
|||
"completed_commit": null,
|
||||
"blocker": null,
|
||||
"release_gates": ["W04"],
|
||||
"integration_state": "partial_validated_uncommitted",
|
||||
"integration_base": "30accfcf4370e96e58f771dff67639ea2a278188",
|
||||
"integration_state": "component_validated_uncommitted",
|
||||
"integration_base": "6f64ef62ba233b293ea1374c753bd0b467703792",
|
||||
"worktree": "/home/boki/repos/stock-bot",
|
||||
"execution_component": "Same-experiment preview/progress/comparison UI",
|
||||
"execution_component": "Per-trial retry controls and retained history",
|
||||
"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.",
|
||||
"component_readiness": "Integrated against the validated R06 retry contract. Full R07 still excludes broader cross-experiment comparison and paused table rendering measurements.",
|
||||
"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.",
|
||||
"verification_reference": "ROADMAP.md#twenty-eighth-wave-handoff--2026-10-24",
|
||||
"review_notes": "Retry/history controls independently reviewed and all integrated gates passed. Broader comparison and paused table measurements remain outstanding; full task is not complete.",
|
||||
"implementation_slices": [
|
||||
{
|
||||
"owner": "/root/r12_frontend",
|
||||
"worktree": "/tmp/stock-bot-wave27.iR6JOC/frontend",
|
||||
"scope": "Experiment editor/list/detail, browser client and focused interaction tests"
|
||||
"worktree": "/tmp/stock-bot-wave28.AqRnN8/frontend",
|
||||
"scope": "Failed-trial review/retry/history UI, frozen intent through refresh and ambiguous responses, interaction regressions"
|
||||
},
|
||||
{
|
||||
"owner": "/root",
|
||||
"scope": "Shared DTO/export, API/web composition, old migration fixtures, actual native browser workflow and planning"
|
||||
"scope": "Shared DTO, migration allowlist/old fixtures, actual native browser workflow, integrated gates and planning"
|
||||
}
|
||||
]
|
||||
],
|
||||
"partial_commit": "6f64ef62ba233b293ea1374c753bd0b467703792"
|
||||
},
|
||||
{
|
||||
"id": "R08",
|
||||
|
|
@ -6581,7 +6582,7 @@
|
|||
"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",
|
||||
"state": "validated_committed",
|
||||
"scope": "R06/R07 retained-input components; both full tasks remain in_progress",
|
||||
"integration_base": "30accfcf4370e96e58f771dff67639ea2a278188",
|
||||
"log_directory": "/tmp/stock-bot-wave27.iR6JOC",
|
||||
|
|
@ -6673,6 +6674,97 @@
|
|||
"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."
|
||||
"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.",
|
||||
"completed_commit": "6f64ef62ba233b293ea1374c753bd0b467703792"
|
||||
},
|
||||
"twenty_eighth_wave": ["R06", "R07"],
|
||||
"twenty_eighth_wave_base": "6f64ef62ba233b293ea1374c753bd0b467703792",
|
||||
"twenty_eighth_wave_notes": [
|
||||
"One manual retry receipt also retains the prior failure; both observed lifetime attempt and manual-retry counters identify the failure including preclaim errors.",
|
||||
"Original input/review snapshot remains immutable; fresh retry requires current approval and records its receipt separately. Existing lifetime automatic recovery budget remains unchanged."
|
||||
],
|
||||
"twenty_eighth_wave_validation": {
|
||||
"state": "validated_uncommitted",
|
||||
"scope": "R06 retained-input experiment acceptance complete; R07 retry/history component complete, broader task partial",
|
||||
"artifacts": "/tmp/stock-bot-wave28.AqRnN8",
|
||||
"source_archive": "/tmp/stock-bot-wave28.AqRnN8/validated-source.tar.gz",
|
||||
"source_files": {
|
||||
"apps/stock/config/src/contracts/experiments.ts": "9bea8dc6ef3557912a46b3516670f8857654834f494cb9aaa34e51366d9bb223",
|
||||
"apps/stock/web-api/src/migrations/migration-runner.ts": "671a719e189c42931e3b4107a21480ac66d4400c525b95ade4d4285346952370",
|
||||
"apps/stock/web-api/src/routes/experiments.routes.ts": "560ccd8577fc73355aec1b91ad3235e5d3d3bd660cc0e25e12e783387f0d9e3e",
|
||||
"apps/stock/web-api/src/services/experiment-retry.ts": "9a44aa7dfe875d7b66b9715df6f5ae1b7eaccb2c5e1ad61bbfa32e9f11d1b3f0",
|
||||
"apps/stock/web-api/src/services/experiments.service.ts": "bfcf8d8034992278f539fda3744c65bc31754279b7c8bdd6acd1a0e625e22475",
|
||||
"apps/stock/web-app/src/features/experiments/ExperimentDetailPage.tsx": "f0827a1e50cd23a5f1aabd308de0368511a6b8dd72a88d4876bb1a0c6f45c82e",
|
||||
"apps/stock/web-app/src/features/experiments/components/ExperimentTrialRecovery.tsx": "5e4016ce052e6e14ba5f3679777523ca2511ad087987b44505e4a147195acd51",
|
||||
"apps/stock/web-app/src/features/experiments/services/experimentApi.ts": "b145996dede2ecb0838f1641029d82d8313d54b9189bf898ebbfe79ca4d1fdc7",
|
||||
"database/postgres/init/23-experiment-retries.sql": "f19b7cf759a71cd3eeb55d0a0ca84a386d32fb0cad062e034901dfce96bbadd2",
|
||||
"test/e2e/fixture.ts": "bf25802f3aa0c43d2229f658eb7c64ab99fef5d7320b1247faa36c7861d4198c",
|
||||
"test/e2e/workbench.test.ts": "ee52abf3732340582c19e5e1479cc7a4a01fb7ac68904ce9946c1737596f9355",
|
||||
"test/integration/experiment-retries-api.test.ts": "0228c9315a72a987473a3a0702af3ceecdebb547ffbd6fd7cd64b3945db44b82",
|
||||
"test/integration/experiment-retries-ui.test.tsx": "6232596fb63842e5cf2759b379d776aa010a0be67325354052530b0f41cf3c88",
|
||||
"test/integration/experiments-api.test.ts": "98caacdae9d30b5a5d6da113eabd07477494a6e238213c0dd8934b3adedfea5f",
|
||||
"test/integration/experiments-ui.test.tsx": "3aa2f144b7d3bb4f122fe4a8031cff0b410bef9fa6d63b0fd1329204a9e96c2e",
|
||||
"test/postgres/canonical-durable-backtest.test.ts": "9281282c6c84c75291cdade49e787b3a8c6b5f312c471829a01b060d75dfd0bc",
|
||||
"test/postgres/canonical-research.test.ts": "95ceffc10022315119a9836352a7381f348900bc243789a5a19c79b313681545",
|
||||
"test/postgres/catalog-backtest-drafts.test.ts": "5f16f9e917838af049ad1dcc54cf4cbab2176a42ecfd2606125071e9056df356",
|
||||
"test/postgres/dataset-catalog.test.ts": "60202d147c978277ed1daf7f0b584fb89d987e8fa64ec2a19e0a7fd84568e12f",
|
||||
"test/postgres/durable-backtest.test.ts": "3f1364982fbb3b1d6668fb91ae834f9853739b67f743586b6484c54a1f0c6015",
|
||||
"test/postgres/experiment-retries.test.ts": "821f8b6a7407b9b16cad906519a649e8ad0f0e96312cb3252e8fe3fc2b069e4f",
|
||||
"test/postgres/experiments.test.ts": "1b1eb3ea3cd778f72c471f8f971320fbc23222ac3fc3c470f450b8c75356d90d",
|
||||
"test/postgres/migration-runner.test.ts": "b368039e030c5e1a1d71b12a17556e2e0267855a7a35215fd9a06675a783175d",
|
||||
"test/postgres/research-retention.test.ts": "b47c24af8da0e182fad9f467519e33711fbcf7407bcd36565929d01f79f87a51",
|
||||
"test/postgres/research-runtime-isolation.test.ts": "5b078b6c9fd33f329309c3a9a162432175cef254aef103b6125980f953a7552a",
|
||||
"test/postgres/research-workspace.test.ts": "a2a386c4aca55e344767a9e71664b176b164e031cf9717e7de0f0efe534c30be",
|
||||
"test/postgres/run-reproduction.test.ts": "16cdd2c8e0a014033260713cb139241965b8478eec72b55a1df2096397a915c2"
|
||||
},
|
||||
"checks": [
|
||||
{
|
||||
"command": "CARGO_BUILD_JOBS=2 bun run check",
|
||||
"log": "/tmp/stock-bot-wave28.AqRnN8/check.log",
|
||||
"outcome": "All repository gates passed: build/source/contracts/secrets/lint; 93 tooling, 43 utility, 44 calculation, 738 integration and 150 Rust tests (4 existing manual Rust ignored); zero failures."
|
||||
},
|
||||
{
|
||||
"command": "PIPELINE_TEST_DATABASE_URL=<disposable PG> BACKTEST_TEST_REDIS_URL=<dedicated Redis /15> bun run test:postgres",
|
||||
"log": "/tmp/stock-bot-wave28.AqRnN8/postgres.log",
|
||||
"outcome": "190 tests / 1609 assertions passed across 21 files. New focused retry suite11/101 covers exact timestamp/history retention, preclaim0 recurrence, stale callbacks, same/cross-parent receipt races, cancellation/archive/build gates, SQL tampering/rollback, Redis outage/native recovery and first/idempotent migration preservation."
|
||||
},
|
||||
{
|
||||
"command": "PIPELINE_TEST_DATABASE_URL=<disposable PG> BACKTEST_TEST_REDIS_URL=<dedicated Redis /15> bun run test:e2e",
|
||||
"log": "/tmp/stock-bot-wave28.AqRnN8/e2e.log",
|
||||
"outcome": "11 Chromium workflows / 285 assertions passed. New workflow records a real durable failed attempt, retries through the UI after mutable template/review changes, completes original inputs through Rust, replays the receipt after completion, checks exact timestamp/history and reopens the result. All 10 previous workflows passed."
|
||||
},
|
||||
{
|
||||
"command": "bunx tsc --project /tmp/stock-bot-wave28.AqRnN8/tests-tsconfig.json --noEmit",
|
||||
"log": "/tmp/stock-bot-wave28.AqRnN8/integrated-test-types.log",
|
||||
"outcome": "Strict new/changed tests and dependent sources passed."
|
||||
},
|
||||
{
|
||||
"command": "bunx eslint <shared DTO/new retry tests/changed browser test> --max-warnings 0; bunx prettier --check <all changed TS/TSX/JSON>; git diff --check",
|
||||
"log": "/tmp/stock-bot-wave28.AqRnN8/integrated-test-lint.log",
|
||||
"outcome": "Scoped test lint, all changed source formatting and whitespace checks passed; final planning formatting checked separately."
|
||||
},
|
||||
{
|
||||
"command": "CARGO_BUILD_JOBS=2 bun run --cwd apps/stock/engine build:release",
|
||||
"log": "/tmp/stock-bot-wave28.AqRnN8/native-release.log",
|
||||
"outcome": "Release addon restored before PostgreSQL/browser gates. SHA256 ef00eed556f5c32332d36a9a00ef710682e90deb00b54552e4b5c8bfdfbe8103 matches previous wave; no engine/runner/dispatcher source changes."
|
||||
}
|
||||
],
|
||||
"reviews": [
|
||||
{
|
||||
"reviewer": "/root/r04_review",
|
||||
"scope": "All12 agent-owned hashes, shared contract, SQL23, final focused tests and root actual-browser/fixture delta",
|
||||
"outcome": "Accepted without remaining source blockers. Independently ran API 12/177 and final retry/experiment UI 63/311; reviewed final backend PG 11/101 evidence. Root integrated all gates. R06 can enter review/uncommitted; full R05/R07 remain partial."
|
||||
}
|
||||
],
|
||||
"limitations": [
|
||||
"Manual retries apply only to failed canonical experiment trials with no result or cancellation. Same retained approved built-in, eligible single-asset data and exact installed build required for fresh acceptance. No standalone/batch retry endpoint.",
|
||||
"History contains exact prior failures captured by accepted manual retries, not a reconstructed log of every automatic attempt. Original request/review snapshot remains unchanged; current approval is recorded separately on the receipt.",
|
||||
"Lifetime attempt_number cannot decrease for experiment runs. Manual acceptance increments manual_retry_count only; the worker creates its fresh attempt UUID and increments attempt_number. Existing lifetime automatic-recovery budget is not reset.",
|
||||
"Accepted receipt replay precedes current eligibility checks. Unresolved browser retry inputs/key persist through component refresh, not deliberate unload/navigation; saved receipts/history remain durable.",
|
||||
"R05 provider preparation/default cutover and broader R07 comparisons remain incomplete. R08 readiness awaits R06 acceptance/commit; A01 additionally needs ADR-007. No performance/benchmark work, candidate execution, multi-asset/default/paper/live activation, AI execution, new-wave commit, push or PR.",
|
||||
"Chromium only; existing bundle-size/Rust warnings and four manual Rust test exclusions remain. Initial focused SQL test parameter-type fixture error was corrected before the frozen 11/101 suite; final integrated gates passed on their first run."
|
||||
],
|
||||
"cleanup": "Both exact --rm disposable PostgreSQL/Redis fixture containers stopped successfully. 27 authored source/test files archived and hashed; isolated worktrees/logs retained. Development/production services and data untouched.",
|
||||
"next": "Accept/commit this R06 retry completion, then start R08 bounded chronological parameter selection and reset-segment validation on the accepted retained-input experiment foundation. Pin explicit training/validation/test/warmup boundaries and selection rule before execution; preserve all candidate evidence and label reset-segment results honestly. Keep performance paused and R05/R07/AI/multi-asset/default activation gates intact."
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ Write locks: sql-migrations, experiment-api. One agent owns this change. Lock na
|
|||
|
||||
## Dependencies and blockers
|
||||
|
||||
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.
|
||||
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. The failed-retry continuation satisfies the remaining acceptance below; final integration evidence is recorded in its validated handoff.
|
||||
|
||||
Architecture decisions: ADR-006. Agents may not independently amend their policies.
|
||||
|
||||
|
|
@ -69,7 +69,7 @@ Report scope changes (if any), fixture expectations, API/schema changes, measure
|
|||
|
||||
## 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.
|
||||
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 was excluded from this first component; its continuation below supplies the remaining diagnostics/fencing acceptance.
|
||||
|
||||
### Pinned experiment contract
|
||||
|
||||
|
|
@ -77,8 +77,22 @@ Retained-input single-asset experiments depend on the accepted R05 runner/proven
|
|||
|
||||
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.
|
||||
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 was deferred from this first component to the continuation below.
|
||||
|
||||
### 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.
|
||||
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 first component is committed as `6f64ef6`; it did not alone complete the full task or release its downstream dependencies.
|
||||
|
||||
## Failed-trial retry continuation — 2026-10-24
|
||||
|
||||
The retained-input experiment component is committed as `6f64ef6`. This continuation completes its failed-trial retry acceptance using the same immutable logical run. POST `/api/v2/experiments/:id/trials/:runId/retry` requires a stable idempotency key and both observed attempt/retry counters. GET the corresponding `/retries` path returns append-only snapshots captured by accepted manual retries.
|
||||
|
||||
The new receipt retains the prior failure directly from SQL before clearing execution state; PostgreSQL timestamp precision is preserved. Current original-version approval and retained build/data eligibility are rechecked for fresh acceptance, with current approval recorded separately from the immutable original request. Completed/cancelled/result-bearing trials and cancelled experiments cannot be retried. Receipt replay precedes current eligibility checks.
|
||||
|
||||
Lock order is parent → experiment → run → strategy family. Atomic acceptance increments `manual_retry_count`, resets execution fields and makes the existing outbox due; `attempt_number` remains monotonic and the worker supplies a fresh UUID. Manual retry does not reset the existing lifetime automatic-recovery budget. History is explicitly previous failure snapshots preserved by manual retries, not invented history of every old automatic attempt. Existing simulator/financial semantics remain unchanged.
|
||||
|
||||
### Validated retry handoff
|
||||
|
||||
R06's retained-input acceptance is complete and independently reviewed; status is `review` / `validated_uncommitted`. Existing bounded expansion/cancellation/compact comparison behavior is preserved. Full repository gates, PostgreSQL (190 tests / 1609 assertions) and Chromium (11 workflows / 285 assertions) passed. Exact source hashes and logs: `manifest.json` → `twenty_eighth_wave_validation`.
|
||||
|
||||
The retry suite proves exact failure snapshots, duplicate/stale intent handling, lifetime counter monotonicity, rollback, old-attempt fencing, Redis recovery, current original-version approval and actual Rust completion with one result. SQL23 adds guards only to experiment retry semantics; ordinary run lifecycle behavior remains intact. No engine or dispatcher changes were required. Downstream R08 remains blocked until acceptance/commit; broader R05 cutover is still separate.
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ Write locks: web-experiments. One agent owns this change. Lock names do not over
|
|||
|
||||
## Dependencies and blockers
|
||||
|
||||
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.
|
||||
Component implementation may proceed against root-pinned R06 DTOs; activation requires integrated retained-input R06 admission/results. The initial component did not expose retry; the continuation below adds controls against the separately reviewed R06 retry contract.
|
||||
|
||||
Architecture decisions: ADR-006. Agents may not independently amend their policies.
|
||||
|
||||
|
|
@ -77,4 +77,14 @@ Ambiguous submission preserves its exact body/key, and only an explicit new inte
|
|||
|
||||
### 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.
|
||||
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 first component is committed as `6f64ef6`; it did not alone complete the full task or release its downstream dependencies.
|
||||
|
||||
## Retry controls continuation — 2026-10-24
|
||||
|
||||
The first experiment UI component is committed as `6f64ef6`. Add per-trial failed-retry review/confirmation and lazy immutable failure-history views against the pinned R06 API. Preserve exact unresolved body/key through refresh and guard late responses, cancellation and route changes; a later failure requires a deliberate new intent. Reopening must show saved failure evidence after successful completion. Broader comparison/table measurement remains outside this continuation; performance work stays paused.
|
||||
|
||||
### Validated retry controls handoff
|
||||
|
||||
The retry/history component is independently reviewed and `component_validated_uncommitted`. The actual Chromium workflow retries a failed canonical trial, verifies the original immutable inputs despite template edits, replays the accepted receipt after completion and reopens saved failure history and the native result. Interaction tests cover uncertain responses, stale refresh/route responses, cancellation coordination, null/history/error states and explicit discard/new intent. Exact logs and hashes: `manifest.json` → `twenty_eighth_wave_validation`.
|
||||
|
||||
Full R07 remains in progress for broader cross-experiment comparison and table measurements. All performance work stays paused. No new finance, statistics or result-ranking logic was added.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue