* main into zero shot, post refactoring
* cleanup
* cleanup
* CR feedback: fixed the residency document clarification bug
* cr feedback: fake tests with propoer assertions
* pr feedback: better policy checks and logging for backend failures
* pr feedback: adding on_truncation
* pr feedback: adding the truncation support for classifier and fixing documentation issues
* CI fix and doc enhancement
* pr feedback: fixed edge cases
* added check for 0.3.7 truncated verification
* Added the example lfm2 ONNX model
* pr feedback: added max-length and 3 flag truncate flags
* pin bump to 0.4.0 and more tests for zero-shot
* CI fix
* pr feedback: clarified on the PII detector
* feat(router): expose route decisions in responses
Carry the router Decision through collection.router dispatch and attach it additively as x_lemonade_route for non-streaming responses. Surface the matched rule in x-lemonade-route headers and inject the same decision metadata into routed SSE streams while keeping route_trace stripped before backend forwarding.
* test(router): cover route decision response metadata
Extend router endpoint coverage for matched-rule decisions, default-route decisions, route_trace output, opaque outputs pass-through, and streaming /responses x_lemonade_route injection.
* fix(router): harden route decision streaming metadata
Make routed SSE decision injection tolerant of LF, CRLF, CR, and chunk-split event separators by moving the response helpers into a focused route_decision_response module with direct tests. Collapse the three streaming response handlers through one shared content-provider helper and add live endpoint coverage for streaming chat, completions, and responses. Emit an explicit default route header for routed default decisions, and validate route rule ids as safe header tokens at policy parse/schema time.