← Back to Pull requests

feat(release): release approval record and fail-closed checker (REL01 #68) #323

Open
unknown opened this pull request with 335 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 30, 2026 13:49 UTC
Author

<!-- claude-projects-attribution: {"github_login":"CierCier"} -->
_Requested by cier · project thread_

Summary

Refs #68 (REL01). Adds the approval record and a checker that refuses approval on the current evidence. This does not approve the release. Both sign-offs are blank for @CierCier and @jR4dh3y, 18 P0 blockers are open and #68 should stay open until both developers sign. Please do not treat the merge as closing it.

Plan mapped to acceptance

| Step | Acceptance item | Done by |
| --- | --- | --- |
| 1. One blank sign-off per developer (statement, date, evidence commit) | Both developers explicitly record approval | docs/roadmap/release-approval.json; check requires both, distinct, at the reviewed commit |
| 2. Refuse approval with an open P0, open gate or open non-release task | Approval only with zero open P0 blockers; review six gates and nonpublication task closures | blocking_reasons(); check fails if a sign-off is recorded while any reason remains |
| 3. Five evidence classes tied to blockers and records | Missing dataset/model metric, platform, asset, chain or restore evidence fails approval | evidence_classes; open or unknown blocker or missing record fails the class |
| 4. Index current and at one commit | Review the evidence index and source decisions | REL03 problems() rules plus snapshot/evidence commit match |
| 5. No deadline or staging field; unknown fields rejected | Deadlines and staging cannot authorize release | closed key sets; tests show such fields are rejected and cannot change the reasons |
| 6. verdict for #69 | Approval gates publication | make release-approval-verdict exits 1 now |

Tested

  • make release-approval-test (23 tests), make release-approval-check, make release-evidence-test, make release-evidence-check, go test ./docs/, tools/ci tests: pass locally.

  • make release-approval-verdict exits 1 with 43 reasons and both missing sign-offs, as intended.

  • Wired into the check CI job and path filters; not yet seen running in CI.
  • Not tested / limits

  • No product test is rerun; the checker trusts committed blocker and gate status.

  • The blocker-to-evidence-class mapping is my reading of the register; both developers must confirm it.

  • B-23 (approval and publication still to come) is exempt from the P0 count because it clears with the approval itself; a real release signer is checked in #69.

  • docs/requirements.md changed, so release-evidence-index.md was regenerated.
  • ---
    _Generated by Claude Code_

    Diff: 335 lines (+251 / -84) across 4 files Reviewer: copilot-pull-request-reviewer[bot] Review duration: 1m
    All Vouch review confidence checks passed
    Residual risk 0.39 = Change Risk (0.47) × (1 − Review Confidence (0.16)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.47 · 335 lines diff across 4 files
    0.47
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 14% · Reviewer familiarity: 35%
    16%
    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.348
    Shallow Review Depth shallow_review_depth
    0.344
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #323"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 16.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: 47.2% (MEDIUM) · Higher = larger blast radius
    47.2%
    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: 16.5% · Lower = rushed or shallow review
    16.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: 39.4% · Moderate risk
    39.4%