← Back to Pull requests

Fix portable scan for suffixless ZIP payloads #159

Closed
unknown closed this pull request without merging on Sep 27, 2026 07:09 UTC
View on GitHub
unknown unknown commented on Sep 26, 2026 19:35 UTC
Author

Outcome

Problem

Exact-main External Source-Family Matrix run 36263760110 exposed a real false rejection in the portable-output guard. Durable publication stores an exact public ZIP as an opaque generation .blob; scanning those compressed bytes as plain text can coincidentally match a machine-private path pattern even though the public ZIP member names and decompressed bodies are clean.

User-visible behavior

Portable external-source fixture qualification accepts a valid relocated durable-publication copy while continuing to reject machine-private paths in public files and ZIP contents.

Changes

Scope

Move the workflow's portable-output scan into a tested helper, recognize ZIP content independently of its filename suffix, scan it by member name and decompressed body, add positive and fail-closed negative coverage, and update the governed test census and generated inventories. Every non-ZIP file remains raw-byte scanned. The original failed run is retained. No provider result is relabelled or retried into PASS.

Out of scope: Main Health authority changes, rulesets, branch protection, publication, release, schemas, package behavior, and unrelated v0.5 work.

Compatibility

Python 3.12/3.13 and existing platform support are unchanged. CLI, schema, report, bundle, and publication protocol compatibility are unchanged. Existing durable generations remain readable and verifiable.

Evidence and research impact

Verification becomes representation-aware: ZIP content is scanned by member name and decompressed body even when its durable exact-byte copy has an opaque .blob name. Every non-ZIP opaque blob, protocol metadata file, ordinary file, ZIP body, and symlink remains fail-closed. No research claim or retained evidence is rewritten.

Validation

Tests

  • Focused tests run: Ruff lint/format; strict mypy (150 source files); canonical collection (6,137); external-source matrix tests; toolchain-policy/currentness tests; functional/public inventory and traceability tests; real projected ManiSkill incident bundle verification, regression execution, relocation, and portable guard.

  • Complete hosted qualification (exact candidate, run/attempt, or pending): pending for the frozen exact PR head.

  • Manual checks, if any: staged diff/currentness inspection; exact-main failure 36263760110 and its four failed portable rows retained as defect evidence.
  • Documentation

    docs/maintainers/testing-policy.md records the updated canonical collection and source-profile pass census. Generated functional/public-surface and traceability records are current.

    Boundaries

    Privacy and security

    No credentials, recordings, personal data, or private paths are added. The guard still rejects private paths in every non-ZIP file, ZIP member name, decompressed ZIP body, and publication protocol metadata. No pathname receives an exemption; suffixless ZIP content receives the same semantic inspection as a .zip file, and symlinks fail closed.

    Checklist

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

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

  • 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: 470 lines (+352 / -118) across 5 files Reviewer: Miko997 Review duration: 693m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.69) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.69 · 470 lines diff across 5 files
    0.69
    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%
    57%
    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.368
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.069
    Real PR Conversation Timeline
    1 comments
    "Review active on #159"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 58.0% reviewed sensitive_module
    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: 68.9% (HIGH) · Higher = larger blast radius
    68.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: 58.0% · Lower = rushed or shallow review
    58.0%
    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: 28.9% · Safe to merge
    28.9%