Driftwatch

Cloudflare / Cloudflare API /

Breakingdirection flip: their tools call this safe

reason can now return "STATIC"

What changed

Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

Affects reason on flagship_EvaluationResult reachable from 2 operations.

New value: STATIC.

can now return "STATIC"

Who is affected

Code that reads Cloudflare's flagship_EvaluationResult objects, used by 2 Cloudflare operations.

Before and after

WhereBeforeAfter
flagship_EvaluationResult.reason"DEFAULT", "DISABLED", "SPLIT", "TARGETING_MATCH""DEFAULT", "DISABLED", "SPLIT", "STATIC", "TARGETING_MATCH"

Code that breaks

switch (response.reason) {
  // existing branches …
  // no branch for "STATIC"
  default:
    throw new Error("unexpected reason");
}

Based on Cloudflare’s published API specification. How severity is decided.