name: agent-fleet-monitoring
description: Monitor a fleet of running agents with health, cost, and task-progress signals, and alert on stall, runaway cost, or repeated failure.
metadata:
source: skills/09-agentic-patterns/agent-fleet-monitoring.md
category: 09-agentic-patterns
version: "v1"
Agent Fleet Monitoring
Description
Monitor a fleet of running agents with health, cost, and task-progress signals, and alert on stall, runaway cost, or repeated failure. The procedure is constrained by explicit inputs and acceptance criteria rather than best-effort judgment alone.
When to Use
- Multiple inputs or candidates compete and must be resolved by explicit criteria.
- A wrong intermediate result would propagate into consequential actions.
- The task repeats and benefits from a deterministic procedure.
Inputs / Outputs
| Area |
Contract |
| Inputs |
Task context, candidate inputs, and explicit acceptance criteria for agent fleet monitoring. |
| Outputs |
A decision or artifact with recorded reasons, rejected alternatives, and verification evidence. |
| Safety |
Failures must fail closed and be reported with evidence rather than retried silently. |
Procedure
- Define the goal, the constraints, and the boundary of what this procedure may change.
- Inventory the available inputs and flag gaps or ambiguities that block progress.
- Execute the agent fleet monitoring steps in a bounded, checkpointed way.
- Compare the actual outcome against the expected outcome and record deviations.
- On failure, apply the declared fallback path, and never widen permissions to recover.
- Emit a structured result with evidence and provenance for downstream consumers.
Runnable Example
# Agent Fleet Monitoring: deterministic check
candidates = [{"id": "a", "score": 0.8, "cost": 2}, {"id": "b", "score": 0.95, "cost": 9}]
eligible = [c for c in candidates if c["score"] >= 0.8]
selected = min(eligible, key=lambda c: c["cost"])
assert selected["id"] == "a"
print("selected:", selected["id"])
Failure Modes
- Acting outside the declared task boundary.
- Assuming an estimate or preview equals the verified effect.
- Retrying without preserving state or evidence.
- Using stale inputs as if they were current.
- Reporting success without checking the resulting state.
Boundary
This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result.
Evidence
Production multi-agent operation is a 2026 theme; fleet monitoring recurs in published agent-ops guidance. These are dated public signals, not adoption metrics.
Related
- logging-observability.md
- agent-observability-tracing.md
- budget-management.md
1---2name: agent-fleet-monitoring-23description: Monitor a fleet of running agents with health, cost, and task-progress signals, and alert on stall, runaway cost, or repeated failure.4---5---6name: agent-fleet-monitoring7description: Monitor a fleet of running agents with health, cost, and task-progress signals, and alert on stall, runaway cost, or repeated failure.8metadata:9 source: skills/09-agentic-patterns/agent-fleet-monitoring.md10 category: 09-agentic-patterns11 version: "v1"12---1314# Agent Fleet Monitoring1516## Description17Monitor a fleet of running agents with health, cost, and task-progress signals, and alert on stall, runaway cost, or repeated failure. The procedure is constrained by explicit inputs and acceptance criteria rather than best-effort judgment alone.1819## When to Use20- Multiple inputs or candidates compete and must be resolved by explicit criteria.21- A wrong intermediate result would propagate into consequential actions.22- The task repeats and benefits from a deterministic procedure.2324## Inputs / Outputs25| Area | Contract |26|---|---|27| Inputs | Task context, candidate inputs, and explicit acceptance criteria for agent fleet monitoring. |28| Outputs | A decision or artifact with recorded reasons, rejected alternatives, and verification evidence. |29| Safety | Failures must fail closed and be reported with evidence rather than retried silently. |3031## Procedure321. Define the goal, the constraints, and the boundary of what this procedure may change.332. Inventory the available inputs and flag gaps or ambiguities that block progress.343. Execute the agent fleet monitoring steps in a bounded, checkpointed way.354. Compare the actual outcome against the expected outcome and record deviations.365. On failure, apply the declared fallback path, and never widen permissions to recover.376. Emit a structured result with evidence and provenance for downstream consumers.3839## Runnable Example40```python41# Agent Fleet Monitoring: deterministic check42candidates = [{"id": "a", "score": 0.8, "cost": 2}, {"id": "b", "score": 0.95, "cost": 9}]43eligible = [c for c in candidates if c["score"] >= 0.8]44selected = min(eligible, key=lambda c: c["cost"])45assert selected["id"] == "a"46print("selected:", selected["id"])47```4849## Failure Modes50- Acting outside the declared task boundary.51- Assuming an estimate or preview equals the verified effect.52- Retrying without preserving state or evidence.53- Using stale inputs as if they were current.54- Reporting success without checking the resulting state.5556## Boundary57This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result.5859## Evidence60Production multi-agent operation is a 2026 theme; fleet monitoring recurs in published agent-ops guidance. These are dated public signals, not adoption metrics.6162## Related63- logging-observability.md64- agent-observability-tracing.md65- budget-management.md