← Back to Pull requests

ci: pinned "Nightly is failing" issue on nightly.yml failures #130

Closed
unknown closed this pull request without merging on Sep 29, 2026 19:45 UTC
View on GitHub
unknown unknown commented on Sep 29, 2026 16:07 UTC
Author

Implements PLAN.md §7.4: when nightly.yml fails, create or update one pinned issue titled
"Nightly is failing" with a link to the run; close it with a comment when a later nightly passes.

  • New report-status job: needs: [nightly, publish], if: always(), holds only issues: write

  • (top-level permissions: contents: read unchanged). Uses gh with GITHUB_TOKEN, no secrets.
  • Finds the open issue titled exactly "Nightly is failing" (gh issue list --search ... --jq

  • 'select(.title == ...)'
    to avoid partial-title false positives).
  • On nightly/publish failure: comments on the existing issue, or creates + pins a new one.

  • On success: comments and closes the issue if one is open.
  • Verified two ways:
    1. workflow_dispatch on this branch (a real, successful nightly run):
    https://github.com/garrickdabbs/carv-os/actions/runs/36594941800 — nightly, publish and
    report-status all succeeded; the job log shows the token scoped to exactly Issues: write,
    Metadata: read, and the "find" step correctly found no open issue (nightly was green), so the
    no-op path ran with no side effects.
    2. Manually exercised the create → pin → find → comment → close → unpin sequence against the real
    repo with the exact gh invocations used in the workflow (issue #129, created and closed in the
    same session) to confirm the failure and recovery paths both work; a real nightly failure would
    exercise the same commands from inside the job.

    I did not force an actual nightly failure run (that would require breaking the kernel/tests on
    this branch, which risks confusing signal for a docs/CI-only change); the two checks above cover
    every gh call the job makes.

    CHANGELOG + PLAN.md §7.4 updated. No Rust code touched — cargo xtask docs-gate passes; no
    clippy/fmt delta.

    Diff: 226 lines (+169 / -57) across 2 files Reviewer: garrickdabbs Review duration: 217m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 226 lines diff across 2 files
    0.37
    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.325
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #130"
    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: 36.9% (MEDIUM) · Higher = larger blast radius
    36.9%
    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.6% · Safe to merge
    14.6%