test(evals): mutate readonly context only through fixture setup

Keep the exhausted-budget negative while respecting the readonly public context type. No production observer or grader changes.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-11-02 20:58:49 -06:00
1 parent bd4dc1f10b
commit 12e6def200
1 file changed
+1 -1
@@ -60,7 +60,7 @@ it("rejects invented inspection receipts and keeps other skill cases on their or
expect(integratorSkillsCases.find(x=>x.scenarioId==="skills.explicit-restriction")!.oracleVersion).toBe("paperclip.chat-catalog.integrator.v1");
});
it("cannot extend an exhausted original case budget to inspect a finished artifact",async()=>{
const f=fixture();f.ctx.observationDeadlineAt=Date.now()-1;
const f=fixture();Object.assign(f.ctx,{observationDeadlineAt:Date.now()-1});
await expect(inspectAuthoredSkill(f.ctx,f.state,f.o)).rejects.toThrow("budget");expect(f.events).toEqual([]);
});