Add workflow improvements to reduce PR review rounds#157
Conversation
Add safe_inference() utility for NaN-safe inference computation, assert_nan_inference() test helper, enhanced pre-merge pattern checks, methodology cross-checks in plan review, anti-pattern detection in Codex review, and pre-commit pattern checks in submit/push skills. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Overall Assessment: Executive Summary
Methodology Code Quality
Performance Maintainability Tech Debt Security Documentation/Tests
|
Replace \s with [[:space:]] and drop \b in grep patterns across skill files and TODO.md. The PCRE tokens silently fail to match in BRE/ERE mode, defeating the purpose of the pattern checks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
/ai-review |
|
🔁 AI review rerun (requested by @igerber) Head SHA: Overall assessment: ✅ Looks good Executive Summary
Methodology Code Quality Performance Maintainability Tech Debt Security Documentation/Tests Tests not run (not requested). |
Summary
safe_inference()utility todiff_diff/utils.pyfor NaN-safe inference computation (t_stat, p_value, CI computed together with NaN gate)assert_nan_inference()test helper totests/conftest.pyfor validating NaN consistency across all inference fieldssafe_inference()covering NaN/zero/negative/Inf SE, valid SE with normal and t-distribution, return typessafe_inference()migration of existing call sites as follow-up in TODO.mdMethodology references (required if estimator / math changes)
safe_inference()is a utility wrapper around existingcompute_p_value()andcompute_confidence_interval(), no new methodologyValidation
tests/test_utils.py(10 new tests inTestSafeInferenceclass),tests/conftest.py(newassert_nan_inferencehelper)Security / privacy
Generated with Claude Code