Files
gbrain/test
Paolo BelcastroandClaude Fable 5 f2e7a87910 test(find-trajectory): pin embedding dims — kill the shard-order 1280/1536 flake
engine-find-trajectory.test.ts hardcodes Float32Array(1536) vectors but let
initSchema size its vector columns from process-global gateway state
(getEmbeddingDimensions(), default 1280). Whether the file passed depended
on which test files ran before it in the shard: any predecessor leaving the
gateway configured without dims (or a bare CI env) yields vector(1280) and
every insert dies with 'expected 1280 dimensions, not 1536'. Adding test
files to the repo reshuffles the weight-packed shards, so unrelated PRs
trip it (seen on #2629/#2630 CI, test (5)).

Same fix + rationale as cosine-rescore-column.test.ts, which documents this
exact class: configureGateway(1536) in beforeAll, resetGateway in afterAll.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FQgByq4aqQq2PP8UHCdnfk
2026-07-06 14:11:16 +02:00
..