Fix portable scan for suffixless ZIP payloads #159
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
Miko997
Outcome
Problem
Exact-main External Source-Family Matrix run
36263760110exposed 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
.blobname. 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
36263760110and its four failed portable rows retained as defect evidence.Documentation
docs/maintainers/testing-policy.mdrecords 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
.zipfile, and symlinks fail closed.Checklist