Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
docs(storage): correct durability, test coverage and onExit wording
Alfredo Lopez9c96a1d48671
diff --git a/docs/architecture/host-storage-layout.md b/docs/architecture/host-storage-layout.mdindex 8d33b2138..d5eecd7ca 100644--- a/docs/architecture/host-storage-layout.md+++ b/docs/architecture/host-storage-layout.md@@ -4,7 +4,10 @@ Every Host keeps its files and its conversation database on one workspacePVC, in the same place, whatever its lifecycle. Switching a Host betweenstateful and stateless changes how its Pod runs (replicas, priority class,probes, `CLERUM_STATELESS_LIFECYCLE`); it never changes where data lives-(#825).+(#825). Through `CLERUM_STATELESS_LIFECYCLE` it also changes SQLite+durability, as before #825: a stateless Host always writes with+`PRAGMA synchronous = FULL`, a stateful one only with+`CLERUM_DB_BARRIER_MODE=full` (`mcp-host/src/main.ts`).## Layout@@ -171,8 +174,9 @@ forced by a deploy.- Unit: `host-context-controller/test/statelessDeployment.workspaceLayoutMerge.test.ts`runs the script under `sh` on real trees, including an uncheckpointed WAL,- each refusal, re-runs after an interrupted merge and a round trip through- the previous init (`test/__fixtures__/base-workspace-layout-init.sh`).+ at least one case of each refusal family (F1–F4), re-runs after an+ interrupted merge and a round trip through the previous init+ (`test/__fixtures__/base-workspace-layout-init.sh`).- Live: `make test-e2e-hcc-storage-layout-switch`(`scripts/e2e/e2e-hcc-storage-layout-switch.sh`) on an owned branch profile.- Desktop: `make test-e2e-825-desktop-continuity`diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.jsonindex 2c4557074..8e131b7f2 100644--- a/mcp-host/package-lock.json+++ b/mcp-host/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-mcp-host",- "version": "0.1.561",+ "version": "0.1.562","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-mcp-host",- "version": "0.1.561",+ "version": "0.1.562","license": "SEE LICENSE IN LICENSE","dependencies": {"@anthropic-ai/sdk": "^0.32.0",diff --git a/mcp-host/package.json b/mcp-host/package.jsonindex cd50b32bf..0226dcd6d 100644--- a/mcp-host/package.json+++ b/mcp-host/package.json@@ -1,6 +1,6 @@{"name": "clerum-mcp-host",- "version": "0.1.561",+ "version": "0.1.562","description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude","main": "dist/main.js","engines": {diff --git a/mcp-host/src/core/conversation/persistence/persistQueue.ts b/mcp-host/src/core/conversation/persistence/persistQueue.tsindex 9aa255f1b..754311c84 100644--- a/mcp-host/src/core/conversation/persistence/persistQueue.ts+++ b/mcp-host/src/core/conversation/persistence/persistQueue.ts@@ -41,7 +41,10 @@ export interface PersistQueueOptions {onHeartbeat?: (payload: HeartbeatPayload) => void/** Called on transport-level errors (worker crashed, message channel broke). */onTransportError?: (err: Error) => void- /** Called when the worker exits. Drives reconnect/degraded handling in main. */+ /**+ * Called when the worker exits, for logging. An exit before the `shutdown`+ * ACK is also reported through `onFailure`, which ends the process.+ */onExit?: (code: number) => void/*** Called once, with the first failure that makes the queue unusable: an