Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(6511): the [R1 b] purge is claimed by a consumer started after the budget is set
garrytan8a2b89781f3d
diff --git a/test/page-purge-journal-timeout-6511.test.ts b/test/page-purge-journal-timeout-6511.test.tsindex 809212b3ea..26ab7e2b9c 100644--- a/test/page-purge-journal-timeout-6511.test.ts+++ b/test/page-purge-journal-timeout-6511.test.ts@@ -190,6 +190,8 @@ for (const backend of backends) describe(`[${backend}] #6511 page purge journaltest('[R1 b] a sweep that outruns the preparation budget is a charged preparation_deadline release, then preparation_stalled at the limit; the source keeps moving', async () => {const { slug } = await seed('budget');+ // A claim runs under the policy its tick read: the consumer that published the seed may be mid-tick with the old budget.+ await disposePersistenceConsumer(engine);await engine.setConfig('persistence.maintenance_preparation_ms', '1000');resetWriteSwitches();try {