Skip to main content

Overview

How Risicare's self-healing pipeline is designed — and what is held.

Held for the beta

This feature is built. It is not available in this release. It has no release date. This page describes it as designed.

Risicare's healing pipeline is designed to take a diagnosis, generate fix recommendations, validate them, and deploy the ones that work. This page describes that design.

Pipeline

Self-healing pipeline: Error → Diagnosis → Fix Generation → Canary Deploy → A/B Testing → Graduate

Diagnosis → Hypothesis Generation → Validation → Deployment → Learning
             ↓                        ↓            ↓           ↓
         Generate fix ideas     Test each one   Canary → A/B  Store pattern

How It Works

1. Receive Diagnosis

When an error is diagnosed, the healing pipeline receives:

  • Error code (e.g., TOOL.EXECUTION.TIMEOUT)
  • Root cause analysis
  • Context from the error trace
  • Similar past errors (if any)

2. Generate Hypotheses

Create testable hypotheses about what might fix the issue:

Diagnosis: TOOL.EXECUTION.TIMEOUT on weather_api

Hypothesis 1: Retry with backoff (0.75 prior)
Hypothesis 2: Increase timeout (0.60 prior)
Hypothesis 3: Add fallback (0.55 prior)

3. Validate Statistically

Each hypothesis is tested:

  1. A/B Test: Split traffic between baseline and fix
  2. Measure: Error rate, latency, cost
  3. Analyze: Statistical significance (p < 0.05)
  4. Decide: Accept, reject, or continue testing

4. Deploy Safely

As designed, validated fixes deploy progressively:

Canary (5%) → Ramp (25%) → Ramp (50%) → Graduate (100%)

With automatic rollback if:

  • Error rate increases >10%
  • Latency exceeds 2x baseline
  • Manual intervention

5. Learn (planned)

A learning stage is designed to turn successful fixes into reusable knowledge (error-pattern → fix-template mappings, shared across customers in federated form).

Fix Types

Risicare generates 7 types of fixes:

TypeWhat It Does
PromptModify system prompt
ParameterAdjust LLM settings
ToolFix tool configuration
RetryAdd retry with backoff
FallbackUse alternative strategy
GuardAdd validation
RoutingChange agent delegation

No Code Injection

Declarative Fixes

Fixes are JSON configurations, not code. Risicare never injects code into your system. Both the Python and JavaScript SDKs ship a Fix Runtime that interprets these at runtime. The Fix Runtime is off by default since Python 0.4.0 and JavaScript 0.7.0: init() starts it only with fix_runtime=True (Python) or fixRuntime: true (JavaScript). Each implements the same five appliers (prompt, parameter, retry, fallback, guard); neither implements tool or routing.

No fix can be put into a live status for the runtimes to apply: a fix cannot be promoted while fix deployment is gated off.

Example fix:

{
  "fix_id": "fix-abc123",
  "fix_type": "retry",
  "config": {
    "max_retries": 3,
    "initial_delay_ms": 1000,
    "exponential_base": 2.0,
    "max_delay_ms": 30000,
    "jitter": true,
    "retry_on": []
  }
}

Confidence Levels

Fixes have confidence scores:

ConfidenceMeaning
> 0.8High - strong recommendation
0.6 - 0.8Medium - review suggested
< 0.6Low - suggest only

Dashboard (planned)

While diagnosis is held for the beta, Self-Healing is removed from the dashboard's navigation, and its page shows only a notice that diagnosis is not part of this release. As designed, it shows healing activity:

  • Active Fixes: Deployed fixes (planned)
  • Testing: Fixes in A/B testing
  • Candidates: Suggested but not deployed
  • Graduated: Successfully deployed
  • Rolled Back: Failed fixes

Metrics

MetricDescription
Fix Rate% of errors with deployed fixes
Success Rate% of fixes that graduate
MTTRMean time to remediation
Error Reduction% error reduction from fixes

Next Steps