Skip to content

Fault Resilience

Tool: fault-resilience Model: Advanced

Triggered by: Any workflow that requires fault-tolerance, adaptive fallback, or homeostatic recovery mechanisms.

Intent: Builds systems that self-heal through cascade fallbacks, voter consensus arbitration, and PID-controlled setpoints. Never relies on static retry logic.

Capability profile: resilience — requires homeostatic + voter_consensus, prefers adaptive_routing, cascade fallback mandatory.

SkillRole
resil-homeostatic-modulePID setpoint homeostatic control
resil-redundant-voterMulti-model consensus voting
resil-circuit-breakerCircuit breaker pattern implementation
resil-graceful-degradationGraceful capability degradation
resil-context-recoveryContext state recovery on failure
resil-rollback-plannerSafe rollback plan generation
{
targetService: string;
faultMode: "cascade" | "voter" | "homeostatic";
}

If circuit breaker trips 3× without recovery → escalates to govern to check policy constraints on retry behavior. Homeostatic drift over setpoint triggers immediate throw-back.

On successful completion chains to: govern · evaluate

FSM — Adaptive identity through repeated contradiction

Section titled “FSM — Adaptive identity through repeated contradiction”
stateDiagram-v2
    [*] --> NominalOperation

    NominalOperation --> FaultDetected
    FaultDetected --> SeverityAssessment

    SeverityAssessment --> ShallowCorrection: minor fault
    SeverityAssessment --> CascadeFallback: major fault
    SeverityAssessment --> CircuitBreaker: repeated fault

    ShallowCorrection --> NominalOperation

    CascadeFallback --> VoterConsensus
    VoterConsensus --> MajorityAgreement
    VoterConsensus --> SplitVote

    MajorityAgreement --> RecoveredState
    RecoveredState --> NominalOperation

    SplitVote --> Escalation
    Escalation --> HomeostaticRebalance
    HomeostaticRebalance --> NominalOperation

    CircuitBreaker --> PolicyCheck
    PolicyCheck --> RollbackPlan
    RollbackPlan --> RecoveredState

    RecoveredState --> [*]
sequenceDiagram
    participant Orchestrator
    participant Pool (Analytical)
    participant Pool (Mechanical)
    participant Tool (Context)

    Orchestrator->>Pool (Analytical): Allocate Capability Profile
    activate Pool (Analytical)
    Pool (Analytical)->>Tool (Context): Issue Tool Calls (Parallel)
    Tool (Context)-->>Pool (Analytical): Return Data

    alt Shallow Loop
        Pool (Analytical)->>Pool (Analytical): Auto-correct Schema
    else Medium Loop
        Pool (Analytical)->>Pool (Mechanical): Delegate Fixes
    end

    Pool (Analytical)-->>Orchestrator: Synthesis Gate
    deactivate Pool (Analytical)

    opt Deep Loop — Circuit Breaker
        Orchestrator->>Orchestrator: Complete Throw-back to govern
    end