Repository navigation
refactor(providers): key Kuna exports and the Native AOT profile on the producer identity - #11353
Merged
morluto merged 1 commit intoNov 15, 2026
Conversation
…he producer identity
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 actionable issue was found. SummaryReplaces Kuna's hand-bumped cache layout marker with the REA release identity and removes the redundant Native AOT profile revision.
Reviews (1) · Last reviewed commit: "refactor(providers): key Kuna exports an..." · 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
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
Retires the last two hand-bumped revision markers W12 found:
NATIVE_AOT_PROFILE_CONTRACT_REVISION(Ghidra PE analysis profile) and Kuna'sCACHE_LAYOUT. Both now rely on the producer identity that #11320 introduced. Stacked on #11320. Refs #10510.Problem and expected behavior
#11320 made the Ghidra and Hopper analysis profiles commit to
ProducerIdentity(REA release plus packaged bridge digest), so REA code changes invalidate them without markers. Two markers remained:native_aot_metadata.contract_revision(rtr-9.1-x64-pe-read-only-v11) in the Ghidra PE profile. It versions REA's own TypeScript Native AOT metadata interpretation, which the profile'sproducer.rea_versionalready covers.CACHE_LAYOUT = 3inKunaProjectCache, bumped by hand whenever the entry layout or manifest meaning changed. Both are REA code.Change and scope
src/filesystem/ProducerIdentity.ts:ReleaseProducerIdentity({ rea_version }) andreleaseProducerIdentity()cover producers implemented entirely in REA's own code.ProducerIdentityis that identity plussources_sha256.NATIVE_AOT_PROFILE_CONTRACT_REVISIONandnative_aot_metadata.contract_revisionare deleted. The limits stay in the profile.producer: { rea_version }instead oflayout. A manifest from another REA release, or with the oldlayoutfield, is refused, so the entry is rebuilt and retired through the existing owned-cache cleanup, as layout bumps were before.docs/kuna-provider.mdsays so.Contract and boundary impact
src/filesystem/ProducerIdentity.ts;src/kuna/KunaProjectCache.ts;src/ghidra/GhidraAnalysisProfile.ts.native_aot_metadata.contract_revision.Expected effects:
Evidence and regression coverage
kunaProjectCache.test.ts: the transition test now also covers the layout 3 manifest that current releases write, and a manifest in the new format from another REA release. Each is rebuilt once and retired without touching unrelated cache resources. The publish test checks that the manifest names the current release.GhidraProvider.behavior.test.ts: the PE profile expectation no longer carriescontract_revision.rea_version, so a development build can reuse a Kuna export or Ghidra profile from an earlier build of the same version.For evidence-bearing changes:
Validation performed
npm run check:fast: passednpm run test:focused -- tests/boundary/providers/kuna/kunaProjectCache.test.ts src/ghidra/GhidraProvider.behavior.test.ts: 2 files, 348 passednpm run test:focused --producerIdentity, GhidraRawProfileDigest, GhidraSnapshotCache, hopperAnalysisProfile and seven Kuna boundary tests (hash owner, provider, concurrency, single-function runs, selected command, publication cleanup, cleanup concurrency): 11 files, 121 passednpm run docs:check: passedCompatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.