Repository navigation
fix(native): preserve mixed-slice signature observations - #5765
Conversation
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. |
[Medium impact] The reviewed changes appear safe to merge. SummaryPreserves mixed-slice signing facts and limitations when a later architecture probe fails.
Reviews (3) · Last reviewed commit: "fix(native): accumulate known slice obse..." · Reviewed by Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f255e2f563
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dece36ac77
ℹ️ 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".
Combine main's partial-observation retention for slice inspection (morluto#5765) with the per-slice comparison: provenance and limitations accumulate on the shared observation as slices arrive, a slice query that fails for a reason other than being unsigned is a failure that keeps the facts collected so far, and the mixed-state notes are recorded before the slice loop. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Welcome to REA, @jdotc1. Thanks for keeping mixed-slice signature facts and command provenance available when a later slice probe fails, with incomplete coverage still made explicit. |
Fixes #5697.
A mixed universal Mach-O can report signing metadata for its default slice while
codesign -d -r-exits 1 with anExecutable=echo followed by the unsigned-slice diagnostic. The classifier rejected that valid two-line response and discarded the signing observations.Accept the optional echo only when it exactly matches the bound snapshot or its resolved path. Additional, foreign-path or unrelated nonzero diagnostics remain failures, including per-slice probes. Mixed results explicitly mark partial coverage; default-slice metadata does not establish that every slice is signed. This restores the existing result contract without expanding the slice schema covered by #3583/#4359.
If a later slice probe fails, preserve completed aggregate facts, known unsigned architectures, aggregate-unavailability reasons and all collected command provenance in
partialObservation, while retaining the typed failure. One bound inspection owns the capture and limitation ledger, and records facts as each stage completes.Validation:
npm run typecheckandnpm run build:cachedpassed; two ineffective-dynamic-import build warnings.node node_modules/vitest/vitest.mjs run --project boundary tests/boundary/providers/native/nativeInventory.golden.test.ts: 24/24 passed. Includes foreign/extra diagnostics, failed slice probes, and a confirmed unsigned x86_64 slice retained when a later arm64 probe fails. Partial-result assertions cover identifier, entitlements, aggregate limitations and all five command captures.inspect-signature --jsoncases passed (mixed universal, signed and unsigned thin files, unsigned universal, and signed universal system control). These unchanged CLI cases were not rerun. Synthetic fixtures used normal compiler/linker signing behavior; no signing command or target execution ran.The original issue baseline is reused. Broader CI/static gates, Intel-host behavior and MCP transport remain untested. The failure-preservation regression uses controlled native-command captures; no fresh real-tool failure was induced.
Author readiness
Human owner: @jdotc1