ExecutionBreaker.intercept accepts an actor ID, tool name, payload, and amount. It calls ASTSymbolicUnpacker, checks the returned markers, then applies a rolling velocity check.
What the current path does
- Inspect payloads.
ASTSymbolicUnpackerdecodes payloads prefixed withbase64:, checks configured string signatures, and attempts to parse Python withast. It marks patterns that match its configured call, import, network, or critical-target checks.ExecutionBreakerhalts when a returned marker appears in itsDANGEROUS_PRIMITIVESset. - Check recent amounts.
StatefulCausalMemorykeeps per-actor amount logs in a Python dictionary. Its default window is 30 days. It compares recent amounts plus the proposed amount with a configurable velocity baseline and returnsVELOCITY_SPIKE_DETECTEDif the ratio exceeds 1.0. - Return a decision. The halt path returns
HALT_AND_CONTAIN, a reason, measured latency, and a SHA-256 digest. The permitted path returnsPERMITTEDand anAW1-EXEC-TOKEN-...string generated withsecrets.token_hex(8). The reviewed method does not show that token being signed or verified.
The repository also contains separate modules for trust reconciliation, regulatory certificates, and loan-gateway checks. This article describes the ExecutionBreaker.intercept path; those modules are not called from that method.
The root pyproject.toml identifies package version 2.1.0, requires Python >=3.10, and declares no base dependencies. Its mcp and full extras are optional. The README heading says v2.0.1, while aw1.__version__ is 0.2.1, so the repository version labels differ.
This is a source-level account of the implementation on main, not evidence of production deployment, complete policy coverage, or a security guarantee. Deployment behavior depends on how the caller uses the breaker and handles its result.
For more detail, see the HOL plugin listing, source repository, and project documentation.
