Repository navigation
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Independent maintenance integration is now on this existing PR as Resolved the Windows fixture-generator conflict by retaining both sets of controls. Actual generation proves x86/x64 EXE bytes (1,536 each) are identical to the original PR, and x86/x64 DLL bytes (1,024 each) are identical to main. Production target classification verifies all four PE architectures, application/shared-library roles, managed=false, input SHA-256 and unchanged bytes. DLL verification now explicitly omits the EXE-layout-specific compact-reference proof ( Validation on the integrated source, pinned Linux Node 24.18.0 and the documented two-CPU/process-family guard:
The bridge/reference-schema change and the EXE bytes remain as reviewed in the original PR. Your actual Windows Ghidra/CLI/MCP proof remains attributed contributor evidence. No local Ghidra installation or Windows channel is available here, and no Ghidra/JDK was installed. Please repeat one source-owned x86 or x64 EXE compact-reference probe on this integrated head with the existing matching toolchain, report the head/settings/unchanged input hash/cleanup, and keep DLL-specific proof distinct. A full Obsidian/Notion or additional provider matrix is unnecessary for this increment. Waiting for fresh CI/review on this exact head; no reviewers requested. The broader #1245 scope remains open. |
|
The current integration head is now The previous CI's Linux shard and Windows lane failures came from main #1480's archive-case tests, not the compact-reference producer. I reproduced the failing control at On this current integration, 89 provider/native-value/compact-reference/SDK-schema/archive controls plus seven JADX cleanup controls pass. Full serial compile/typecheck, lint, unchanged duplication gate, complete generated-document checks and changed-file formatting pass. The newly compiled public CLI and SDK stdio MCP small-target proof also passes, retaining native metadata fields, unchanged source hash, text/structured parity, Evidence consistency and ping. This remains public adapter/catalog verification, not independent real Ghidra evidence. The earlier request for one actual Windows Ghidra tiny-EXE recheck applies to this current head. Bridge/reference source and the previously byte-verified EXE controls remain unchanged; another provider/application matrix is unnecessary. Waiting for the fresh current-head CI and that attributed real-provider result before merge. Broader #1245 remains open. |
Co-authored-by: N0zoM1z0 <[email protected]>
|
Thanks @JosephDemarest for preserving compact-reference provenance through native analysis! Squash merged. Welcome to REA, and thank you for your first PR to the repo. |
Summary
Preserve Ghidra's reference origin, primary status, and DATA/READ/WRITE classification in compact instruction and call-target results. This is the compact-reference increment of #1245; the broader incoming-xref contract remains open.
Problem and expected behavior
An indexed store can have multiple analyzer-generated DATA references, including a non-primary reference. The compact representation previously dropped the primary flag, reference origin and access flags even though the full procedure-reference representation retained most of these facts. Consumers could not distinguish those references from literal accesses without another query.
Compact results now preserve the observed provider facts.
primaryis not proof of literal addressing or runtime access, and unknown metadata stays unknown.Change and scope
referenceKindproducer and add the actual source address andReference.getSource()origin.source_address,data,read,write,primary,provenanceandsource, preserving legacy omission and explicit nulls.Contract and boundary impact
Evidence and regression coverage
[ { "type": "DATA", "data": true, "read": false, "write": false, "primary": true, "source": "analysis", "provenance": "ghidra-reference-manager" }, { "type": "DATA", "data": true, "read": false, "write": false, "primary": false, "source": "analysis", "provenance": "ghidra-reference-manager" } ]The indexed store's analyzer targets are DATA references; separate literal controls prove READ and WRITE preservation. Compact references match full procedure-reference edges, and direct-call target references match the corresponding instruction references.
Validation performed
Executed on Windows 11, with Node 24.18.0, npm 11.16.0, Ghidra 12.1.4 and Temurin JDK 21.0.11:
npm run build:cached— passed.npm run test:focused -- src/ghidra/GhidraFunctionValues.test.ts src/ghidra/GhidraProvider.behavior.test.ts src/application/native/NativeValueTrace.test.ts tests/boundary/mcp/ghidraCompactReferencesMcp.test.ts tests/boundary/mcp/ghidraRoutingMcp.test.ts tests/boundary/mcp/toolSchemaValidity.test.ts tests/boundary/mcp/contractPresentation.test.ts— 72 tests passed across seven files. The ignored addon was temporarily absent for the existing missing-addon control, then restored.npm run check— passed, including architecture guards; lint reported 494 warnings and zero errors.npm run docs:check— passed.node scripts/verify-test-discovery.mjs— 705 test files discovered exactly once.node scripts/verify-real-ghidra-windows.mjs --x86andnode scripts/verify-real-ghidra-windows.mjs— real Ghidra x86/x64 passed all 25 read-only operations, compact/full reference assertions and complete cleanup.node scripts/verify-packaged-ghidra-windows.mjs . build/fixtures/rea-ghidra-windows-x86.exe <progress-file>— source-built public CLI and real stdio MCP passed, including six CLI/MCP comparisons, 29 unique MCP operations, unchanged fixture digest, preserved collision controls and zero residual runtimes.Compatibility, safety, and release
Review checklist
type(scope): outcome.