nexus-agents - v2.80.0
    Preparing search index...

    Interface DistilledRule

    A distilled routing rule extracted from outcome patterns.

    Rules are fingerprinted by patternType:cli:category to prevent duplicates and cap total rules at a bounded maximum.

    interface DistilledRule {
        id: string;
        patternType: PatternType;
        cli: "claude" | "gemini" | "codex" | "opencode";
        category: string;
        action: StrategyAction;
        confidence: number;
        observationCount: number;
        metric: number;
        status: RuleStatus;
        createdAt: number;
        updatedAt: number;
        tainted: boolean;
    }
    Index

    Properties

    id: string

    Fingerprint: ${patternType}:${cli}:${category}

    patternType: PatternType

    What kind of pattern triggered this rule

    cli: "claude" | "gemini" | "codex" | "opencode"

    Which CLI this rule applies to

    category: string

    Task category this rule applies to

    What routing action to take

    confidence: number

    Confidence 0-1, computed via sigmoid(observations, center=30)

    observationCount: number

    Number of observations that informed this rule

    metric: number

    The metric value (failure rate, success rate, or p90/median ratio)

    status: RuleStatus

    Current lifecycle status

    createdAt: number

    Epoch ms when rule was first created

    updatedAt: number

    Epoch ms when rule was last updated

    tainted: boolean

    Security: tainted rules never promote to RoutingMemory