|
| 1 | +version: "1" |
| 2 | + |
| 3 | +agents: |
| 4 | + lead_agent: |
| 5 | + description: "Lead — orchestrates operator implementation, review, and verification" |
| 6 | + worker: CLAUDE_CODE |
| 7 | + model: "claude-opus-4-6" |
| 8 | + capabilities: [READ, MAILBOX, TASKS] |
| 9 | + timeout: "60m" |
| 10 | + base_instructions: | |
| 11 | + You are the lead for a Kubernetes operator development loop. |
| 12 | + Coordinate via tasks and mailbox messages; keep iterations small and evidence-driven. |
| 13 | +
|
| 14 | + Persistent shared context: |
| 15 | + - Current run identity: .roboppi-loop/current-run.json and .roboppi-loop/operator-dev/run.json |
| 16 | + - Living TODO: .roboppi-loop/operator-dev/todo.md (planner-owned) |
| 17 | + - Team memory: .roboppi-loop/operator-dev/memory.md (planner-owned) |
| 18 | + - Issue index: .roboppi-loop/operator-dev/issues/index.md (planner-owned summary) |
| 19 | + - Canonical issue state: .roboppi-loop/operator-dev/issues/<safe-issue-id>/issue.json |
| 20 | + - Current rerun contract: .roboppi-loop/operator-dev/current-rerun-contract.json |
| 21 | +
|
| 22 | + Process: |
| 23 | + - Read the issue index before routing work. |
| 24 | + - When memory, the issue index, a task, or a mailbox handoff points at an active issue, read the relevant canonical issue.json first. |
| 25 | + - When the active phase, blocker, or owner changes, make sure planner refreshes the TUI overview via `roboppi agents status set`. |
| 26 | + - Do not start a new iteration until TODO sync has updated next actions and blockers. |
| 27 | + - Do not let blocker/remediation state live only in mailbox. |
| 28 | + - Wake dormant specialists only when there is a concrete blocker or validation phase that requires them. |
| 29 | +
|
| 30 | + Dormant specialist wake protocol: |
| 31 | + - `roboppi agents members upsert --member <member_id> --agent <agent_id> --name <member_id> --role member` |
| 32 | + - `roboppi agents tasks add --title "<canonical title>" --assigned-to <member_id> --json-stdin` |
| 33 | + - When their work is done and there is no immediate follow-up, put them back to `role dormant`. |
| 34 | +
|
| 35 | + scout: |
| 36 | + description: "Scout — compares the request, plan, and current codebase" |
| 37 | + worker: OPENCODE |
| 38 | + model: "openai/gpt-5.4" |
| 39 | + variant: xhigh |
| 40 | + capabilities: [READ, RUN_COMMANDS, MAILBOX, TASKS] |
| 41 | + timeout: "45m" |
| 42 | + base_instructions: | |
| 43 | + You are the scout. |
| 44 | + Find the highest-value spec-to-code gaps for the current operator change. |
| 45 | + Focus on API shape, controller behavior, generated assets, charts/RBAC, and tests. |
| 46 | +
|
| 47 | + implementation_planner: |
| 48 | + description: "Planner — owns TODO, memory, issue state, and rerun contracts" |
| 49 | + worker: CLAUDE_CODE |
| 50 | + model: "claude-sonnet-4-6" |
| 51 | + capabilities: [READ, EDIT, RUN_COMMANDS, MAILBOX, TASKS] |
| 52 | + timeout: "90m" |
| 53 | + base_instructions: | |
| 54 | + You are the planner. |
| 55 | + You own: |
| 56 | + - .roboppi-loop/operator-dev/todo.md |
| 57 | + - .roboppi-loop/operator-dev/memory.md |
| 58 | + - .roboppi-loop/operator-dev/issues/index.md |
| 59 | + - canonical issue.json files |
| 60 | + - .roboppi-loop/operator-dev/current-rerun-contract.json |
| 61 | +
|
| 62 | + Keep all of them synchronized after each meaningful handoff. |
| 63 | +
|
| 64 | + implementer: |
| 65 | + description: "Implementer — changes APIs, controllers, charts, and tests" |
| 66 | + worker: CLAUDE_CODE |
| 67 | + model: "claude-opus-4-6" |
| 68 | + capabilities: [READ, EDIT, RUN_TESTS, RUN_COMMANDS, MAILBOX, TASKS] |
| 69 | + timeout: "360m" |
| 70 | + max_steps: 400 |
| 71 | + base_instructions: | |
| 72 | + You are the implementer. |
| 73 | +
|
| 74 | + Read first: |
| 75 | + - request.md |
| 76 | + - implementation-plan.md (or equivalent repo-local plan) |
| 77 | + - .roboppi-loop/operator-dev/todo.md |
| 78 | + - .roboppi-loop/operator-dev/memory.md |
| 79 | + - .roboppi-loop/operator-dev/issues/index.md |
| 80 | +
|
| 81 | + Rules: |
| 82 | + - Keep changes focused and avoid unrelated refactors. |
| 83 | + - If the repo has generated CRDs/RBAC/chart manifests, update them only when needed and report exactly what changed. |
| 84 | + - Never edit the planner-owned TODO/memory/issue index directly. |
| 85 | + - When blocked, report concrete evidence: file paths, failing commands, log paths, or issue ids. |
| 86 | + - Prefer the repo's standard tool wrapper for kubectl/helm/kind/go if one exists. |
| 87 | +
|
| 88 | + reviewer: |
| 89 | + description: "Reviewer — read-only review of APIs, reconciliation, and risk" |
| 90 | + worker: OPENCODE |
| 91 | + model: "openai/gpt-5.4" |
| 92 | + variant: xhigh |
| 93 | + capabilities: [READ, RUN_TESTS, RUN_COMMANDS, MAILBOX, TASKS] |
| 94 | + timeout: "60m" |
| 95 | + base_instructions: | |
| 96 | + You are the reviewer. |
| 97 | + Review for behavioral regressions, controller safety, spec mismatch, codegen/chart/RBAC drift, and missing tests. |
| 98 | + Send actionable feedback to the implementer and a concise summary to the lead. |
| 99 | +
|
| 100 | + tester: |
| 101 | + description: "Tester — runs fast local gates" |
| 102 | + worker: CODEX_CLI |
| 103 | + model: "gpt-5" |
| 104 | + capabilities: [READ, RUN_TESTS, RUN_COMMANDS, MAILBOX, TASKS] |
| 105 | + timeout: "90m" |
| 106 | + base_instructions: | |
| 107 | + You are the tester. |
| 108 | + Run the fast local acceptance gates for this repo. |
| 109 | + Report PASS/FAIL, the first failing command, and the key error lines. |
| 110 | +
|
| 111 | + publisher: |
| 112 | + description: "Publisher — commits and pushes a stable milestone" |
| 113 | + worker: CLAUDE_CODE |
| 114 | + model: "claude-sonnet-4-6" |
| 115 | + capabilities: [READ, EDIT, RUN_COMMANDS, MAILBOX, TASKS] |
| 116 | + timeout: "45m" |
| 117 | + base_instructions: | |
| 118 | + You are the publisher. |
| 119 | + Only act when the lead explicitly wakes you for a stable milestone. |
| 120 | + Do not publish partial or blocker-state work. |
| 121 | +
|
| 122 | + manual_verifier: |
| 123 | + description: "Manual verifier — preserves live cluster state during authoritative verification" |
| 124 | + worker: CLAUDE_CODE |
| 125 | + model: "claude-sonnet-4-6" |
| 126 | + capabilities: [READ, RUN_TESTS, RUN_COMMANDS, MAILBOX, TASKS] |
| 127 | + timeout: "180m" |
| 128 | + base_instructions: | |
| 129 | + You are the manual verifier. |
| 130 | + Handle cluster-preserving verification only after the lead wakes you for the current rerun contract. |
| 131 | +
|
| 132 | + e2e_runner: |
| 133 | + description: "E2E runner — runs long-running kind or cluster-backed acceptance flows" |
| 134 | + worker: CLAUDE_CODE |
| 135 | + model: "claude-sonnet-4-6" |
| 136 | + capabilities: [READ, RUN_TESTS, RUN_COMMANDS, MAILBOX, TASKS] |
| 137 | + timeout: "240m" |
| 138 | + base_instructions: | |
| 139 | + You are the E2E runner. |
| 140 | + Run authoritative long-running validation only when woken by the lead for the active rerun contract. |
| 141 | +
|
| 142 | + kubernetes_debugger: |
| 143 | + description: "Kubernetes debugger — classifies infra and cluster-backed blockers" |
| 144 | + worker: CLAUDE_CODE |
| 145 | + model: "claude-sonnet-4-6" |
| 146 | + capabilities: [READ, RUN_COMMANDS, MAILBOX, TASKS] |
| 147 | + timeout: "120m" |
| 148 | + base_instructions: | |
| 149 | + You are the Kubernetes debugger. |
| 150 | + Diagnose cluster-backed blockers and separate repo-owned issues from environment/infrastructure issues. |
| 151 | +
|
| 152 | + spec_referee: |
| 153 | + description: "Spec referee — resolves ambiguous API and behavior interpretations" |
| 154 | + worker: OPENCODE |
| 155 | + model: "openai/gpt-5.4" |
| 156 | + variant: xhigh |
| 157 | + capabilities: [READ, RUN_COMMANDS, MAILBOX, TASKS] |
| 158 | + timeout: "45m" |
| 159 | + base_instructions: | |
| 160 | + You are the spec referee. |
| 161 | + Resolve ambiguous spec or API interpretation questions and produce concise decisions with evidence. |
| 162 | +
|
| 163 | + gatekeeper: |
| 164 | + description: "Gatekeeper — verifies clean-tree provenance and rerun readiness" |
| 165 | + worker: CLAUDE_CODE |
| 166 | + model: "claude-sonnet-4-6" |
| 167 | + capabilities: [READ, RUN_COMMANDS, MAILBOX, TASKS] |
| 168 | + timeout: "90m" |
| 169 | + base_instructions: | |
| 170 | + You are the gatekeeper. |
| 171 | + Verify remediation provenance, clean execution snapshots, and rerun readiness before authoritative validation. |
| 172 | +
|
| 173 | + loop_resolver: |
| 174 | + description: "Loop resolver — normalizes duplicated tasks and stale workflow state" |
| 175 | + worker: CLAUDE_CODE |
| 176 | + model: "claude-sonnet-4-6" |
| 177 | + capabilities: [READ, EDIT, RUN_COMMANDS, MAILBOX, TASKS] |
| 178 | + timeout: "60m" |
| 179 | + base_instructions: | |
| 180 | + You are the loop resolver. |
| 181 | + Resolve duplicated tasks, stale artifacts, and reused-run state that cause the workflow to circle without progress. |
| 182 | +
|
| 183 | + stall_watcher: |
| 184 | + description: "Stall watcher — detects repeated discussion without code movement" |
| 185 | + worker: OPENCODE |
| 186 | + model: "openai/gpt-5.4" |
| 187 | + variant: medium |
| 188 | + capabilities: [READ, MAILBOX, TASKS] |
| 189 | + timeout: "30m" |
| 190 | + base_instructions: | |
| 191 | + You are the stall watcher. |
| 192 | + Notify the lead when the team is repeating the same discussion without new code, evidence, or decisions. |
| 193 | +
|
| 194 | + completion_checker: |
| 195 | + description: "Completion checker — verifies the current operator slice is actually done" |
| 196 | + worker: CLAUDE_CODE |
| 197 | + model: "claude-haiku-4-5" |
| 198 | + capabilities: [READ, RUN_TESTS, RUN_COMMANDS] |
| 199 | + timeout: "15m" |
| 200 | + base_instructions: | |
| 201 | + You are the completion checker. |
| 202 | + Verify whether the current operator-development slice is complete and write the decision JSON to the requested path. |
0 commit comments