Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
test(relay): prove unlink deletes live journal files [H18]
Corey Olson580a7be3b4f0
diff --git a/test/relay-retention.test.js b/test/relay-retention.test.jsindex 00bbee88..239c52b5 100644--- a/test/relay-retention.test.js+++ b/test/relay-retention.test.js@@ -137,8 +137,16 @@ test('[H18] explicit unlink removes managed backups immediately and a durable crconst box = await fixture(t);const saved = box.retention.backup();assert.equal(saved.written.length, 2);- const removed = await box.call(A, { method: 'DELETE', path: '' });- assert.equal(removed.status, 200);+ const journalFile = join(box.data, readdirSync(box.data).find((name) => name.startsWith(A) && name.endsWith('.sqlite')));+ const journalFiles = ['', '-wal', '-shm'].map((suffix) => journalFile + suffix);+ const liveJournal = new DatabaseSync(journalFile);+ try {+ liveJournal.prepare('SELECT sequence FROM journal_head').get();+ for (const file of journalFiles) assert.ok(existsSync(file), 'the fixture has a database and live WAL/SHM before unlink');+ const removed = await box.call(A, { method: 'DELETE', path: '' });+ assert.equal(removed.status, 200);+ for (const file of journalFiles) assert.equal(existsSync(file), false, 'unlink removes the database and its live journal files');+ } finally { liveJournal.close(); }assert.equal(readdirSync(box.backups).some((name) => name.startsWith(A)), false);assert.equal(readdirSync(box.backups).some((name) => name.startsWith(B)), true);// Model a process crash after committing revocation but before deleting any files.