Skip to content

test(hopper): repair Linux demo setup and native verification - #2638

Merged
morluto merged 9 commits into
mainfrom
fix/linux-hopper-verification-current
Oct 13, 2026
Merged

morluto merged 9 commits into
mainfrom
fix/linux-hopper-verification-current

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

The Linux clean-setup verifier uses outdated setup/doctor contracts, omits required source fixtures, requests a reinstall during its idempotence check, and retains a deleted alternate launcher. Its long-string assertion also requires native recognition that the supported Linux Hopper demo does not provide for this fixture.

Integrates @LuisTaffelli's corrections from #1942 on current main, preserving the original commits, with a small follow-up that reuses this document's string inventory and verified source bytes, retains source addresses in recognition reports, and rejects incomplete reads. This PR supersedes #1942; #339 and #340 remain open.

  • Correct the explicit read-only installation plan, approved install, scoped doctor, source-fixture build, repeated setup, and launcher restoration.
  • Retain a dedicated-runner orphan observer alongside owned process lineage. Executed-file device/inode detection covers removed launcher symlinks; observations never authorize signaling.
  • Require all 4,120 original long-literal bytes. Linux reports omitted decoded objects as unverified; the separate 548-byte literal must pass real fragmentation, byte fidelity, tail search, and dossier provenance. macOS retains its full-literal requirement.
  • Add distinct negative coverage for source-address mismatch, changed bytes, incomplete reads, and wrong decoded values/extents. No production provider, tool schema, or agent output changes.

Validation on commit 11c188523aedd7f6bdddd60251bf2811748c70ff:

  • 24 selected tests; npm run check, docs:check, test discovery (1,026 files exactly once), and verify:package passed.
  • Fresh official installation with verify:setup:linux passed in a disposable Ubuntu 24.04.4 x64 container, Node 24.18.0/npm 11.16.0, Hopper 6.4.2 demo. Prerequisites were already provisioned; no cached Hopper package restoration was used. Dry-run was read-only, approved installation succeeded, scoped doctor was healthy, modified-launcher rejection passed, and repeated setup had zero actions.
  • Real source CLI/MCP: 189 advertised schemas, 180 successful boundary calls, 63 rejected boundary calls, complete 1,205-item inventories, cancellation/deadline recovery, competing launches, Hopper-named Node sentinel preservation, and clean shutdown. Graceful and SIGKILL owner exits both stopped owned processes and allowed same/different-target reuse.
  • All 3,272 tracked source-file SHA-256 values were unchanged before/after that final run; the worktree was clean. Primary/secondary/large fixture SHA-256: 7159937b45eab0bc879b32758dd2b0f209d2c9a7b33fa724ca4c7f9d3a8d19a9, 2e55ae838ce075af9e58393df6d01b9e6fe3be9d7ab3e8416c5706cdde19f50e, 1d42652a16ac9143a7a0816931b3e3d67c9001e4df27f63bfc7cd32ee087a707.

The complete installation/native verification took 121.75 s with 137.65 s of dedicated-container CPU time. Sampled summed process RSS peaked at 1.89 GiB (50 ms /proc sampling, shared pages counted per process; estimate, not PSS). Build artifacts were warm; Hopper installation and the empty HOME were fresh. These measure the full verification workload, not routine analyst latency or a before/after speedup. Inventory reuse removes one full-list call; source-byte reuse avoids duplicate reads for recognized source-owned objects. No persistent live-state cache is introduced. Production responses are unchanged. A separate real Codex CLI 0.161.0 task on 11c1885 (unchanged production runtime) used four selected MCP tools (open, exact procedure search, 16-byte read, close), completed in 31.86 s without retries, and returned 304 output tokens plus 51 reasoning tokens. Client-reported cumulative input was 89,316 tokens, including 62,720 cached; this is whole-client multi-turn context, not the REA payload alone. Its answer and Evidence ID were checked against the successful read and independent ELF bytes. The client warned that two test-harness approval settings were ignored; execution used the explicit unattended fixture-test mode, and that warning is not a REA failure. Copied authentication was removed. CPU/RSS for this separate client task were not measured.

Coverage is this Linux demo build and source CLI/MCP. Real macOS, installed-npm behavior with real Hopper, omitted long/non-ASCII native decoding, interruption of synchronous native work, and saved-database persistence remain unverified. The package verifier is separate evidence, not a real-Hopper package claim. Initial command/permission failures are retained outside Git and excluded from passing results.

Post-merge verification found a separate observer false positive: an ordinary process mentioning runtime names in its arguments is reported as a leak. The procfs argv correction and its later native measurements are follow-up work; they are not changes or native evidence for the merged head above.

The unrelated-process sentinel in this lane is a Node process titled Hopper; it does not establish behavior with a second real Hopper demo GUI.

LuisTaffelli and others added 9 commits October 11, 2026 16:06
Integrate main ae80513 while retaining the Linux setup, orphan detection,
launcher restoration and explicit string-recognition coverage corrections.
Move verification guidance to its current owner and use the test-scoped
temporary-directory helper.

The checkout matches all 3,175 exported source-file digests of the tested
candidate. Git stores the Windows captureGhidraLaunch.cmd fixture with LF;
its exported checkout uses CRLF per .gitattributes. It is outside Linux
Hopper execution. No native run is attributed to different runtime bytes.
Real Hopper conformance: 9e7de373-4686-4820-ae48-801e536589b7.
Uninterrupted Linux setup: 93584b53-944b-47cf-a6a4-b0d4ff8a4961.
The exact 97b76aa run remains separate: ae4de7ff-dd2a-4c73-88dc-6dbf1ad7c537.

21 focused tests, check, docs:check, four fixtures, discovery, package
verification and pack dry-run passed. Linux native decoded omissions,
macOS/other builds and installed npm artifacts with Hopper remain unverified.

Refs #339, #340
Integrate main 653067d, preserving the tested Hopper corrections.
The incoming changes are JavaScript/Apple implementation and regression
updates; Hopper provider, verifier and dependency bytes are unchanged.

Real Hopper runs remain bound to exact head 97b76aa and tested checkout
f379bc3. This final integration has no new native execution claim.
26 focused tests, full static check and docs:check passed on this tree.
Integrate the verification corrections from #1942 on current main, retaining their original commit history. Reuse the unchanged document inventory and verified source bytes, retain recognition addresses, and reject incomplete or mismatched string evidence.
@chatgpt-codex-connector

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-13T06:29:43.013526Z 11c1885 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.

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5 Tier: plus

[Medium impact] No merge recommendation was finalized.

Summary

This PR repairs the Linux Hopper setup verifier and updates native string checks for the supported demo build.

  • Linux setup checks follow the CLI’s current install and doctor commands.
  • The Linux setup lane spots leftover Hopper helpers and alternate launchers.
  • Linux string checks separate source bytes from decoded recognition.

The review stopped before final judgment. No findings were finalized; this is not a completed merge recommendation.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Build and verify fixtures] --> B[Check clean runner]
  B --> C[Read-only installation plan]
  C --> D[Approved installation]
  D --> E[Scoped doctor]
  E --> F[Real CLI and MCP checks]
  F --> G[Reject modified launcher]
  G --> H[Repeat setup without reinstall]
  H --> I[Check orphan processes]
  I --> J[Check owned child cleanup]
Loading

Reviews (1) · Last reviewed commit: "test(hopper): verify Linux demo setup an..." · Reviewed by Greptile

@morluto
morluto merged commit 141d209 into main Oct 13, 2026
40 checks passed
@morluto
morluto deleted the fix/linux-hopper-verification-current branch October 13, 2026 06:39
@morluto morluto added area: tests Test suite and verification area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
@morluto morluto added the provider: hopper Analysis provider / engine: hopper label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior area: tests Test suite and verification provider: hopper Analysis provider / engine: hopper

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants