mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:45:22 +00:00
Closed
opened 2026-11-03 13:38:36 +00:00 by bsakaguchi
·
0 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#7545
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?
📋 Pull Request Information
Original PR: https://github.com/morluto/rea/pull/6981
Author: @Abelo9996
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @morluto
Base:
main← Head:fix-6397-android-static-final-values📝 Commits (5)
981a44afix(android): report DEX static values of static final fieldsfa52286fix(android): request DEX static values only for class inspectionf53b5e6fix(android): range-check wide DEX static values4c5acc7Merge remote-tracking branch 'origin/main' into fix-6397-android-static-final-values8d56e56fix(android): move the bridge to version 7 after main took 6📊 Changes
12 files changed (+451 additions, -17 deletions)
View changed files
📝
bridge/android/ReaJadxBridge.java(+68 -10)📝
docs/android-analysis.md(+15 -0)📝
scripts/verify/android/metadata.mjs(+4 -0)📝
src/android/JadxAnalysis.ts(+6 -0)📝
src/android/JadxProtocol.ts(+10 -2)📝
src/android/JadxRelease.ts(+1 -1)📝
src/contracts/android/androidToolContracts.ts(+1 -1)📝
src/domain/android/androidAnalysis.ts(+51 -1)📝
tests/boundary/android/JadxAnalysis.test.ts(+212 -0)📝
tests/conformance/android/ReaJadxMetadataRegression.java(+66 -1)➕
tests/fixtures/android/static-initializers/ConstantFields.smali(+16 -0)📝
tests/process-global/runnerCancellation.test.ts(+1 -1)📄 Description
Summary
Fixes #6397.
inspect-android-classlistedstatic finalfields with only a name and type. javac and d8 inline compile-time constants and store their values in the class definition's DEX static values, so these classes usually have no<clinit>and REA had no way to show the value at all. Each field in the result now carriesdex_static_value: a typed value for astatic finalfield whose class definition encodes one, andnullotherwise.Problem and expected behavior
REA's JADX bridge (
bridge/android/ReaJadxBridge.java) builds the class summary from parsedFieldNodes and only copied the alias and type:JADX already parses the encoded static value into the field's
CONSTANT_VALUEattribute when it loads the class, before any code generation, so the information was there and just never reported. For the issue's example class,MAX_SIZE,PACKET_FLAG_CONFIGandTAGcame back with no values, andinspect-android-method ... <clinit>correctly said the method does not exist. Expected: each such field reports its typed value (int, long, string, and so on).Change and scope
dexStaticValue(FieldNode)readsCONSTANT_VALUEforstatic finalfields and emits{type, value}for the Java constant kinds:boolean,byte,short,char(UTF-16 code unit as a number) andintas JSON values, andlong,floatanddoubleas Java's text for the value, so1L << 63stays"-9223372036854775808"and doesn't get rounded as a JSON number. Strings are reported as-is. The value is captured in the same pre-generation snapshot as the rest of the summary.EncodedValue.NULLto everystatic finalfield that has no encoded value (for example a field assigned only in<clinit>), and an encoded null comes back as that same instance, so the two can't be told apart. Those fields reportdex_static_value: null, the same as non-final, instance, and other encoded kinds (enum, type, array, and so on).get_class_summarytakes an optional booleandex_static_values, and only theinspect_android_classpath sets it.inspect_android_methodandtrace_android_referencesget the same member-only summary as before, so large encoded strings can't push their lookup past the 8 MiB frame limit. A non-boolean flag is refused.JADX_BRIDGE_IDENTITY, because the summary request and shape changed. Main moved the bridge to 6 for binary class selectors while this was open, so I merged main and took the next number. That follows how earlier bridge changes were versioned.dexStaticValueSchemainsrc/domain/android/androidAnalysis.tsvalidates the value per type with exact ranges: byte/short/char/int as JSON integers,longtext within the signed 64-bit range,floattext that stays finite as a 32-bit float anddoubletext that stays finite, withNaNandInfinityspellings accepted. Nonzero text that would round to zero is refused. The bridge protocol accepts it as optional and the result always includes it, nullable. A malformed or lossy value from the bridge fails with the existing "JADX class summary failed or was malformed" output error, so I didn't add any new user-visible error text.docs/android-analysis.mdand theinspect_android_classtool description. Both say that a static initializer can still assign the field, and that<clinit>evidence still comes frominspect_android_method. The docs also say only class inspection asks for the values.I limited this to
static finalto match the issue. The DEX static values array also holds initial values for non-final statics, but those are not constants and I didn't want to present them as such.Follow the contribution scope.
Scope decision: not applicable (ordinary fix within existing boundaries).
Contract and boundary impact
ReaJadxBridgeclass indexing (selected), where the frozen per-class summary is built from parsed members.inspect_android_classfields[]gains a required, nullabledex_static_value. The tool input schema is unchanged. The tool description mentions the new value.NOT_LOADED.docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): none committed;metadata:checkpasses.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
(Same APK reads through the existing JADX session; one more parsed attribute is reported.)
Evidence and regression coverage
Tests added or updated:
tests/conformance/android/ReaJadxMetadataRegression.java: newverifyConstantFieldsagainst the real audited JAR, using a new smali fixturetests/fixtures/android/static-initializers/ConstantFields.smaliassembled into the existing initializer APK. It checks all nine Java constant kinds, includinglong-0x8000000000000000L,char'A',float1.5fanddouble0.5. Four fields must report no value: an explicitnullString, an unencodedstatic finalobject, a non-final static with an encoded7, and an instance field. It also checks that the existing<clinit>-assigned finals (InitializationPolicy.POLICY,MixedInitialization.LABEL) do not pick up JADX's null placeholder, that the class staysNOT_LOADED, and that a repeated summary is identical. It also checks that the default summary (nodex_static_values, orfalse) equals the valued one withdex_static_valuestripped, and that a non-boolean flag is refused.scripts/verify/android/metadata.mjsasserts the newCONSTANT_FIELD_REGRESSION_PASS ... opt_in=trueline.tests/boundary/android/JadxAnalysis.test.ts: the issue's three constants plus an unencoded field go through the adapter. A lossy long number, a string int, a numeric double and an unsupportedenumkind are each refused. Boundary values for every numeric type are accepted, and out-of-range ones (for example long9223372036854775808, float1.0E40and3.4028236E38, double1.8E308) are refused. A table over class inspection, method inspection and both trace forms checks that only class inspection sendsdex_static_values: true.Base reproduction (executed): with the tests and without the fix. These outputs are from the first commit; the review follow-ups were checked the same way (the opt-in conformance check fails on the previous bridge with
Default class summary carried DEX static values, and the eight new out-of-range cases plus the class-inspection request case fail on the previous adapter).Conformance against the real JAR (JDK 21, jadx-headless-mcp 0.7.1, ApiDemos fixture):
Adapter test:
With the fix, conformance prints
CONSTANT_FIELD_REGRESSION_PASS encoded=9 absent=4 opt_in=trueand exits 0 with every other regression line still passing, and the adapter file isTests 79 passed (79)on the current head (it includes main's new tests).User-visible CLI/MCP output (if applicable): the issue's class, assembled from smali into a one-class APK (
com.example.FlagswithMAX_SIZE = 1024,PACKET_FLAG_CONFIG = 1L << 63,TAG = "flags", no<clinit>), run through a freshly compiled runtime with the real JADX engine. Output trimmed tonormalized_result.fields.Before:
After:
Remaining proof gaps: I ran macOS arm64 only. @pablodiazjorge ran
npm run verify:androidon native Windows against the first commit and it passed; Linux is not run. I did not run MCP by hand for the new field; it uses the same adapter and result schema, and the real verify lane's MCP checks pass. A trailing default-valued constant that the DEX writer leaves out of the static values array reportsnull, because JADX then has only its null placeholder. I saw this with smali's writer (A = 1,ZERO = 0givesZEROnull). I did not check d8. The docs describe it as "no value is encoded".For evidence-bearing changes:
Validation performed
Run with Node 24.18.0 and Temurin JDK 21.0.13 on macOS arm64, using the pinned JAR and ApiDemos APK from
npm run fixtures:android.ReaJadxMetadataRegressioncompiled withjavacagainst the JAR and run asscripts/verify/android/metadata.mjsdoes: all regression lines pass, includingCONSTANT_FIELD_REGRESSION_PASS encoded=9 absent=4 opt_in=trueand main'sRAW_CLASS_SELECTOR_REGRESSION_PASS nested=true metadata=true references=true(fails without the fix, shown above)REA_ANDROID_TEST_APK=... REA_JADX_MCP_JAR=... npm run verify:androidon the merged head: exit 0, 35 PASS lines, every metadata, method-body and direct-invoke PASS line, and a report withcli_mcp_parity: true,metadata_without_code_generation: true,apk_executed: falsenpx vitest run tests/boundary/android/JadxAnalysis.test.ts: 79 passednpx vitest runovertests/boundary/android,tests/boundary/providers/android,tests/boundary/mcp/androidPackageSummaryMcp.test.ts,tests/boundary/mcp/androidLateCompletionMcp.test.tsand the Android/JADX process tests (jadxIntegration,androidAnalysisMcp,jadxStartup,androidSearchEvidenceBudget,androidSnapshotClose): 16 files passed, 1 skipped; 338 passed, 1 skippednpm run checktasks run individually:lint:built(0 errors),knip,metadata:checkandverify:architecture-guardspassed.typecheckpasses with no errors.format:checkwas run asoxfmt --checkon the changed files (clean).npm run compile, then the CLI commands above.Compatibility, safety, and release
fields[]would need to acceptdex_static_value. Bridge version 7 is required, and it ships in the same package.Author readiness
Human owner: @Abelo9996
Before merge
type(scope): outcome.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.