feat(research): add strategy catalog and versioned backtest setup
This commit is contained in:
parent
8cca0ee588
commit
d929db707a
44 changed files with 4198 additions and 209 deletions
|
|
@ -62,7 +62,7 @@ Keep migrations additive and previous results readable. Do not add a switch that
|
|||
|
||||
## Web/API contract and user states
|
||||
|
||||
- API: R01 catalog/version endpoints plus version ID in saved backtest template/request snapshot.
|
||||
- API: R01 catalog/version endpoints plus exact version ID and normalized parameters in saved backtest templates. R05 owns versioned run admission and immutable request snapshots; R02 creates no catalog run/outbox.
|
||||
- Backend/data dependencies: R01 schema; current engine capability metadata. Unsupported version/runtime combinations fail before submit.
|
||||
- Loading/error/empty behavior: Skeleton list/detail; no-strategies create CTA; schema error next to parameter; retry fetch; unsaved edit warning.
|
||||
- User-facing completion is demonstrated by the acceptance criteria and interaction tests above; a backend-only implementation is insufficient where a UI is in scope.
|
||||
|
|
@ -70,3 +70,24 @@ 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.
|
||||
|
||||
## Wave22 execution contract
|
||||
|
||||
R10 committed `8cca0ee`; owner authorized R02. Reuse existing catalog APIs, React routes and backtest templates. Publish author code through existing repository/artifact APIs; no browser IDE or new compilation/runtime service. Read-only artifact comparison shows retained bundled JavaScript, schema and identities, not reconstructed original TypeScript.
|
||||
|
||||
Migration18 adds `strategy_version_id` (restrictive FK) and separate scalar `strategy_parameters`. The saved template uses `strategy: 'catalog'`; the version never becomes a legacy alias. Creation requires explicit `autoStart:false`. Save validates retained checksums, exact version parameters, data/execution settings and selected-dataset compatibility. Preserve omitted selection on partial updates; an explicit new version requires explicit parameters. Both legacy/catalog mode conversions are rejected; create another template instead. New selections reject archived families under their row lock; existing references remain readable and editable unless the template itself is archived.
|
||||
|
||||
V2 submission rejects before run/outbox insertion; V1 rejects catalog input before saving. Direct repository marker checks and the existing SQL run-admission trigger close alternate paths. Legacy receipt replay remains first. Keep the pure legacy parser's pre-strip rejection intact, including null version fields. Map trusted legacy DTOs explicitly instead of weakening that guard.
|
||||
|
||||
All versions remain non-runnable, including approved built-ins. The UI supports exact version selection, schema fields, server validation and saved setups with fresh submission disabled. Existing supported legacy strategies remain a separate qualified workflow. No inferred version/deployment histories from names; show absent integration honestly. Schema forms preserve optional omissions, false, zero, typed enums and decimal strings. Retained bundle text is never executed. Metadata/clone drafts preserve input and use explicit discard warnings; clone retries retain their original key/body.
|
||||
|
||||
|
||||
## Validated handoff — 2026-10-23
|
||||
|
||||
Implemented the pinned Wave22 contract in 39 source/shared-contract/migration/test files. Catalog family metadata, immutable version selection, clone retries, exact schema validation, escaped bundle comparison and existing save/reopen/settings flows are integrated. API, repository and SQL gates keep all catalog versions non-runnable; legacy receipt ordering and supported legacy runs remain unchanged. Migration 18 retains version/parameters without creating catalog runs or request snapshots.
|
||||
|
||||
Review fixes include explicit empty-string versus omitted parameters, normalized value display, frozen clone source identity during navigation, catalog settings omitting legacy pacing, and authoritative archive/restore resets that invalidate stale parameter validation. Browser coverage proves exact saved values, immutable selection after new publication, clone lineage, safe bundle display, and zero runs/outbox. Each browser fixture has its own context/server/schema/queue within one suite-owned Chromium process after repeated driver teardown exposed pipe loss under Bun 1.2.17; no retry hides failures.
|
||||
|
||||
Validation: full repository checks passed (541 integration, 150 Rust, 93 tooling, 43 utility, 44 calculation plus build/types/contracts/lint/secrets); full PostgreSQL/Redis 137 tests/1052 assertions; all 8 browser workflows/117 assertions; strict new/modern test types and scoped lint/format/diff checks. Source hashes, commands, logs, independent review and stopped fixture IDs are in `manifest.json` → `twenty_second_wave_validation`. Release addon matches the prior wave; Rust financial source is unchanged.
|
||||
|
||||
Read-only source is retained bundled JavaScript, not original TypeScript. Code publication stays in repository/offline tooling or existing artifact APIs; no embedded editor/upload UI. Version-linked backtest/deployment histories remain unavailable. Unsaved warnings cover local discard actions/document unload, not a new global routing framework. Clone retry identity lasts within the mounted detail view. Current legacy economics remain explicitly qualified. R05 owns verified retained-artifact execution and full provenance; A02 gates candidates, and the multi-asset default policy remains unresolved. No R02 commit/push/PR, default cutover, trading activation or performance work.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue