Andrea Cosentino created CAMEL-26829:
----------------------------------------

             Summary: camel-opa - preserve per-element fail-open diagnostics in 
batch results
                 Key: CAMEL-26829
                 URL: https://issues.apache.org/jira/browse/CAMEL-26829
             Project: Camel
          Issue Type: Improvement
            Reporter: Andrea Cosentino
            Assignee: Andrea Cosentino


h2. Problem / motivation
Single evaluation sets DECISION_FAILED_OPEN when an unavailable decision point 
is bypassed under explicit failOpen. Batch evaluation clears that marker and 
records only Boolean verdicts, so a normal permit and a deliberate 
unavailable-decision bypass cannot be distinguished per element.

h2. Proposed scope
Add structured per-element outcomes with decision, failure category and 
failed-open status. Preserve existing Boolean-list compatibility. Define an 
aggregate marker if useful and retain current failOpen scope; this task does 
not broaden which failures may proceed.

h2. Acceptance criteria / validation
* Distinguish real allow, real deny, element failure, missing result, element 
fail-open and whole-batch fail-open.
* Clear stale diagnostics on reuse and cover interruption.
* Document the new output contract and compatible existing headers.

h2. References
* 
https://github.com/apache/camel/blob/5686684cb418/components/camel-opa/src/main/java/org/apache/camel/component/opa/OpaPolicyEvaluator.java#L187
* 
https://github.com/apache/camel/blob/5686684cb418/components/camel-opa/src/main/java/org/apache/camel/component/opa/OpaConstants.java

h2. Context
Extends the observability distinction introduced by resolved CAMEL-24738 to 
batch evaluation added by CAMEL-24740.

Source: read-only component audit at 5686684cb418. Recheck current main before 
implementing; historical references identify the audited code.

_AI-generated by Codex on behalf of oscerd (JIRA: acosentino)._



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to