Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
docs(hcc): document the intentional self-terminating post-terminal re-poll
Alfredo Lopezc49957bb8dbd
diff --git a/host-context-controller/package-lock.json b/host-context-controller/package-lock.jsonindex e5333af94..9a3aff834 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.159",+ "version": "0.1.160","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-host-context-controller",- "version": "0.1.159",+ "version": "0.1.160","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 221dc92d7..51dc2ded1 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.159",+ "version": "0.1.160","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/reconciler.ts b/host-context-controller/src/reconciler.tsindex 56f299e00..caba6be91 100644--- a/host-context-controller/src/reconciler.ts+++ b/host-context-controller/src/reconciler.ts@@ -1997,6 +1997,17 @@ ${authHeaderLines ? '\n # ── Credential auth headers (envsubst-resolv// readiness this is the normal path right after any Deployment write —// including a credential rotation — so the poll owns the terminal verdict// on the CRD.+ //+ // Post-terminal re-observation (intentional, self-terminating): after a+ // terminal RolloutIncomplete, the status write that recorded it fires a+ // MODIFIED watch → performReconcile → here again with !ready, arming ONE more+ // poll window. For a genuinely stuck deployment the terminal condition re-write+ // is byte-identical (the detail is a pure function of the replica tuple, no+ // timestamps), so writeStatusCondition's `unchanged` short-circuit skips the+ // patch → no watch event → no further re-arm. The only thing that re-arms again+ // is a deployment whose replica tuple perpetually OSCILLATES, and that is+ // bounded to one reconcile per poll window (~120s) — not a tight loop, and (per+ // pollReadiness's atomic check-then-set) not a timer leak.if (!ready) {this.pollReadiness(server)}