Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
style(control-api): fix arrase->raze in remote-saga fencing comments
Diego Zacariascc0617934343
diff --git a/control-api/package-lock.json b/control-api/package-lock.jsonindex f95b80ddd..865f6235f 100644--- a/control-api/package-lock.json+++ b/control-api/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-api",- "version": "0.1.645",+ "version": "0.1.646","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-api",- "version": "0.1.645",+ "version": "0.1.646","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/grok-provider-attempt-contract": "file:../packages/grok-provider-attempt-contract",diff --git a/control-api/package.json b/control-api/package.jsonindex f86280923..5817feb3f 100644--- a/control-api/package.json+++ b/control-api/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-api",- "version": "0.1.645",+ "version": "0.1.646","description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets","main": "dist/main.js","engines": {diff --git a/control-api/src/routes/admin/remoteMcp.ts b/control-api/src/routes/admin/remoteMcp.tsindex b747f9a54..1a327c27b 100644--- a/control-api/src/routes/admin/remoteMcp.ts+++ b/control-api/src/routes/admin/remoteMcp.ts@@ -92,7 +92,7 @@ function isValidK8sName(name: string): boolean {/*** Fenced-delete preconditions from a just-created object, or undefined when the* apiserver response carried no complete identity. A rollback bound by- * uid+resourceVersion cannot arrase a homonymous object that a concurrent+ * uid+resourceVersion cannot raze a homonymous object that a concurrent* uninstall+reinstall recreated in the compensation window — the fenced pattern* the baked carril (`registry.ts`) and uninstall (`resources.ts`) already use.*/@@ -686,7 +686,7 @@ export function createAdminRemoteMcpRouter(// ── Saga step 1: create the client Secret (confidential only) ─────────// Fenced rollback (P1): capture the created objects' server identities so// every compensating delete is bound by uid+resourceVersion. A by-name- // delete would arrase a Secret/CR that a concurrent uninstall+reinstall of+ // delete would raze a Secret/CR that a concurrent uninstall+reinstall of// the same serverName recreated between the create and the rollback.let createdClientSecretSnapshot: SecretSnapshot | null = nulllet createdServerPreconditions: ResourcePreconditions | undefineddiff --git a/control-api/test/routes.adminRemoteMcp.test.ts b/control-api/test/routes.adminRemoteMcp.test.tsindex 91da04d0c..a73899fa7 100644--- a/control-api/test/routes.adminRemoteMcp.test.ts+++ b/control-api/test/routes.adminRemoteMcp.test.ts@@ -366,7 +366,7 @@ describe('POST /admin/mcp-servers/remote (install saga)', () => {expect(res.status).toBe(409)// The homonym belongs to the concurrent install: the fenced rollback's uid// precondition rejects the delete (409, swallowed best-effort), so the other- // tenant's credentials survive intact. A by-name rollback would arrase them.+ // tenant's credentials survive intact. A by-name rollback would raze them.const survivor = await gw.getSecret(secretName, NS)expect(survivor.metadata.uid).toBe(recreatedUid)})@@ -403,7 +403,7 @@ describe('POST /admin/mcp-servers/remote (install saga)', () => {expect(res.status).toBeGreaterThanOrEqual(400)// The recreated CR (a different uid) must survive: the fenced deleteResource- // precondition rejects the compensating delete instead of arrasing it.+ // precondition rejects the compensating delete instead of razing it.const survivor = (await gw.getResource('mcpservers', serverName, NS)) as {metadata: { uid: string }}