Errors
Cessy errors should tell you which layer failed: auth, permission, validation, command logic, projection read, policy execution, webhook handling, adapter call, or platform operation.
Common statuses
Command failures
Command failures usually mean the business decision was rejected. Inspect:
- command input
- actor and permissions
- loaded decision state
- validation error
- emitted or missing events
Policy and adapter failures
Policy failures happen after an event or trigger. Check Activity for the triggering event, policy run, adapter call, retry behavior, and final error.
Webhook failures
Webhook failures often come from auth, payload shape, guard expressions, mapping, or downstream command validation. Keep sender request ids in logs when possible.
Troubleshooting order
- Confirm tenant, app, and environment.
- Confirm auth and scopes.
- Check permissions for the actor.
- Validate request shape against generated contract.
- Inspect Activity for command, event, policy, webhook, and adapter traces.
- Check Data Explorer for projection state.
- Inspect error logs for platform-level failures.