Repository navigation
perf(native): record macOS command provenance once in its Evidence - #1430
Merged
Merged
Conversation
inspect_macho, inspect_signature, inspect_plist, list_architectures and demangle_swift already return their command provenance inside the normalized result. The provider also copied the same array into raw_result, so every response carried it twice. raw_result now stays null, as docs/mcp-contracts.md describes for results without a distinct provider representation. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
5 of 16 tasks
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
…orluto#1430) inspect_macho, inspect_signature, inspect_plist, list_architectures and demangle_swift already return their command provenance inside the normalized result. The provider also copied the same array into raw_result, so every response carried it twice. raw_result now stays null, as docs/mcp-contracts.md describes for results without a distinct provider representation.
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
Verify five native operations through the public CLI and real SDK stdio MCP using a source-built macOS fixture. Retain normalized provenance, response parity and unchanged input bytes. Refs morluto#1430, morluto#1065, morluto#723.
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
inspect_macho,inspect_signature,inspect_plist,list_architecturesanddemangle_swiftalready return their command provenance inside the normalized result (normalized_result.provenance).NativeMacOSProvideralso copied the same array intoraw_result, so every one of these responses carried it twice. MCP sends both text and structured content, so the copy appeared four times on the wire.raw_resultis nownull, which matches whatdocs/mcp-contracts.mdsays for results without a distinct provider representation. Same pattern as #1402, #1404 and #1405. Part of #1065 / #723.Measurements (CLI
--format json, local real apps, before → after)inspect-machoinspect-signaturelist-architecturesContract impact
raw_resultwas already nullable, and the normalized result keeps the completeprovenancearray.raw_resultis part of the hashed record. This is the same consequence as in perf(evidence): stop copying normalized results into raw_result #1402.src/,tests/orscripts/read the raw copy.Verification
tests/boundary/providers/native/nativeProvider.test.ts("records command provenance once, in the normalized result") covers all five operations. It fails on main and passes with this change.npm run test:focused --with alltests/boundary/providers/native/*,tests/boundary/mcp/native*,tests/boundary/cli/native*,src/native/*.test.ts,tests/acceptance/applications/appBundleEncodingCli.test.tsandtests/composition/analysis-sessions/providerBinding.test.ts: 275 of 276 pass. The one failure is the known local "real hdiutil verify refusal" case, which also fails on main on this Mac.npm run typecheck, oxlint and oxfmtNo real Hopper/Ghidra verification (not affected).
🤖 Generated with Claude Code