pull_next
Claim the next eligible code finding, release, triage, or maintenance item based on priority and agent capacity. Returns the item dict, or None if nothing is eligible.
Instructions
Claim the next eligible item for the calling agent. Returns the item dict or None if nothing eligible.
Priority: stream/security > release/* (earliest target_date) > stream/triage > stream/maintenance.
Args:
agent_id: Stable id for the calling agent. Used as actor in audit.
capacity: Dict like {'large':1,'small':2,'triage':5}. Defaults to those values if not provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| capacity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |