Overview
ActGuard exports these decorators and rule helpers:@actguard.rate_limit@actguard.circuit_breaker@actguard.max_attempts@actguard.timeout@actguard.idempotent@actguard.prove@actguard.enforce@actguard.tool(...)actguard.RequireFact,actguard.Threshold,actguard.BlockRegex
Runtime requirements
max_attemptsandidempotentrequireclient.run(...)proveandenforcerequireactguard.session(...)
@rate_limit
@circuit_breaker
FailureKind values:
TRANSPORT,TIMEOUT,OVERLOADED,THROTTLEDAUTH,INVALID,NOT_FOUND,CONFLICT,UNKNOWN
FAIL_ON_DEFAULTIGNORE_ON_DEFAULTFAIL_ON_STRICTFAIL_ON_INFRA_ONLY
@max_attempts
@timeout
ToolTimeoutError.
@idempotent
idempotency_key function argument and an active run context.
Chain-of-custody APIs
actguard.session(...)
@prove
@enforce
Rules
Unified decorator
idempotent -> max_attempts -> circuit_breaker -> rate_limit -> timeout -> fn