Files
OBLITERATUS/docs/verification-diagnostics.md
T

3.2 KiB

Verification diagnostics

on_checkpoint_shard(path, name) receives each verified native-export shard after tensor release. Callback errors stop export. A configured callback requires a native export plan; its staging paths can disappear on rollback or promotion.

The verify stage records measurements. Its done status does not establish benchmark retention or quality acceptance. Existing hard perplexity and generation guardrails still apply.

kl_budget_status is within_budget, exceeded, or unavailable. Equality is within budget; missing, failed, or nonfinite measurements are unavailable. kl_budget_enforced=false records an advisory comparison that does not block export. When use_kl_optimization=true, correction measures the candidate after weight edits, including the output head. Exact rollback candidates comprise the weakest third of selected layers and the output head. Snapshot admission includes both. Temporary scoring restores the modified candidate even when measurement fails; failed restoration invalidates the model. Accepted restorations remain in kl_restored_groups, including when the remaining candidate exceeds budget. Final verification enforces the budget after all edits and installed hooks. Missing evidence or excess final KL fails before export. kl_budget_enforced=true records this requirement. The informed pipeline retains one pristine baseline through intermediate checks and releases it after final enforcement or failure. perplexity_increase is the candidate-to-pristine ratio, not a percentage. Reference and verification perplexity weight each loss by its shifted, unmasked causal target count. A sample without scored targets contributes no loss. Verification fails if no reference targets can be scored.

Multi-direction norm preservation restores each recognized fused expert matrix once after the complete subspace projection, using the existing amplification cap. Dense and fused matrices follow the same requested norm policy.

Spectral collection uses a balanced per-class count:

min(max(20, ceil(max(30, ceil(sqrt(hidden_width))) / 2)),
    available_harmful, available_harmless)

Admission and collection use the same count and batch limits. Width 5120 requests 36 samples per class, 72 total. Small models retain the 20-per-class target. Collection is bounded by available evaluation prompts and does not retry automatically. The observed signal can require more samples than this initial dimensionality floor. Insufficient samples, invalid noise estimates, or failed layers remain inconclusive. spectral_samples_used, spectral_samples_required, and spectral_layers_completed/spectral_layers_expected expose evidence coverage. A measured RED layer remains RED even when another layer lacks evidence; missing layers cannot yield an overall GREEN result.

The spectral statistic measures a rank-one difference between two class means. It does not assess distributed signals, nonlinear behavior, or general safety. Its confidence field is an uncalibrated heuristic. The legacy certificate names and YELLOW enum remain compatible; the current estimator does not produce YELLOW. GREEN means only that the class-mean statistic did not exceed its heuristic threshold.