← Back to Pull requests

Record restored main CI requirements and enforcement evidence #1501

Closed
unknown closed this pull request without merging on Nov 27, 2026 22:14 UTC
View on GitHub
unknown unknown commented on Nov 27, 2026 20:50 UTC
Author

Motivation

Refs #1172. Main's required-check rule omitted CodeQL and allowed stale branches. The live ruleset has now been repaired; this PR records the settings, verified publishers, preserved protections, and remaining enforcement acceptance.

Description

Repository ruleset 18825119 now requires CI, E2E gate, Docs governance / docs-gov and zizmor / unpinned-uses from Actions App 15368, plus CodeQL from Advanced Security App 57789, with strict freshness. The authorized Agent-Bot write and a separate effective-rule read verified the result. Only required-check parameters changed; approvals, eligible CODEOWNERS, resolved threads, stale-review dismissal, signatures, code scanning/quality, conditions, enforcement and existing bypass settings were preserved. No bypass was added or used.

The App's administration:write configuration was correct; the updated Agent-Bot tool supplied the missing execution path. This PR corrects the earlier unsupported access diagnosis and lifts the interim merge hold after independent verification.

Documentation

Canonical docs/CI-Identity-And-Tokens.md records write receipt ghw_f3ea726c1f5acbdb, exact before/after hashes, current requirements, preservation limits, CODEOWNER eligibility and actual rule-suite evidence. Historical and current evidence are distinguished. Issue #1172 remains open for missing/pending/failing/stale and repaired-policy lifecycle qualification; no closing reference is added prematurely.

Changeset

  • Not needed: documentation and repository-policy administration only; no product or workflow code changed.
  • Acceptance coverage

    No renderer changes. CODEOWNERS errors=[]; @qwts has admin/push permission. Read-only rule-suite inspection confirms historical passing check evaluations and an explicit historical missing-check evaluator failure with owner bypass. The preceding-month failed-suite query returned no results; no negative enforcement proof is inferred from that absence.

    Testing

    Passed sequentially on Node 24.18.0:

  • npm run lint (zero errors; existing warnings)

  • INTEROP_IMAGE_TRAIL_ROOT=/workspace/image-trail npm test (unit, DOM and database lanes passed)

  • DOCS_GOV_TOOLING_ROOT=/workspace/docs-gov npm run docs:gov (127 docs, zero findings)

  • npx prettier --check docs/CI-Identity-And-Tokens.md and git diff --check
  • All 15 completed checks succeeded on signed head 3b075b9ff4ec35318f46d9e0c8393edaf5c9f3d5, including Complete suite, E2E, Windows x64, all five required contexts, Advanced CodeQL and workflow policy. Four inapplicable lanes were skipped. Complete CI run. A final independent effective-rule and check-run read verified strict freshness and each required App-bound context before requesting native auto-merge.

    Manual Testing

    Applied and independently verified the live settings update, including exact context/App pairs and strict=true. Write-authorized before/after reads show the existing RepositoryRole 5 always-bypass entry unchanged and current_user_can_bypass=never. No failing change was merged. Auto-merge will be enabled only after complete current-head checks succeed, with normal review/thread gating retained.

    <!-- agent-bot-write: ghw_f15e0a861da050f2 session=f601b21bf418 bot=trueline-codex-agent[bot] -->

    Diff: 417 lines (+312 / -105) across 5 files Reviewer: qwts Review duration: 84m
    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 · 417 lines diff across 5 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.361
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1501"
    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.0% (MEDIUM) · Higher = larger blast radius
    45.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: 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.8% · Safe to merge
    17.8%