Skip to content

fix(artifacts): report target applicability in session discovery - #5763

Merged
morluto merged 3 commits into
morluto:mainfrom
jdotc1:fix/5731-artifact-availability
Oct 21, 2026
Merged

morluto merged 3 commits into
morluto:mainfrom
jdotc1:fix/5731-artifact-availability

Conversation

@jdotc1

@jdotc1 jdotc1 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #5731.

With a ZIP or ordinary plist open, binary_session could 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 reports target_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 typed unsupported_target refusals. No public schema, authority, package or installation changes.

Validation on macOS arm64, Node 26.12.0/npm 11.20.0:

  • npm run typecheck and npm 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.
  • 34 inventory/status controls passed after the shared-refusal correction; unchanged projection checks were reused for the final resolver-only correction.
  • Focused lint and diff whitespace checks passed, with existing complexity/length warnings.

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

@jdotc1
jdotc1 marked this pull request as ready for review October 21, 2026 03:48
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T04:11:32.831050Z 06cc3ef New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable defects were found.

Summary

Session discovery and artifact execution now share target checks.

  • Session discovery shows which artifact operations fit the open target.

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]
Loading

Reviews (3) · Last reviewed commit: "fix(target): retain bundle metadata for ..." · Reviewed by Greptile

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@morluto
morluto merged commit 7c6c25d into morluto:main Oct 21, 2026
5 of 8 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 21, 2026
3 tasks done
@morluto morluto added area: evidence Evidence, artifacts, and reconstruction bug Something isn't working labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] binary_session advertises Apple artifact operations for unsupported ZIP and plist targets

2 participants