Skip to content

Triage and routing

Move findings through aven and decide which agent picks which task.

Findings from the improver and security analyst land in aven with status inbox. Nothing picks them until you move them to todo:

Terminal window
aven edit <ref> --status todo

Because tasks live in aven, you can triage them with aven tui or the aven CLI: move findings to backlog or canceled, change priority, add dependencies, or add the vteam label to your own tasks to queue them for the coder. Canceling a task marks it as rejected, and agents won’t report it again (see Deduplication).

Each input: "task" agent declares which tasks it works on with a taskFilter over aven metadata:

// vteam/agents/coder/agent.json: findings from the improver or the security analyst
{
"input": "task",
"taskFilter": { "found-by": ["improver", "security-analyst"] }
}
// vteam/agents/mr-reviewer/agent.json: tasks a human handed to it
{
"input": "task",
"taskFilter": { "actor": "mr-reviewer" }
}
  • Different keys must all match (AND). A list of values matches any of them (OR). null matches a key that is missing or empty, so "found-by": ["improver", null] also covers tasks you create yourself in aven.
  • An agent without taskFilter matches every task.
  • Filters may overlap. Picking happens under a claim lock shared by all agents, so only one agent gets a task. Once it is active, it is off every other agent’s list.
  • vteam writes found-by (the creating agent) on every task. Any other key, like actor, is yours to set: aven edit <ref> --metadata actor=mr-reviewer.
  • A task that no agent’s filter matches is never picked. vteam status warns about todo tasks no agent will pick and shows which task each agent would pick next.

Agents only pick tasks returned by aven list --status todo --ready, so aven’s dependency blocking and deferral (available_at) are respected. Among those, the highest severity wins (critical > high > medium > low), oldest first within a severity. Tasks that have failed tasks.maxRetries times are skipped; give one another go with vteam run <agent> --task <ref>.

If the vteam process is killed hard mid-run, the task may stay active. Run vteam clean to return it to todo, or reset it manually with aven edit <ref> --status todo.