Skip to content

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

TypeScript

fix(hcc): address jozer review on fleet-withdrawal comments

Alfredo Lopez424eb80e747d
diff --git a/host-context-controller/package-lock.json b/host-context-controller/package-lock.json
index 3865e8d50..ef102e68e 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.269",
+ "version": "0.1.270",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-host-context-controller",
- "version": "0.1.269",
+ "version": "0.1.270",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@clerum/codex-catalog-projection": "file:../packages/codex-catalog-projection",
diff --git a/host-context-controller/package.json b/host-context-controller/package.json
index e5d1272aa..a6cf92842 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.269",
+ "version": "0.1.270",
"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/hostReconciler.ts b/host-context-controller/src/hostReconciler.ts
index b66197629..4eb196e8b 100644
--- a/host-context-controller/src/hostReconciler.ts
+++ b/host-context-controller/src/hostReconciler.ts
@@ -4678,14 +4678,9 @@ export class HostReconciler {
await this.reconcile(host, source)
} catch (error) {
if (isBenignSupersessionError(error)) {
- // Per-host reconcile() already recorded outcome=superseded and
- // rethrew. Withdraw from this fleet pass so HostFleetReconcileError,
- // host_fleet_requests_total{failed}, and the lifecycle retry stay
- // reserved for genuine host failures. Match by error.name — the
- // classes are unexported and statelessLifecycleExecutor synthesizes
- // name-equivalent plain Errors.
+ // Watch-race withdrawal is not a host failure.
hostFleetBenignSupersessionsTotal.inc({ error: error.name })
- hccLogger.warn('Fleet Host reconcile withdrawn as benign supersession', {
+ log.warn('Fleet Host reconcile withdrawn as benign supersession', {
err: error,
errorName: error.name,
})
diff --git a/host-context-controller/src/metrics.ts b/host-context-controller/src/metrics.ts
index 4f93c09ab..fb2ca5f01 100644
--- a/host-context-controller/src/metrics.ts
+++ b/host-context-controller/src/metrics.ts
@@ -279,17 +279,14 @@ export const hostFleetRequestsTotal = counter({
labelNames: ['result'] as const,
})
-// #490: fleet-lane withdrawal of the four benign supersession names. Closed
-// `error` set — never a Host name. Distinct from host_fleet_requests_total
-// {failed} and from host_delete_cleanup_total{superseded}.
+// Closed `error` names; never a Host name.
export const hostFleetBenignSupersessionsTotal = counter({
name: 'clerum_hcc_host_fleet_benign_supersessions_total',
help: 'Host fleet workers withdrawn because a name-equivalent benign supersession retired the pass.',
labelNames: ['error'] as const,
})
-// Maestro P-4: measure catch-path lifecycle decisions when a
-// CommunicationChannel generation is in flight. Do not treat rates as a claim.
+// Closed `decision` set: applied | retry.
export const hostFleetLifecycleCatchTotal = counter({
name: 'clerum_hcc_host_fleet_lifecycle_catch_total',
help: 'Host fleet catch-path decisions while a CommunicationChannel lifecycle generation is in flight (applied when hostFailures is empty, retry otherwise).',
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.json
index 79c2c67d1..39de989fe 100644
--- a/mcp-host/package-lock.json
+++ b/mcp-host/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.303",
+ "version": "0.1.304",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-mcp-host",
- "version": "0.1.303",
+ "version": "0.1.304",
"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 5384b9af6..84c36a4dd 100644
--- a/mcp-host/package.json
+++ b/mcp-host/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.303",
+ "version": "0.1.304",
"description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude",
"main": "dist/main.js",
"engines": {