Skip to content

fix(android): reject invoke coverage without site evidence - #10679

Merged
morluto merged 1 commit into
morluto:mainfrom
Davmunrey:claude/invoke-coverage-sites
Nov 18, 2026
Merged

morluto merged 1 commit into
morluto:mainfrom
Davmunrey:claude/invoke-coverage-sites

Conversation

@Davmunrey

Copy link
Copy Markdown
Contributor

Summary

Supersedes #2850 by @LcokHcak. That PR has been inactive since 2026-10-26, is about 4,700 commits behind main and never had its readiness declaration filled. Its first commit, which removed the result schema's null default, has since landed on main. Its second commit is applied here with @LcokHcak as the author. If @LcokHcak updates #2850, close this one.

The JADX bridge emits or removes direct_invokes and direct_invokes_exhaustive together (ReaJadxBridge.java, where every writer sets both and every remover removes both). On main, a protocol item carrying only the coverage flag still parsed. trace_android_references then returned a reference with direct_invokes_exhaustive: true or false over direct_invokes: null, while direct_invokes_coverage counted the same node as unknown.

Change and scope

  • src/android/JadxProtocol.ts: the xrefs item schema refuses direct_invokes_exhaustive without direct_invokes ("Invoke coverage requires a direct invoke site list").
  • A site list without a coverage flag stays accepted and reported as unknown, as before.

Evidence and regression coverage

  • tests/boundary/android/JadxAnalysis.test.ts adds rejects invoke coverage true/false without the direct invoke site list.
    • With main's protocol both cases fail ("promise resolved … instead of rejecting").
    • With the fix the file passes: 86 tests.
  • Gap: no real JADX run. The bridge source shows it never emits the refused combination.

Validation performed

  • npm run test:focused -- tests/boundary/android/JadxAnalysis.test.ts: 86 passed.
  • npm run check:fast passed.

Author readiness

Human owner: @Davmunrey

  • 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.

The JADX bridge emits or removes direct_invokes and direct_invokes_exhaustive together. A protocol item carrying only the coverage flag reached trace_android_references as a reference that claimed true or false coverage over a null site list, while the coverage summary counted it as unknown. The protocol schema now rejects that combination.

Rebased onto current main from morluto#2850. The companion change that removed the null default from the result schema already landed on main.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T22:16:04.140822Z
We couldn’t complete this review. Comment @codex review to try again.
d136b15 PR opened
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the new check matches the bridge’s output.

Summary

The PR rejects direct_invokes_exhaustive when direct_invokes is missing.

  • Android reference tracing rejects coverage flags without invoke sites.

Validation was source-only; no tests or real JADX run were performed during this review. Checking whether another PR supersedes this one was blocked by missing GitHub authentication.

Reviews (2) · Last reviewed commit: "fix(android): reject invoke coverage wit..." · Reviewed by Greptile

@Davmunrey

Copy link
Copy Markdown
Contributor Author

Ready to merge: full CI is green on this head, Greptile's latest review is 5/5 with no open threads, and it merges into main 42cab26 without conflicts.

@morluto
morluto merged commit fbd6fd1 into morluto:main Nov 18, 2026
49 checks passed
Davmunrey added a commit to Davmunrey/Davmunrey that referenced this pull request Nov 18, 2026
Lists morluto/rea#10679 as merged and adds the local dashboard fix in Prowler and AMORDEGRC in Univer to the work in review.
@morluto morluto added area: evidence Evidence, artifacts, and reconstruction 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: evidence Evidence, artifacts, and reconstruction bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants