Main Health: recover exact-main qualification #153
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #153"
general
weight: 0.35
Miko997
Outcome
Problem
Two retained protected-main failures prevent truthful qualification of exact main
93639767dec3dee2b361d1692a2172a440d3fdca:35983465326remains available. This caused the broker to consume PR #151 review5305166499fail-closed without merging.35983465418, job107580564583, failed because the release-artifact clean-tree scan allowed only five seconds forgit status --porcelain --untracked-files=allon macOS Python 3.12.The first one-time candidate activation also exposed a third, independent compatibility defect before any review or merge: the deployed broker's intentionally stdlib-only Python environment could not import current
metriplane.strict_parsingbecause PyYAML was imported eagerly. The activation stopped fail-closed withModuleNotFoundError: No module named 'yaml'; the protected broker was restored to deploy57f0784445d1cbfd77d006ae2c112cefd0557df2, and no owner request or merge was created.User-visible behavior
Broker admission remains fail-closed. If the primary branch-filtered inventory lacks exact current-main CI, the broker performs one exact-head-SHA readback and accepts only the canonical
CI/.github/workflows/ci.ymlpush run bound tomainand the exact protected-main SHA.Release builds still require an exact clean checkout. Only the expensive full untracked-status scan receives a bounded 30-second window; repository-root, commit, and tree identity commands retain their five-second bounds.
JSON-only broker paths now preserve the documented stdlib-only deployment boundary. YAML parsing remains available when PyYAML is installed and fails closed with
StrictYamlErrorwhen it is absent.Changes
Scope
HealthReconciler._current_ciand revalidates workflow name, path, event, ref, and SHA for every governed same-ID attempt.Compatibility
The primary CI lookup, attempt chronology, required workflow/job evidence, merge admission, App-only state writer, owner-normal semantics, Python 3.12/3.13 support, dirty-checkout rejection, release failure semantics, strict YAML duplicate-key behavior, and all public strict-parsing signatures remain unchanged.
Evidence and research impact
The original broker failures, consumed review
5305166499, exact-main failure run35983465418, job107580564583, and failed candidate activation remain retained. No provider result, Main Health history, publication evidence, or frozen research evidence is rewritten or relabelled.Validation
Tests
metriplane/strict_parsing.py.tools.main_health_brokerwith-S; JSON parsing succeeds and YAML parsing rejects fail-closed without site packages.eb3e81b60e8cb151e9331c7e6ac1367ded68000aagainst base93639767dec3dee2b361d1692a2172a440d3fdca.eb3e81b60e8cb151e9331c7e6ac1367ded68000abefore any renewed activation or merge.Documentation
Updates only the canonical collection/pass-count contract and mechanically generated currentness records.
Boundaries
Privacy and security
No credentials, private paths, personal data, new trust root, repository-setting mutation, workflow change, publication authority, state-writing path, dependency installation in the broker runtime, or generic unmerged-code execution capability is added.
Checklist