feat(research): isolate candidates and add reviewed paper promotion
This commit is contained in:
parent
26b97265c6
commit
25b5cbf481
128 changed files with 13038 additions and 1388 deletions
|
|
@ -263,8 +263,11 @@ export async function fixture(browser: Browser, native = false) {
|
|||
for (const name of [
|
||||
'09-backtest-run-contract.sql',
|
||||
'10-durable-backtest-dispatch.sql',
|
||||
'11-simulation-execution-ledger.sql',
|
||||
'12-historical-datasets.sql',
|
||||
'13-strategy-recovery.sql',
|
||||
'14-backtest-submission.sql',
|
||||
'15-canonical-paper-intents.sql',
|
||||
'16-strategy-catalog.sql',
|
||||
'17-research-retention.sql',
|
||||
'18-backtest-strategy-versions.sql',
|
||||
|
|
@ -278,6 +281,9 @@ export async function fixture(browser: Browser, native = false) {
|
|||
'26-cost-sensitivity.sql',
|
||||
'27-research-evidence-sources.sql',
|
||||
'28-research-agents.sql',
|
||||
'29-isolated-candidates.sql',
|
||||
'30-paper-deployments.sql',
|
||||
'31-research-agent-project-links.sql',
|
||||
]) {
|
||||
await pool.query(
|
||||
readFileSync(new URL(`../../database/postgres/init/${name}`, import.meta.url), 'utf8')
|
||||
|
|
@ -410,7 +416,7 @@ export async function fixture(browser: Browser, native = false) {
|
|||
origins: [],
|
||||
resolveResearchCredential: request => researchAgents.authenticate(request),
|
||||
});
|
||||
const routes = createRoutes(container, security);
|
||||
const routes = createRoutes(container, security, {});
|
||||
const wsRoute = createWebSocketRoute(container, security);
|
||||
const sockets = new Set<ServerWebSocket<RunSocketData>>();
|
||||
const unexpectedNetwork: string[] = [];
|
||||
|
|
@ -446,6 +452,7 @@ export async function fixture(browser: Browser, native = false) {
|
|||
!pathname.startsWith('/api/v2/research-agents') &&
|
||||
!pathname.startsWith('/api/v2/research-agent/') &&
|
||||
!pathname.startsWith('/api/v2/experiments') &&
|
||||
!pathname.startsWith('/api/v2/paper-deployments') &&
|
||||
!pathname.startsWith('/api/v2/hypotheses/') &&
|
||||
!pathname.startsWith('/api/v2/analysis-artifacts/') &&
|
||||
pathname !== '/api/auth/session') ||
|
||||
|
|
@ -507,6 +514,7 @@ export async function fixture(browser: Browser, native = false) {
|
|||
}
|
||||
});
|
||||
const origin = `http://127.0.0.1:${server.port}`;
|
||||
security.allowedOrigins.push(origin);
|
||||
const context = await browser.newContext({ viewport: { width: 1440, height: 1080 } });
|
||||
cleanup.push(() => context.close());
|
||||
await context.route('**/*', route => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue