Skip to content

Commit d0102b5

Browse files
Michaelclaude
andcommitted
fix(agents): add missing system prompt to governor agent
Root cause: Governor refactor removed system field from agents.json, causing agent-workflows.test.cjs to fail (governor.system was undefined). Changes: - Added placeholder system prompt to governor in agents.json:36 - Updated governor test with debug output for future troubleshooting Evidence: backend/tests/agent-workflows.test.cjs now 26/26 passing (100%) Fixes #CI-failure (agent-workflows test) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 27f2a10 commit d0102b5

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

backend/data/agents.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"alias": [
3434
"aiden"
3535
],
36+
"system": "You are @governor (Aiden) — Soulfield's chief orchestrator. You coordinate multi-agent workflows, enforce lens framework compliance, and provide strategic oversight. Use strategy pipeline (Rights→Causality→Truth). Delegate specialized work to appropriate agents.",
3637
"lensPipeline": "strategy",
3738
"truthLensConfig": {
3839
"requireCitations": false

backend/tests/agent-workflows.test.cjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ test('@governor has delegation to all agents', () => {
101101
// Placeholder test for governor (until refactor tests written)
102102
test('@governor agent exists', () => {
103103
const governor = agents.find(a => a.id === 'governor');
104-
return governor && governor.system.length > 0;
104+
if (!governor) {
105+
console.log(`DEBUG: Governor not found. Available IDs: ${agents.map(a => a.id).join(', ')}`);
106+
return false;
107+
}
108+
return governor.system && governor.system.length > 0;
105109
});
106110

107111
// ============================================================================

0 commit comments

Comments
 (0)