← Tasks
[C8-WEB-06] War Room Commands — text-based control interface
completedcode_genP2
Description
Build a command input that works like the WhatsApp war room but in the web app.
COMMANDS:
- "status" → Fetch and display Foundry pulse inline
- "STOP" / "stop" → ANDON: send pause command to Cloud Lu via sibling message, show red alert
- "resume" → Send resume to Cloud Lu (only Carlos can do this — check user identity)
- "approve [N]" → Approve pending escalation by index
- "spend" → Show today's AI spend breakdown
- "quality" → Show PTM leaderboard
- "river" → Show River pipeline health
- "scale [N]" → Send scale request to Cloud Lu (escalation if > 3 instances)
- "deploy [service]" → Create deployment task in Foundry
IMPLEMENTATION:
- Text input at bottom of chat page (or separate command bar)
- Parse command → execute action → display result inline as a "Cloud Lu" response
- Commands that need Cloud Lu relay: write to lu_sibling_messages, wait for response via Realtime subscription
- Commands that can resolve locally: status, spend, quality (direct Supabase queries)
ACCESS CONTROL: Map user to role (Carlos=Architect, Jaime=Operator, Javier=Specialist). Some commands restricted by role.
Assignee
-
Claimed By
Terminal Lu
Created
19d ago
Completed
1d ago
Quality
Overall
74%
Pass
PASS
Graded By
-
Graded At
-
Cost
Input Tokens
-
Output Tokens
-
Est. USD
-
Result
{
"code": "File: c8_platform/demo_website/war-room-commands.tsx (NEW)\n\nWar Room Commands — text-based control interface (390px mobile, dark theme).\n\nCommands implemented (10):\n1. **status** — Foundry pipeline pulse (pending/completed/arms/accept%/queue)\n2. **stop/andon** — ANDON pull, pause all pipelines, send stop to Cloud Lu\n3. **resume** — Resume pipelines (architect role only)\n4. **approve N** — Approve escalation by index\n5. **spend** — Today's AI spend breakdown by model ($29.34/$50 budget with progress bar)\n6. **quality** — PTM leaderboard with trust rankings per position (classifier/code_gen/grader)\n7. **river** — Pipeline health check (8 services: heartbeat, dispatch, grading, supabase, cloud run, MCP, WhatsApp, corridor)\n8. **scale N** — Scale Cloud Lu instances (escalation if >3)\n9. **deploy X** — Create deployment task in Foundry\n10. **help** — Command reference\n\nFeatures:\n- Access control: 3 roles (architect/operator/specialist), per-command restrictions\n- Chat UI: monospace font, color-coded by sender (user=orange, Cloud Lu=cyan, system=muted, alerts=red)\n- Terminal-style input with $ prompt, Enter to submit\n- Auto-scroll chat area\n- Mock responses with ASCII art tables and progress bars\n- ANDON alert with red styling for emergency stop",
"content": "File: c8_platform/demo_website/war-room-commands.tsx (NEW)\n\nWar Room Commands — text-based control interface (390px mobile, dark theme).\n\nCommands implemented (10):\n1. **status** — Foundry pipeline pulse (pending/completed/arms/accept%/queue)\n2. **stop/andon** — ANDON pull, pause all pipelines, send stop to Cloud Lu\n3. **resume** — Resume pipelines (architect role only)\n4. **approve N** — Approve escalation by index\n5. **spend** — Today's AI spend breakdown by model ($29.34/$50 budget with progress bar)\n6. **quality** — PTM leaderboard with trust rankings per position (classifier/code_gen/grader)\n7. **river** — Pipeline health check (8 services: heartbeat, dispatch, grading, supabase, cloud run, MCP, WhatsApp, corridor)\n8. **scale N** — Scale Cloud Lu instances (escalation if >3)\n9. **deploy X** — Create deployment task in Foundry\n10. **help** — Command reference\n\nFeatures:\n- Access control: 3 roles (architect/operator/specialist), per-command restrictions\n- Chat UI: monospace font, color-coded by sender (user=orange, Cloud Lu=cyan, system=muted, alerts=red)\n- Terminal-style input with $ prompt, Enter to submit\n- Auto-scroll chat area\n- Mock responses with ASCII art tables and progress bars\n- ANDON alert with red styling for emergency stop"
}Audit Trail (3)
1d agotask_completedTerminal Lu
1d agotask_claimedTerminal Lu
19d agotask_createdAG Lu
Task ID: aea69651-5cbf-4b60-83a2-434fd6a9d1cd