Repository navigation
feat(artifacts): name which ASAR integrity check failed on the reader failure - #11021
Merged
Merged
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
[Medium impact] The PR appears safe to merge; no actionable defects remain in the reviewed changes. SummaryAdds typed
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[ASAR check fails] --> B[ArtifactReaderFailure with integrityCheck]
B --> C{Cleanup also fails?}
C -->|No| E[Caller receives named check]
C -->|Yes| D[withCleanup copies integrityCheck]
D --> E
Reviews (2) · Last reviewed commit: "fix(artifacts): report a close queued be..." · Reviewed by Greptile |
morluto
force-pushed
the
feat/asar-integrity-check
branch
from
November 15, 2026 10:29
b4e899e to
92c03c2
Compare
|
hi im jerri deskins and im sorry but i dont understand any of this so could
you explain to me whats happening.i have had this person stalking me for
like 5 years now they record me ,take pics and it is non stop.i have
contacted the police several times about this..they have made post in my
name and they have control of my phone and they see everything i do ..i
havent spoke to my daughters in a couple of mnths because of this i have
been tormented by this añd they feed off my fear and think this is fuñny
they hve violated me for 5 years and no matter what i do they are there i
have factory reset and even got diff phones and i dont think im the only
one cos where im linked to them i have seen some of their stuff i seen a
contracr with microsoft and pictures and recordings thet are sharing with
someone on the internet.they can even stop me rom using my phone ..idk hat
to do and i dont understand and i think the new verizon store is in on it
idk but its really affected my life in many ways and no one will help
me..sorry to bother you im scàred and confused d dont understand any of
them documents..th3y has me as a child also..plz help
…On Sun, Nov 15, 2026, 5:18 AM chatgpt-codex-connector[bot] < ***@***.***> wrote:
*chatgpt-codex-connector[bot]* left a comment (morluto/rea#11021)
<#11021 (comment)>
*Codex Review Summary*: 🔄 Running
This comment shows the latest Codex review activity on this pull request.
Review Status Commit Review trigger
📝 *Code Review* 🔄 *Running* since 2026-11-15T10:17:51.296761Z b4e899e PR
opened ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo
<https://chatgpt.com/codex/cloud/settings/general>. Reviews are triggered
when you
- Open a pull request for review
- Mark a draft as ready
- Comment ***@***.*** <https://github.com/codex> review" or ***@***.***
<https://github.com/codex> security review".
Codex reacts with 👀 while any review is running, comments if it has
suggestions, and reacts with 👍 once all reviews finish with no findings.
—
Reply to this email directly, view it on GitHub
<#11021?email_source=notifications&email_token=CURDWJMTYPEVISTOMTIHNTT5ZF7HBA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOBZGI4DOMRRGU32M4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#issuecomment-6892872157>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/CURDWJMAHLNUR4DFCCRVGCT5ZF7HBAVCNFSNUABGKJSXA33TNF2G64TZHMYTEMBZHE3DMOJTGM5US43TOVSTWNRUGAZDONRZGUZTFILWAI>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/CURDWJNIHMP7WFJP5EUGUUL5ZF7HBA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOBZGI4DOMRRGU32M4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSVGM33PORSXEX3JN5ZQ>
and Android
<https://github.com/notifications/mobile/android/CURDWJOI4H3G5BXLLAYLY2D5ZF7HBA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOBZGI4DOMRRGU32M4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ>.
Download it today!
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
…ailable The missing-snapshot check was reachable when close() ran between a prepareContainer() and the following entries() or openContainer() operation, and reported a caller close as an integrity failure. Classify it like the sibling closed-inventory check and cover foreign-entry with a stale entry opened after close.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
22 tasks
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). The ASAR reader raises
ArtifactReaderFailure("integrity", ...)for ten different consistency checks, from "metadata changed since inventory" to "unpacked entry changed before read". Only the message said which. The failure now carriesintegrityCheck(entry-metadata,unpacked-entry-identity,container-identity,foreign-entry,read-coverage,declared-size,reader-ownership), and the ASAR tests assert it instead of matching message sentences.Problem and expected behavior
asarStreamingAllocation.test.tsandasarInventoryFreshness.test.tstold apart a stale member, a replaced unpacked file and a replaced container only by message text. A consumer had the same problem.Change and scope
ArtifactReader.ts:ArtifactIntegrityCheckunion and optionalintegrityCheckonArtifactReaderFailureOptions/ArtifactReaderFailure.ArtifactReaderFailure.withCleanupcarries it likeboundaryandreaderLimit.AsarArtifactReader.ts,AsarEntryStream.ts: everyintegrityfailure names its check. Messages are unchanged.AsarArtifactReader.#snapshotPath: a missing snapshot was reported as anintegrityfailure, but it is reachable only whenclose()is queued betweenprepareContainer()and the followingentries()oropenContainer()operation. It now fails asunavailable("ASAR snapshot was closed"), like the sibling closed-inventory check.reader-ownershipremains only for a read stream over a handle the reader does not own, which no public sequence reaches (the handle is adopted under the same serialized operation).integrityCheck; two keepstringContaining(entry.path), since the member path is a fact under test.Not included:
integrityfailures (DMG, directory, release exposure, PE, ...) leave the field undefined. Their tests in this slice do not read the check from prose; each would be its own owner change.integrityfailures project asartifact_changedand similar codes, without a check field. Adding it there means changing every projection site (StableArtifactFailure, native and Rust providers, ...), which is a separate change. Rebuild sites outsidewithCleanup(for exampleProcessCli.artifactFailureFacts) do not copy the field yet; there it reads as undefined (not named), not as a wrong value.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
AsarArtifactReader/AsarEntryStream(producer),ArtifactReaderFailure(carrier)docs/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
src/artifacts/AsarEntryStream.test.tsgoes from 2 to 5: the truncated-after-EOF case assertsdeclared-size, a table covers bytes over and under the header size (declared-size), and a source ending with incomplete coverage assertsread-coverage.asarInventoryFreshness.test.tsadds two lifecycle cases: an entry inventoried beforeclose()and opened afterwards fails withforeign-entry; aclose()queued behind preparation failsentries()andopenContainer()asunavailablewith nointegrityCheck(before the fix:integrity/reader-ownership).reader-ownershipitself is not asserted (unreachable, see above).foreign-entryreplaced byentry-metadataat its site, the new stale-entry case fails. Earlier: with the constructor ignoringintegrityCheck, 6 of 35 fail, including "preserves an unpacked identity failure when closing its handle fails", which goes throughwithCleanup.npm run test:focused, after): 11.7 s wall, 15.7 s user, 3.5 s sys including build; vitest 1.5 s.For 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 test:focused -- tests/boundary/filesystem/asarStreamingAllocation.test.ts tests/boundary/filesystem/asarInventoryFreshness.test.ts: 35 passednpm run test:local -- src/artifacts/AsarEntryStream.test.ts: 5 passednpm run test:focused -- tests/boundary/filesystem/asarInventoryFreshness.test.ts tests/boundary/filesystem/asarStreamingAllocation.test.ts src/artifacts/AsarEntryStream.test.ts: 42 passed; the close-race case failed before the producer change (receivedintegrity/reader-ownership)npm run check:fast: passedCompatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.