← Back to Pull requests

Say that harper preview setup creates the pull_request_target policy #825

Open
unknown opened this pull request with 324 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 24, 2026 16:43 UTC
Author

<img src="https://github.com/user-attachments/assets/6bd2509a-d557-4aed-9e32-a573035563a9" alt="A hedgehog librarian points to a new guidebook page where a badger hangs one permit on a single trail gate" title="A hedgehog librarian points to a new guidebook page where a badger hangs one permit on a single trail gate" align="right" width="256">

📝 Summary

From harper v5.4.2, harper preview setup creates the Actions event policy a public repository needs for pull_request_target, after asking (HarperFast/harper#4581). The CI/CD guide now says so in its prerequisites, its setup steps, its options table (whose lead-in no longer claims the released reference lists every option) and the public-repositories section. The manual steps that #821 added stay, for doing it by hand or when setup cannot.

Built on main: #821 merged before this branch started, so nothing is stacked.

Depends-on: HarperFast/harper#4581

✅ Verification

  • npx prettier --check learn/developers/deploying-from-ci.mdx passes.

  • The new text links only anchors that exist in the published reference today (#harper-preview-setup), not the section HarperFast/harper#4581 adds, so the site build does not wait on a harper release.

  • Each claim was checked against the CLI in HarperFast/harper#4581: the consent prompt and actions_policy=true, admin-only creation, never changing a policy, the fallback command, and the step order (variable, then policy).
  • ---

    🤖 Generated with Claude Code

    Related PRs: #821 overlaps (adds to the section it wrote, keeping its manual steps)
    Complexity: easy

    <sub>Review-Coverage: authored=claude; ran=gemini,cursor-composer,codex; adjudicated=domain; declined=cursor-grok,muse; rounds=3; full=2 @ 7123e820560d</sub>

    <sub>Review-Attention: skim ~2m (decisions: ship-before-cli-release, backfill-via-rerun) @ 7123e820560d</sub>

    Diff: 324 lines (+243 / -81) across 4 files Reviewer: Ethan-Arrowood Review duration: 5581m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.42) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 324 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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.346
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #825"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 42.0% (MEDIUM) · Higher = larger blast radius
    42.0%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 22.4% · Safe to merge
    22.4%