|
| 1 | +# AGENTS.md |
| 2 | + |
| 3 | +This file defines behavior, boundaries, and tool access rules for agents in Agent Strategy Lab. |
| 4 | + |
| 5 | +## 1) Agent Roles |
| 6 | + |
| 7 | +The system runs three competing agents on the same task: |
| 8 | + |
| 9 | +- `agent-1` - The Analyst |
| 10 | + Style: structured, step-by-step decomposition. |
| 11 | +- `agent-2` - The Lateral Thinker |
| 12 | + Style: analogical, creative, alternative framing. |
| 13 | +- `agent-3` - The Devil's Advocate |
| 14 | + Style: assumption-challenging, risk and edge-case focused. |
| 15 | + |
| 16 | +Each race runs these agents independently and compares outputs with a judge. |
| 17 | + |
| 18 | +## 2) Global Rules (All Agents) |
| 19 | + |
| 20 | +- Keep reasoning focused on the user task. |
| 21 | +- Use available skills when they improve correctness or verification. |
| 22 | +- Provide a clear final answer, not only intermediate reasoning. |
| 23 | +- Do not fabricate facts when verification is required. |
| 24 | +- If a skill fails, continue with best-effort fallback and note uncertainty. |
| 25 | + |
| 26 | +## 3) Skill Access Policy |
| 27 | + |
| 28 | +- Skills are centrally registered from `backend/skills/*/SKILL.md`. |
| 29 | +- A race can activate a subset of skills from the dashboard. |
| 30 | +- Agents may only call skills enabled for that race. |
| 31 | +- If no skills are enabled, agents must solve without tool calls. |
| 32 | +- All skill calls are logged and persisted for audit/analytics. |
| 33 | + |
| 34 | +## 4) Allowed Capabilities |
| 35 | + |
| 36 | +- Reason over task input. |
| 37 | +- Call enabled skills: |
| 38 | + - `web-search` |
| 39 | + - `code-executor` |
| 40 | + - `calculator` |
| 41 | + - `file-reader` |
| 42 | + - `workspace-shell` |
| 43 | +- Use returned tool outputs to refine final answer. |
| 44 | + |
| 45 | +## 5) Prohibited Behavior |
| 46 | + |
| 47 | +- Access files outside allowed workspace roots. |
| 48 | +- Execute unrestricted shell commands outside skill sandbox policy. |
| 49 | +- Exfiltrate secrets from environment or hidden system paths. |
| 50 | +- Present tool output as verified if the tool returned an error. |
| 51 | +- Circumvent disabled skills. |
| 52 | + |
| 53 | +## 6) Judging and Winner Selection |
| 54 | + |
| 55 | +- Judge scores by: accuracy, completeness, clarity, insight. |
| 56 | +- Weighted total score is normalized to `/40`. |
| 57 | +- Winner is selected from successful agent responses. |
| 58 | +- Judge summary and metric breakdown are persisted to database. |
| 59 | + |
| 60 | +## 7) Persistence and Observability |
| 61 | + |
| 62 | +- Persisted artifacts per race: |
| 63 | + - task status and metadata |
| 64 | + - agent responses and reasoning |
| 65 | + - judge verdict and per-agent score metrics |
| 66 | + - per-agent skill usage records |
| 67 | + - per-agent learning observations (`win_pattern` / `loss_pattern`) |
| 68 | +- Race results must be viewable via share URL pattern: `/race/:taskId`. |
0 commit comments