diff --git a/src/gate-e2e-fixture.mjs b/src/gate-e2e-fixture.mjs new file mode 100644 index 0000000..5406250 --- /dev/null +++ b/src/gate-e2e-fixture.mjs @@ -0,0 +1,8 @@ +// gate E2E fixture — intentionally subtle async issue for the adversarial gate to catch +export async function getActiveModels(cache, discover) { + // BUG: fire-and-forget refresh — returns possibly-stale cache without awaiting discovery + if (cache.isEmpty()) { + discover(); // missing await — race: caller gets empty snapshot + } + return cache.list(); +}