Skip to main content
GitHub

RESOURCES

Shared resource management failures.

The RESOURCES module covers errors in accessing and managing shared resources across a multi-agent system. This includes access control, resource contention, and quota management.

Categories

ACCESS

Resource access failures.

CodeSeverityDescriptionRemediation
RESOURCES.ACCESS.DENIED4Resource access deniedImplement access control
RESOURCES.ACCESS.NOT_FOUND3Resource not foundHandle missing resources
RESOURCES.ACCESS.LOCKED3Resource is lockedImplement lock timeout
RESOURCES.ACCESS.EXPIRED3Resource access expiredHandle expiration
RESOURCES.ACCESS.REVOKED4Resource access revokedHandle revocation gracefully

CONTENTION

Resource contention failures.

CodeSeverityDescriptionRemediation
RESOURCES.CONTENTION.DEADLOCK5Resource deadlockImplement deadlock prevention
RESOURCES.CONTENTION.STARVATION4Resource starvationImplement fair scheduling
RESOURCES.CONTENTION.PRIORITY_INVERSION4Priority inversionImplement priority inheritance
RESOURCES.CONTENTION.THRASHING4Resource thrashingImplement throttling
RESOURCES.CONTENTION.OVERFLOW3Resource pool overflowImplement pool limits

Warning

RESOURCES.CONTENTION.DEADLOCK (severity 5) occurs when multiple agents are each waiting for resources held by others, creating a circular wait. This is distinct from COORDINATION.WORKFLOW.DEADLOCK, which refers to workflow-level blocking rather than resource-level blocking.

QUOTA

Resource quota failures.

CodeSeverityDescriptionRemediation
RESOURCES.QUOTA.EXCEEDED3Quota exceededImplement quota enforcement
RESOURCES.QUOTA.ALLOCATION_FAILED4Quota allocation failedHandle allocation failure
RESOURCES.QUOTA.UNFAIR_DISTRIBUTION3Unfair quota distributionImplement fair distribution
RESOURCES.QUOTA.LEAK4Quota leak detectedImplement quota accounting
RESOURCES.QUOTA.STALE2Quota information is staleRefresh quota regularly

Example Diagnosis

{
  "error_code": "RESOURCES.CONTENTION.DEADLOCK",
  "confidence": 0.91,
  "root_cause": "Agent A holds a lock on the database connection pool while waiting for the file system lock held by Agent B, which is waiting for the database connection pool.",
  "suggested_fixes": ["guard", "parameter"]
}

Next Steps