Chain-level governance
This is the design decision that makes Arclasp different from other agent governance tools. Understanding it explains why the SDK is structured the way it is and what kind of failures it catches that others don’t.The problem with per-call governance
Most AI safety tools evaluate one tool call at a time. The agent callssearch_web — the tool is allowed, no PII, looks fine. The agent calls calculate_offer for 3,000 — again under the threshold, allowed. Another 4,000 commitment to close out the workflow — still under the single-transaction threshold, allowed.
Six allow decisions. The workflow completes. Your company is now committed to paying a vendor $13,000.
Each individual step passed its own review. The chain of steps did not.
What chain-level tracking measures
When you open a ArclaspChain, the SDK creates a session that lives for the duration of that workflow. Every action the agent takes in that session contributes to running totals:
- Cumulative financial exposure — sum of all
amountorvaluefields seen across the workflow - External communications — count of emails sent, messages posted, API calls made to external domains
- Records modified — count of write/update/delete actions against your data
- Privileged actions — count of permission changes, IAM operations, role assignments
- External domains contacted — deduplicated list of every domain the agents touched
- Tokens used and estimated cost — running LLM spend across all calls in the workflow
The example, in code
How chain context builds up
Every action in the example above — including the earlysearch_web call — is sent to the backend and added to the chain’s cumulative metrics. There is no local decision path that skips this: the backend sees the full chain state, in order, before it evaluates each later action. That’s what lets a later financial action be judged against everything that came before it in the same chain, not just in isolation.
(An earlier local-evaluation code path still exists in the SDK for compatibility; it does not participate in current governed decisions — see Limitations.)
Chain lifecycle
A chain is a context manager. It starts when you enter thewith block and completes when you exit, normally or via exception.
Where to go next
Policies
How Arclasp decides what to allow, flag, or block.
Audit receipts
HMAC-signed records verifiable via a public endpoint.
Configuration
Tune chain behavior — thresholds, fail modes, timeouts.
Framework adapters
Wrap LangGraph, LangChain, CrewAI, or MCP with one line.