# NousResearch/hermes-agent · Delegate task spawn cap counting fixes

## Open now

- 1 issue, 2 PRs open on GitHub.
- #72550: \[Bug\]: delegate_task loop cap miscounts JSON batches and charges rejected spawns
- PR #72561: fix(tool_guardrails): defer subagent spawn accounting to commit model
- PR #72567: fix(agent): enforce delegate task spawn cap

These members address bugs and fixes related to how the delegate task spawn cap is enforced and counted, specifically around miscounting JSON batches and prematurely accounting for rejected spawns.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #72550: \[Bug\]: delegate_task loop cap miscounts JSON batches and charges rejected spawns

## Prior & competing PRs

- **#72561: fix(tool_guardrails): defer subagent spawn accounting to commit model**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`
  - files: `agent/tool_guardrails.py`, `run_agent.py`, `tests/agent/test_tool_guardrails.py`, `tests/agent/test_tool_guardrails_subagent_spawn.py`, `tests/tools/test_delegate_control_actions.py`, `tools/delegate_tool.py`, `tools/delegate_tool_dispatch.py`
- **#72567: fix(agent): enforce delegate task spawn cap**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `a518eb4e03eb`, `#72550`, `#72561`, `#72567`, `#374151`
  - files: `agent/delegation_validation.py`, `agent/tool_guardrails.py`, `tests/agent/test_tool_guardrails.py`, `tests/run_agent/test_tool_call_guardrail_runtime.py`, `tools/delegate_tool.py`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
