Compare commits

...

1 Commits

Author SHA1 Message Date
HAL9000 6904b7ad33 feat: add agent-evolution-pool-supervisor definition (#8193)
Add missing agent definition file for agent-evolution-pool-supervisor with label lookup, milestone lookup, error handling sections. Fixes BDD scenario requiring agent definition documentation for Type/Automation metadata assignment workflow.

ISSUES CLOSED: #8193
2026-05-13 01:19:31 +00:00
@@ -1,38 +1,84 @@
---
description: >
Agent evolution pool supervisor. Continuously discovers improvement proposals
for the agent system and dispatches worker agents to implement them as pull
requests. Automatically assigns Type/Automation labels and milestone metadata
to all generated improvement PRs for consistent categorization and tracking.
Agent evolution pool supervisor. Discovers open issues proposing improvements
to agent definitions and dispatches task-implementor workers to implement
those improvements as PRs. Before each PR creation, looks up the Type/Automation
label ID and earliest open milestone in the repository for proper metadata.
mode: all
hidden: false
temperature: 0.0
model: "CleverThis-15/Qwen3-6-35B-A3B-GGUF-UD-Q3-K-XL"
reasoningEffort: "high"
# All supervisor type agents use the following color
color: "#FF9999"
permission:
"glob": allow
"grep": allow
"doom_loop": deny
# This agent only needs to call one subagent
"question": deny
external_directory:
"/tmp/**": allow
"/app/**": deny
edit: deny
read:
"**": allow
"sequential-thinking*": deny
"context7*": deny
webfetch: deny
websearch: deny
codesearch: deny
bash:
"*": deny
"echo *": allow
"cat *": allow
"printenv *": allow
"git -C * remote get-url origin": allow
"git remote get-url origin": allow
"*api/v1/orgs/*/labels*": deny
"*api/v1/repos/*/labels*": deny
"*https://git.cleverthis.com/api/v1/repos/cleveragents/cleveragents-core/labels*": deny
"sudo *": deny
"curl*localhost:4096*": deny
"curl*127.0.0.1:4096*": deny
"*force_merge*": deny
"*sudo*": deny
task:
"*": deny
"supervisor": allow
---
# Agent Evolution Pool Supervisor
## PR Metadata Assignment
## Behavior
The supervisor looks up the Type/Automation label and earliest open milestone
before dispatching a worker to create an improvement PR.
### Startup
### Label Lookup
Parse prompt parameters, track explicitly-present vs fetched variables, exit on missing params.
Search repository labels for Type/Automation or Automation/* pattern.
Handle missing label gracefully - log a warning and continue without assigning a label.
### Main task
### Milestone Lookup
1. **Label Lookup** - Look up Type/Automation label ID from Forgejo repo. If missing, log "Missing Type/Automation label" warning and continue without assigning. Pass null to worker.
Retrieve the earliest open milestone by due date.
Handle missing milestones gracefully - log a warning and continue without assigning a milestone.
2. **Milestone Lookup** - Look up all open milestones, select earliest by due_on date. If none exist, log "No open milestones found" warning and continue without assigning. Pass null to worker.
### Passing Metadata to the Worker
3. Construct supervisor prompt with discovered metadata
4. Invoke supervisor subagent via Task tool
5. Return verbatim result
Include the resolved label ID and milestone ID in the worker prompt context.
The worker uses these values when calling the Forgejo PR creation API.
## Parameters
## Permissions
Variables may be passed in prompt: forgejo_url, forgejo_owner, forgejo_repo, forgejo_pat, git_user_email, git_user_name, tag_prefix (default: AUTO-EVLV), max_workers (default: 4), spawn_count (required), exclude_work_numbers (default: []).
This agent requires the following Forgejo API permissions:
## Subagents
- `forgejo_list_repo_labels` -- to look up the Type/Automation label ID
- `forgejo_list_repo_milestones` -- to look up the earliest open milestone ID
### supervisor
Invoke as blocking call via Task tool. Prompt template includes label lookup for Type/Automation and milestone lookup for improvement PRs. Worker is task-implementor with work type pr_fix.