← Back to Pull requests

ci(e2e): open the ISO record PR as mergeraptor so the hive can merge it #1396

Closed
unknown closed this pull request without merging on Nov 20, 2026 23:10 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 21:31 UTC
Author

What this does

The PR that refreshes the verified ISO record link will be opened by mergeraptor instead of github-actions. Then the hive can review and merge it, as it does for the GNOME extension update PRs.

Today these PRs wait for a person: all 4 from 11-06 to 11-20 were merged by hand. Two reasons:

  • GitHub runs no normal PR checks on a PR opened with a workflow's own token. The open one, #1351, is stuck on held runs.

  • The hive doesn't trust github-actions as an author, so it won't merge them.
  • This is experiment E2, which James OK'd. We'll measure how many of these PRs still need a hand merge. To undo it, revert this PR.

    Details

    post-testing-e2e.yml, documentation job:

  • Gets a mergeraptor token for this repo only (contents and pull-requests write) and gives it to the "Propose updated verification link" step. update-gnome-extensions.yml and image-baselines.yml use the same pattern.

  • Both steps run only on this organization's main. A dispatch on another ref still publishes the record branch, but mints no token and opens no PR.

  • The workflow's own token keeps contents: write, because it still pushes the verification record branch. It loses pull-requests: write.

  • The PR still changes only README.md.
  • Test: tests/test_iso_ci.py adds test_the_iso_record_pr_is_opened_as_mergeraptor (token wiring and the main guard).

    Docs: docs/skills/ci-workflows/references/iso-e2e.md and the post-testing-e2e.yml entry in docs/skills/ci-workflows.md describe the App token.

    Checked locally:

  • tests.test_iso_ci passes (96 tests) and actionlint is clean.

  • The full suite fails the same 209 tests here as on main, because this host lacks the build tools.

  • zizmor's one medium finding (artipacked on this job's checkout) is on main too. That checkout keeps its credentials so the job can push the record branch.
  • How to check after merge: the next ISO record PR should be authored by app/mergeraptor, get its normal checks, and get role/trusted from the hive.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01WcWm7qSas33JDrgas6zFWf

    Diff: 268 lines (+201 / -67) across 3 files Reviewer: Danathar Review duration: 98m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 268 lines diff across 3 files
    0.39
    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.335
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1396"
    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: 39.4% (MEDIUM) · Higher = larger blast radius
    39.4%
    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: 15.6% · Safe to merge
    15.6%