Documentation Index
Fetch the complete documentation index at: https://docs.altheia.xyz/llms.txt
Use this file to discover all available pages before exploring further.
check() calls /sdk/agent_check with the same payload guard() would, but never runs anything afterwards and never reports an outcome.
Returns
check() call still writes an audit row (so you can see in the chronicle that the decision was requested) but no tx_signature is attached.
Failure-mode behavior
IffailureMode: "open" and the backend is unreachable, check() resolves with:
failureMode: "closed", check() throws AltheiaConnectionError.
Example
When to prefer check() over guard()
- You want to show the operator “would this be allowed?” before they confirm.
- You’re testing a new policy without risk of accidentally running anything.
- Your action doesn’t sign on-chain (e.g. you’re only inferring intent).
guard() is the right call — it gives you the audit row with the signature attached.