Freshware · Interactive Workbook
MDX Source Edition Residual Systems & Verified Compilation Learning Center & Videos
Part V · Listening to the World · Chapter 05

The Stressor Classification Thesis: Pause vs. Recompile vs. Escalate

Why self-updating software must tell a 15-minute API outage apart from a silent schema rename — or tear itself apart in compile thrash.

Reading time: 9 min Interactive: Lab 04 · Stressor Triage & Hysteresis Console Source: src/content/chapters/05-stressor-classification.mdx

Once you give software the machinery to recompile its own adapters and rulebooks, a subtle operational trap immediately appears: when should it actually compile?

Suppose an upstream accounting endpoint drops connections for fifteen minutes and returns HTTP 503. If a naive self-healing loop treats every runtime failure as a bug in its own adapter code, it immediately spins up a Phase 1 reasoning agent, burns tokens rewriting a perfectly healthy module, fails integration checks because the remote host is still down, and thrashes across retries until someone kills the worker.

Conversely, suppose a distributor silently shifts its PDF layout or a remote REST endpoint starts rejecting payloads with deterministic HTTP 422 validation errors because it renamed a tax-code field. Waiting blindly on retry backoff solves nothing — the system has entered a new environmental attractor.

Distinguishing between transient noise and structural shift is the Stressor Classification Thesis.

The Four-Class Stressor Taxonomy

Every production anomaly passes through a lightweight triage classifier before Phase 1 compilation is ever allowed to wake up:

Stressor ClassOperational SignalSystem InterpretationRequired Action
1. Transient PerturbationHTTP 503 / 504 / 429, DNS/TLS blip, degraded upstream health probeTemporary environmental shock; system remains in the same attractorpause — Circuit-break & backoff. Zero code or spec edits.
2. Isolated Data OutlierSingle malformed input or one System One prediction inside the abstain bandLocalized weird sample on a single item or venuequarantine — Route item to review queue; append sample to anomaly ledger without recompiling.
3. Local Structural ShiftRepeated deterministic 400/422 or layout misses across distinct instances while health probes stay green, OR explicit playbook sha256 deltaWorld shifted to a new local attractor inside Tier 0 invariantscompile_tier2 / compile_tier1 — Trigger Phase 1 CEGIS synthesis + Gates 1–3 + atomic swap.
4. Regime / Invariant ConflictCandidate fix violates Tier 0 invariant or contagion spills across > 1 Bounded ContextStress crosses an Architectural Residue wallescalate_tier0 — Halt autonomous promotion; open zero-copy pi-durable fork and decisions.jsonl thread.

Interactive Stressor Triage & Hysteresis Console

Select each realistic incident stream below and vary the Temporal Hysteresis Window and Minimum Distinct Instances threshold. Watch two failure modes appear if parameters drift too far in either direction: lowering constraints aggressively risks misclassifying early glitches, while pushing hysteresis past the observed drift window induces False Pauses where a real API rename waits unhandled.

Interactive Lab 04 · Stressor Classification & Hysteresis Console

Outage to Pause, Bad Scan to Quarantine, or Drift to Recompile?

PAUSE
Controller Verdict pause Expected: pause
Freshware Thrash 0 Naive compiler thrash: 6
False Pauses 0 Over-strict hysteresis blocks
Time to Action 0 s Elapsed from first event
Upstream ledger API returns HTTP 503 across 6 locations while health probes report unhealthy.

Transient transport or rate-limit outage detected (upstream health degraded). Circuit breaker engaged; runtime waits inside the current attractor with zero compile thrash.

t+0s site-a HEALTH DOWN transport · HTTP 503 · contexts=1
t+120s site-b HEALTH DOWN transport · HTTP 503 · contexts=1
t+300s site-c HEALTH DOWN transport · HTTP 503 · contexts=1
t+540s site-d HEALTH DOWN transport · HTTP 503 · contexts=1
t+720s site-e HEALTH DOWN transport · HTTP 503 · contexts=1
t+900s site-f HEALTH DOWN transport · HTTP 503 · contexts=1
Inspect Stressor Controller Decision Precedence

Given an ordered event stream E = {e_1 … e_n} sorted by timestamp tSec and controller configuration (H_sec, K_min, a_low, a_high):

  1. Invariant Gate: If any event satisfies errorClass == “invariant_breach” or touchedContexts > 1, immediately return escalate_tier0.
  2. Playbook Fingerprint: Else if any event satisfies errorClass == “playbook_hash”, immediately return compile_tier1.
  3. Structural Consensus: Filter events where errorClass in {“schema_mismatch”, “layout_miss”} and healthOk == true. Accumulate distinct instanceId values and elapsed span t_last - t_first. Trigger compile_tier2 at the first event where |instances| ≥ K_min and span ≥ H_sec.
  4. Fallback Separation: Otherwise, classify isolated malformed or abstain-band items (a_low ≤ p ≤ a_high) as quarantine and transport/rate-limit outages as pause with zero compile thrash.

Closing the Trace-to-Spec Loop

Quarantining isolated outliers ([2]) does more than protect uptime. Once three or four quarantined receipts turn out to share a newly introduced vendor surcharge box, their accumulated examples cross minDistinctInstances, graduate automatically into candidate Golden Pins, and trigger a verified Tier 2 recompile. Nothing is wasted: outages pause cleanly, weird inputs turn into permanent test oracles, and verified regressions stay fixed forever.