Should post-execution verification remain an obligation on an OPA allow decision? #762
Unanswered
sev7enITA
asked this question in
OPA and Rego
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I maintain PALO, an independent open-source project that consumes OPA decisions. I am reviewing the contract boundary between a Rego authorization decision and a separate runtime responsible for execution and outcome verification.
The current decision document has this shape:
An
allowedresult authorizes an execution attempt. A separate runtime records the outcome and verifies the declared effects against authoritative post-state. It does not treatallowedas evidence that the intended effect occurred.Question
Which contract would be clearer for downstream OPA consumers?
record_execution_outcomeandverify_declared_effectsas obligations attached to the authorization decision.The intended properties are:
alloweddistinct fromverified;Is there an established OPA/Rego pattern for this separation?
If a separate document is preferable, should it be returned as a sibling decision document in the same evaluation, or exposed through a distinct entrypoint?
Reproduction and source
The repository tests currently pass locally: 13/13.
Scope clarification: OPA is used only as the policy decision component. A separate developer-preview runtime handles approval binding, execution, receipt creation and post-state verification. This is an independent integration, not an OPA-maintained or endorsed component.
All reactions