Repository navigation
fix(kuna)!: separate verification policy from analysis identity - #8699
Conversation
[Medium impact] The reviewed changes appear safe to merge, with the documented one-time snapshot incompatibility. SummarySeparates Kuna’s verification policy from analysis identity and recommends Kuna 1.989.
No actionable new issues or repository-rule violations were found. The latest change adds tests only; it adds no executable installation, target execution or permission changes. Tests were not run during this review. The supersession check could not complete because GitHub authentication was unavailable. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
Executable["Executable version, digest and settings"] --> Profile["Analysis profile"]
Profile --> Binding["Snapshot binding"]
Policy["Current verified-release policy"] --> Warning["Observation warning"]
Warning --> Evidence["Evidence and dossier"]
Evidence --> Views["Batch and retained views"]
Reviews (2) · Last reviewed commit: "test(kuna): cover verification warnings ..." · Reviewed by Greptile |
Codex Review SummaryThis 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. |
Summary
Recommend and verify Kuna 1.989 and separate REA's verification policy from the analysis profile. Previously, changing the recommended release changed an unchanged executable's profile, causing snapshot binding to fail (#8690). The profile continues to commit the executable version, digest and result-affecting settings; fresh observations and dossiers report unverified releases as limitations.
This PR combines the version bump from #8691 and the profile change into one breaking transition. The user accepted the one-time incompatibility. It prevents future policy-only mismatches for new-format snapshots; it does not make existing snapshots match.
Compatibility and recovery
Existing Kuna snapshots and resumable
decompile_alldirectories contain the oldverified_releaseprofile parameter and will not match, even with the same executable. Existing files are not modified. Open the binary without the old snapshot and save a new one, or choose a new output directory. The guide includes a testedjqextraction andrea evidence-importcommand for historical Evidence. This validates the extracted bundle, not the rest of its snapshot; it does not restore cached workflow entries or resume an old export. No compatibility shim or silent rebind is introduced. The separate design question for native snapshot recovery is #8655.Verification compares the reported version and does not authenticate executable bytes. REA continues to use a caller-supplied Kuna; it does not install or bundle it.
Evidence and validation
npm run verify:kunapassed on generated symbol-bearing and stripped Mach-O fixtures, exercising cold and warm reads, references and complete cleanup. Real doctor identified 1.989 as verified and allowed 1.988 as unverified.jqextraction of an old snapshot followed byrea evidence-importvalidated one historical record and left the source snapshot unchanged.verified_releasein the profile.check:fast,docs:check, formatter andgit diff --checkpassed;docs:checkwas rerun after the extraction example.Scope
The Kuna provider owns identity and observation limitations. This remains existing static-provider behavior: no executable installation, target execution, new provider capability, new schema, or automatic migration. The one-time legacy snapshot limitation remains explicit in #8690.
Author readiness
Human owner:
MCP warning regression
The existing SDK-client/production-server batch integration now checks that an unverified fake Kuna warning reaches composed batch Evidence and a retained pseudocode view, while the provider profile omits the policy flag. The focused test and
check:fastpassed. On the 1.989-bump parent, the same test failed because the batch omitted the warning. The real 1.988/1.989 MCP controls above cover provider behavior; this is a controlled-provider integration regression.Composed workflow snapshot control
With real Kuna 1.988 in compact stdio MCP, a new-format snapshot saved
trace_call_pathandbinary_overviewEvidence while 1.988 was marked verified. After changing only the prototype's verification policy to 1.989, reopening against the same executable and target preserved both historical records exactly as parsed JSON. Fresh calls returned distinct Evidence IDs with the unverified warning. The saved snapshot had zero primitive and zero workflow cache entries, so the control demonstrates fresh composed results and historical retention, not replay of cached workflow entries. The owned target was not executed.CLI control
Real
rea decompile --provider kuna --jsonon the owned 2 MiB Mach-O with Kuna 1.988 and 1.989 produced the unverified warning only for 1.988; neither output profile containedverified_release. Repeating with an older 1.988 snapshot returned exit 1 andevidence_integrity_mismatch; the snapshot digest was unchanged. The target digest also stayed unchanged. This is a macOS arm64 single-function control; the MCP and directory controls above cover additional paths.Stored-pointer reference control
Real Kuna 1.989 still reports a chained-fixup pointer on the owned pointer-only Mach-O in #8510, while REA's xrefs and feature trace omit it in both MCP profiles.
dyld_infoindependently confirmed the rebase; the target was unchanged and not executed. The upgrade does not fix that existing reference-projection gap.