Expand description
Policy compilation and graph execution.
Turns a PolicyConfig (nodes + from/to edges from gateway.yaml)
into a CompiledGraph with instantiated plugins, then walks that graph
per request: success edges on Ok, error edges (or the policy-level
catch-all handler) on failure, stopping at terminal client nodes.
Structs§
- Buffering
Reason validate_policytool both report to operators/agents.- Cache
Pair Warning - Records that one node on an upstream’s success path forces buffering.
- Compiled
Graph - A compiled, ready-to-execute graph with instantiated plugins.
Functions§
- compile_
policy - Compiles a
PolicyConfiginto a ready-to-executeCompiledGraph. - infer_
stream_ 🔒capability - For each
upstreamnode, walks only thesuccess/outcome ports forward to see whether anything beforeclientreads the response body. - parse_
edge_ 🔒endpoint - Parses
"node_id.port"into(node_id, port), defaulting the port to"out"when no dot is present. Splits on the last dot, so node IDs may themselves contain dots. - validate_
cache_ 🔒pairs - Checks that every
proxy-cachepair agrees about where it caches.