@davoodmehraban89 / Aram-2 Mirror · read-only / commits / dde8cd1
Fork 0

Mirrored from https://github.com/davoodmehraban89/Aram.git

Synced Dec 3, 22:00 UTC

fix(desktop): reject blocked status without any candidate or reconciliation finding

davoodmehraban89 committed Oct 31, 2026 at 21:53 UTC dde8cd1baa6626764491d8265795e012079a8c11
1 file changed +7 -2
backend/src/aram_backend/desktop_five_statement_integrity.py
+7 -2
@@ -153,5 +153,10 @@ def validate_desktop_pipeline_result(result: FiveStatementPipelineResult) -> Non
153 or not all(eligibility) or result.findings
154 or any(candidate.findings for candidate, _, _ in candidates)):
155 raise CoverageError("DESKTOP_PREVIEW_FALSE_ELIGIBILITY")
156 - elif _require_bool(reconciliation, "eligible_for_analyst_review"):
157 - raise CoverageError("DESKTOP_PREVIEW_ELIGIBILITY_MISMATCH")
156 + else:
157 + if _require_bool(reconciliation, "eligible_for_analyst_review"):
158 + raise CoverageError("DESKTOP_PREVIEW_ELIGIBILITY_MISMATCH")
159 + if not reconciliation.findings and all(eligibility) and not any(
160 + candidate.findings for candidate, _, _ in candidates
161 + ):
162 + raise CoverageError("DESKTOP_PREVIEW_BLOCKED_WITHOUT_FINDINGS")