From 87fa8c4af66745bd30bc84b6c5ef657dd4dec002 Mon Sep 17 00:00:00 2001
From: soryu <soryu@soryu.co>
Date: Sun, 8 Feb 2026 19:50:20 +0000
Subject: Fix directive evaluation and add to frontend

---
 .../src/components/directives/DirectiveContractsTab.tsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

(limited to 'makima/frontend/src/components/directives/DirectiveContractsTab.tsx')

diff --git a/makima/frontend/src/components/directives/DirectiveContractsTab.tsx b/makima/frontend/src/components/directives/DirectiveContractsTab.tsx
index 59ebfc8..28da117 100644
--- a/makima/frontend/src/components/directives/DirectiveContractsTab.tsx
+++ b/makima/frontend/src/components/directives/DirectiveContractsTab.tsx
@@ -100,6 +100,23 @@ export function DirectiveContractsTab({
           label: step.name,
         });
       }
+      // Show monitoring/evaluation contracts
+      if (step.monitoringContractId) {
+        contracts.push({
+          summary: {
+            id: step.monitoringContractId,
+            name: `${step.name} - Evaluation`,
+            contractType: "monitoring",
+            status: step.status === "evaluating" ? "active" : "completed",
+            phase: "plan",
+            taskCount: 1,
+            tasksDone: step.status === "evaluating" ? 0 : 1,
+            tasksRunning: step.status === "evaluating" ? 1 : 0,
+            tasksFailed: 0,
+          },
+          label: `${step.name} eval`,
+        });
+      }
     }
   }
 
-- 
cgit v1.2.3

