Skip to content

fix(hopper)!: commit the REA release and bridge script in Hopper analysis profiles - #11324

Merged
morluto merged 1 commit into
feat/producer-identity-cache-keyfrom
feat/hopper-producer-identity
Nov 15, 2026
Merged

morluto merged 1 commit into
feat/producer-identity-cache-keyfrom
feat/hopper-producer-identity

Conversation

@morluto

@morluto morluto commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Summary

Hopper analysis profiles now commit the producer identity (the REA release plus a digest of bridge/hopper_bridge.py) on the shared ProducerIdentity owner from #11320, replacing their one hand-bumped marker. Stacked on #11320. Refs #3664.

Problem and expected behavior

The Hopper profile committed the launcher digest, loader arguments and target selection, plus function_dossier_coverage: "observed-facets-and-call-relationships-v1". It did not commit the REA release or the bridge script that produces every Hopper result. A snapshot saved before a bridge or REA change therefore replayed results the current bridge would not produce, unless someone bumped the marker.

Expected: a Hopper snapshot replays only under the same REA release and bridge script.

Change and scope

  • src/hopper/HopperBridgeSources.ts owns the packaged bridge script URL (the provider launches it from there; the inline new URL is removed) and hopperProducerIdentity().
  • HopperAnalysisProfile.ts commits producer in place of function_dossier_coverage.
  • Not included: scripts/hopper-demo-x11.py (Linux demo launch helper; it does not shape results). macho-selected-image-v1 stays: it is the domain schema kind of a target selection, not a cache marker.

Contract and boundary impact

  • Semantic owner and earliest changed stage: ProducerIdentity -> Hopper analysis profile -> snapshot binding and Evidence analysis_profile.
  • Contribution scope fit and linked maintainer decision: structural cleanup plan W12 step 1 (other caches); no new authority.
  • CLI and MCP/tool-catalog contract: no schema change.
  • Provider, bridge, target-format, or platform compatibility: Hopper only; bridge unchanged.
  • Evidence, artifact, provenance, or reconstruction contract: Hopper profile parameters and digests change, so Hopper Evidence IDs change.
  • Target selection, authority, upstream behavior, and cleanup details: not applicable.
  • 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.

Evidence and regression coverage

  • Tests added or updated: tests/boundary/providers/hopper/hopperAnalysisProfile.test.ts adds "commits the REA release and packaged bridge script it runs", which compares producer with an independent digest of the packaged bridge. The loader-argument case reads producer instead of the marker. Script-edit invalidation is covered by tests/boundary/filesystem/producerIdentity.test.ts (refactor(providers)!: key Ghidra and Hopper analysis profiles on the producer identity instead of hand-bumped markers #11320).
  • Base reproduction or other evidence: source-derived. On the base, the profile has no producer and no bridge or REA input, so the new test fails there. I did not run it on the base.
  • Remaining proof gaps: no real Hopper run.

For evidence-bearing changes:

  • Observed, derived, and inferred claims remain distinguishable.
  • Artifact identity, source provenance, and failed attempts remain preserved.
  • Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.

Validation performed

  • npm run check:fast: passed (typecheck, lint, architecture guards across 2813 files)
  • npm run test:focused -- tests/boundary/providers/hopper/hopperAnalysisProfile.test.ts src/hopper/HopperAnalysisProfile.test.ts src/hopper/HopperProvider.test.ts tests/boundary/providers/hopper/hopperRelativeLauncher.test.ts tests/boundary/providers/hopper/hopperClient.protocol.test.ts: 5 files, 79 tests passed

Compatibility, safety, and release

  • Breaking changes or migration steps: BREAKING CHANGE: Hopper Evidence analysis_profile.parameters replace function_dossier_coverage with producer ({rea_version, sources_sha256}). Hopper profile digests and Evidence IDs change, and analysis snapshots saved by earlier builds are refused at open. Migration: open the target without the old snapshot and save a fresh one.
  • Real Hopper/Ghidra, browser, or OS coverage: none run.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: reads the packaged bridge file once per process.

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.

…ysis profiles

Hopper analysis profiles committed the launcher digest and one hand-bumped
marker (function_dossier_coverage "...-v1"), but neither the REA release
nor bridge/hopper_bridge.py. A snapshot saved before a bridge or REA change
replayed results the current bridge would not produce.

HopperBridgeSources owns the packaged bridge script URL (used to launch it)
and hopperProducerIdentity() on the shared ProducerIdentity owner; the
profile commits `producer` in place of the marker.

BREAKING CHANGE: Hopper Evidence `analysis_profile.parameters` replace
`function_dossier_coverage` with `producer` ({rea_version, sources_sha256}).
Hopper profile digests and Evidence IDs change, and analysis snapshots saved
by earlier builds are refused at open. Migration: open the target without
the old snapshot and save a fresh one.
@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-15T16:16:46.187277Z
We couldn’t complete this review. Comment @codex review to try again.
0e2bca1 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

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps

greptile-apps Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking issues were found.

Summary

Hopper profiles now include the REA release and a digest of the packaged bridge instead of a hand-updated marker.

  • Hopper snapshots now track the REA release and bridge script.

Reviews (2) · Last reviewed commit: "fix(hopper)!: commit the REA release and..." · Reviewed by Greptile

@morluto
morluto merged commit 64ecd68 into feat/producer-identity-cache-key Nov 15, 2026
1 check passed
@morluto
morluto deleted the feat/hopper-producer-identity branch November 15, 2026 16:31
morluto added a commit that referenced this pull request Nov 15, 2026
…producer identity instead of hand-bumped markers (#11320)

* refactor(ghidra)!: key analysis profiles on the producer identity instead of hand-bumped markers

Ghidra snapshot validity depended on 53 hand-maintained "-vN" semantic
markers in the analysis profile; a behaviour fix that forgot to bump its
marker left old snapshots admissible (#3664). #10562 added a digest of the
bridge sources, but TypeScript projection changes still needed a bump and
the REA release was not committed.

- src/filesystem/ProducerIdentity.ts owns the producer identity: the REA
  release plus a framed SHA-256 of a producer's packaged scripts, read once
  per process.
- Ghidra profiles commit `producer` in place of `bridge_sources_sha256` and
  the constant revision markers (shared semantics block, load-image, entry
  seed, PDB, jump-table, DOL import, MIPS ISA-mode markers) are removed.
- Runtime-selected values keep their meaning without a revision suffix
  (language_selection, annotation_policy, relocation/no-return/launch
  policy, MIPS/PowerPC/PSP lanes, MIPS ABI basis). Bridge wire policy ids
  shared with the Java scripts (ilp32-prototype-v1,
  o32-soft-float-prototype-v1) are unchanged.

BREAKING CHANGE: Ghidra Evidence `analysis_profile.parameters` replace the
semantic marker keys and `bridge_sources_sha256` with `producer`
({rea_version, sources_sha256}), and selection values lose their "-vN"
suffix (for example `language_selection: "provider-pinned"`). Ghidra
Evidence IDs and profile digests change, and analysis snapshots saved by
earlier builds are refused at open. Migration: open the target without the
old snapshot and save a fresh one; consumers reading the removed marker keys
should read `producer` instead.

* fix(hopper)!: commit the REA release and bridge script in Hopper analysis profiles (#11324)

Hopper analysis profiles committed the launcher digest and one hand-bumped
marker (function_dossier_coverage "...-v1"), but neither the REA release
nor bridge/hopper_bridge.py. A snapshot saved before a bridge or REA change
replayed results the current bridge would not produce.

HopperBridgeSources owns the packaged bridge script URL (used to launch it)
and hopperProducerIdentity() on the shared ProducerIdentity owner; the
profile commits `producer` in place of the marker.

BREAKING CHANGE: Hopper Evidence `analysis_profile.parameters` replace
`function_dossier_coverage` with `producer` ({rea_version, sources_sha256}).
Hopper profile digests and Evidence IDs change, and analysis snapshots saved
by earlier builds are refused at open. Migration: open the target without
the old snapshot and save a fresh one.

* fix(ghidra): build the legacy reference snapshot from another producer and use the shared temp directory

* refactor(providers): key Kuna exports and the Native AOT profile on the producer identity (#11353)

* fix(ghidra): keep the bridge source table import-free for the Node-loaded verifier

scripts/verify-ghidra-bridge-sources.mjs loads GhidraBridgeSources.ts with
Node type stripping, which does not resolve .js specifiers to .ts sources.
The producer identity import made every verifier run fail with
ERR_MODULE_NOT_FOUND; the identity now lives in GhidraProducerIdentity.ts.

* fix(artifacts): import the moved file source and abort check from their resources owner after merging main
@morluto morluto added area: build Build, CI, packaging, and publishing bug Something isn't working provider: hopper Analysis provider / engine: hopper labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing bug Something isn't working provider: hopper Analysis provider / engine: hopper

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant