Repository navigation
fix(native): refuse inspect_signature on non-Mach-O targets - #2262
Conversation
This provider's signature inspection covers Mach-O code signatures only. On a xar pkg, codesign's "code object is not signed" verdict cannot see the archive-level signature layer, so a signed or invalidly-signed package was reported as signed:false with "Artifact is not signed." Match the existing inspect_macho/list_architectures gate and report capability_unavailable instead of an unsigned claim for a layer that was never evaluated. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- Draft PRs: morluto#2262 (inspect_signature non-Mach-O gate, minimal cherry-pick onto d96550f with corrected comment) and morluto#2263 (WebMCP consequential fidelity + qualified prereq docs. - Real signed-pkg control: python-3.13.9-macos11.pkg (Developer ID Installer-signed + notarized per pkgutil oracle) now yields honest capability_unavailable instead of signed:false; Mach-O regression intact. - L3 content-egress prep design only: dedicated test user/VM options, proxy-delivered vs egressed distinction, no trust/proxy/pf/VPN changes. - environment.md/branch-audit.md updated with new worktrees, SHAs, PRs. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> EOF )
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
@greptileai review |
|
This PR is set for a Plus review. TREX isn't supported with Plus or Apex reviews yet, so Greptile reviews this PR at Base while TREX is on. |
|
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 64af56e826
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Bind inspect_signature availability to Mach-O targets in capability discovery and align the public tool description. Source inspection and git diff --check; tests/builds/typechecks/CI reruns skipped at explicit user request.
…morluto#2262 Per-thread verdicts, fix SHAs, validation scope, and thread states at current remote heads; open bound-invocation P1s recorded as confirmed or not-reproduced with counterexample evidence. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…, and morluto#2465 call-site P1 Records the call-site member-read fix a13b935, the main merge 02ef51a (writeSite origin + [null] mutation encoding), the author-readiness human attestation requirement, and the morluto#2263 test-only follow-up draft PR morluto#3837. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Summary
inspect_signatureon a non-Mach-O container (e.g. a.pkgarchive) rancodesign -don the byte snapshot with no format gate. The codesign "code object is not signed" verdict cannot see a container-level signature layer (such as a xar pkg signature), so a signed or invalidly-signed package was reported assigned:false/ "Artifact is not signed." — an unsigned claim for a layer that was never evaluated.kind/isMachOFormatgate used byinspect_machoandlist_architectures: non-Mach-O targets now returncapability_unavailablewith an explicit reason instead of a false unsigned result.inspect_signaturerefusespkgandelftargets without invoking codesign.Test plan
tests/boundary/providers/native/nativeProvider.test.ts— 37/37 pass (vitest --maxWorkers=4)rea inspect-signature python-3.13.9-macos11.pkg(Developer ID Installer-signed;pkgutil --check-signature= signed + notarized) →capability_unavailablewith reason "its container-level signature layer is not evaluated by codesign" (previouslysigned:false)rea inspect-signature /bin/ls→signed: trueunchangedScope note
Reporting the signature layer itself (xar TOC
<signature>parsing) is out of scope — this change only stops the false unsigned classification. A futureinspect_signatureon.pkgcould evaluate the archive layer or report it as an explicit unknown.Generated with Devin