Action Concurrency Limiting
Description
Bound how many actions of each type run simultaneously using explicit limits and queuing, so parallelism does not exhaust quotas, rate limits, or downstream capacity. The procedure is constrained by explicit inputs and acceptance criteria rather than best-effort judgment alone.
When to Use
- The task has explicit constraints such as time, budget, or safety that must gate the outcome.
- A silent failure mode exists that must be surfaced rather than swallowed.
- Verification evidence is required before the result is trusted.
Inputs / Outputs
| Area |
Contract |
| Inputs |
Task context, candidate inputs, and explicit acceptance criteria for action concurrency limiting. |
| 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 action concurrency limiting 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
# Action Concurrency Limiting: deterministic check
attempts = []
def flaky(n):
attempts.append(n)
return n >= 3
tries, max_tries, done = 0, 5, False
while tries < max_tries:
tries += 1
if flaky(tries):
done = True
break
assert done and tries == 3
print("succeeded after", tries, "attempts")
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
Safety under concurrent load is a named 2026 production concern for agent teams; published guidance recommends explicit concurrency budgets. These are dated public signals, not adoption metrics.
Related
- batch-processing.md
- process-management.md
- ../14-security/rate-limiting.md
1---2name: action-concurrency-limiting3description: Bound how many actions of each type run simultaneously using explicit limits and queuing, so parallelism does not exhaust quotas, rate limits, or downstream capacity.4metadata:5 source: https://skillmd.com/skills/samotech/action-concurrency-limiting6 upstream: skills/04-action-execution/action-concurrency-limiting.md7 category: 04-action-execution8 version: "v1"9---1011# Action Concurrency Limiting1213## Description14Bound how many actions of each type run simultaneously using explicit limits and queuing, so parallelism does not exhaust quotas, rate limits, or downstream capacity. The procedure is constrained by explicit inputs and acceptance criteria rather than best-effort judgment alone.1516## When to Use17- The task has explicit constraints such as time, budget, or safety that must gate the outcome.18- A silent failure mode exists that must be surfaced rather than swallowed.19- Verification evidence is required before the result is trusted.2021## Inputs / Outputs22| Area | Contract |23|---|---|24| Inputs | Task context, candidate inputs, and explicit acceptance criteria for action concurrency limiting. |25| Outputs | A decision or artifact with recorded reasons, rejected alternatives, and verification evidence. |26| Safety | Failures must fail closed and be reported with evidence rather than retried silently. |2728## Procedure291. Define the goal, the constraints, and the boundary of what this procedure may change.302. Inventory the available inputs and flag gaps or ambiguities that block progress.313. Execute the action concurrency limiting steps in a bounded, checkpointed way.324. Compare the actual outcome against the expected outcome and record deviations.335. On failure, apply the declared fallback path, and never widen permissions to recover.346. Emit a structured result with evidence and provenance for downstream consumers.3536## Runnable Example37```python38# Action Concurrency Limiting: deterministic check39attempts = []40def flaky(n):41 attempts.append(n)42 return n >= 34344tries, max_tries, done = 0, 5, False45while tries < max_tries:46 tries += 147 if flaky(tries):48 done = True49 break50assert done and tries == 351print("succeeded after", tries, "attempts")52```5354## Failure Modes55- Acting outside the declared task boundary.56- Assuming an estimate or preview equals the verified effect.57- Retrying without preserving state or evidence.58- Using stale inputs as if they were current.59- Reporting success without checking the resulting state.6061## Boundary62This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result.6364## Evidence65Safety under concurrent load is a named 2026 production concern for agent teams; published guidance recommends explicit concurrency budgets. These are dated public signals, not adoption metrics.6667## Related68- batch-processing.md69- process-management.md70- ../14-security/rate-limiting.md