Repository navigation
feat(artifacts): name integrity checks for ZIP, PyInstaller and changed release files - #11081
Merged
morluto merged 1 commit intoNov 15, 2026
Conversation
…ed release files, and keep them through reader projections
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Medium impact] The PR appears safe to merge; no actionable defect was found in the reviewed changes. SummaryThis PR adds named integrity checks to ZIP, PyInstaller, and release-exposure reads. It also shares the conversion to
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
R["Reader detects inconsistency"] --> F["ArtifactReaderFailure.integrityCheck"]
F --> H["readerIntegrityFailure"]
H --> A["AnalysisArtifactChangedError"]
A --> P["details.integrity_check"]
E["readEvidencePayload with within"] --> I["EvidenceIntegrityError.issuePath"]
I --> O["details.issue_path"]
Reviews (2) · Last reviewed commit: "feat(artifacts): name integrity checks f..." · Reviewed by Greptile |
morluto
added a commit
that referenced
this pull request
Nov 15, 2026
…ed release files (#11081) feat(artifacts): name integrity checks for ZIP, PyInstaller and changed release files, and keep them through reader projections
Merged
22 tasks
morluto
added a commit
that referenced
this pull request
Nov 15, 2026
…-exposure readers (#11056) * feat(artifacts): name integrity checks for DMG, directory and release-exposure readers Directory members and release-exposure members whose file identity or bytes changed since inventory report member-identity; a directory entry without captured state reports entry-metadata and a changed directory root container-identity; an hdiutil checksum failure reports image-checksum. AnalysisArtifactChangedError carries the check from the reader failure and projects it as details.integrity_check. * fix(artifacts): name missing directory entry state and keep integrity checks through error copies * feat(artifacts): name integrity checks for ZIP, PyInstaller and changed release files (#11081) feat(artifacts): name integrity checks for ZIP, PyInstaller and changed release files, and keep them through reader projections * feat(artifacts): name integrity checks for the remaining readers and their projections (#11098)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refs #10508 (Phase 6.1). Stacked on #11056. More readers now say which consistency check an
integrityfailure tripped, the providers that turn those failures intoartifact_changedkeep the name, and more Evidence payload checks report where in the record they failed.Problem and expected behavior
After #11056, ZIP, PyInstaller and release-exposure files changed during a read still raised
integrityfailures that only the message told apart. Nine provider projections also rebuiltAnalysisArtifactChangedErrorfrom a reader failure without the check, so a named failure lost its name. SeveralreadEvidencePayloadcallers did not pass the payload's location, so theirevidence_integrity_mismatchhad noissue_path.Expected: the reader names the check, every projection keeps it, and payload failures are located in the Evidence record.
Change and scope
read-coverage; metadata changed between enumerations →entry-metadata; open of an entry not in this reader's inventory →foreign-entry, of an inventoried entry with different metadata →entry-metadata.foreign-entry/entry-metadata; compressed member short of its source span →read-coverage; member size disagreeing with its declaration →declared-size; private PYZ image changed →container-identity.asReadFailure: aRegularFileChangedErrorismember-identity, except while the selected artifact itself is re-inventoried (container-identity).readerIntegrityFailurereplaces nine localnew AnalysisArtifactChangedError(op, path, cause.message, { cause })copies.readEvidencePayloadcallers incomparisonEvidenceResult,comparisonSourceEvidence,managedNativeVerificationSource,managedInspectionEvidenceandreconstructionVerificationpasswithin: ["normalized_result"](or["parameters"]).Not included: the other unnamed readers and the location-less callers listed under remaining proof gaps.
Follow the contribution scope.
Unresolved scope, authority, side effects, or required verification block
integration. Link the required maintainer scope decision for new providers or
capabilities involving target execution, injection, mutation, or protection
recovery; ordinary fixes within existing boundaries may state "not applicable".
Draft PRs may leave the scope decision pending and the readiness and merge checklists
unchecked. Maintainers can help resolve open questions.
Contract and boundary impact
asReadFailure).readerIntegrityFailure(StableArtifactFailure.ts) is now the single conversion from a readerintegrityfailure toAnalysisArtifactChangedError; the PE, Rust, SQLite, APK signature, NTFS journal, Playwright trace, Apple dispatch and release-exposure projections use it instead of their own copies, which dropped the checkartifact_changedand artifactintegrityerrors from these readers gaindetails.integrity_check;evidence_integrity_mismatchfrom the listedreadEvidencePayloadcallers gainsdetails.issue_path. Codes, categories and messages unchangeddocs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): noneExpected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
artifactZipIntegrity.test.ts(five tampered-entry opens assertentry-metadata; a new unknown-key open assertsforeign-entry);PyInstallerBoundaries.test.ts(new: foreign vs changed-metadata open);ReleaseExposureReader.test.ts(new: a member file vs the selected artifact changing while read →member-identity/container-identitythroughprojectAnalysisError);comparisonEvidenceResult.test.ts(new: a status contradiction reportsissuePath["normalized_result","status"])withininreadComparisonResult, 3 tests fail; without theasReadFailurenames, both new release-exposure cases failaudit_release_exposureover a directory whose member changes while read →{"code":"artifact_changed","details":{…,"boundary":"stable-artifact-read","integrity_check":"member-identity"}}integrityfailures (Mach-O slice, INES, FIT, SafeOutputTree, JavaScript files, SQLite snapshot, classify/scan inventory, AsarEntryStream remainder, …);callPath.ts,artifactInspection.tsandfunctionInventory.tsstill callreadEvidencePayloadwithout a location because their position in the source record is not known there. PE, Rust, SQLite, APK, NTFS, trace and Apple projections are covered by the shared helper, not by per-provider testsFor boundary fixes, identify the applicable boundary regressions
and lifecycle regressions
covered by the evidence above, and explain relevant gaps.
For evidence-bearing changes:
Validation performed
npm run check:fast— passednpm run test:local -- src/apkSignature/apkSignatureFailures.test.ts src/application/ntfs/NtfsJournalService.test.ts src/native/pe/PeCertificatesProvider.test.ts src/native/pe/PeResourcesProvider.test.ts src/sqlite/SqliteDatabaseSnapshotLimits.test.ts src/artifacts/ReleaseExposureReader.test.ts src/artifacts/pyinstaller/PyInstallerBoundaries.test.ts src/domain/comparisonEvidenceResult.test.ts— 339 passed, 4 skippednpm run test:focused -- tests/boundary/filesystem/artifactZipIntegrity.test.ts tests/boundary/mcp/processComparisonVerificationMcp.test.ts tests/boundary/mcp/functionComparisonMcp.test.ts— 48 passedcommand— resultCompatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.