Skip to content

fix(hopper): verify lease cleanup and repair the macOS test lane - #1111

Merged
morluto merged 3 commits into
mainfrom
fix/hopper-verifier-cleanup-ownership
Oct 8, 2026
Merged

morluto merged 3 commits into
mainfrom
fix/hopper-verifier-cleanup-ownership

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Verify real Hopper cleanup against owned session roots and individual target-lease resources. The old prefix-only check falsely rejected an empty shared lease parent; the current main ownership check also overlooked sockets inside that parent. Keep an empty shared parent, reject retained leases and invalid lease roots, and preserve completed observations plus exact retained paths on a cleanup failure.

Reuse the production lease-parent constant and retain main's process ownership and lineage checks. This does not change Hopper launch, document retention, or cleanup authority.

The integrated CI run also exposed a stale macOS test path after processCli.test.ts moved. Point that lane at the current file and validate every focused CI test path so a rename cannot silently leave the lane stale.

Validation:

  • Native macOS before-fix artifacts contain only an empty /tmp/rea-hopper-501 shared parent after actual Hopper analysis. Two deterministic resource-classification regressions fail before the fix.
  • 21 focused Hopper, lease, contract, and conformance tests pass after integration with main. The CI path check fails on the old reference and passes after correction (2 tests).
  • npm run build:cached, npm run check:fast, and npm run docs:check pass.
  • Installed-package real Linux Hopper 6.4.2 verification passes: 138 schemas, 52 successful/18 negative cases, foreign-document binding, 1,205 procedures/strings, cancellation recovery, CLI/MCP byte parity, unrelated-process survival, and clean shutdown. A separate installed CLI inspection passes.
  • Installed-package real macOS Hopper 6.6.0 Demo verification passes: 138 schemas, 51 successful/17 negative cases, target switching and explicit-close disposal, cancellation recovery, CLI/MCP byte parity, 1,205 procedures/strings, unrelated-process survival, and clean shutdown. A separate installed CLI inspection passes. The macOS foreign-document case is unavailable and is not claimed.
  • The final commit changes CI/tests only; provider production code is identical to both real-package proofs. The exact-head native macOS concurrent-session probe also passes: the second same-target session is rejected with the owning run ID, while the first session retains its selected document. All 23 exact-head CI checks pass, including 42 native Darwin process lifecycle regressions.

Found during investigation of #494 and #479. The original older-database GUI overlay and cross-session document reuse reports remain open; this PR does not establish those behaviors. No Ghidra/IDA behavior or caller-visible schemas change.

Real Ghidra/IDA verification was not run because those providers are unaffected.

Merge timing: morluto merged while the final macOS x64 CI job was pending. Its success and all other exact-head results were subsequently verified.

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

@N0zoM1z0 N0zoM1z0 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Integrated current main without dropping owned-process and lineage checks. All 21 focused regressions and build/static/docs checks pass. The initial real macOS package run confirms the shared-parent false positive is fixed; final integrated Linux/macOS, concurrent-session proof and exact-head CI are running.

@N0zoM1z0 N0zoM1z0 changed the title fix(hopper): distinguish shared lease roots from leaked sessions fix(hopper): verify lease cleanup and repair the macOS test lane Oct 8, 2026
@morluto
morluto merged commit b743bd2 into main Oct 8, 2026
23 checks passed
@morluto
morluto deleted the fix/hopper-verifier-cleanup-ownership branch October 8, 2026 18:41

@N0zoM1z0 N0zoM1z0 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Follow-up validation at 0e0df74: all 23 checks pass, including 42 native Darwin lifecycle tests. morluto merged while the final x64 job was pending; its result is now verified. Installed-package Linux Hopper 6.4.2 and macOS Hopper 6.6.0 Demo pass analysis, cancellation recovery, CLI/MCP parity and cleanup. The real macOS concurrent-session check rejects the second same-target owner while preserving the first document. Original older-database overlay and sequential cross-session reuse remain unverified.

darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
…luto#1111)

* fix(hopper): distinguish shared lease roots from leaked sessions

* fix(ci): follow the moved process CLI regression tests
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
@morluto morluto added area: tests Test suite and verification provider: hopper Analysis provider / engine: hopper labels 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 bug Something isn't working provider: hopper Analysis provider / engine: hopper

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants