Validation, baselines and statistics
A deterministic engine still needs empirical validation: the implementation may be wrong, the contract may omit material conditions, or a simpler baseline may behave just as well.
Figure 1. Validation maps a bounded claim to faults, baselines, negative controls and a conclusion that may be supported, narrowed or rejected.
Start with testable questions
- Does each declared state appear under the intended boundary condition?
- Can missing, stale, conflicting, tampered or replayed evidence ever become PASS?
- Does strict mode change only the trust condition it is meant to enforce?
- Are results deterministic under the same seed, contract, evidence and time?
- Does the engine outperform simpler decision rules on the exact claimed property?
Seeded fault scenarios
generate_fault_scenario creates deterministic scenarios covering nominal operation, payment outage, capacity drop, restore delay, stale backup, configuration drift and payment corruption. scenario_evidence produces test evidence; replay_scenario records it in an evidence ledger.
| Fault | Changed property | Expected consequence |
|---|---|---|
| Payment outage | payment_available=False | Dependency/control failure. |
| Capacity drop | Capacity below target. | Objective failure. |
| Restore delay | RTO exceeds target. | Recovery objective failure. |
| Backup stale | RPO exceeds target. | Freshness-related failure. |
| Configuration drift | Privileged review false. | Control failure. |
| Payment corruption | Integrity metric below target. | Integrity objective failure. |
Comparison baselines
| Baseline | What it tests |
|---|---|
| Manual checklist | Whether simple presence counting is sufficient. |
| Static crosswalk | Whether fixed mapping without temporal semantics is sufficient. |
| Risk score | Whether a scalar threshold can represent multi-state uncertainty. |
| Rule match | Whether direct expected-value matching captures all behavior. |
| Naive business threshold | Whether objective thresholds alone explain outcomes. |
| Proposed engine | Contract, evidence, dependency and validity semantics together. |
Statistics
classification_metrics reports agreement-oriented classification measures against an independent oracle. binary_summary reports sample count, observed rate and a Wilson 95% interval for binary outcomes.
Mandatory negative controls
- Empty evidence → NOT_TESTED.
- Missing required assertion → UNKNOWN.
- Expired observation → EXPIRED.
- Conflicting values → CONFLICT.
- Invalid integrity/signature/replay under strict policy → UNKNOWN.
- Wrong subject → ignored under binding with an explicit reason.
- Unknown or inapplicable standard pack → UNKNOWN when admitted through standard context.
What to report
Report scenario generation, seeds, independent units, baseline configurations, all state outcomes, errors, resource cost, uncertainty intervals and negative evidence. A smoke test or passing unit suite supports implementation quality only; it does not establish enterprise effectiveness.