Skip to content

fix(cli): guide analysts to typed incoming references - #8514

Merged
morluto merged 4 commits into
mainfrom
codex/native-reference-cli-help
Nov 7, 2026
Merged

morluto merged 4 commits into
mainfrom
codex/native-reference-cli-help

Conversation

@morluto

@morluto morluto commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Summary

rea xrefs returns untyped addresses, but its CLI help did not point to the existing typed-reference workflow; inspect-native-instruction described only instruction decoding even though it can inspect incoming references at data addresses. The help now describes both and directs users to the target-address query when their provider supports it. Related: #8348.

Problem and expected behavior

An analyst following a call or stored-pointer reference can discover the existing typed view from the CLI. Its availability remains provider-dependent.

Change and scope

Update the two CLI command descriptions. This is a usability change within the existing read-only analysis scope; no new provider capability or maintainer scope decision applies.

Contract and boundary impact

  • Semantic owner and earliest changed stage: CLI command registration descriptions.
  • Contribution scope fit and linked maintainer decision: existing read-only workflows; no new scope decision.
  • CLI and MCP/tool-catalog contract: CLI help changes; MCP and result shapes are unchanged.
  • Provider, bridge, target-format, or platform compatibility: no provider changes; availability remains explicit.
  • Evidence, artifact, provenance, or reconstruction contract: unchanged.
  • Target selection, authority, upstream behavior, and cleanup: unchanged.
  • Generated metadata, package, or installation impact: authored CLI help only; generated outputs remain uncommitted.

Expected effects:

  • Documentation or usability only; no target interaction.

Evidence and regression coverage

  • Tests added or updated: none; this is a low-impact help change, verified by running both commands' help.
  • Base reproduction: CLI help described only instruction decoding and did not offer the typed handoff from xrefs; MCP descriptions already did.
  • User-visible output: xrefs --help directs users to inspect-native-instruction at the target address where supported; inspect-native-instruction --help describes code or data addresses and typed incoming references.
  • Remaining proof gaps: no autonomous-agent selection trial; Kuna still lacks the typed operation and its reference gaps remain tracked separately.

Validation performed

  • After merging main 0ecf3a4cbf, Node 24.22.1 npm run test:focused -- tests/boundary/mcp/ghidraEvidenceMcp.test.ts passed 11 tests. The previous CI shard failure asserted stale Ghidra executable-byte wording; the merged test matches the current source-owned text.

  • Both xrefs --help and inspect-native-instruction --help ran successfully on the merged branch and showed the typed-reference guidance. Full CI on the updated head is pending.

  • npm run build:cached, npm run check:fast, and npm run docs:check — passed.

  • Real CLI inspect-native-instruction on a self-built arm64 Mach-O with Ghidra 12.1.4 — returned a typed call and data reference; Kuna 1.988 returned capability_unavailable as expected. Target was unchanged and not executed.

  • Real Ghidra MCP on the same fixture in full and compact schema profiles — successful workflow responses validated against their advertised schemas; xrefs and two instruction Evidence records survived export/import into a fresh session.

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real provider/platform coverage: macOS arm64, Ghidra 12.1.4 and Kuna 1.988; no broader platform claim.
  • Package or release metadata impact: none beyond shipped CLI help.
  • Security, privacy, process, or containment review: no new target interaction or authority.

Main refresh

Head 9c36275dc8 merges main ac30fbd658, including #9280’s correction to the shared formatting failure. The previously reported tests remain historical; the previously failing file passes a targeted formatting check on this head, and the PR diff passes git diff --check. Hosted checks are pending.

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.

@greptile-apps

greptile-apps Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Low impact] The help-only changes appear safe to merge.

Summary

Updates two CLI help descriptions to expose the existing typed-reference workflow.

  • CLI help guides analysts from untyped references to typed incoming references.

Reviews (4) · Last reviewed commit: "Merge commit 'ac30fbd' into HEAD" · Reviewed by Greptile

@morluto
morluto marked this pull request as ready for review November 1, 2026 18:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 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-07T15:18:07.183243Z 9c36275 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.

@morluto
morluto merged commit 6ca4e13 into main Nov 7, 2026
49 of 51 checks passed
@morluto
morluto deleted the codex/native-reference-cli-help branch November 7, 2026 18:14
@morluto morluto added area: cli CLI adapter and one-shot commands 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: 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.

2 participants