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.
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 Class | Operational Signal | System Interpretation | Required Action |
|---|---|---|---|
| 1. Transient Perturbation | HTTP 503 / 504 / 429, DNS/TLS blip, degraded upstream health probe | Temporary environmental shock; system remains in the same attractor | pause — Circuit-break & backoff. Zero code or spec edits. |
| 2. Isolated Data Outlier | Single malformed input or one System One prediction inside the abstain band | Localized weird sample on a single item or venue | quarantine — Route item to review queue; append sample to anomaly ledger without recompiling. |
| 3. Local Structural Shift | Repeated deterministic 400/422 or layout misses across distinct instances while health probes stay green, OR explicit playbook sha256 delta | World shifted to a new local attractor inside Tier 0 invariants | compile_tier2 / compile_tier1 — Trigger Phase 1 CEGIS synthesis + Gates 1–3 + atomic swap. |
| 4. Regime / Invariant Conflict | Candidate fix violates Tier 0 invariant or contagion spills across > 1 Bounded Context | Stress crosses an Architectural Residue wall | escalate_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.
Outage to Pause, Bad Scan to Quarantine, or Drift to Recompile?
Transient transport or rate-limit outage detected (upstream health degraded). Circuit breaker engaged; runtime waits inside the current attractor with zero compile thrash.
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):
- Invariant Gate: If any event satisfies
errorClass == “invariant_breach”ortouchedContexts > 1, immediately returnescalate_tier0. - Playbook Fingerprint: Else if any event satisfies
errorClass == “playbook_hash”, immediately returncompile_tier1. - Structural Consensus: Filter events where
errorClass in {“schema_mismatch”, “layout_miss”}andhealthOk == true. Accumulate distinctinstanceIdvalues and elapsed spant_last - t_first. Triggercompile_tier2at the first event where|instances| ≥ K_minandspan ≥ H_sec. - Fallback Separation: Otherwise, classify isolated malformed or abstain-band items (
a_low ≤ p ≤ a_high) asquarantineand transport/rate-limit outages aspausewith 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.