Repository navigation
feat(artifacts): name the integrity check for target digests, Apple bundle readers and extraction - #11125
Merged
Conversation
…undle readers and extraction
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. |
|
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 blocking defect was found. SummaryAdds named integrity checks for target digests, Apple readers, native Mach-O reads, and extraction.
Reviews (2) · Last reviewed commit: "feat(artifacts): name the integrity chec..." · Reviewed by Greptile |
Merged
22 tasks
This was referenced Nov 15, 2026
Merged
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 selected-target digest check was written four times (session target identity, keyed archive, dylib resolution, native Mach-O source) without naming a check, and the dylib, asset catalog and extraction readers raised
integrityfailures that only the message told apart. Each now names its check, and the digest failure has one owner.Problem and expected behavior
trace_dylib_resolutionon a rewritten target returnedreason: "integrity"with no check; the MCP test could only search the serialized error for the word "integrity".NativeMachoSourceVerificationFailurerebuilt the verification cause and dropped any check the cause named.Change and scope
targetDigestChangedFailure(subject, expected, observed)(container-identity); messages unchanged.container-identity), short slice read (read-coverage); the verification wrapper spreadsprimaryFacts()like the other rebuild sites.hashStableRootArtifactHandle):container-identity.assetutil:member-identity. Dylib member changed while traced:member-identity; incomplete digest coverage:read-coverage.container-identity), selected occurrence without node and traversal entry absent from inventory (inventory-node), inventoried entries not reproduced (traversal-coverage, new).Not included:
readStableArtifact,ArtifactFileSource, GPU/model sources,.NETbundle (open in #11065) and the container readers (#11119).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
targetDigestChangedFailure(withArtifactTargetIdentity.ts) owns the "selected target digest changed" failure for the session target check, keyed archive, dylib resolution and the native Mach-O source; the remaining sites name their check at the throw;NativeMachoSourceVerificationFailurekeeps the verification cause's reader facts viaprimaryFacts()integrityerrors carrydetails.integrity_check; one new value,traversal-coverage(a verification traversal did not reproduce every inventoried entry). 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
dylibResolutionMcp.test.ts(JSON.stringify(...).toContain("integrity")->details.integrity_check: "container-identity"over MCP),keyedArchiveStandaloneSelection.test.ts("Active archive digest changed" ->container-identity),artifactProvider.extractionCompleteness.test.ts(3 message matches ->traversal-coverage/inventory-node; the missing path stays asserted because it is only in the message),NativeMachoSource.test.ts(2 cases assertcontainer-identity)targetDigestChangedFailureand from the extraction sites failed 6 tests in 3 files; droppingprimaryFacts()from the Mach-O verification wrapper failed the path-replacement casetrace_dylib_resolutionafter the target is rewritten:{"code":"artifact_operation_failed","category":"integrity_mismatch",…,"details":{"operation":"trace_dylib_resolution","reason":"integrity","integrity_check":"container-identity",…}}traversal-coverageremains prose (no structured field added)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/providers/native/artifactProvider.extractionCompleteness.test.ts tests/boundary/mcp/dylibResolutionMcp.test.ts tests/boundary/filesystem/keyedArchiveStandaloneSelection.test.ts src/artifacts/apple/AppleAssetCatalogAnalysis.test.ts src/native/NativeMachoSource.test.ts: 85 passed, 6 skipped (base: same counts). Warm wall/CPU (user+sys), two runs each: after 15.7 / 25.8 s and 12.4 / 15.3 s; before 17.2 / 27.6 s and 18.6 / 16.8 s (noise; dominated by the MCP and extraction files)npm run test:focused -- src/native/NativeMachoSource.test.ts tests/boundary/cli/dylibResolutionCli.test.ts src/artifacts/apple/AppleAssetCatalogResourceCoverage.test.ts src/artifacts/apple/MachoLoadCommandReader.test.ts: 105 passed, 1 skippednpm run check:fast: passed;node scripts/verify/architecture-guards.mjs: passed;npx oxfmt --check src tests: passedcommand— resultCompatibility, safety, and release
Additive public detail only. No message, code or category changes.
Author readiness
Human owner:
Before merge
type(scope): outcome.