╔══════════════════════════════════════════════════════════════╗
║  DSFB Gray Failure Detection — Full Empirical Evaluation    ║
║  Invariant Forge LLC — Deterministic Structural Engine      ║
╚══════════════════════════════════════════════════════════════╝

══ Section 1: Primary Evaluation (Recommended Configuration) ══

Table 1: Primary Results (Recommended Configuration)
┌─────────────────────┬───────┬──────────┬───────┬──────┬────────┬─────────┬──────────┐
│ Scenario            │ Steps │ Inj.Start│ Det.  │Delay │ Lead   │ FalseAl │ Viol.Steps│
├─────────────────────┼───────┼──────────┼───────┼──────┼────────┼─────────┼──────────┤
│ Clock Drift         │  200  │     50   │  YES  │    7 │   143  │    0    │    108   │
│ Partial Partition   │  200  │     40   │  YES  │    2 │   158  │    0    │    141   │
│ Channel Backpressure │  200  │     30   │  YES  │    9 │   161  │    0    │    155   │
│ Async Starvation    │  200  │     60   │  YES  │    - │   195  │    1    │    136   │
└─────────────────────┴───────┴──────────┴───────┴──────┴────────┴─────────┴──────────┘

══ Section 2: Sensitivity Sweep (Clock Drift, 42-point 2D) ══

Table 2: Sensitivity Sweep — Clock Drift Scenario
┌──────┬─────┬──────────┬───────┬──────┬────────┐
│  σ   │  P  │ Med.Lead │ Det.% │ EW%  │ False% │
├──────┼─────┼──────────┼───────┼──────┼────────┤
│  0.5 │   5 │    197   │  100  │   0  │  100   │
│  0.5 │  10 │    197   │  100  │   0  │  100   │
│  0.5 │  15 │    197   │  100  │   0  │  100   │
│  0.5 │  20 │    197   │  100  │   0  │  100   │
│  0.5 │  25 │    197   │  100  │   0  │  100   │
│  0.5 │  30 │    197   │  100  │   0  │  100   │
│  0.5 │  40 │    197   │  100  │   0  │  100   │
│  1.0 │   5 │    197   │  100  │   0  │  100   │
│  1.0 │  10 │    197   │  100  │   0  │  100   │
│  1.0 │  15 │    197   │  100  │   0  │  100   │
│  1.0 │  20 │    197   │  100  │   0  │  100   │
│  1.0 │  25 │    197   │  100  │   0  │  100   │
│  1.0 │  30 │    197   │  100  │   0  │  100   │
│  1.0 │  40 │    197   │  100  │   0  │  100   │
│  1.5 │   5 │    195   │  100  │   0  │  100   │
│  1.5 │  10 │    171   │  100  │   0  │  100   │
│  1.5 │  15 │    144   │  100  │ 100  │    0   │
│  1.5 │  20 │    143   │  100  │ 100  │    0   │
│  1.5 │  25 │    142   │  100  │ 100  │    0   │
│  1.5 │  30 │    138   │  100  │ 100  │    0   │
│  1.5 │  40 │    136   │  100  │ 100  │    0   │
│  2.0 │   5 │    195   │  100  │   0  │  100   │
│  2.0 │  10 │    116   │  100  │ 100  │    0   │
│  2.0 │  15 │    143   │  100  │ 100  │    0   │
│  2.0 │  20 │    143   │  100  │ 100  │    0   │
│  2.0 │  25 │    138   │  100  │ 100  │    0   │
│  2.0 │  30 │    137   │  100  │ 100  │    0   │
│  2.0 │  40 │    132   │  100  │ 100  │    0   │
│  2.5 │   5 │    176   │  100  │   0  │  100   │
│  2.5 │  10 │    108   │  100  │ 100  │    0   │
│  2.5 │  15 │    108   │  100  │ 100  │    0   │
│  2.5 │  20 │    108   │  100  │ 100  │    0   │
│  2.5 │  25 │    108   │  100  │ 100  │    0   │
│  2.5 │  30 │    108   │  100  │ 100  │    0   │
│  2.5 │  40 │    108   │  100  │ 100  │    0   │
│  3.0 │   5 │    159   │  100  │   0  │  100   │
│  3.0 │  10 │     99   │  100  │ 100  │    0   │
│  3.0 │  15 │     99   │  100  │ 100  │    0   │
│  3.0 │  20 │     99   │  100  │ 100  │    0   │
│  3.0 │  25 │     99   │  100  │ 100  │    0   │
│  3.0 │  30 │     99   │  100  │ 100  │    0   │
│  3.0 │  40 │     99   │  100  │ 100  │    0   │
└──────┴─────┴──────────┴───────┴──────┴────────┘
  CSV: data/sensitivity_sweep.csv

══ Section 3: Negative Control — No-Fault Baseline ══

Table 3: Negative Control — False Alarm Analysis on Healthy Windows
┌─────────────────────┬──────────┬────────────┬────────────┬────────────┐
│ Scenario            │ Samples  │ Boundary   │ Violation  │ False Rate │
├─────────────────────┼──────────┼────────────┼────────────┼────────────┤
│ Clock Drift (clean) │    200   │        0   │        0   │     0.0%   │
│ Partition (clean)   │    200   │        0   │        0   │     0.0%   │
│ Backpressure (clean) │    200   │        0   │        0   │     0.0%   │
│ Starvation (clean)  │    200   │        0   │        6   │     3.0%   │
└─────────────────────┴──────────┴────────────┴────────────┴────────────┘

══ Section 4: Deterministic Reproducibility Verification ══

  Run  1: first_boundary=step 57 (baseline)
  Run  2: first_boundary=step 57 ✓ matches
  Run  3: first_boundary=step 57 ✓ matches
  Run  4: first_boundary=step 57 ✓ matches
  Run  5: first_boundary=step 57 ✓ matches
  Run  6: first_boundary=step 57 ✓ matches
  Run  7: first_boundary=step 57 ✓ matches
  Run  8: first_boundary=step 57 ✓ matches
  Run  9: first_boundary=step 57 ✓ matches
  Run 10: first_boundary=step 57 ✓ matches
  Deterministic: VERIFIED — 10/10 runs identical

══ Section 5: Multi-Scenario Structural Discrimination ══

Table 4: Structural Signatures by Scenario at Detection Point
┌─────────────────────┬──────────┬──────────┬──────────┬────────────┐
│ Scenario            │ Residual │  Drift   │   Slew   │ Drift/Slew │
├─────────────────────┼──────────┼──────────┼──────────┼────────────┤
│ Clock Drift         │   0.2970 │ 0.017466 │ 0.042477 │        0.4 │
│ Partial Partition   │   2.4615 │ 0.169216 │ 0.518979 │        0.3 │
│ Channel Backpressure │  45.4891 │ 3.486509 │ 5.976623 │        0.6 │
│ Async Starvation    │  -1.4737 │ 0.080096 │ -3.618713 │       -0.0 │
└─────────────────────┴──────────┴──────────┴──────────┴────────────┘

Interpretation: Each scenario produces a structurally distinct signature
at its detection point. Clock drift has high drift/slew ratio (pure drift).
Backpressure has lower ratio (accelerating growth → positive slew).
This discrimination is information that scalar threshold alerts do not provide.

══ Section 6: Drift Rate Variation — Detection Elasticity ══

Table 5: Clock Drift Detection vs. Drift Rate
┌────────────┬───────┬──────┬────────┐
│ Drift Rate │ Det.  │Delay │  Lead  │
├────────────┼───────┼──────┼────────┤
│    0.010   │  NO   │    - │     -  │
│    0.020   │  YES  │   84 │    66  │
│    0.030   │  YES  │   58 │    92  │
│    0.050   │  YES  │    7 │   143  │
│    0.080   │  YES  │    7 │   143  │
│    0.100   │  YES  │    7 │   143  │
│    0.150   │  YES  │    6 │   144  │
│    0.200   │  YES  │    5 │   145  │
└────────────┴───────┴──────┴────────┘

══════════════════════════════════════════════════════════════
  EVALUATION COMPLETE
  • 4/4 primary scenarios: gray failures detected
  • 42-point sensitivity sweep completed: 42 detected, 19 with pre-injection alarms
  • Clean-window controls: 3/4 had zero anomaly steps
  • Deterministic reproducibility: 10/10 runs identical
  • Structural discrimination: distinct signatures per scenario
  • Drift rate elasticity: 8-point sweep completed
══════════════════════════════════════════════════════════════
