Repository navigation
fix(hopper)!: commit the REA release and bridge script in Hopper analysis profiles - #11324
Merged
morluto merged 1 commit intoNov 15, 2026
Merged
Conversation
…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.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Medium impact] The PR appears safe to merge; no blocking issues were found. SummaryHopper profiles now include the REA release and a digest of the packaged bridge instead of a hand-updated marker.
Reviews (2) · Last reviewed commit: "fix(hopper)!: commit the REA release and..." · Reviewed by Greptile |
22 tasks
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
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hopper analysis profiles now commit the producer identity (the REA release plus a digest of
bridge/hopper_bridge.py) on the sharedProducerIdentityowner 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.tsowns the packaged bridge script URL (the provider launches it from there; the inlinenew URLis removed) andhopperProducerIdentity().HopperAnalysisProfile.tscommitsproducerin place offunction_dossier_coverage.scripts/hopper-demo-x11.py(Linux demo launch helper; it does not shape results).macho-selected-image-v1stays: it is the domain schemakindof a target selection, not a cache marker.Contract and boundary impact
ProducerIdentity-> Hopper analysis profile -> snapshot binding and Evidenceanalysis_profile.Expected effects:
Evidence and regression coverage
tests/boundary/providers/hopper/hopperAnalysisProfile.test.tsadds "commits the REA release and packaged bridge script it runs", which comparesproducerwith an independent digest of the packaged bridge. The loader-argument case readsproducerinstead of the marker. Script-edit invalidation is covered bytests/boundary/filesystem/producerIdentity.test.ts(refactor(providers)!: key Ghidra and Hopper analysis profiles on the producer identity instead of hand-bumped markers #11320).producerand no bridge or REA input, so the new test fails there. I did not run it on the base.For evidence-bearing changes:
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 passedCompatibility, safety, and release
BREAKING CHANGE:Hopper Evidenceanalysis_profile.parametersreplacefunction_dossier_coveragewithproducer({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.Author readiness
Human owner:
Before merge
type(scope): outcome.