Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(gfs): prove missing writer database through atomic creation

Alfredo Lopezbea261a89319
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.json
index 5e766e243..abfaeaddd 100644
--- a/mcp-host/package-lock.json
+++ b/mcp-host/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.495",
+ "version": "0.1.496",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-mcp-host",
- "version": "0.1.495",
+ "version": "0.1.496",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@anthropic-ai/sdk": "^0.32.0",
diff --git a/mcp-host/package.json b/mcp-host/package.json
index 17741ccc8..4c3a21aba 100644
--- a/mcp-host/package.json
+++ b/mcp-host/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.495",
+ "version": "0.1.496",
"description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude",
"main": "dist/main.js",
"engines": {
diff --git a/mcp-host/src/internalTools/gfsDownloadStoreRecovery.test.ts b/mcp-host/src/internalTools/gfsDownloadStoreRecovery.test.ts
index cf13f3cfa..843350d69 100644
--- a/mcp-host/src/internalTools/gfsDownloadStoreRecovery.test.ts
+++ b/mcp-host/src/internalTools/gfsDownloadStoreRecovery.test.ts
@@ -445,7 +445,8 @@ describe('GFS writer recovery and filesystem invariants', () => {
const databasePath = path.join(root, '.gfs-download-store', 'writer-v2.sqlite')
await fs.rename(databasePath, `${databasePath}.old`)
await expect(freshStore().initialize()).rejects.toMatchObject({ code: 'workspace_unavailable' })
- await expect(fs.stat(databasePath)).rejects.toMatchObject({ code: 'ENOENT' })
+ // Exclusive creation proves initialization left the target absent in the
+ // same atomic operation. An unexpected second inode fails with EEXIST.
let replacementDatabase: FileHandle | undefined
try {
replacementDatabase = await fs.open(databasePath, 'wx', 0o600)