← Back to Pull requests

ci: skip full checks for docs-only pull requests #1634

Closed
unknown closed this pull request without merging on Oct 04, 2026 00:05 UTC
View on GitHub
unknown unknown commented on Oct 03, 2026 22:24 UTC
Author

<!-- entire-trail-link-start -->
https://entire.io/gh/jdx/hk/trails/210
<!-- entire-trail-link-end -->

Adds an always-run change classifier to CI. Pull requests touching only selected Markdown documentation files avoid the full platform matrix but run a dedicated render-and-no-diff validation job before the existing required final check succeeds. Runtime, generated-documentation, workflow, rename, unknown, empty-response, and API-error cases run full CI.

The classifier reads changed filenames through the pull-request API without checking out PR code. It checks both rename sources and destinations and includes positive plus generated-docs, runtime, rename, and empty-list negative policy assertions.

Validation: actionlint .github/workflows/ci.yml (the only reported reusable-workflow path diagnostics are pre-existing for $/...); git diff --check. Full workflow validation is delegated to this PR CI.

AI-assisted — Tool: Codex; model: unavailable; version: unavailable.

<!-- CURSOR_SUMMARY -->
---

[!NOTE]

Medium Risk

Changes which jobs gate merge and could skip the full test matrix; misclassification would weaken CI, though the workflow adds explicit jq policy tests and falls back to full CI on API/empty-list errors.

> Overview

Adds a change classifier job that uses the GitHub PR files API (no checkout) to set docs_only when every changed path matches allowed Markdown (README/CHANGELOG/etc. at repo root or under docs/). Renames are checked on both filename and previous_filename. API failures, empty lists, or any non-doc path keep full CI.

> Docs-only PRs skip the trusted/untrusted reusable ci-impl matrix and instead run a lightweight docs_only job: checkout, mise run render, and fail if the working tree is dirty—same render guard as full CI but without the platform matrix.

> The classifier embeds jq self-tests so misclassification (mixed files, workflows, generated docs inputs, renames from runtime code) fails the workflow at classify time.

> The final required check now depends on changes (and docs_only when applicable): docs-only success requires changes + docs_only only; otherwise behavior is unchanged (exactly one of trusted/untrusted must succeed).

> <sup>Reviewed by Cursor Bugbot for commit a4b528a3bbc22e1fa5df26005f9e06c7f4c358d3. Bugbot is set up for automated code reviews on this repo. Configure here.</sup>

<!-- /CURSOR_SUMMARY -->

Diff: 318 lines (+238 / -80) across 3 files Reviewer: jdx Review duration: 100m
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 318 lines diff across 3 files
0.45
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.345
Shallow Review Depth shallow_review_depth
0.289
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1634"
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: 45.4% (MEDIUM) · Higher = larger blast radius
45.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: 17.9% · Safe to merge
17.9%
Repository