← Back to Pull requests

MP2-029: qualify fail-closed supply-chain controls on current main #161

Closed
unknown closed this pull request without merging on Sep 27, 2026 16:14 UTC
View on GitHub
unknown unknown commented on Sep 27, 2026 13:51 UTC
Author

Outcome

Problem

MP2-029 / MET-99 requires fail-closed, exact-source supply-chain controls for dependencies, vulnerabilities, runtime images, secrets, SBOM retention, permissions, action pins, and Dependabot coverage. The earlier PR #156 candidate became stale after main gained the qualified four-shard CI layout, and its retained hosted failure evidence must not be relabelled as success.

User-visible behavior

Pull requests and protected-main runs gain an existing-terminal-integrated supply-chain gate. Failures identify the affected control; product CLI and runtime behavior do not change.

Changes

Scope

Rebases the reviewed MP2-029 implementation onto exact qualified main 041b2679997e795597875db63aa5ebfff777f266. It adds the supply-chain workflow, governed policy/schema/checker, pinned scanners, exact aggregate bindings, SBOM retention, expanded Dependabot coverage, least-privilege workflow permissions, negative fixtures, documentation, and generated currentness updates.

The final corrections use one shared Dockerfile predicate for Dockerfile, Dockerfile., and .Dockerfile; both full inventory and changed-path admission use it and fail closed on undeclared images. The license review accepts an individually dependency-free runtime project while still rejecting an entirely empty seven-project inventory. The hosted full-suite finding is corrected by identifying ZIP content independently of its filename, excluding only compressed payload bytes from raw metadata scanning, and checking names, metadata, and decompressed members fail-closed. The existing four-shard Linux matrix and removal of the heavy-CI pull_request.edited trigger remain intact.

Release, publication, repository protections, trust roots, deployed services, and unrelated governance are out of scope. PR #156 and the failed exact-head runs for earlier PR #161 candidates remain retained as historical evidence.

Compatibility

Python 3.12/3.13, platform, CLI, schema, package, report, and bundle support remain unchanged. Existing artifacts remain readable. Both runtime Dockerfiles are scanned; the ClusterFuzz builder remains explicitly classified as non-shipped CI infrastructure.

Evidence and research impact

No research claim or historical evidence is rewritten. The gate binds checkout bytes, scanner targets, per-control results, source SHA, aggregate dependencies, and retained SPDX output. Negative tests cover wrong refs, forged source output, target substitution, unpinned actions, permission drift, incomplete aggregates, scanner bypasses, missing or ambiguous license metadata, cross-project/runtime-scope hiding, inventory drift, both governed Dockerfile variant forms, and private-path leaks in suffixless ZIP bodies and metadata.

Validation

Tests

  • Exact candidate: 3ab1292f0122151c90c6e7d8bd152aa059392a0f on base 041b2679997e795597875db63aa5ebfff777f266.

  • Initial task/currentness regression suite: 434 passed, 2 documented skips; dependency-license hosted-failure correction suite: 370 passed, 2 documented skips.

  • Archive-path correction: 12/12 robomimic tests passed on Python 3.12 and 3.13; combined MP2-029/archive suite: 200 passed.

  • Full currentness suite: 159 passed, 2 documented skips, plus the isolated no-write lock check passed after the overlapping local discovery process completed.

  • Traceability regeneration: 23 graph/gate tests passed with a workspace-local temp root; node, edge, and ledger row sets are unchanged.

  • Independent review: all source, fail-closed ZIP metadata, and generated-currentness findings closed; final review clean.

  • Exact seven-project base/head license reproduction: 134 packages, 2 changed packages reviewed, PASS.

  • Canonical collection: 6,206 tests; integrated source profile: 6,121 passed and 16 expected skips.

  • Ruff, formatting (718 files), mypy (150 source files), supply-chain policy, UI audit, public-surface, traceability, supported-environment bindings, and diff checks passed.

  • Governed census: 70 workflow jobs, 11,275 public-surface rows, 243 UI actions, and 262 registry-extension rows.

  • Complete hosted qualification for this exact head is required before merge and is pending.
  • Documentation

    Adds the supply-chain maintainer documentation and refreshes testing, UI, public-surface, traceability, and support-currentness records with exact staged-source bindings.

    Boundaries

    Privacy and security

    All third-party actions are commit-SHA pinned, checkout credentials do not persist, write permissions are exactly allowlisted, scanner inputs are exact, and aggregates fail closed. No credentials, private recordings, personal data, identifying workcell data, or private fixtures were added.

    Checklist

  • The pull request is focused and its diff has been reviewed independently.

  • New or changed behavior has tests, including relevant failure paths.

  • Focused checks pass locally; required complete qualification must be green for the exact candidate before merge.

  • User-facing commands, support boundaries, and documentation remain truthful.

  • Third-party material has compatible licensing and required attribution.

  • No credentials, private recordings, personal data, or identifying workcell data were added.

  • Frozen v0.2.0 evidence, checksums, measurements, tag, and DOI metadata were not rewritten.

  • Current package capabilities are not attributed to the v0.2.0 SoftwareX evidence or the TIM v0.1.3 measurements.
  • Diff: 650 lines (+487 / -163) across 8 files Reviewer: Miko997 Review duration: 143m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #161"
    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: 52% (MEDIUM) · Higher = larger blast radius
    52%
    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: 20.5% · Safe to merge
    20.5%