HomeDocs-Technical WhitePaper12-EFT.WP.Methods.Repro v1.0

Chapter 11 Fault Injection and Rollback Strategies


I. Scope and Objectives


II. Terms and Symbols


III. Postulates and Minimal Equations

  1. P31-20 Injection-isolation postulate
    Any FI must execute in a sandbox or shadow channel, and must not affect the forensic integrity of the baseline golden run: fingerprint(golden_after) = fingerprint(golden_before).
  2. P31-21 Rollback monotonic-improvement postulate
    For the same scenario, rollback must not enlarge the deviation from baseline: delta_rep(after_rollback) <= max( delta_rep(before_rollback) , gate.rep ).
  3. S32-36 Risk synthesis and triggers
    • z_risk = w1*( delta_rep / gate.rep ) + w2*( r_tb / tau_tb ) + w3*( bp / bp_max ) + w4*( |hb - hb_ref| / hb_ref ) + w5*( eps_mass / tau_mass )
    • Trigger rollback and compensation when z_risk >= 1 or any hard gate is tripped.
  4. S32-37 Injection amplitude scales
    • Data level: inj.data = lambda * y (λ is the amplitude factor)
    • Time-base level: inj.time = {alpha_shift, beta_scale} applied to ts = alpha + beta * tau_mono
    • Randomness level: inj.seed = seed ⊕ mask
    • Concurrency level: inj.sched = drop(hb, p) or delay(critical path, dt)
  5. S32-38 Spectral conservation & energy constraint
    • Pre/post injection must satisfy var( x ) ≈ ( ∫ S_xx(f) df ).
    • When the injection targets spectral distortion, measure
      delta_psd = ( ∫ | S_xx^inj(f) - S_xx^ref(f) | df ) / ( ∫ S_xx^ref(f) df )
      and compare against tau_psd.

IV. Data and Manifest Gauges

  1. FI.plan minimal fields
    • plan.id, target.stage, inj.type (env/data/time/rng/concurrency/network/io)
    • inj.params (e.g., lambda, alpha_shift, beta_scale, mask, dt, drop.p)
    • safe window (bp_max, hb_ref, T_obs, U_w, ENBW)
    • guard (trigger/rollback conditions and z_risk weights {w1..w5})
    • audit.keys (fingerprint, hash(•), verifier.pk_ref).
  2. Audit events
    action = {inject | rollback | compensate | abort}, ts, actor, H_k = hash( H_{k-1} || event ), signature sig_k, and associated FI.ticket.
  3. Samples and windows
    State T_obs, window function U_w and ENBW. If T_arr is involved, publish both gauges with delta_form. Path integrals are annotated by gamma(ell) and the measure d ell.

V. Algorithms and Implementation Bindings

  1. I30-16 inject_fault(plan:dict) -> FI.ticket
    • Validate EnvLock and the safe window.
    • Apply inj.type/params in the shadow channel.
    • Emit audit event action = inject and return FI.ticket.
  2. I30-17 assert_invariants(metrics:dict, guards:dict) -> AssertReport
    • Compute delta_rep, r_tb, delta_psd, eps_mass, eps_norm.
    • Synthesize z_risk and return pass with the list of triggered terms.
  3. I30-18 trigger_rollback(ticket:any, policy:dict) -> RollbackReport
    • Route traffic back to stable/LTS.
    • Restore seed, ts, ParamCard, and caches.
    • Audit action = rollback and verify P31-21.
  4. I30-19 compensate_txn(txn_id:any, policy:dict) -> CompReport
    • Execute undo/redo per idempotency/compensation contracts.
    • Verify conservation eps_mass <= tau_mass and units via check_dim(expr) = true.
  5. I30-20 sandbox_replay(bundle:any, seed:any) -> ReplayReport
    • Reproduce pre/post-injection samples with fixed seed and EnvLock.
    • Produce overlays, R_coef, and a delta decomposition.
  6. I30-21 gate_and_cutover(canary:any, stable:any, rule:dict) -> CutoverReport
    • Monitor TS.* and reproducibility metrics under rule.
    • Phase cutover or auto-rollback when gates are satisfied/violated.

VI. Metrology Flows and Run Graph

  1. Mx-60 plan-fi
    • Gather risk domains and target SLOs.
    • Produce FI.plan and the safe window.
    • Rehearse with sandbox_replay to validate controllability.
  2. Mx-61 execute-and-observe
    • Run I30-16 and monitor TS.* in real time.
    • Periodically run I30-17; on out-of-bounds, trigger I30-18.
  3. Mx-62 rollback-and-compensate
    • Execute rollback and compensations via I30-19.
    • Re-check P31-21 and conservation constraints.
    • Append H_k and sig_k.
  4. Mx-63 analyze-and-harden
    • Use sandbox_replay for contrasts and root-cause analysis.
    • Extract regression cases and add them to the benchmark suite (Chapter 8).
    • Update PipelineCard/ParamCard and alerting rules.

VII. Verification and Test Matrix

  1. Minimal required cases
    • Data-level injection: increase lambda stepwise; delta_rep rises monotonically and R_coef = 1 when lambda = 0.
    • Time-base injection: set alpha_shift, beta_scale; estimate r_tb and verify rollback triggers.
    • RNG injection: mask != 0 yields nondeterminism detected by I30-17 as E_NONDETERMINISM.
    • Concurrency injection: drop(hb,p) triggers E_HB_LOSS; with bp rising below bp_max, system performs a stable rollback.
  2. Boundary & extreme scenarios
    • Multi-fault concurrency: env + data + time combined; z_risk must correctly trigger the earliest hard gate.
    • Resource exhaustion: on E_RESOURCE_EXHAUST, makespan spikes; rollback must finish within T_cut.
  3. Repro gates
    • In the post-rollback window: delta_rep <= gate.rep, delta_psd <= tau_psd, r_tb <= tau_tb, eps_mass <= tau_mass.
    • Coupled validation with the Chapter 8 score function score.

VIII. Cross-References and Dependencies


IX. Risks, Limits, and Open Questions


X. Deliverables and Version Management

  1. Deliverables
    • FI.plan (injection types, parameters, gates, and safe window).
    • FI.ticket (execution signature and audit chain H_k, sig_k).
    • AssertReport (delta_rep, r_tb, delta_psd, z_risk, and trigger set).
    • RollbackReport and CompReport (rollback timeline, compensations, conservation audits).
    • ReplayReport (overlays and R_coef) and change recommendations.
  2. Version policy
    • Adding injection types or hard gates requires a minor version bump and expansion of the Chapter 8 benchmarks.
    • Rollback playbook updates follow canary → stable → LTS phased promotion.
    • Any failed injection must never be deleted—only appended with state updates—and archived to a long-term forensic channel.

Copyright & License (CC BY 4.0)

Copyright: Unless otherwise noted, the copyright of “Energy Filament Theory” (text, charts, illustrations, symbols, and formulas) belongs to the author “Guanglin Tu”.
License: This work is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0). You may copy, redistribute, excerpt, adapt, and share for commercial or non‑commercial purposes with proper attribution.
Suggested attribution: Author: “Guanglin Tu”; Work: “Energy Filament Theory”; Source: energyfilament.org; License: CC BY 4.0.

First published: 2025-11-11|Current version:v5.1
License link:https://creativecommons.org/licenses/by/4.0/