← Back to Pull requests

fix(ci): publish required docs check when reusing preflight #1516

Closed
unknown closed this pull request without merging on Nov 30, 2026 06:37 UTC
View on GitHub
unknown unknown commented on Nov 30, 2026 06:19 UTC
Author

Motivation

Ready transitions on #1508, #1510 and #1511 reuse successful exact-head manual CI and skip the reusable Docs governance caller. GitHub then waits for the missing required child context, Docs governance / docs-gov, despite the earlier successful preflight.

Description

Run the pinned docs-governance workflow on full lifecycle events even when preflight results are reused. Require its fresh success in the aggregate verdict. Preserve the existing check name, publishing App, cancellation/actor boundaries, strict freshness, and expensive-lane reuse.

Regression coverage executes the actual workflow predicates and shell verdict: preflight reuse must select docs governance; failed, cancelled, skipped and missing docs results must reject CI. The regressions failed before the fix and pass afterward.

Documentation

Updated the canonical lifecycle contract in docs/CI-Identity-And-Tokens.md.

Testing

Passed locally, sequentially: fresh npm ci; npm run lint; npm test (unit/DOM/DB-pages); DOCS_GOV_TOOLING_ROOT=/workspace/docs-gov npm run docs:gov; npm run format:check; npm run check:changesets; npm run check:acceptance-coverage; git diff --check. Also passed 152 targeted lifecycle/cancellation/DirectML gate tests.

Hosted verification will run a complete exact-head preflight, then promote this PR and verify that the ready-event run reuses heavy evidence while actually publishing a fresh successful required docs child check.

Manual testing

No product behavior changes. The two-event hosted lifecycle above is the integration test for the reported merge blocker.

Closes #1515

Hosted evidence at unchanged head 00d9dbfc1b4b5517aa514b6f2a74b39a7a9efce0: complete preflight 46365562148 passed. Final ready run 46367240982 reused preflight, skipped Complete suite/E2E/Windows/Advanced CodeQL, ran fresh Docs governance / docs-gov job 141675940095 successfully, and passed CI. The earlier PR fallback run 46366695402 was superseded/cancelled; its failed cancellation verdicts are not qualifying evidence. GitHub reports the final PR merge state clean. Required context/App identities and strict freshness were independently revalidated.

<!-- agent-bot-write: ghw_a4b1a127c1223b0a session=f601b21bf418 bot=trueline-codex-agent[bot] conversation_id=dependabot-maintenance conversation_id_source=self-reported -->

Diff: 321 lines (+240 / -81) across 4 files Reviewer: qwts Review duration: 17m
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 321 lines diff across 4 files
0.42
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
Real PR Conversation Timeline
1 comments
"Review active on #1516"
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: 41.9% (MEDIUM) · Higher = larger blast radius
41.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: 16.6% · Safe to merge
16.6%