feat: expose diagnostic reductions and file permission options #117
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.67) × (1 − Review Confidence (0.58)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.67 · 254 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.332
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.067
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #117"
general
weight: 0.35
frankbuckley
Downstream reports need per-chain energy diagnostics, reductions of diagnostic tables they have already calculated, and the permissions of an ordinary newly created file. These operations currently require repeated local code or private library functions.
Expose
bfmi_per_chainanddiagnostic_extremawithout choosing variables or applying convergence thresholds. Retain the private energy-function compatibility path and routesampling_qualitythrough the public operations. Add optional permission bits ormode="default"toatomic_write, plus adefault_file_modeprobe that does not change the process-wide creation mask. The existing default file permissions and failure behaviour remain intact.Include the downstream reuse review and implementation record. The downstream migrations use APIs already available in version 0.16.2. Adopting these new diagnostic and permission APIs needs a later library release and downstream tests.
Validation passed for the full library suite with 1,199 tests and 5 skips, Ruff, Markdown formatting and spellcheck. Added tests cover named dimension order, missing and constant energy, unrounded diagnostic boundaries, unavailable diagnostics, nullable missing values in pandas and Arrow-backed columns, permission masks, copied metadata, invalid modes and preservation of the old file after failures. Platform and unavailable optional-dependency tests were skipped; tests used Python 3.14 with
PYTENSOR_FLAGS=cxx=because the local C linker was unavailable.The related downstream migrations use version 0.16.2 APIs. Their pull requests record their own validation results, including the passing 392-test vocabulary-growth slow suite.