You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is tool related (or would it affect the spec in some way?).
This is mimicking the OPA --explain flag.
Adds a trace showing why a rule did or didn’t fire. Currently with complex JSONPath filters, debugging can be guesswork. E.g.:
the document has to be detected as one of the rule’s formats,
the rule has to be active after extends,
the given JSONPath has to match, possibly through aliases,
the field has to resolve,
the function has to fail with the given functionOptions,
the final severity can still be changed by a rule override or an overrides entry matched by file glob or JSON Pointer.
--explain would print that chain step by step for any finding or document location, including where each rule came from in the extends chain, what each step matched, and which override changed the result. This would also give AI agents a structured answer to “why”, so they can fix the real cause instead of guessing.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
This is tool related (or would it affect the spec in some way?).
This is mimicking the OPA
--explainflag.Adds a trace showing why a rule did or didn’t fire. Currently with complex JSONPath filters, debugging can be guesswork. E.g.:
formats,extends,givenJSONPath has to match, possibly through aliases,fieldhas to resolve,functionhas to fail with the givenfunctionOptions,overridesentry matched by file glob or JSON Pointer.--explainwould print that chain step by step for any finding or document location, including where each rule came from in the extends chain, what each step matched, and which override changed the result. This would also give AI agents a structured answer to “why”, so they can fix the real cause instead of guessing.All reactions