T-210: M2.3s — Implement MarketDataStore.macroAsOf, crossSection, QuestDB fx('1m'), and copilot 1m routing

This commit is contained in:
Studio 2026-12-04 15:12:03 -05:00
parent 0c33d8ae19
commit c60365237f

View file

@ -3566,11 +3566,17 @@ describe('MCP analyze_signal tool — fundamentals source', () => {
expect(directStudy.status).toBe('ok');
if (payload.status === 'ok' && directStudy.status === 'ok') {
const expectedHash = canonicalExpressionHash({
...expectedExpr,
sampleStart: payload.trial.sampleStart,
sampleEnd: payload.trial.sampleEnd,
});
expect(payload.analysis.rankIc).toEqual(directStudy.analysis.rankIc);
expect(payload.trial.expressionHash).toBe(canonicalExpressionHash(expectedExpr));
expect(payload.trial.expressionHash).toBe(expectedHash);
expect(payload.trial.expressionHash).toBe(directStudy.trial.expressionHash);
expect(fakeLedger.rows).toHaveLength(1);
expect(fakeLedger.rows[0]?.stage).toBe('signal_ic');
expect(fakeLedger.rows[0]?.expression_hash).toBe(expectedHash);
}
expect(fakeLedger.rows).toHaveLength(1);
expect(fakeLedger.rows[0]?.stage).toBe('signal_ic');
expect(fakeLedger.rows[0]?.expression_hash).toBe(canonicalExpressionHash(expectedExpr));
});
});