feat: harden diagnostic claim audits#5
Merged
Conversation
tmusser
marked this pull request as ready for review
July 12, 2026 10:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The new QQ, ECDF, and residual intents render correctly, but diagnostics need stronger claim discipline than ordinary descriptive charts. This follow-up adds evidence-backed traps and visual contracts so a plausible-looking diagnostic cannot silently support an overconfident absence claim.
What this PR adds
usermetacontracts remain unchanged.Deterministic boundaries
0.8sample standard deviations.0.5, or ordered-thirds mean shift of at least1.0residual standard deviation.FAILbelow 5 complete observations,WARNfor 5–19,PASSat 20+.These are explainable guardrails for obvious structure, not formal normality or model-adequacy tests.
Trap outcomes
qq_heavy_tails:REVIEWviaclaim.qq.normality_supportqq_missing_reference_line:BLOCKviavisual.qq.reference_lineresidual_obvious_pattern:REVIEWviaclaim.residual.pattern_supportdiagnostic_tiny_sample:BLOCKviadata.residual.sample_sizeVerification
401c0ea: passedartifacts/VERIFY.mdandartifacts/HANDOFF.mdare aligned with the PR