Deploy employee PR previews without approval; keep fork builds gated #816
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.62) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 245 lines diff across 3 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.329
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.062
Real PR Conversation Timeline
1 comments
"Review active on #816"
general
weight: 0.35
Ethan-Arrowood
<img src="https://github.com/user-attachments/assets/1549b04c-267f-4fc4-b55a-3b0ced9913f2" alt="A badger usher waves the home burrow's animals straight into a lantern-lit preview tent while an owl at a side gate reads a visiting raccoon's note before lifting the latch" title="A badger usher waves the home burrow's animals straight into a lantern-lit preview tent while an owl at a side gate reads a visiting raccoon's note before lifting the latch" align="right" width="256">
Every PR preview currently waits for a
developersapproval, because thepreviewenvironment has required reviewers. That environment also gates fork builds insource-pr-preview.yaml(harper / harper-pro PRs from forks), so its reviewers can't simply be removed.This moves those fork builds to a new
preview-forkenvironment with the same reviewers. Once it merges,previewcan drop its reviewers: PRs from this repo's branches, which only people with write access can open (the repo has no outside collaborators), deploy their preview automatically.Rollout
preview-forkenvironment:developersrequired reviewers,mainonly, no secrets or variables. It had to exist before merge, since GitHub auto-creates an unprotected environment the first time a workflow names one.previewenvironment (Settings → Environments → preview). Its OIDC trust policy pins the namepreview, so the environment itself stays.Not covered
Fork PRs to this repo still get no preview. deploy-action skips forks itself, and
harper preview setuprefuses a workflow that would give a fork the preview identity, so approval-gated fork previews would need a deploy-action change first.Test plan
node --test scripts/source-pr-preview.test.mjspasses with the updated environment assertion.npm run format:checkis clean.🤖 Generated with Claude Code