Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(wrc): skip Codex context bind until the recipe has a uid
Alfredo Lopezdf849f7bfe98
diff --git a/workflow-recipes/package-lock.json b/workflow-recipes/package-lock.jsonindex 3fce4e638..f319c2bea 100644--- a/workflow-recipes/package-lock.json+++ b/workflow-recipes/package-lock.json@@ -1,12 +1,12 @@{"name": "workload-recipes-controller",- "version": "0.1.316",+ "version": "0.1.317","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "workload-recipes-controller",- "version": "0.1.316",+ "version": "0.1.317","license": "SEE LICENSE IN LICENSE","dependencies": {"@aws-sdk/client-s3": "^3.1009.0",diff --git a/workflow-recipes/package.json b/workflow-recipes/package.jsonindex f6165bc91..a5efeb470 100644--- a/workflow-recipes/package.json+++ b/workflow-recipes/package.json@@ -1,6 +1,6 @@{"name": "workload-recipes-controller",- "version": "0.1.316",+ "version": "0.1.317","description": "Workload Recipes Controller (WRC) - WorkloadRecipe lifecycle management and MCP server interface","main": "dist/main.js","engines": {diff --git a/workflow-recipes/src/reconciler/workflowRecipeReconciler.ts b/workflow-recipes/src/reconciler/workflowRecipeReconciler.tsindex 7a03f2770..32682cfe8 100644--- a/workflow-recipes/src/reconciler/workflowRecipeReconciler.ts+++ b/workflow-recipes/src/reconciler/workflowRecipeReconciler.ts@@ -1045,12 +1045,16 @@ export class WorkflowRecipeReconciler {// Codex spec: the runtime-scope parent's annotation when inherited, the// recipe's own annotation when standalone. Missing/unreadable annotations// resolve to the fail-closed `unassigned` sentinel inside the reader.+ const recipeUid = recipe.metadata.uid?.trim()+ // No Kubernetes uid yet → skip bind. Miss stays fail-closed `unassigned`;+ // never key the Map by recipe name.+ if (!recipeUid) returnconst grantAnnotations =runtimeScopeRecipeName !== recipe.metadata.name? parent.annotations: recipe.metadata.annotationssetter.call(this.workflowReconciler, {- recipeUid: recipe.metadata.uid,+ recipeUid,recipeName: recipe.metadata.name,runtimeScopeRecipeName,claimedParent: this.claimedCodexParent(recipe),