MCPcopy Create free account
hub / github.com/SethGammon/Citadel / statusForDecision

Function statusForDecision

scripts/operator-console.js:61–68  ·  view source on GitHub ↗
(decision)

Source from the content-addressed store, hash-verified

59}
60
61function statusForDecision(decision) {
62 if (decision.outcome === 'idle') return 'idle';
63 if (decision.outcome === 'repair-available') return 'repair-ready';
64 if (decision.outcome === 'needs-human') return 'approval-needed';
65 if (decision.outcome === 'failed') return 'failed';
66 if (decision.outcome === 'max-steps-reached') return 'needs-review';
67 return decision.outcome || 'unknown';
68}
69
70function summarizeDashboard(snapshot) {
71 const campaigns = snapshot.campaigns || [];

Callers 1

buildConsoleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected