← Lab /AI/ML

Safe policy menu and bounded reward let online adaptation outperform default resilience settings

With safeguards, AdaptR4j consistently beats default and best fixed Resilience4j policies in winnable fault scenarios

AI/ML arXiv 24 Nov 2026 Method Prototype evidence

Published as “When Online Adaptation of Resilience Policies Hurts: Safe Exploration and Measurement Pitfalls in Resilience4j”

Why it matters

The work shows that safe exploration mechanisms are essential for any production-grade system that tries to adapt resilience policies online, otherwise the adaptation can increase user-visible failures.

Summary

Safe online adaptation of Resilience4j policies can outperform the static production default and even the best fixed policy when faults change, but only if exploration is constrained with a safe policy menu, bounded rewards, and conservative exploration; without these safeguards the naive LinUCB bandit loses to the default in three of four winnable scenarios. The authors also discovered severe measurement bugs that made earlier results look far better than users actually experienced. Evidence comes from a laptop-scale testbed with multiple fault injection scenarios and a moving-block bootstrap analysis.

What they found 2

  1. Naive online adaptation can degrade performance compared to the static default.

    “Naive online adaptation can be worse than doing nothing.”

  2. With safeguards, a simple bandit outperforms the production default in every winnable scenario.

    “a simple bandit beats the production default in every winnable scenario we tested”

Caveats 4

  • its overall mean (+0.257) is below the naive design’s (+0.441), which happened to try only five policies before settling on a good one
  • In S2 the best fixed policy remains clearly better (-1.44 vs. -1.82).
  • S3 cannot be won: every call already takes 500 ms, so every policy misses the latency SLO.
  • Two bugs combined: 1. Unit mismatch. The policy menu expressed CB thresholds as fractions (0.50); Resilience4j expects percentages. 2. Invisible rejections. Calls rejected by an open breaker never reached it, pulling p99 down and not being counted as errors.

What’s new here 4

  • Applies online learning to the full set of Resilience4j knobs (circuit breaker, retry, bulkhead) inside the application, not just single parameters.
  • Introduces a safe policy menu that filters out overly strict breakers and slow-call thresholds.
  • Implements conservative exploration with bounded rewards to prevent catastrophic policy choices.
  • Provides concrete measurement checks that expose hidden failures in resilience experiments.