feat(research): run durable chronological validation and retain reports

This commit is contained in:
Boki 2026-10-24 12:03:41 -04:00
parent 67ab30cb7a
commit abd1c5b83d
42 changed files with 5345 additions and 74 deletions

View file

@ -64,7 +64,9 @@ async function fixture(poolMax = 4, withExperiments = true) {
'18-backtest-strategy-versions.sql',
'19-canonical-research.sql',
'21-run-reproduction.sql',
...(withExperiments ? ['22-experiments.sql', '23-experiment-retries.sql'] : []),
...(withExperiments
? ['22-experiments.sql', '23-experiment-retries.sql', '24-chronological-validation.sql']
: []),
]) {
await pool.query(
readFileSync(new URL(`../../database/postgres/init/${name}`, import.meta.url), 'utf8')
@ -709,6 +711,12 @@ describe.skipIf(!url)('retained-input experiments', () => {
'utf8'
)
);
await f.pool.query(
readFileSync(
new URL('../../database/postgres/init/24-chronological-validation.sql', import.meta.url),
'utf8'
)
);
const input = { backtestId: f.draft.id, name: 'After upgrade', grid: {} };
const preview = await f.experiments.preview(input);
expect(