Repository navigation
feat(ghidra): add atomic function annotation edits - #709
Merged
Merged
Conversation
Return annotation readback and refreshed function analysis through CLI and MCP. Own each database transaction, invalidate caches and immutable snapshots, preserve executable bytes, and retain the Windows mutation boundary. Assisted-by: Nitori (gensokyo-skills:nitori-reverse-engineering)
Preserve namespaces during local name writes and match qualified readback to the refreshed dossier. Add a producer-shaped regression and verify a real namespaced C++ function through the CLI. Assisted-by: Nitori (gensokyo-skills:nitori-reverse-engineering)
Preserve Windows native inspection authority while excluding annotation mutation from capabilities, transport handshake, and provider verification. Update the platform boundary documentation. Assisted-by: Nitori (gensokyo-skills:nitori-reverse-engineering)
Keep strict capability and profile checks while admitting the explicit session metadata operation. Verify packaged transport authority and atomic transaction commitments and preserve a read-only Windows expectation. Assisted-by: Nitori (gensokyo-skills:nitori-reverse-engineering)
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
* feat(ghidra): edit function annotations atomically Return annotation readback and refreshed function analysis through CLI and MCP. Own each database transaction, invalidate caches and immutable snapshots, preserve executable bytes, and retain the Windows mutation boundary. Assisted-by: Nitori (gensokyo-skills:nitori-reverse-engineering) * fix(ghidra): preserve qualified function annotation identity Preserve namespaces during local name writes and match qualified readback to the refreshed dossier. Add a producer-shaped regression and verify a real namespaced C++ function through the CLI. Assisted-by: Nitori (gensokyo-skills:nitori-reverse-engineering) * test(ghidra): align verification with annotation authority Keep strict capability and profile checks while admitting the explicit session metadata operation. Verify packaged transport authority and atomic transaction commitments and preserve a read-only Windows expectation. Assisted-by: Nitori (gensokyo-skills:nitori-reverse-engineering)
2 tasks done
22 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.
Changes
Add
annotate_native_functionand CLIannotate-native-function: atomically edit one local function name and/or entry comments, verify readback, and return a refreshed complete function dossier inline. Existing boolean naming/comment proxies do not provide this atomic edit plus refreshed analysis outcome.Verification
Integrated origin/main
ab5a1c61before publication, including Windows native read-only authority26881da7. Before merge, also tested a temporary conflict-free integration with latest mainc3bc38bf(function comparison source parameters), with 70 tests across source and actual MCP boundaries passing; then restored the exact CI-tested PR head.87b2e895-2072-4f22-bda9-a5793c695ee0. Artifact used the locked workspace dependencies; this is not a fresh dependency installation claim.dd5a90bd-b456-4c86-8e92-82f681d48aee. Private paths, executables, projects and outputs are excluded from the repository and package.36adcb9c-3717-47f0-887a-338986f53126. Final publication artifact namespace/diagnostic follow-up passed with one CPU and bounded heaps; run08c095c8-4fa0-46c9-a441-b6e953ae075a. It verified qualified-name readback, refreshed decompilation, precise invalid-name issues, unchanged source bytes, and no owned descendants. Windows-main publication artifact proof also passed:ca02e291-6fdc-4672-a7b2-9f5f300fe28a, with qualified rename, refreshed decompilation, precise invalid-name issues, unchanged source bytes and no owned descendants. The full COM artifact proof precedes this narrow namespace/diagnostic hardening; its transaction/cache code is unchanged.Local work now runs sequentially on one CPU with lower priority, Node old-space capped at 768 MiB and Java heap at 512 MiB. The Go compiler has one runtime worker and a 768 MiB soft memory target; these are not total RSS limits. No host configuration changes.
No real macOS/Hopper verification performed for these changes. Windows mutation remains unavailable. No demo or game reconstruction is included.
Example
{"name":"annotate_native_function","arguments":{"procedure":"0x10100","name":"entry","comment":"Recovered startup role","inline_comment":"Inspect segment setup"}}rea annotate-native-function /local/program.com 0x10100 --target-format dos-com --provider ghidra --name entry --comment 'Recovered startup role' --jsonBoth return annotation readback and the refreshed dossier inside normal Evidence. Analyst-authored names/comments do not establish original-source naming authority.