Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(hcc): make the egress fail-static retention proof non-vacuous (@claude closing nit)
Alfredo Lopezc824417f5220
diff --git a/host-context-controller/package-lock.json b/host-context-controller/package-lock.jsonindex 3fe048e88..7637e71fe 100644--- a/host-context-controller/package-lock.json+++ b/host-context-controller/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-host-context-controller",- "version": "0.1.225",+ "version": "0.1.226","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-host-context-controller",- "version": "0.1.225",+ "version": "0.1.226","license": "SEE LICENSE IN LICENSE","dependencies": {"@clerum/image-policy": "file:../packages/image-policy",diff --git a/host-context-controller/package.json b/host-context-controller/package.jsonindex e5807f1ab..29bd3ed7c 100644--- a/host-context-controller/package.json+++ b/host-context-controller/package.json@@ -1,6 +1,6 @@{"name": "clerum-host-context-controller",- "version": "0.1.225",+ "version": "0.1.226","description": "Host Context Controller - provides McpServer CRDs to mcp-host via REST API","main": "dist/main.js","engines": {diff --git a/host-context-controller/src/networkPolicyReconciler.egressFailStatic.test.ts b/host-context-controller/src/networkPolicyReconciler.egressFailStatic.test.tsindex e3b56340b..d8f543184 100644--- a/host-context-controller/src/networkPolicyReconciler.egressFailStatic.test.ts+++ b/host-context-controller/src/networkPolicyReconciler.egressFailStatic.test.ts@@ -181,11 +181,16 @@ describe('R1-B1 regression: DNS timeout must fail-static (freeze), not prune', (await vi.advanceTimersByTimeAsync(5_000)const result = await settled- // 4) Fail-static (D4/H1): the timeout is a TRANSIENT resolver failure — the- // reconcile must freeze and keep serving the accumulated /32, not fail and- // not revoke the policy.+ // 4) Fail-static (D4/H1): the timeout is a TRANSIENT resolver failure. The+ // load-bearing retention proof is that the reconcile RESOLVES and does NOT+ // delete the policy — pre-fix the misclassification prunes the lapsed set to+ // zero, so the reconcile REJECTS and DELETES the policy (both assertions flip+ // against the pre-fix tree). Freezing an already-correct policy is a no-op, so+ // it issues no create/replace here.expect(result.outcome).toBe('resolved')expect(mockApi.deleteNamespacedNetworkPolicy).not.toHaveBeenCalled()+ // Defensive: should a future freeze ever re-persist instead of no-op'ing, any+ // write it makes must still carry the accumulated /32 (never a pruned body).const writes = [...mockApi.createNamespacedNetworkPolicy.mock.calls,...mockApi.replaceNamespacedNetworkPolicy.mock.calls,