How it works · The pipeline
One path for every call, with the policies around it
An HTTP request, an event, a schedule or an AI tool call all become the same object, a ChenileExchange, and travel the same chain of interceptors to a plain Java method and back. That chain is where every policy lives, so the business code stays free of them.
scenario
entry
view
Step 1
Exchange
Payload
A nested call stack
Each interceptor calls the rest of the chain inside its own try and finally. Work on the way in happens before the call; work on results happens after it, innermost first.
Decided late, from data
The body type and the implementation are chosen per request, after headers and pre-processors have run, so a header can switch a variant without the caller knowing.
One envelope, one language
Errors carry codes. On the way back they are translated for the caller's locale and wrapped in the same GenericResponse as every success.