Repository navigation
fix(artifacts): report target applicability in session discovery - #5763
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 PR appears safe to merge; no actionable defects were found. SummarySession discovery and artifact execution now share target checks.
No new actionable issues were found. No previous review threads were supplied. Supersession could not be checked because GitHub access was unavailable. Tests were inspected, not run. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Selected target] --> B[Resolver]
B --> C[Target and bundle metadata]
C --> D[Shared target check]
D --> E[Session discovery]
D --> F[Artifact execution]
E --> G[Available or target unsupported]
F --> H[Execute or typed refusal]
Reviews (3) · Last reviewed commit: "fix(target): retain bundle metadata for ..." · Reviewed by Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d12613f9c9
ℹ️ 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: 18aca6ac82
ℹ️ 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".
Fixes #5731.
With a ZIP or ordinary plist open,
binary_sessioncould advertise app-resource operations that immediately refuse the selected target. Discovery and execution now share one target-applicability decision. ZIP refuses the four affected operations; plist retains keyed-archive inspection; genuine app bundles retain applicable resource operations; standalone Mach-O retains dylib resolution. Ordinary plist content can still fail keyed-archive validation when invoked. Before opening a target, discovery still reportstarget_required.Bundle identity comes from resolver-owned Info.plist metadata, including explicit raw-binary/dos-com bundle opens. A standalone Mach-O file named Tool.app remains standalone. Shared refusals carry the correct target-kind or target-format category; ELF/PE executable dylib discovery reports
target_format_unsupported. Provider execution retains typedunsupported_targetrefusals. No public schema, authority, package or installation changes.Validation on macOS arm64, Node 26.12.0/npm 11.20.0:
npm run typecheckandnpm run build:cached: passed on the final correction; two ineffective-dynamic-import build warnings.node node_modules/vitest/vitest.mjs run --project mcp-boundary tests/boundary/mcp/artifactMcp.test.ts -t 'discovers artifact target prerequisites': one selected control passed, ten skipped. Covers missing target, ZIP, ordinary/keyed plist, standalone Mach-O, regular Tool.app, genuine app, and explicit raw-binary/dos-com app opens. Keyed plist and both explicit-format bundle archive reads succeed; unsupported direct calls retain typed refusals.The issue's stdio baseline receipts were reused. The new MCP control uses production session/server with linked in-memory transports; it does not establish new stdio transport coverage, real asset decoding or dylib traversal. The pinned Node 24.18.0/npm 11.16.0 toolchain, full static gate and broader suite were not exercised. No target code was executed.
Author readiness
Human owner: @jdotc1