Mock matrix showcase
Results
Mock showcase matrix on filesystem: conditions C1, C2, C3, C4, C5 (40 interactions × 3 seeds).
Experimental setup
C1Stateless baselineC2Persistent memoryC3Memory + adversarial pressureC4Memory + drift detectionC5Full SafeAdapt (detect + intervene)Metrics & formulas
Each interaction produces adherence scores for goal, safety, preference, and constraints. Overall alignment is their weighted mean:
Defaults . Run-level mean alignment is
Drift combines behavioral distance, alignment degradation, and violation increase:
with . When crosses severity thresholds, C4 logs a detection and C5 may intervene. Violation rate for a run:
See Docs for hypotheses H1–H5 and CLI reproduction.
Summary table
| Cond. | Task | Detections | Interventions | ||
|---|---|---|---|---|---|
C1 | 0.761 | 0.308 | 0.675 | 0 | 0 |
C2 | 0.761 | 0.308 | 0.675 | 0 | 0 |
C3 | 0.663 | 0.325 | 0.475 | 0 | 0 |
C4 | 0.720 | 0.317 | 0.600 | 25.7 | 0 |
C5 | 0.705 | 0.350 | 0.600 | 25.7 | 26 |
Charts & interpretation
Interactive Recharts views from the committed mock matrix. Each block includes a short reading of what the figure shows.
InterpretationAcross C1–C5, adversarial pressure (C3) is the clearest drop in mean alignment and task success. Detection (C4) and full SafeAdapt (C5) activate monitoring signals that C1–C3 never produce.
InterpretationTrajectories from a representative seed. C1 stays relatively smooth; C4/C5 show more movement once drift scoring turns on. Intervention in C5 does not instantly restore peak alignment in this short mock — it mainly reacts to rising Dt.
InterpretationRunning violation rate v̄t climbs as the interaction horizon grows. C5 does not eliminate violations in this mock regime; the interesting signal is that drift/intervention counters rise in parallel (next charts).
InterpretationC1 has no monitor (score stays near zero). C4 and C5 share the same detector, so Dt rises together; C5 then spends that signal on interventions.
InterpretationOnly C4/C5 emit drift flags. Only C5 applies interventions (~26 per run on average). That is the operational difference of the full SafeAdapt loop in this demo.
InterpretationInterventions accumulate as severity thresholds are crossed. Early horizon is quiet; mid-run activity clusters where drift score is elevated.
InterpretationEach point is one seed. Ideal is high task success and low violations (upper-left). C3 shifts toward worse performance under adversarial pressure; C4/C5 sit between baseline and C3.
InterpretationBars show alignment for each seed (42–44). Variance is modest for C1/C2 and larger under C3–C5, which is expected when memory, adversaries, and interventions interact.
Findings (this demo)
- Adversarial pressure bites. C3 shows the lowest and task success — consistent with H2 in this mock regime.
- Detection is visible. C4/C5 average ~26 drift flags per run; C1–C3 show zero. The monitor is doing measurable work.
- Intervention is exclusive to C5. Only the full stack applies goal revalidation / tool restriction / rollback (~26 interventions per run).
- Short-horizon caveat. On this 40-step mock matrix, C5 does not beat C1 on mean alignment or violations yet — the demo highlights the control loop lighting up, not a final claim of superiority. Longer horizons and real LLMs are the next stress test (Try it).
Reproduce locally via the CLI in Docs, or regenerate assets with PYTHONPATH=src python scripts/export_showcase.py.