Stage 7 (partial, stopping point): persistent quarantine store in lumen-user v2 (additive migration, B-6 safe), quarantine no-loop skip in pullCandidate before any file fetch; verifier/pull wiring compiles clean, 275 tests green. Quarantine round-trip tests pending.
Some checks failed
ci / check (push) Has been cancelled

This commit is contained in:
Lumen Stage1 2026-09-30 14:59:39 -05:00
commit 48685b3cc8
5 changed files with 169 additions and 9 deletions

View file

@ -154,7 +154,8 @@ describe("Stage 9 pull and verifier boundary", () => {
supportedSchemaRange: [1],
},
);
expect(result?.result.ok).toBe(true);
if (!result || "skipped" in result) throw new Error("expected candidate");
expect(result.result.ok).toBe(true);
expect(calls[0]).toMatch(/latest\.json$/);
expect(calls[1]).toMatch(/manifest\.json$/);
expect(calls[2]).toMatch(/signature\.json$/);
@ -187,7 +188,8 @@ describe("Stage 9 pull and verifier boundary", () => {
supportedSchemaRange: [1],
},
);
expect(result?.result).toMatchObject({ ok: false, code: "signature_mismatch" });
if (!result || "skipped" in result) throw new Error("expected candidate");
expect(result.result).toMatchObject({ ok: false, code: "signature_mismatch" });
expect(calls).toHaveLength(3);
expect(calls.some((url) => /emergency|schedule|map|info|assets\.json/.test(url))).toBe(false);
});