Skip to content

fix(cli): record the caller's --join-path spelling in Apple IPS Evidence - #10606

Merged
morluto merged 2 commits into
mainfrom
fix/cli-apple-ips-join-path-spelling
Nov 15, 2026
Merged

morluto merged 2 commits into
mainfrom
fix/cli-apple-ips-join-path-spelling

Conversation

@morluto

@morluto morluto commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Summary

Stacked on #10603 (base refactor/cli-contract-single-inspectors; retarget as the lower PRs merge). Refs #7587 (same class: a CLI caller-path spelling missing from Evidence).

inspect-apple-ips --join-path ./image resolved the join path but recorded only the report's spelling in Evidence. Contract commands now record every caller-path field's spelling.

Problem and expected behavior

  • Observed (test on this branch without the fix): inspect-apple-ips ./report.ips --join-path ./image.bin returned Evidence with caller_input_path: "./report.ips" and no caller_input_paths.
  • Expected: caller_input_paths: { join_path: "./image.bin" }, keyed by contract field as inspect-il2cpp-metadata already records binary_path. Without --join-path, caller_input_paths stays absent.

Change and scope

  • Root cause:
    • The contract command adapter's inspectWithService and deliverWithService passed only callerInputs.path to the Evidence caller-path binding.
    • The description already reports every caller-path field in callerInputs.
  • Fix:
    • Both helpers pass the remaining caller-path fields as CallerInputPaths, through finishCliEvidenceCommand and through deliverCliAnalysisEvidence.
    • This covers every projected command. inspect-apple-ips is the only one with more than one caller-path field today.
  • Not included: the hand-written commands. A sweep of their auxiliary caller paths belongs with their migration. inspect-il2cpp-metadata and WASM already record theirs.
  • Contribution scope: not applicable.

Contract and boundary impact

  • Semantic owner and earliest changed stage: the CLI contract command adapter (contractCommand.ts).
  • Contribution scope fit and linked maintainer decision: not applicable.
  • CLI and MCP/tool-catalog contract: MCP is unchanged. CLI Evidence for inspect-apple-ips --join-path gains caller_input_paths.join_path.
  • Provider, bridge, target-format, or platform compatibility: none.
  • Evidence, artifact, provenance, or reconstruction contract: adds the caller's selected spelling. The fact is preserved by the existing withEvidenceCallerInputPath owner.
  • Target selection, authority, upstream behavior, and cleanup details: unchanged.
  • Generated metadata, package, or installation impact: none.

Expected effects:

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

(No effect changes: Evidence provenance only.)

Evidence and regression coverage

  • Test added in tests/acceptance/appleIpsArmJoinCli.test.ts: relative report and join paths. It asserts caller_input_path and caller_input_paths, and checks that caller_input_paths is absent without --join-path.
  • Base reproduction: the new test fails with the adapter from the base branch, at the caller_input_paths assertion.
  • Remaining proof gaps: none known for this command.

Validation performed

  • npm run check:fast: passed.
  • npm run test:focused -- 6 files: 6 passed; 160 tests passed.
    • Apple IPS acceptance: ARM join, CLI and join failure.
    • Contract parity guard.
    • CLI Evidence caller path.
    • Local-path admission.

Compatibility, safety, and release

  • Breaking changes or migration steps: none. An Evidence field is added.
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: records only the caller's own path spelling, as for other commands.

Author readiness

Human owner:

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T08:42:15.112016Z 7ecd576 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 Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] The PR appears safe to merge; no actionable regression was found.

Summary

Records auxiliary caller-path spellings in CLI Evidence, including caller_input_paths.join_path for Apple IPS reports. It also moves seven commands onto shared contract-based registration.

  • Apple IPS Evidence records the spelling of an optional joined-image path.
  • Contract-backed CLI commands can express their options and input checks in one place.
  • Packet and signal CLI commands now use their tool contracts.
  • GPU inspection now takes its CLI fields from the tool contract.
  • IL2CPP inspection now runs through its shared tool contract.
  • Release-exposure audits now take their CLI fields from the tool contract.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A["CLI arguments"] --> B["Contract CLI description"]
  B --> C["Absolute paths and decoded input"]
  B --> D["Original caller spellings"]
  C --> E["Inspection service"]
  E --> F["Complete Evidence"]
  D --> G["Bind caller paths"]
  F --> G
  G --> H["Inline Evidence"]
  G --> I["Summary and Evidence bundle"]
Loading

Reviews (3) · Last reviewed commit: "refactor(cli): project CLI-only options ..." · Reviewed by Greptile

@morluto
morluto force-pushed the refactor/cli-contract-single-inspectors branch from 645d108 to 2319fe0 Compare November 14, 2026 20:33
@morluto
morluto force-pushed the fix/cli-apple-ips-join-path-spelling branch 2 times, most recently from 60c16bf to eeb0732 Compare November 15, 2026 01:45
@morluto
morluto force-pushed the refactor/cli-contract-single-inspectors branch from 2319fe0 to 03b354c Compare November 15, 2026 01:45
Base automatically changed from refactor/cli-contract-single-inspectors to refactor/cli-contract-view-delivery November 15, 2026 02:10
@morluto
morluto force-pushed the refactor/cli-contract-view-delivery branch from 272142e to 84e1691 Compare November 15, 2026 05:54
@morluto
morluto force-pushed the fix/cli-apple-ips-join-path-spelling branch from eeb0732 to 75c80ab Compare November 15, 2026 05:58
@morluto
morluto changed the base branch from refactor/cli-contract-view-delivery to main November 15, 2026 07:00
@morluto
morluto force-pushed the fix/cli-apple-ips-join-path-spelling branch from 75c80ab to 7e3246c Compare November 15, 2026 07:34
…PP from contracts (#10635)

* refactor(cli): project CLI-only options for release exposure and IL2CPP from contracts

The contract command description gains CLI-only options whose effect the handler owns, plus their dependentRequired entries. audit-release-exposure keeps --fail_on (exit status 3) and inspect-il2cpp-metadata keeps --ghidra-seeds/--seed-base; their hand-written options and input spreads are deleted.

* refactor(cli): project GPU, signal and capture inspectors from their contracts (#10643)

The contract command description gains JSON options decoded when the command runs, admitted with the delivery by the contract input, and bare flags that spell a nullable limit's null. inspect-gpu-code-objects, inspect-signal-decoders, decode-signal-recording, inspect-packet-fields and inspect-packet-capture are derived from their contracts; their hand-written options, superRefine blocks and CLI-only option schemas are deleted.
@morluto
morluto merged commit 11c1e45 into main Nov 15, 2026
15 checks passed
@morluto
morluto deleted the fix/cli-apple-ips-join-path-spelling branch November 15, 2026 09:04
@morluto morluto added area: cli CLI adapter and one-shot commands bug Something isn't working labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant