Skip to content

Commit fd383c5

Browse files
authored
Refactor blocker appending for better readability
1 parent d4d4bf4 commit fd383c5

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

src/ix_cognition_kernel/wave6_fail_closed_candidate_gate.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,21 @@ def blockers(self) -> tuple[WaveSixFailClosedCandidateGateBlocker, ...]:
300300
WaveSixFailClosedCandidateGateBlocker.EXECUTION_AUTHORITY_PRESENT
301301
)
302302
if self.self_validation_present:
303-
blockers.append(WaveSixFailClosedCandidateGateBlocker.SELF_VALIDATION_PRESENT)
303+
blockers.append(
304+
WaveSixFailClosedCandidateGateBlocker.SELF_VALIDATION_PRESENT
305+
)
304306
if not self.human_authority_present:
305-
blockers.append(WaveSixFailClosedCandidateGateBlocker.HUMAN_AUTHORITY_MISSING)
307+
blockers.append(
308+
WaveSixFailClosedCandidateGateBlocker.HUMAN_AUTHORITY_MISSING
309+
)
306310
if not self.independent_review_present:
307311
blockers.append(
308312
WaveSixFailClosedCandidateGateBlocker.INDEPENDENT_REVIEW_MISSING
309313
)
310314
if not self.claim_boundary_statement_valid:
311-
blockers.append(WaveSixFailClosedCandidateGateBlocker.CLAIM_BOUNDARY_INVALID)
315+
blockers.append(
316+
WaveSixFailClosedCandidateGateBlocker.CLAIM_BOUNDARY_INVALID
317+
)
312318
if not self.candidate_assembly.ready_for_fail_closed_readiness_gate:
313319
blockers.append(
314320
WaveSixFailClosedCandidateGateBlocker.CANDIDATE_ASSEMBLY_NOT_READY
@@ -318,9 +324,13 @@ def blockers(self) -> tuple[WaveSixFailClosedCandidateGateBlocker, ...]:
318324
WaveSixFailClosedCandidateGateBlocker.IX_OBLIGATION_PRESSURE_UNRESOLVED
319325
)
320326
if self.donor_evidence_incomplete:
321-
blockers.append(WaveSixFailClosedCandidateGateBlocker.DONOR_EVIDENCE_INCOMPLETE)
327+
blockers.append(
328+
WaveSixFailClosedCandidateGateBlocker.DONOR_EVIDENCE_INCOMPLETE
329+
)
322330
if self.evidence_package_empty:
323-
blockers.append(WaveSixFailClosedCandidateGateBlocker.EVIDENCE_PACKAGE_EMPTY)
331+
blockers.append(
332+
WaveSixFailClosedCandidateGateBlocker.EVIDENCE_PACKAGE_EMPTY
333+
)
324334
if self.falsification_pressure_missing:
325335
blockers.append(
326336
WaveSixFailClosedCandidateGateBlocker.FALSIFICATION_PRESSURE_MISSING

0 commit comments

Comments
 (0)