Category: Orchestration
Skill Level: advanced
Stability: stable
Description
Track and enforce declared resource budgets across an agent workflow, including token, time, tool, or monetary limits.
When to Use
Use when a workflow has explicit resource ceilings and consumption must be bounded.
Inputs / Outputs / Failure Modes
| Area |
Contract |
| Inputs |
Workflow state, role/agent context, task constraints, trigger or decision criteria, and execution bounds. |
| Outputs |
Deterministic orchestration decision/action plus state and evidence needed for downstream work. |
| Failure modes |
Stale state, ambiguous ownership, race conditions, duplicate execution, or missing recovery path. |
Procedure
- Establish workflow state, ownership, boundaries, and acceptance criteria.
- Validate the inputs or trigger before changing workflow state.
- Execute only the declared orchestration operation.
- Record resulting state, evidence, and unresolved conditions.
- Apply explicit recovery or escalation behavior when the workflow cannot continue safely.
Runnable Example
task = {"capability": "budget-management", "validated": True}
assert task["validated"]
result = {"status": "orchestration_step", "capability": task["capability"]}
print(result)
Failure Modes
- Ambiguous agent ownership or workflow state.
- Stale or conflicting state.
- Duplicate, concurrent, or non-idempotent execution.
- Missing authorization or recovery path.
- Completion reported without verifiable postconditions.
Orchestration Boundary
Budget estimates can be approximate; enforce hard ceilings where available and surface uncertainty.
Evidence
Canonical repository skill: this file. Structural conformance is defined by the repository schema, validation workflows, Agent Skills contract, and security gates. Orchestration decisions must preserve state, ownership, and material evidence.
Related
- 15-orchestration
- input-guardrails
- output-guardrails
1---2name: budget-management3description: Track and enforce declared resource budgets across an agent workflow, including token, time, tool, or monetary limits.4metadata:5 source: https://skillmd.com/skills/samotech/budget-management6 upstream: skills/15-orchestration/budget-management.md7 category: 15-orchestration8---910**Category:** Orchestration11**Skill Level:** `advanced`12**Stability:** stable1314## Description15Track and enforce declared resource budgets across an agent workflow, including token, time, tool, or monetary limits.1617## When to Use18Use when a workflow has explicit resource ceilings and consumption must be bounded.1920## Inputs / Outputs / Failure Modes21| Area | Contract |22|---|---|23| Inputs | Workflow state, role/agent context, task constraints, trigger or decision criteria, and execution bounds. |24| Outputs | Deterministic orchestration decision/action plus state and evidence needed for downstream work. |25| Failure modes | Stale state, ambiguous ownership, race conditions, duplicate execution, or missing recovery path. |2627## Procedure281. Establish workflow state, ownership, boundaries, and acceptance criteria.292. Validate the inputs or trigger before changing workflow state.303. Execute only the declared orchestration operation.314. Record resulting state, evidence, and unresolved conditions.325. Apply explicit recovery or escalation behavior when the workflow cannot continue safely.3334## Runnable Example35```python36task = {"capability": "budget-management", "validated": True}37assert task["validated"]38result = {"status": "orchestration_step", "capability": task["capability"]}39print(result)40```4142## Failure Modes43- Ambiguous agent ownership or workflow state.44- Stale or conflicting state.45- Duplicate, concurrent, or non-idempotent execution.46- Missing authorization or recovery path.47- Completion reported without verifiable postconditions.4849## Orchestration Boundary50Budget estimates can be approximate; enforce hard ceilings where available and surface uncertainty.5152## Evidence53Canonical repository skill: this file. Structural conformance is defined by the repository schema, validation workflows, Agent Skills contract, and security gates. Orchestration decisions must preserve state, ownership, and material evidence.5455## Related56- 15-orchestration57- input-guardrails58- output-guardrails