fix(research): preserve strategy work before backtest handoff (RP09)

This commit is contained in:
Boki 2026-10-27 13:37:24 -04:00
parent c24410e5dd
commit 49da701aa7
5 changed files with 258 additions and 7 deletions

View file

@ -89,6 +89,15 @@ For a first change, follow one parameter from [the built-in selection schemas](.
## From source code to a saved candidate
The strategy page keeps one publication or clone workflow at a time. **Use in backtest**
waits until that work is finished or cleared; opening a clone also disables candidate
publication, and a loaded candidate package blocks starting a clone. Clear an unpublished
package or explicitly discard the clone form to return to ordinary parameter handoff.
If a write response was lost, use **Retry same publication** or **Retry clone** to recover
the original request and key. These controls preserve the local retry information; they
do not cancel work already accepted by the backend. Ordinary validated parameters still
transfer directly to backtest setup.
Source, package, catalog version, execution, and promotion are separate steps:
1. **Author and test.** The factory returns the selected owner, strategy identity, version, and seed unchanged. Retained candidate factories currently use target mode. Start from the [sandbox test's small source factory and metadata fixture](../../test/integration/candidate-sandbox.test.ts); inspect the [package contract](../../libs/core/types/src/strategy-version.ts) and [candidate declarations](../../apps/stock/config/src/contracts/candidate-execution.ts) for exact fields.