← Back to Pull requests

Document current main protection gaps and owner repair #1499

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

Motivation

Refs #1172. The historical September repair no longer matches live main policy: strict freshness is disabled and the stable CodeQL context is absent from required checks. Issue #1172 remains open pending administrative repair and complete enforcement evidence.

Description

Record the effective repository and organization rules, classic-protection 404, CODEOWNERS requirement, exact live check names and publishing App IDs. Provide focused owner repair and independent verification steps while preserving every existing safeguard. Separate actual check/lifecycle observations from unproven isolated negative enforcement. Add a prominent interim hold on auto-merge and normal merges until independently verified strict freshness and all five App-bound contexts are restored; green head checks alone leave a base-advance race.

Correction: the trueline-codex-agent App is configured with administration: write, verified via live App metadata. The current tool returns a narrowed credential permission map and exposes only ruleset reads; it does not establish that the installation lacks administration permission. The original access diagnosis in this PR was incorrect. No App permission change is requested. No settings were changed. Exact owner actions are posted on #1172. No bypass was added or used.

Documentation

Updated canonical docs/CI-Identity-And-Tokens.md with the 2026-11-27 audit, repair procedure and evidence matrix.

Changeset

  • Not needed: documentation only; no product or workflow code changed.
  • Acceptance coverage

    No renderer or product-flow changes. Policy acceptance remains incomplete until the owner repair and pending/failing/missing/stale/current-head evidence are verified.

    Testing

    Passed sequentially on Node 24.18.0:

  • npm run lint

  • INTEROP_IMAGE_TRAIL_ROOT=/workspace/image-trail npm test (all three unit/DOM/database lanes)

  • 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
  • Initial npm test failed because INTEROP_IMAGE_TRAIL_ROOT was unset; rerun with the pinned evidence checkout passed. Heavy lanes run in CI on final signed head da719684c91d2c79279086d7042fc33636579ded. No enforcement success is inferred from configuration alone.

    Manual Testing

    Read-only live policy and check-run inspection; exact owner steps and remaining evidence are on #1172. No deliberately failing change was merged. Auto-merge remains disabled until independently verified policy repair and complete successful current-head checks.

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

    Diff: 339 lines (+254 / -85) across 4 files Reviewer: qwts Review duration: 24m
    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 · 339 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.349
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1499"
    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: 42.3% (MEDIUM) · Higher = larger blast radius
    42.3%
    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.7% · Safe to merge
    16.7%