Files
reverse-engineering-anything/docs/reference/rea-limit-inventory.md
T
morluto 123b693f08 feat(delivery)!: bound default results by an agent result budget (#14252)
* feat(delivery)!: bound default results by an agent result budget

Omitted detail now returns complete Evidence only when it fits the new
delivery.agent_result_budget_bytes runtime setting (default 49152 compact
JSON bytes, about 12k tokens at an estimated 4 bytes per token). Larger
results are retained and delivered as the producer's summary with a
limitation naming the budget and the recovery call; nothing is refused or
truncated. inspect_analysis_view gains an evidence-json view that pages the
exact JSON text of retained Evidence. The CLI applies the same budget and
publishes the complete bundle with --evidence_output.

inspect_managed_members type_names now also narrows member_refs and
exported_types, and inspect-byte-entropy gains CLI evidence delivery.

BREAKING CHANGE: An omitted detail no longer always returns complete
Evidence inline on MCP or the CLI for tools with a detail selector
(including inspect_managed_members, inspect_managed_artifact,
inspect_byte_entropy, inspect_artifact, analyze_javascript_application,
list_procedures, list_strings and the other operations listed in
src/domain/agentBudgetOperations.ts). Over the budget they return the
retained summary; pass detail complete (--detail complete) for complete
inline delivery. inspect_managed_members type_names narrows member_refs
and exported_types.

Fixes #14172
Fixes #14180
Part of #14187
Part of #14156

* test(schemas): record advertised summaries for budgeted detail

* fix(delivery): keep budgeted summaries canonical and carry delivery facts beside them

Review fixes for the agent result budget:

- Deliver the producer's own summary record, identical to detail summary,
  so its identity holds in summary consumers such as compare_artifacts.
  The budget, sizes, retention and the exact paging call travel as
  delivery facts: a second MCP text block and _meta, or a delivery field
  in CLI output.
- Capture the caller's detail for application-validated tools too, so
  inspect_binary_layout and similar tools are budgeted.
- Keep recovery facts when a budgeted summary itself exceeds the frame.
- Size an omitted evidence-json limit by escaped UTF-8 bytes and never
  split a surrogate pair, even in a one-unit page.
- Add the REA_AGENT_RESULT_BUDGET_BYTES launch seed; the shared test
  environment raises it for semantic tests, and budget tests clear it.
- Align tool descriptions and verifiers that read complete Evidence.

* fix(delivery): retain the budgeted summary like an explicit summary

* fix(delivery): read the budget seed from the captured environment and count delivery facts in the frame

- The agent result budget seed is read from the environment the server or
  CLI invocation captured: ToolResultDelivery takes it at construction,
  and a CLI invocation binds it in its publication context. The ambient
  process environment is no longer read.
- The frame check reserves the bytes of the delivery block and _meta that
  are added after encoding, so a budgeted response cannot exceed the frame.
- Conformance workflows that resend complete Evidence raise the budget
  through the shared inline-Evidence environment, as do the artifact and
  binary layout verifiers.

* fix(delivery)!: request complete Evidence explicitly and never spill CLI overflow

- Shared test and verifier environments no longer raise the agent result
  budget. Every test and verifier workflow that reads complete Evidence
  from a budgeted tool now requests it with detail complete or --detail
  complete, including the real-provider verifiers outside PR CI (Ghidra,
  Hopper, IDA, Kuna and client verifiers). Default delivery is exercised
  as shipped.
- Budgeting applies only to tools with a detail selector, so every
  budgeted call has a complete opt-out.
- CLI overflow without --evidence_output writes nothing; its delivery
  facts carry exact rerun argv for --detail complete and
  --evidence_output, omitted when the command declares sensitive values.

* test(delivery): prove captured budget seeds with valid in-range values

* test: state complete-detail requests once and fix codemod regressions

- Add tests/support/completeDetail.ts with COMPLETE_DETAIL and
  completeArguments so tests that read complete Evidence request it in one
  place, keeping functions within max-lines-per-function without raising
  the limit.
- Restore provider-client tests (GhidraClient, Hopper health): their
  callTool("name", ...) calls are bridge requests, not MCP tools, and take
  no detail.
- Update the game-scale type inventory test for member_refs narrowing.

* test: request complete Evidence in shared JavaScript analysis helpers and remaining CLI workflows

* test: request complete Evidence by default in the shared test transports

The shared MCP client helpers (createTestMcp, connectLocalToolsMcp and
the CLI fixture's shared MCP session) and the CLI runners (the cli
fixture and the shared CLI session) now apply one named default,
completeEvidenceByDefault. A budgeted tool called with neither detail nor
view gets detail complete; the CLI does the same with --detail complete,
chosen by the command's tool contract. A budgeted operation that resolves
to no contract fails loudly at load. Tests whose subject is delivery opt
out with delivery "budgeted". This is a test-harness choice; production
delivery is unchanged and the budget tests prove the default path.

Per-call complete-detail edits are reverted in the 204 test files whose
transports all apply the default. Explicit requests remain where a test
drives its own SDK client, server, CLI instance or process, and where
the detail choice is the test's subject.

* test: resolve CLI complete-detail defaults from the CLI registry

The Real Apple and browser verifiers read complete Evidence through
artifactCliEvidence, which ran the compiled CLI without a detail choice
and got the budgeted {summary, delivery} output. The helper now requests
complete Evidence for commands that take --detail, read from the compiled
CLI's own registry (scripts/lib/complete-evidence-cli.mjs).

The test harness default had a sibling bug: it treated every cli-flagged
budgeted contract as taking --detail, but only Evidence-delivery commands
do (inspect-binary-layout does not). It now reads the source CLI registry
too, and covers every command the CLI budgets.

* test(verifiers): request complete Evidence at each verifier's SDK client and CLI argv

The real-browser failure was the same missing normalized_result as the
Apple one: browser-capture-metadata-budget-e2e reads analyze-web-bundle
through artifactCliEvidence, fixed in the previous commit.

The shared verifier module, scripts/lib/complete-evidence.mjs, now owns
both transports:
- completeEvidenceClient wraps each verifier's SDK Client once, so every
  callTool to a budgeted tool with neither detail nor view requests
  complete Evidence, whatever local call helper a verifier uses (86
  clients, including the Ghidra, Hopper, IDA and Kuna verifiers'
  argument-less list_procedures and inspect_native_load_image calls).
- completeEvidenceCliArguments covers the remaining verifier CLI argv
  that chose no detail, such as function, decompile, analyze and the
  Android and Apple commands.
Commands and tools that are not budgeted are sent as written.

* test(delivery): await async completeEvidenceCliArguments helper in boundary test

* test(delivery): request complete detail in Electron CLI artifact format test

* docs(delivery): document delivery.rerun as add-only argument arrays

* test(schemas): record advertised summaries for the unified delivery budget

Tool descriptions now name the agent result budget, and the evidence-json default page is derived from the 32 KiB default, which changes the advertised input digests of the 28 affected tools. Recorded from the Build package job's output.

* test(delivery): pin the budget boundary and keep failures unbudgeted

Main's retainedSummaryDelivery tests pinned the size decision at exactly
32,768 and 32,769 UTF-8 JSON bytes. Unifying that decision into
budgetedSummaryBytes deleted them, and their port never landed, so the
byte measurement went unchecked.

Restore them against budgetedSummaryBytes at the configured budget and
one byte over, for the default and a runtime budget, with ASCII, escaped
and multibyte text, plus each condition of the decision. Off-by-one
mutants (< for <=, a cap one byte short) fail six cases; measuring UTF-16
code units instead of UTF-8 bytes fails the multibyte cases.

An MCP case pins that a target failure from a budgeted tool under the
minimum budget is identical with detail omitted and complete, with no
delivery facts.

* test(verifiers): route literal CLI argv for budgeted commands through complete Evidence

real-browser failed with "Scenario CLI did not report external disconnect
ownership": runScenarioCli ran capture-browser-scenario without --detail,
so an over-budget capture came back as its summary, which has no
browser.cleanup. The earlier sweep counted these files as covered
because their MCP clients were wrapped, but their CLI argv was not.

Route the shared runScenarioCli helper (five callers), the local cli
helpers in the module, source-map and script-export verifiers, and
every other literal argv for a budgeted CLI command without --detail or
--view (EVM interface, binary layout, packet capture, devicetree, DOM
destinations, Ghidra relocation symbols, WABT cleanup, Termux browser)
through completeEvidenceCliArguments. A sweep of scripts/ for budgeted
command literals with --json and no detail selection now finds none.

* fix(verifiers): leave clients without callTool unwrapped

The native verifier cleanup test drives native-value-e2e with a connection double whose Client has only connect and close. completeEvidenceClient bound client.callTool unconditionally, so wrapping threw a TypeError before connect ran. That TypeError replaced the primary connection failure the test asserts is preserved, and all four fault cases failed in Test shard 5 and Portable tests. A client without callTool has no tool call to complete, so the helper now returns it unchanged. Locally all five fault modes of the fixture now exit 0.

* fix(delivery): keep the catalog recorder on shipped helpers and expect view-implied summary

The verifier sweep wrapped record-mcp-catalog.mjs in completeEvidenceClient,
which lives in an unshipped helper. deferredRuntime copies only the
package's shipped files plus the recorder, so the recorder failed to load
(ERR_MODULE_NOT_FOUND) and its cleanup recorder never wrote. The recorder
only lists tools and prompts, so the wrapper had no effect; it is removed.

This branch makes a view with no --detail select summary delivery, as MCP
does for a view. Three CLI cases still expected the old view refusal; with
a view alone the missing input is now the summary bundle, so they expect
evidence_output, and a view with --detail complete still refuses the view.

* fix(delivery): request complete Evidence where callers need the whole result

Budgeted delivery made four callers receive a summary they cannot use:

- The GitHub Actions example uploads the analysis as a CI artifact, so it
  now asks for --detail complete; over budget it had saved a summary.
- javascriptIntegrityPolicyCli spawns the CLI itself, outside the test
  harness default, and reads normalized_result; it now applies the same
  completeEvidenceCliArguments default.
- nativeObservationViewsMcp builds its own client to prove complete
  observations overflow into a paging continuation; it now applies the
  harness default so each call asks for complete Evidence.
- The CLI parity goldens are re-recorded for the --detail and
  --evidence_output options the budgeted commands now advertise.

* fix(tests): give processes tests spawn the largest agent result budget

About 90 tests spawn scripts/rea.mjs or a server directly, outside the
harness default that asks for complete Evidence, and read analysis facts
from the result. Over the default budget they received a summary instead;
javascriptChildHandleOwnership failed this way.

The Vitest environment now seeds REA_AGENT_RESULT_BUDGET_BYTES with the
largest accepted value, so a spawned CLI or server delivers complete
Evidence, as the in-process default does. Delivery tests keep their own
budget: agentResultBudgetMcp builds its server without the seed, so its
default-budget cases still exercise the shipped default.

* fix(tests): give budgeted harness tests the shipped agent result budget

The test environment seeds the largest agent result budget so spawned
processes deliver complete Evidence. In-memory servers built by
createApplicationMcpHarness (and connectGhidraMcp, which uses it) inherit
process.env too, so a test that chose testDelivery "budgeted" kept the
seed: the 600-row list_procedures case and the omitted-detail web page
views returned complete Evidence instead of a summary.

testDeliveryEnvironment now owns that choice: a budgeted test's server
environment drops the seed and uses the shipped default. The application
harness applies it to every server it builds.

* fix(tests): expect view-implied summary delivery in the Playwright trace refusal

A view with no --detail now selects summary delivery, so its refusal
names the missing evidence_output bundle; --detail complete still refuses
the view. The trace test still expected a view refusal in both cases.
2026-11-25 11:25:18 -05:00

31 KiB

REA limit inventory

Audit for #9881. Counts below are from this revision. The inventory includes numeric REA_ launch limits and the fixed reconnect control generated into the Hopper bridge. scripts/verify/rea-numeric-limits.mjs checks recognized TypeScript source reads (tests excluded) against the environment seeds of ANALYSIS_SETTINGS or an exception in numericLimitRegistry.ts with a reason. Static syntax recognition cannot prove arbitrary dynamic reads or how often a function executes.

The Hopper demo-dialog timeout is read by scripts/hopper-demo-x11.py, and the reconnect control is generated by src/hopper/BridgeLauncher.ts for bridge/hopper_bridge.py. Their registry entries identify behavioral witness tests. Node lint checks those paths exist but reports their behavior as unverified; it does not execute Python or prove either reader. Run npm run test:focused -- tests/boundary/providers/hopper/linuxPrivateDisplay.test.ts tests/boundary/providers/hopper/hopperBridgeReconnect.test.ts to exercise the witnesses. The reconnect witness exercises the bridge consumer with an injected timeout; npm run test:local -- src/hopper/bridgeBootstrapLimit.test.ts verifies the separate launcher output. Neither test is run by Node lint. A skipped Python test leaves its behavior unverified.

update_mode is runtime when update_analysis_settings can change the active value, restart when this process keeps the value it started with, and parameter when the budget is adjustable through a per-call argument; source separately identifies where the reported value came from. pending_restart is true only when an accepted configured value is not the one this process is using. A rejected Windows ChangeTime launch value does not establish an accepted configuration, so that failure omits pending_restart. The other values reported here are in force, so pending_restart is false. Prose that only says to restart REA is marked prose. mcp_server_restart_required is a server-identity alignment state in src/process/ServerIdentity.ts, not a setting field.

Runtime analysis settings

These tables cover the ANALYSIS_SETTINGS entries adjustable with update_analysis_settings. Each call reads the snapshot accepted for that operation. Launch source is default or setting; a runtime override is source: "runtime". The structured field is update_mode: "runtime" and pending_restart: false. applies_at is the finer point (next_operation, next_worker, or next_startup).

Setting Environment seed Owner Default Floor Maximum Read
asar.max_header_bytes REA_ASAR_MAX_HEADER_BYTES src/domain/analysisResourceLimits.ts 16777216 1 268435456 per operation
asar.max_listing_bytes REA_ASAR_MAX_LISTING_BYTES src/domain/analysisResourceLimits.ts 67108864 1 Number.MAX_SAFE_INTEGER per operation
ghidra.value_flow_max_operations REA_GHIDRA_VALUE_FLOW_MAX_OPERATIONS src/domain/analysisResourceLimits.ts 3000 1 2147483647 per operation
ghidra.value_flow_max_inputs_per_operation REA_GHIDRA_VALUE_FLOW_MAX_INPUTS_PER_OPERATION src/domain/analysisResourceLimits.ts 64 1 2147483647 per operation
ghidra.value_flow_max_edges REA_GHIDRA_VALUE_FLOW_MAX_EDGES src/domain/analysisResourceLimits.ts 12000 1 2147483647 per operation
ghidra.decompile_max_payload_mib REA_GHIDRA_DECOMPILE_MAX_PAYLOAD_MIB src/domain/analysisResourceLimits.ts unset (null, unbounded payload policy) 1 2047 per operation
ghidra.startup_timeout_ms REA_GHIDRA_STARTUP_TIMEOUT_MS src/domain/analysisResourceLimits.ts 330000 1 2147483647 next provider startup
hopper.startup_timeout_ms REA_HOPPER_STARTUP_TIMEOUT_MS src/domain/analysisResourceLimits.ts 120000 1 2147483647 next provider startup
ghidra.decompile_timeout_seconds REA_GHIDRA_DECOMPILE_TIMEOUT_SECONDS src/domain/analysisResourceLimits.ts unset (null, decompile stays unbounded) 1 MAX_GHIDRA_DECOMPILE_TIMEOUT_SECONDS per operation
jadx.operation_timeout_ms REA_JADX_OPERATION_TIMEOUT_MS src/domain/analysisResourceLimits.ts 120000 1 2147483647 per operation
regex.matching_deadline_ms REA_REGEX_MATCHING_DEADLINE_MS src/domain/analysisResourceLimits.ts 5000 1 2147483647 per operation
regex.worker_heap_request_mib REA_REGEX_WORKER_HEAP_REQUEST_MIB src/domain/analysisResourceLimits.ts 128 7 16384 next worker
capture.decoder_old_generation_mib REA_CAPTURE_DECODER_OLD_GENERATION_MIB src/domain/analysisResourceLimits.ts 192 8 16384 next worker
javascript.analysis_timeout_ms none (analysis_timeout_ms) src/domain/javascript/javascriptAnalysisResourceControls.ts 300000 1 2147483647 per operation
javascript.max_heap_mb none (max_heap_mb) src/domain/javascript/javascriptAnalysisResourceControls.ts 1024 128 16384 next worker
wasm.command_timeout_ms none (command_timeout_ms) src/domain/wasm/wasmArtifact.ts 30000 1 2147483647 per operation
native.matching_representation_bytes REA_NATIVE_MATCHING_REPRESENTATION_BYTES src/domain/analysisResourceLimits.ts 100663296 1 1073741824 per operation
delivery.agent_result_budget_bytes REA_AGENT_RESULT_BUDGET_BYTES src/domain/analysisResourceLimits.ts 32768 4096 10485760 per operation

delivery.agent_result_budget_bytes is a delivery budget, not an admission limit: an over-budget result is retained and delivered as its summary with an inspect_analysis_view cursor, never refused.

An out-of-range update_analysis_settings value is rejected by the setting's schema. Invalid launch seeds that the global environment parser accepts as provider-local stay inspectable with source: "invalid".

Per-call limits in the runtime system

These are checked when the work runs. Each keeps its REA_ seed, default, floor, and maximum. The accepted operation snapshot supplies the value. update_mode is runtime and pending_restart is false for the value in force. An update outside the range is rejected. A hit names the setting and reports the current value, source, and range. A rejected Windows ChangeTime launch value omits pending_restart.

Environment Owner Default Floor Maximum Applies Fields
REA_BRIDGE_MAX_REQUEST_BYTES src/config/bridgeMaxRequestBytes.ts 16777216 7464 536870887 each bridge request, from the accepted operation snapshot update_mode: "runtime", pending_restart: false
REA_BRIDGE_MAX_REPLY_BYTES src/config/bridgeMaxReplyBytes.ts 268435456 1048576 536870888 each Hopper or Ghidra request, from the accepted operation snapshot update_mode: "runtime", pending_restart: false
REA_CAPTURE_PACKET_JSON_EXPANSION_BYTES src/config/capturePacketJsonExpansion.ts 137438953472 1048576 137438953472 each packet-capture reply before parsing, from the accepted operation snapshot update_mode: "runtime", pending_restart: false
REA_DEBUGGER_COMMAND_DEADLINE_MS src/domain/analysisResourceLimits.ts 120000 1 2147483647 each command, from the accepted operation snapshot update_mode: "runtime", pending_restart: false
REA_DEBUGGER_MAX_COMMAND_OUTPUT_BYTES src/domain/analysisResourceLimits.ts 16777216 1 89303718 each command, from the accepted operation snapshot update_mode: "runtime", pending_restart: false
REA_HOPPER_CALLER_SCAN_BUDGET_MS src/domain/analysisResourceLimits.ts 2000 1 2147483647 each caller scan, from the accepted operation snapshot update_mode: "runtime", pending_restart: false
REA_JAVASCRIPT_MEMBER_MUTATION_ALIAS_STATES src/domain/analysisResourceLimits.ts 524288 1 8388608 each JavaScript source's member-mutation phase, from the accepted operation snapshot update_mode: "runtime", pending_restart: false
REA_JEB_MCP_TIMEOUT_MS src/jeb/JebMcpConnection.ts 60000 (MCP SDK default) 1 2147483647 discovery and each tools/call, from the accepted operation snapshot update_mode: "runtime", pending_restart: false
REA_KUNA_PROJECT_TIMEOUT_MS src/kuna/KunaConfiguration.ts 1800000 1 2147483647 each project export and whole-program scan, from the accepted operation snapshot update_mode: "runtime", pending_restart: false
REA_KUNA_TIMEOUT_MS src/kuna/KunaConfiguration.ts 120000 1 2147483647 each function decompile, from the accepted operation snapshot update_mode: "runtime", pending_restart: false
REA_PWNTOOLS_MAX_INPUT_BYTES src/config/pwntoolsInputLimit.ts 33554432 1 1073741824 each pwntools decode, unless the call passes producer_limits.input_bytes; otherwise the operation snapshot update_mode: "runtime", pending_restart: false
REA_WINDOWS_CHANGE_TIME_DRIFT_MS src/config/windowsChangeTimeSettle.ts 2000 1 60000 each ChangeTime observation, from the accepted operation snapshot update_mode: "runtime"; invalid launch omits pending_restart
REA_WINDOWS_CHANGE_TIME_SETTLE_POLL_MS src/config/windowsChangeTimeSettle.ts 25 1 1000 each ChangeTime observation, from the accepted operation snapshot update_mode: "runtime"; invalid launch omits pending_restart
REA_WINDOWS_CHANGE_TIME_SETTLE_MAX_POLLS src/config/windowsChangeTimeSettle.ts 40 1 1000 each ChangeTime observation, from the accepted operation snapshot update_mode: "runtime"; invalid launch omits pending_restart
REA_ZSTD_MAX_FRAMES src/domain/compression/zstandardFrameAllowance.ts 4096 1 65536 each exact Zstandard buffer, from the accepted operation snapshot update_mode: "runtime", pending_restart: false

Restart-only numeric limits

These stay out of update_analysis_settings.

Environment Owner Default Floor Maximum Read Why restart-only
REA_DEBUGGER_MAX_PENDING_COMMANDS src/domain/analysisResourceLimits.ts 16 1 256 debugger manager construction Queue capacity of the manager created at startup. update_mode: "restart" and pending_restart: false.
REA_DEBUGGER_MAX_SESSIONS src/domain/analysisResourceLimits.ts 8 1 64 debugger manager construction Session-pool size of the manager created at startup. update_mode: "restart" and pending_restart: false.
REA_HOPPER_DEMO_DIALOG_TIMEOUT_MS src/hopper/HopperStartupFailure.ts 10000 1 2147483647 Linux private-display adapter start The helper reads the process environment. Prose restart.
REA_JADX_ACTIVE_PROCESSOR_COUNT src/android/JadxConfiguration.ts unset (JVM default) 1 2147483647 JADX JVM launch -XX:ActiveProcessorCount is fixed for that JVM. Prose on invalid values.
REA_JADX_HEAP_MIB src/android/JadxConfiguration.ts unset (JVM default) 1 Number.MAX_SAFE_INTEGER JADX JVM launch -Xmx is fixed for that JVM. Prose on invalid values.
REA_KUNA_CACHE_MAX_BYTES src/kuna/KunaConfiguration.ts 4294967296 1048576 Number.MAX_SAFE_INTEGER Kuna cache construction The cache is sized once for the provider. Prose restart.
REA_KUNA_JOBS src/kuna/KunaConfiguration.ts 1 1 32 Kuna run-slot construction Worker-pool width for the provider. Prose restart.
REA_MCP_DOCTOR_DEADLINE_MS src/config/mcpStartupBudgets.ts 30000 1 2147483647 MCP server startup Startup phase of the MCP server itself. Prose.
REA_MCP_FIRST_CATALOG_BUDGET_MS src/config/mcpStartupBudgets.ts 20000 1 2147483647 MCP server startup Startup phase of the MCP server itself. Prose.
REA_MCP_INITIALIZE_BUDGET_MS src/config/mcpStartupBudgets.ts 15000 1 2147483647 MCP server startup Startup phase of the MCP server itself. Prose.
REA_MCP_MAX_INPUT_ELEMENTS src/config/mcpInputBudget.ts 1024 1 Number.MAX_SAFE_INTEGER MCP server creation Argument admission for the server process. Prose restart.
REA_MCP_MAX_RESPONSE_BYTES src/config/mcpResponseBudget.ts 10485760 when unset 10485760 Number.MAX_SAFE_INTEGER MCP server creation Stdio receive buffer and the paired client buffer. Prose restart.
REA_MCP_TOOLS_LIST_BUDGET_MS src/config/mcpStartupBudgets.ts 5000 1 2147483647 MCP server startup Startup phase of the MCP server itself. Prose.
REA_RECONNECT_TIMEOUT_SECONDS src/hopper/BridgeLauncher.ts 30 30 30 written into the Hopper bridge helper Not a caller setting. It is HOPPER_SHUTDOWN_TIMEOUT_MS / 1000.
REA_SWIFTC_COMPILE_TIMEOUT_MS src/config/providerStartupTimeout.ts 120000 1 2147483647 Darwin ownership-helper reader construction Captured at process start for that helper compile. Prose restart.

Restart-only non-numeric settings

No floor or maximum. They are read from the launch environment at startup. Recovery text tells the caller to change the launch environment, which takes effect on the next process. They stay restart-only because they choose a command, a binary, a filesystem root, the browser sandbox, secret patterns, the provider, or the shape of the MCP server or logger.

Name Owner Why
REA_ADB_PATH src/adb/AdbConfiguration.ts Caller-selected executable path.
REA_AGENT_ENV_COMMAND src/application/DesktopBuildDoctor.ts Caller-selected command.
REA_ANALYSIS_PROVIDER src/config/environment.ts Provider choice for the process.
REA_APKTOOL_COMMAND src/apktool/ApktoolConfiguration.ts Caller-selected command.
REA_BINWALK_COMMAND src/application/SetupRegistrationEnvironment.ts Caller-selected command.
REA_BROWSER_EXECUTABLE src/application/CapabilityInventory.ts Caller-selected browser binary.
REA_BROWSER_NO_SANDBOX src/application/SetupRegistrationEnvironment.ts Browser sandbox policy.
REA_CAPINFOS_COMMAND src/pcap/PcapConfiguration.ts Caller-selected command.
REA_CUTTER_BRIDGE_DIR src/application/SetupRegistrationEnvironment.ts Filesystem root for the Cutter bridge.
REA_DARWIN_MODULE_CACHE_PATH src/application/SetupRegistrationEnvironment.ts Filesystem path for the Swift module cache.
REA_DARWIN_SWIFTC_PATH src/application/SetupRegistrationEnvironment.ts Caller-selected compiler path.
REA_DCONF_COMMAND src/desktop/DconfDatabaseReader.ts Caller-selected command.
REA_DOCKER_COMMAND src/application/DesktopBuildDoctor.ts Caller-selected command.
REA_EVM_PRLIMIT_COMMAND src/application/SetupRegistrationEnvironment.ts Caller-selected command.
REA_FIRMWARE_PRLIMIT_COMMAND src/application/SetupRegistrationEnvironment.ts Caller-selected command.
REA_GDB_COMMAND src/application/SetupRegistrationEnvironment.ts Caller-selected debugger binary.
REA_GHIDRA_CHECKPOINT_DIR src/config/environment.ts Filesystem root.
REA_GHIDRA_COMPILER_SPEC_ID src/config/environment.ts Provider analysis choice.
REA_GHIDRA_DISABLED_ANALYZERS src/config/environment.ts Provider analysis choice.
REA_GHIDRA_LANGUAGE_ID src/config/environment.ts Provider analysis choice.
REA_GHIDRA_NATIVEAOT_JAR src/config/environment.ts Caller-selected binary path.
REA_GHIDRA_PROGRAM_NAME src/config/environment.ts Provider project selection.
REA_GHIDRA_PROJECT_PATH src/config/environment.ts Filesystem root.
REA_GHIDRA_SEED_FILE src/config/environment.ts Filesystem path.
REA_IDA_MCP_CONFIG src/config/environment.ts Filesystem path of the IDA MCP config.
REA_ILSPY_CMD_PATH src/config/environment.ts Caller-selected executable path.
REA_JADX_MCP_JAR src/android/JadxConfiguration.ts Caller-selected binary path.
REA_JAVASCRIPT_PRLIMIT_COMMAND src/application/SetupRegistrationEnvironment.ts Caller-selected command.
REA_JEB_MCP_URL src/config/environment.ts Provider endpoint.
REA_KUNA_CACHE_DIR src/kuna/KunaConfiguration.ts Filesystem root.
REA_KUNA_COMMAND src/kuna/KunaConfiguration.ts Caller-selected executable path.
REA_LOG_LEVEL src/config/environment.ts Logger configuration for the process.
REA_MCP_INPUT_SCHEMA_PROFILE src/config/environment.ts MCP server schema shape.
REA_MCP_OUTPUT_SCHEMA_PROFILE src/config/environment.ts MCP server schema shape.
REA_MCP_TOOL_CATALOG_PROFILE src/config/environment.ts MCP server catalog shape.
REA_MCP_TOOL_FAMILIES src/config/environment.ts Which tools the MCP server registers.
REA_MITMDUMP_COMMAND src/application/SetupRegistrationEnvironment.ts Caller-selected command.
REA_OBJDUMP_COMMAND src/application/SetupRegistrationEnvironment.ts Caller-selected command.
REA_PWNDBG_GDB src/native/pwndbg/PwndbgCoreContext.ts Caller-selected debugger binary.
REA_PWNDBG_GDBINIT src/native/pwndbg/PwndbgCoreContext.ts Caller-selected file path.
REA_PWNDBG_VENV_PATH src/native/pwndbg/PwndbgCoreContext.ts Filesystem root.
REA_PWNTOOLS_PYTHON src/native/pwntools/PwntoolsDecoder.ts Caller-selected interpreter path.
REA_REFERENCE_SECRET_PATTERNS_JSON src/config/environment.ts Secret-pattern policy.
REA_RIZIN_COMMAND src/rizin/RizinDebugSessionManager.ts Caller-selected debugger binary.
REA_SIGROK_COMMAND src/signals/SigrokRecordingProvider.ts Caller-selected command.
REA_SIGROK_PRLIMIT_COMMAND src/signals/SigrokRecordingProvider.ts Caller-selected command.
REA_TSHARK_COMMAND src/pcap/PcapConfiguration.ts Caller-selected command.
REA_TSHARK_PRLIMIT_COMMAND src/pcap/PcapNativeBound.ts Caller-selected command.
REA_UNBLOB_COMMAND src/application/SetupRegistrationEnvironment.ts Caller-selected command.
REA_WABT_BIN_DIRECTORY src/wasm/WabtArtifactProvider.ts Filesystem root of the WABT tools.
REA_WAKARU_COMMAND src/application/SetupRegistrationEnvironment.ts Caller-selected command.
REA_XPROP_COMMAND src/application/desktop/DesktopCaptureFailure.ts Caller-selected command.

REA_MANAGED_LINUX_HOPPER_LAUNCHER is a fixed path constant, and REA_WORKFLOW_PROVIDER is a provider identity object. Neither is an environment setting. Names that look like REA_ but are process protocol, not caller settings: REA_ELECTRON_CAPTURE_ARGV, REA_BUILD_COMMIT, REA_BUILD_COMPUTER_REA_ARCHIVE, REA_INSTALL_SCRIPT, REA_OWNS_PROCESS_LIFETIME, REA_PAYLOAD, REA_PROCESS_RUN_ID, REA_RUN_ID, REA_SOCKET, REA_STATE_FORMAT, REA_TARGET_PATH, REA_TOKEN, bridge markers such as REA_COMMAND_COMPLETE_, and the ERR_REA_WINDOWS_NATIVE code. GHIDRA_INSTALL_DIR, JAVA_HOME, HOPPER_LAUNCHER_PATH, HOPPER_TARGET_PATH, HOPPER_TARGET_KIND, and HOPPER_LOADER_ARGS_JSON are launch configuration without the REA_ prefix. Paths and the provider choice among them stay restart-only for the same reason as the table above.

Static check

npm run lint owns this check: it runs scripts/verify/rea-numeric-limits.mjs after dependencies are installed, so npm run check:fast, the pre-push hook and CI's static checks all include it. scripts/verify/architecture-guards.mjs does not run it. The check scans src excluding tests, keeps names that are numeric limits, and requires each name to be an environment on an analysis setting or a registry entry with a reason. The registry accepts only restart-only. A limit checked on each call has to be an analysis setting. The check rejects a per-call registry entry. The same script reads every default, floor, and maximum in the three numeric tables above and compares them with ANALYSIS_SETTINGS or the owner constant the parser enforces. A mismatch names the limit and both values. A cell that is only Number.MAX_SAFE_INTEGER or MAX_GHIDRA_DECOMPILE_TIMEOUT_SECONDS means that export. unset means the code default is null.

Per-call request parameters and fixed ceilings

Request parameters are not REA_ limits and are not in ANALYSIS_SETTINGS; each operation's schema owns its bounds, and a refusal reports details.limit with control_kind: "parameter" and applies_at: "next_call". These parameters report that limit:

Operation Parameter Default Floor Maximum Owner
inspect_il2cpp_metadata max_native_index_bytes 1073741824 1 Number.MAX_SAFE_INTEGER src/domain/il2cpp/il2cppMetadata.ts
inspect_elf_notes, inspect_elf_debug_link max_file_bytes 67108864 64 536870912 src/domain/native/elfReadBudgets.ts
inspect_elf_notes, inspect_elf_debug_link max_entries 128 1 256 src/domain/native/elfReadBudgets.ts

Refusals that still name a per-call control only in prose are counted by scripts/verify/fixed-ceilings.mjs against scripts/verify/untyped-budget-refusal-baseline.json and tracked in #14234.

Fixed ceilings are listed with their class and reason in scripts/verify/fixed-ceiling-registry.json, which npm run lint checks with scripts/verify/fixed-ceilings.mjs; see keep a fixed ceiling honest. Entries classed pending are resource limits awaiting a control, tracked in #14235 (native readers, including IL2CPP's remaining allowances), #14236 (archive and container readers) and #14237 (producer output and capture).