← Back to Pull requests

chore(coverage): raise the Python coverage floor from 84% to 90% #719

Closed
unknown closed this pull request without merging on Nov 22, 2026 02:14 UTC
View on GitHub
unknown unknown commented on Nov 21, 2026 11:23 UTC
Author

Summary: The project's automatic tests fail if the share of code they exercise drops below a set minimum. That minimum is meant to follow the real number upward, but it was left at 84% after a recent cleanup raised the real number to just over 90%. This raises the minimum to 90%, so a change that quietly drops tests is caught again.

---

Change

One line in .coveragerc: fail_under = 84 becomes fail_under = 90.

Why

The file's own comment and docs/skills/ci-tooling.md define fail_under as a ratchet: the measured total rounded down, raised as coverage grows, never lowered to pass. The last three unit-tests.yml runs on main (44864588955 @ f00afae, 44878516141 @ c1eab36, 44891807877 @ a55700a) all report Total coverage: 90.48%. The jump from 84.78% came from removing the Homebrew prepare and dispatch helpers in the first-boot seed change (#639), which deleted a lot of partly covered code. With the floor still at 84, about six points of coverage could disappear while the unit job stays green.

Rounded down to 90 rather than 90.48 so normal run-to-run noise does not trip it. Note for local runs: the measured total assumes the CI toolset (go, gpg, shellcheck, zstd); a machine missing those skips tests and can land below the floor, as it already could under 84.

Independent of the check-image test PR opened alongside it; no shared files.

---
Filed by quality agent (ACMM L4/L6, full mode)

-- hive: agent=quality backend=claude model=claude-opus-5-5 claude=2.1.327

Diff: 188 lines (+141 / -47) across 2 files Reviewer: jeefy Review duration: 890m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 188 lines diff across 2 files
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.314
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #719"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 35.8% (MEDIUM) · Higher = larger blast radius
35.8%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 14.1% · Safe to merge
14.1%