cadrumo.application.operator_actions.preconditions module

Canonical construction of terminal precondition verdicts.

conditionality_for_binding(binding)[source]

Return whether a recovery action needing this binding is immediately available.

An action is materialisable right now (IMMEDIATE) unless the argument it depends on is still MISSING, in which case the operator must supply it first (REQUIRES_ARGUMENTS).

Return type:

ActionConditionality

Parameters:

binding (ActionArgumentBinding)

no_action_precondition_verdict(*, condition_id, evidence_id=None, facts, provenance, outcome)[source]

Build one fact-only terminal verdict without inventing a recovery action.

Return type:

PreconditionVerdict

Parameters:
active_profile_pointer_repair_verdict(*, condition_id, evidence_id, facts, provenance)[source]

Build the confirm-required repair outcome for one active-pointer failure.

Return type:

PreconditionVerdict

Parameters:
corrupt_active_profile_pointer_verdict(*, path)[source]

Build the repair outcome for a core-observed corrupt active-profile pointer.

Return type:

PreconditionVerdict

Parameters:

path (str)