mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:45:22 +00:00
[GH-ISSUE #8191] [Bug] Bulk export labels Rust-like Kuna pseudocode as C and omits representation metadata #6473
Open
opened 2026-11-01 21:11:25 +00:00 by bsakaguchi
·
6 comments
No Branch/Tag specified
main
codex/procedure-reference-stacked
release-please--branches--main--components--rea-agents
release-please--branches--main--components--rea-agents--release-notes
codex/kuna-independent-retry
codex/byte-search-overlay-coverage
codex/open-failure-target-receipt
codex/kuna-xref-evidence
codex/ghidra-ambiguous-procedure-recovery
codex/function-source-bundle
codex/trace-function-integration-prototype
codex/snapshot-source-closure
codex/recorded-evidence-array-pages
codex/evidence-recovery-redesign
codex/trace-feature-address-scope
codex/call-discovery-scope
codex/ghidra-literal-candidate-evidence
codex/decompile-directory-independent-retry
codex/retry-provenance-base
codex/value-flow-capability-experiment
codex/ghidra-containing-instruction
cursor/readme-discord-button-ef9f
dependabot/github_actions/actions/setup-node-7.1.0
dependabot/github_actions/actions/upload-artifact-7.0.2
dependabot/npm_and_yarn/npm-minor-and-patch-d8d97ce6df
codex/kuna-1989
fix/8559-native-ui-fixture-ownership
fix/8555-go-verifier-mcp-ownership
codex/provider-capability-recovery
fix/8642-rizin-target-stdin
codex/ghidra-memory-effect-scope
codex/ghidra-annotation-entry-selector
codex/ghidra-readonly-recovery
codex/ghidra-regex-verifier-recovery
codex/evidence-discovery-view-guidance
fix/8545-bulk-append-overflow
fix/8428-navigation-refusal-alternatives
codex/address-context-recovery
codex/matching-member-limitations
codex/unknown-scope-contract
codex/evidence-view-guidance
feat/8373-native-trace-views
codex/ghidra-snapshot-verifier-binding
codex/elf-export-visibility
codex/evidence-view-recovery
codex/native-reference-cli-help
codex/provider-candidate-observation-scope
codex/kuna-session-verification
codex/ghidra-switch-lifetime-guidance
codex/pseudocode-paging-discovery
codex/clarify-evidence-view-support
codex/kuna-xrefs-selector-recovery
codex/context-capacity-recovery
codex/evidence-closure-large-links
codex/same-function-evidence-identity
codex/ghidra-verifier-inspected-jdk
codex/audit-guided-workflows
codex/crash-prompt-retained-dossiers
codex/analysis-view-error-recovery
codex/kuna-verifier-target-selection
codex/ghidra-selected-project-call-coverage
codex/docs-native-analysis-scope
codex/ghidra-java-socket-boundary
codex/ghidra-retained-snapshot-verifier
codex/ghidra-search-inventory-facts
fix/8284-zero-argument-parameter-bindings
fix/8198-ui-action-handler-offset
fix/8257-elf-entry-label-identity
fix/8304-deferred-output-schema-projection
fix/8277-call-path-computed-target-uncertainty
fix/pr-8089-conflicts
fix/ci-static-duplicate-export
dependabot/npm_and_yarn/lint-staged-17.6.0
dependabot/github_actions/actions/download-artifact-8.0.2
dependabot/npm_and_yarn/write-file-atomic-8.0.0
dependabot/npm_and_yarn/canonicalize-5.1.0
dependabot/github_actions/actions/cache/restore-6.1.0
dependabot/npm_and_yarn/toon-format/toon-4.4.0
dependabot/github_actions/actions/deploy-pages-5.0.1
codex/review-fixes-pr-2403
codex/review-fixes-pr-2400
codex/process-terminal-width
codex/test-brittleness-cleanup
verify/7167-browser-connect-macos
fix/7167-browser-connect
feat/native-matching-allowance-setting
feat/browser-scenario-dry-run
test/managed-caller-parameters-20261024
codex/parser-fortythird-boundaries
fix/6926-pinvoke-platform-decorations-20261023
fix/6889-har-body-encoding-20261023
fix/6888-sqlite-schema-budget-20261023
fix/dependency-security-gates-6708
cursor/evidence-overwrite-rebase-b4ac
feat/4057-verify-native-exports
fix/windows-acl-observer-overhead-20261022
cursor/erlang-beam-restack-4476
cursor/pe-certificate-review-bf32
fix/6116-javascript-application-fs-errors
fix/6061-unmapped-runtime-script-unknown
feat/browser-scenario-summary
fix/pe-certificates
codex/verify-3407
cursor/rebase-5699
cursor/rebase-5352
cursor/rebase-5600
cursor/fix-cli-schema-omission-10a8
codex/audit-hopper-shutdown-reasons-20261021
fix/demangle-swift-omitted-record
fix/nib-boolean-value-types
cursor/cancellation-partial-observation-a5ac
fix/ib-object-limit-reasons
fix/electron-fuse-limit-advice
fix/kuna-doctor-dangling-cache
fix/fixed-budget-refusal-advice
fix/js-ipc-listener-dedup
fix/js-return-member-provenance
fix/dmg-integrity-retry-advice
fix/ida-doctor-readiness
fix/kuna-version-probe-output-drain
fix/legacy-swift-runtime-name-matching
fix/dylib-lazy-load-commands
fix/browser-scenario-startup-cancel
fix/swift-nested-punycode-classification
fix/compare-unselected-scopes
fix/objc-method-budget-coverage
fix/dmg-mounted-root-observations
audit/ci-tests-20261019-round2
release/6.7.0
fix/wabt-cleanup-retry-resolution
fix/electron-fuse-elf-pe-architecture
fix/native-plist-descriptor-ownership
fix/kuna-caller-cleanup-ownership
experiment/atomic-codemode-20261016
review/first-contributor-3776
fix/call-resolution-full-read-cycles
fix/member-mutation-selection-repeat
experiment/atomic-re-tools-20261015
perf/member-mutation-lazy-origins
perf/static-network-mutation-index
fix/hopper-startup-lifecycle
audit/3050-windows-proof-20261015
feat/windows-window-capture-2183
audit/3049-windows-proof-20261015
audit/3735-macos-fixtures-20261015
fix/batch-decompile-null-pseudocode
fix/kuna-inventory-honors-jobs
experiment/browser-codemode-tool-design-20261015
fix/hopper-clean-runtime-argv
codex/review-2049-27f1b367
review-fixes/pr-2787-routing
fix/3360-scoped-this-emitters
fix/3367-replaced-global-effects
fix/3838-compact-any-value-items
test/hopper-download-probe-20261015
codex/windows-runtime-creation-red-green-20261015
codex/windows-readonly-root-red-green-20261015
codex/windows-root-share-red-green-20261015
codex/exp-1685-win-mcp-startup
codex/bug-sweep-20261015
investigate/2190-windows-package-phases
investigate/3543-macos-cli-deadline
perf/3281-reverse-tools-feedback-quality
fix/3406-hopper-doctor-fixture
fix/3341-wrapper-require-test-context
fix/3301-owned-uninstall-fixtures
fix/3164-compiler-input-ownership
fix/pcap-cleanup-stdout-newline-20261014
perf/interface-builder-summary
codex/review-fixes-pr-1977
fix/ghidra-effective-jvm-platform
fix/docs-turkish-rust-link-20261013
fix/main-maintenance-ci-20261010
fix/recover-binary-session-process-effects
codex/review-fixes-pr-2457
codex/ci-required-cancellation-gate
fix/main-format-baseline-20261013
fix/setup-preserve-entry-fields
cursor/restore-main-checks-1ffc
fix/ghidra-bridge-hashmap-import
codex/shared-ci-jadx-json-default-20261013
codex/shared-ci-ghidra-test-groups-20261013
codex/shared-ci-java-fixture-format-20261013
codex/fix-intrinsic-invocation-boundaries
test/release-preflight-reusable-jobs
test/js-parameter-provenance-expectation
fix/linux-hopper-verification-current
test/2419-ghidra-elf-probe-size
followup/pr-1544-native-ida
codex/fold-pr-2230-contribution
docs/readme-responsible-use
fix/issue-2064
fix/issue-2050
fix/issue-2053
fix/issue-1968
fix/issue-1945
experiment/codemode-bridge-20261011
fix/tool-effects-negative-wording-1904-20261012
fix/1842-electron-interop-provenance
feat/recover-javascript-multi-input
refactor/website-i18n-prep
fix/nativeaot-pe-virtual-extent
fix/browser-verifier-ci-hang
fix/pe-resources-input-selection
docs/beginner-friendly-guides
docs/beginner-setup-guide
fix/javascript-analysis-worker-1563
fix/1649-ghidra-duplicate-names
fix/javascript-export-keys-integration-1369
test/maintenance-boundary-contracts-20261011
review/javascript-export-keys-1369
review/process-live-progress-1483
test/javascript-1495-growth-ratio
fix/ci-escape-timing
docs/normalized-terminal-geometry-1450
release/6.3.0
archive/release-6.3.0-pr1381
release/6.2.0
fix/electron-preload-dynamic-override
fix/javascript-self-referential-bundler-edges
release/6.1.0
cursor/grok-client-cherry-pick-0b56
feat/signature-posture
feat/dyld-shared-cache
feat/artifact-integrity-policy
feat/pkg-inventory
release/6.0.0
chore/sync-release-5.0.0
release/5.0.0
cursor/cloud-agent-node-787e
fix/javascript-xhr-open-endpoints
review/pr-711-realpath-fallback-wording
cleanup/replay-confinement
codex/test-suite-performance
codex/issue-foundations
codex/address-open-issues-2026-07-20
agent/javascript-vite-rollup-esbuild-adapters
agent/process-cleanup
agent/triage-integration
agent/unknown-commands-registry
feat/mcp-identity-metadata
morlvps/issue_cleanup
codex/installer-redesign
morl/roadmap-investigation-core
morl/roadmap-investigation-docs
release-please--branches--main--components--rea
rea-agents-6.8.0
rea-agents-6.7.0
rea-agents-6.6.0
experiment/atomic-codemode-wait-runtime-20261016
rea-agents-6.5.0
rea-agents-6.4.0
rea-agents-6.3.0
rea-agents-6.2.0
rea-agents-6.1.0
rea-agents-6.0.0
rea-agents-5.0.0
rea-agents-4.1.0
rea-agents-4.0.1
rea-agents-4.0.0
rea-agents-3.2.1
rea-agents-3.2.0
rea-agents-3.1.0
rea-agents-3.0.0
rea-agents-2.7.0
rea-agents-2.6.0
rea-agents-2.5.1
rea-agents-2.5.0
rea-agents-2.4.0
rea-agents-2.3.0
rea-agents-2.2.0
rea-agents-2.1.0
rea-agents-2.0.0
rea-agents-1.7.0
rea-agents-1.6.0
rea-agents-1.5.0
rea-agents-1.4.0
rea-agents-1.3.0
rea-agents-1.2.0
rea-agents-1.1.0
rea-agents-1.0.0
rea-agents-0.5.0
rea-agents-0.4.0
rea-agents-0.3.0
rea-0.2.1
rea-0.2.0
Labels
Clear labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
Mirrored from GitHub Pull Request
question
roadmap
triage
No labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
question
roadmap
triage
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
morluto/rea#6473
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @morluto on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/morluto/rea/issues/8191
Before submitting
Area
Native analysis or decompilation; MCP and bulk export.
Observed behavior
On a source-owned Rust arm64 Mach-O, real REA/Kuna 1.986 MCP returned Rust-like pseudocode for a cold
procedure_pseudo_coderequest and then wrote that same Rust-like text tofunctions/0x1000009cc.cthroughdecompile_all. The file header correctly says the output is provider-specific pseudocode and not original source, but the.cextension suggests C syntax.In a separate real MCP session with a fresh cache and
REA_KUNA_JOBS=2, repeated requests for the same function first returned Rust-like text from a single-function run, then C-like text from the completed project export under the same analysis profile. The cold Evidence disclosed that later project text may differ; both results retain distinct Evidence IDs and source provenance. Neither response identifies the pseudocode language as a structured fact.Reproduction
On macOS arm64, compile (without executing) a Rust binary containing this function and a main that retains a call to it:
rustc --edition 2021 -C opt-level=0 -C debuginfo=1 ...produced the observed fixture, SHA-2561c6f3e32f7e273dacf0984ae1a31f85b62968f1af3aaef65383592a2891a124a. Open it with REA/Kuna 1.986 and a fresh cache, callprocedure_pseudo_code({"procedure":"_audit_compute"})while the export builds, and calldecompile_allwithname: "_audit_compute"and a new output directory. To observe the transition, repeat the pseudocode call until its Evidence source changes fromsingle-functiontoproject-export.Expected behavior
The result and any generated file should communicate the observed pseudocode representation without implying it is original source. Consider retaining an explicit, provider-supported language fact or using a language-neutral output extension when the language is not established. Cold and project results may legitimately differ, but their language/source distinction should be actionable for an agent and remain associated with the individual Evidence record.
Impact and scope
An editor or agent consuming the generated
.cfile may select a C parser for Rust-like text. A repeated request can change syntax as the project export completes. This is one fixture and one release on one host, not a claim of general semantic equivalence or compiled output correctness.REA version
d48e472faplus the unrelated Kuna 1.986 baseline update in #8187.Runtime and platform
macOS arm64; Node 24.22.1; Kuna 1.986; local Rust compiler. Target was not executed.
Target and artifact context
Self-built Rust Mach-O; the affected generated file is an owned REA output artifact, not a mutation of the input binary.
Interface
Real stdio MCP, individual pseudocode and
decompile_all.Earliest failure stage
Pseudocode language/provenance projection and bulk export file naming.
Relevant output or evidence
Direct
kuna decompile ... _audit_compute --jsonreportedlanguage: rust-languageand emittedunsafe fn; direct selectedkuna decompile-projectwrote C-likeint _audit_compute(...)into its.cproject file. The same REA session observed those two representations as single-function and project-export sources.src/application/decompileDirectory/exportTree.tsassigns.cpaths;functionFileTextadds the explicit pseudocode header. Do not assume a file extension or language can be derived safely from the target's source language: a provider can return a different representation.Typed outcome or recovery expected
Preserve exact provider text, Evidence identity, source and known/unknown representation. Make any chosen file naming or metadata compatible with existing decompile indexes, resume, and owned cleanup. Exercise both cold and warm paths and providers/languages whose representation is not known.
Analysis or suspected cause
The export path currently uses
.cwithout a pseudocode-language fact. Whether to use a neutral extension, carry a provider-reported language through Evidence, or offer an explicit representation is a contract decision; this report does not propose wrapping a provider flag without validating its semantics.Kuna 1.988 Rust-format control
With the released Kuna 1.988 executable and upstream's
rust_fmt_literals_x86_64synthetic assembly fixture (it contains an explicit Rust 1.93.1 compiler marker and controlled formatting-call patterns), direct default decompilation ofliteral_lfreturned Rust-likeprintln!("just a literal");. The same fixture with Kuna 1.986 or 1.988--option rustfmtliteral offretained the explicitstd::io::stdio::_printcall; this is a controlled feature boundary, not a claim about compiled Rust generally.On #8509 head
7f344af1a, real compact MCP Kuna 1.988 returned that macro on a coldprocedure_pseudo_codecall, withsingle-functionsource and the project export building. After the background project became ready, a second query for the same address returned C-like pseudocode with the runtime call,project-exportsource, and a different Evidence ID under the same analysis-profile digest. Real Ghidra 12.1.4 returned stable C-like pseudocode across its two calls. The source-kind metadata distinguishes the observations, but the availability of the 1.988 Rust rendering depends on the chosen production path. This is one controlled sequence; it does not establish semantic inequivalence. Fixture SHA-25629a892cc34882f660ce17d36bbe54987529c04d82e5cf0751921e3b72d01a793was unchanged; no target was executed.As a separate non-synthetic control, self-built arm64 Mach-O dylibs using Rust 1.92.0 and 1.93.1 did not show that macro recovery in direct 1.988 Rust output. The 1.93.1 Mach-O had no embedded DWARF contents in
dwarfdump; the exact reason the upstream gate did not activate was not established. Its single-function REA/Ghidra and REA/Kuna traces both found the literal and its source reference. The compiler was installed under an isolated temporary directory; the default local Rust installation stayed at 1.92.0.Producer-supplied language and output-size boundary
Direct
kuna decompile ... --jsonreports a top-levellanguage(rust-languageorc-language) in both released 1.986 and 1.988. In eight controlled direct calls (each version against one synthetic Rust-format ELF, two separately compiled Rust Mach-Os, and a C ELF), the JSONcodematched the corresponding default text output after trailing-newline removal. A selecteddecompile-projectcontrol produced C-style output for the same synthetic Rust function. REA currently calls the single-function operation in text mode, so this language fact is not available to its consumer; no syntax guessing is needed if an equivalent bounded producer path is chosen.Changing the command to JSON is not automatically equivalent at the resource boundary. The JSON includes variables, types and address mappings as well as code: in these small controls, 157–381 bytes of Rust text produced 1,145–3,481 JSON bytes, and a 69-byte C output produced 1,790 JSON bytes. REA's current
KUNA_FUNCTION_TEXT_BYTESis a 16 MiB cap on captured output, so blindly retaining that cap after changing representations could reject a text result previously within its limit. These are single-fixture output measurements, not performance or prevalence claims. Any implementation should validate exact input/function identity and failure states, bound representation expansion before materialization, preserve the plain-text and completed-observation semantics, and check text/JSON equivalence and historical Evidence under real providers. The synthetic fixture and three self-built targets were unchanged and not executed.Selected decompile-all control
Kuna 1.988
decompile ... --json --no-varsrejects--no-varsas an unknown option. The separatedecompile-all <binary> --addr <entry> --json --no-varspath is accepted and reportslanguage. On four controlled fixtures with each of Kuna 1.986 and 1.988, its selected code matcheddecompile --json; all 20 discovered entries of the upstream synthetic Rust-format fixture likewise matched under 1.988. This is evidence for further investigation, not proof that the commands have identical discovery, failure, whole-program prototype, scheduling or cancellation semantics.--no-varsdoes not eliminate all auxiliary representation: on an unexecuted source-built arm64 Mach-O function with 500 volatile stores, the 1.988 selected code matched direct text, but the JSON retained 500 line mappings and was 68,686 bytes for 12,261 bytes of text. The target SHA-25613104ed55381966c6baab4d728cd43f111e0cffac1456603786043a250bc67ccremained unchanged. A change to the current 16 MiB stdout boundary still needs a concrete bounded admission and partial/failure policy; these cases do not determine a general expansion bound or real-world frequency.Address and failure boundary control
On the same source-built 500-store Mach-O with released Kuna 1.988, a direct native control compared
decompiletext,decompile --json, anddecompile-all --addr ... --json --no-vars. All three accepted its exact code entry, an interior instruction address, and a mapped data address; the interior runs reported the address was not a discovered entry, while the data result rendered anUndefinedInstructionExceptionstub. These direct-native inputs are not all admitted as procedure entries by current REA, so they do not establish an REA regression. For an unmapped0x1, all three exited 1, butdecompile --jsonreturned a 209-byte JSON document with a run-level error, whereas selecteddecompile-allreturned no stdout and an error on stderr. Failure projection therefore cannot assume a successful result document. The selected fixture SHA-256 remained unchanged; it was not executed.Source inspection of the checked upstream development tree shows a further verification boundary: the text path invokes the console/decompiler subprocess, while
decompile --jsonroutes through the in-process decompile-all engine. The observed equal outputs above do not prove these are interchangeable under all analysis conditions. Keep command mode, source identity, errors, timeouts and cleanup attributable if evaluating a structured producer path.Upstream interface discussion: https://github.com/Noelo-Lab/kuna/issues/1410 asks about compact structured single-function output carrying language and code, including omission semantics and failure behavior. The measured expansion and its limitations are described there.
Neutral-extension resume control
On REA
187f3d8ccwith real Kuna 1.990 on macOS arm64, an owned Rust fixture produced a.cexport containing Rust-like pseudocode. A copy of that export resumed successfully on the same build and skipped the existing file. In a separate temporary exploratory build, I changed the allocator and strict journal path schema to accept only.txt, then attempted the same resume on another copy. The journal was rejected as an incompatible export; the journal, index, and.cfile hashes were unchanged. This experiment intentionally did not implement a migration or propose a compatibility layer. The baseline resume rewrote the derived index while leaving the journal and pseudocode file unchanged. In that same exploratory build, a fresh export wrote0x1000009cc.txtand a second call resumed it successfully, skipping the unchanged file. This checks only the tested path, not every journal or downstream consumer.The result establishes that an extension-only change is a persisted-format change as well as a naming change. Any design must explicitly decide how existing caller-owned exports are handled and give actionable recovery without misclassifying the caller's valid arguments as a schema error. It does not establish that a particular migration or compatibility mechanism is required. The target was not executed; this covers one fixture and host. Related journal-error guidance is being addressed separately in #8809.
Compact JSON alias expansion control
On macOS arm64, I built an unexecuted Mach-O dylib containing one two-instruction AArch64 function with 600 distinct exported names at the same address, each with a 160-character suffix. Direct Kuna 1.989 and 1.990
decompile ... 0x2a0 --addremitted 218 bytes of text;decompile ... 0x2a0 --addr --json --omit line_mappings,variables,typesemitted 114,705 bytes containing all 600 aliases, with the same code andc-language. In 1.990, addingaliasesto--omitexited 2 because that omission is unsupported. The target SHA-256cf3bbb6ecd658978ebaecc91189fbc280e9b82aedce1add7ff69333cef5053dbstayed unchanged.A separate real REA MCP session using 1.990 returned the function through its existing
single-functiontext path (217 bytes after REA's trailing-newline removal). This intentionally extreme, source-owned fixture demonstrates that compact structured output can grow far beyond the code because of metadata that cannot currently be omitted. It does not demonstrate a natural prevalence, actual resource exhaustion, or a general expansion bound. Changing REA's existing 16 MiB stdout cap directly to compact JSON could reject an otherwise admitted text result; a design needs an explicit bounded-admission and recovery policy rather than assuming omitted line mappings and variables bound total overhead.Upstream optional alias omission request: https://github.com/Noelo-Lab/kuna/issues/1497.
@sathariels commented on GitHub (Oct 30, 2026):
I'd like to take this one. My plan: carry a provider-reported pseudocode language through to the pseudocode result and Evidence record as an explicit field (
unknownwhen the provider doesn't establish it), and havedecompile_allpick the file extension from that fact —.rs/.conly when the language is known, otherwise a language-neutral extension such as.pseudo— while keeping existing decompile indexes, resume and owned cleanup working with older.cexports. Happy to adjust if you'd prefer a different contract (e.g. always neutral extension + language in the index only).@morluto commented on GitHub (Oct 30, 2026):
A separate real MCP cold-to-warm bulk-export sequence makes the lifecycle explicit. With a fresh Kuna cache and two workers,
decompile_allselected and wrote the Rust-like cold body. After the project export became ready andprocedure_pseudo_codereturned C-like project text,decompile_allwithresume: trueon the existing output reportedskipped: 1and kept the verified original Rust-like file; a new output directory wrote the C-like body. Both files had.cextensions, and the cold file/index retained the single-function limitation.Skipping the verified file is consistent with the advertised resume contract; this is not a request to silently overwrite it. It demonstrates why representation and source information need to remain per produced artifact and why a caller may need an explicit fresh output to obtain the current project representation.
@morluto commented on GitHub (Oct 31, 2026):
Looping in @gensokyo-dev @kaoru0822-kitauji @N0zoM1z0 for visibility on the Ghidra, Kuna, and REA tool-design investigation.
@morluto commented on GitHub (Oct 31, 2026):
One more control for the representation contract on REA
245a5818, Kuna 1.986, and the same unexecuted Rust Mach-O:decompile … _audit_compute --json(language omitted)rust-language--language autoc-language--language cc-language--language rustrust-languageThis is one target and provider version. The v1.986 argument handling sets
saw_languageeven forauto; the automatic detection policy only runs when no language was specified and deliberately excludes project exports. If a future REA design offers language selection, omission and explicitautotherefore need distinct treatment; the returned representation should be attached to the actual producing observation rather than inferred from target language or shared profile.In a fresh real REA/Kuna MCP session, the cold
procedure_pseudo_codereturned Rust-like single-function output;analyze_functionwaited for the project export and returned C-like text. Their analysis profiles matched, while their source and retained Evidence identities differed.compare_functionscorrectly rejected the cold record because its documented inputs requireanalyze_functionEvidence. Explicitly pairing the cold and warm pseudocode records viacompare_bundlesreported that the records changed, with overall statusunknownbecause other bundle members were one-sided; it did not identify the textual change or establish a behavioral difference. This is an existing narrower comparison path, not a request to treat incomplete pseudocode records as full function dossiers. The target digest was unchanged.@morluto commented on GitHub (Oct 31, 2026):
CLI control on REA
e6d0618979f0df3f1d5db218b0fc7b5e6a9cf3f9, Kuna 1.986, and the same unexecuted Rust Mach-O:rea decompile <target> _audit_compute --provider kuna --format json --full-outputcommands with the same initially fresh cache each returned Rust-likesingle-functiontext and aproject_export.state: buildingobservation. The response included the existing caveat that later project text can differ. A separate single cold CLI invocation left its isolatedprojectsandstagingdirectories empty after the command exited; this is not evidence that every CLI invocation or every target will remain cold.rea function <target> _audit_compute --provider kuna --format json --full-outputagainst that second cache completed successfully and returned C-like function-dossier pseudocode. A subsequent separaterea decompileusing that cache returned C-likeproject-exporttext withstate: ready. Independently, priming the first cache through MCPanalyze_functionalso made a later CLIdecompileuse the project export.The ordinary CLI rendering retained the cold source and caveat as well. These observations give a tested CLI-only route for an analyst who needs the project-produced representation; they do not imply that
functionis simply a language switch, that the outputs are behaviorally equivalent, or that an agent should silently force a whole-project export. The source says session close cancels its export interest and waits for required cleanup, which is consistent with the isolated cold-directory observation. Target SHA-256 stayed unchanged. Please consider the cold one-shot / warm cached transition alongside per-artifact representation when evaluating the existing proposal.@morluto commented on GitHub (Oct 31, 2026):
A related real-provider control shows that the cold/project representation transition can occur inside one
batch_decompileresponse for an ordinary function. In a small owned Rust Mach-O, a test wrapper held the project export until the first single-function result completed; repeated_audit_computeselections returned Rust-like and C-like bodies, both successful. Direct Kuna reportedrust-languagefor the first text, and a later individual REA request identified the matching C-like text as project-export output. Successful batch items did not identify their source or representation. Real Ghidra returned equal repeated bodies on the same fixture. Details, scheduling limitations and offline Evidence control: #8350. This is one intentionally scheduled test and does not imply a natural rate or semantic equivalence.