Files
reverse-engineering-anything/docs/user-visible-errors.csv
T
morluto bd353e7e5c fix(errors)!: producers declare retry class, refusal recovery and real error codes (#15372)
* fix(errors)!: derive retryable from the producer's declared retry class

`retryable` means the unchanged request may succeed, but it was computed
downstream as an OR of a code table and five class rules. Every error
classification now declares a retry class (same_call, change_first, never,
unknown_outcome); `retryable` is `same_call` after one incomplete-cleanup
check, and the RETRYABLE_CODES table is deleted.

Producer corrections:
- update_unknown revision conflicts are change_first and report
  details.current_revision; duplicate record_unknown reports
  details.existing_unknown_id.
- close_gdb_session's explicit-disposition refusal is change_first.
- Per-call artifact reader limits are change_first (never when the limit
  cannot rise).
- An exited or unreachable Hopper bridge, and a Hopper start that another
  REA session owns, are change_first.
- File-descriptor exhaustion (EMFILE/ENFILE) outside process launch is
  occupied host capacity (same_call) for private workspaces, model and GPU
  readers and JavaScript application reads.
- apktool JVM native-thread exhaustion follows the shared capacity default.

BREAKING CHANGE: these refusals now report `retryable: false` (descriptor
pressure now reports `retryable: true` as `resource_constraint`). Callers
that repeated them unchanged should follow the remediation first: re-read
the unknown and retry with details.current_revision, dispose GDB inferiors,
raise the reported reader limit, or restart the Hopper provider.

* fix(errors): require producers to name recovery for conforming refusals

A refusal whose arguments match the input schema was presented as a schema
error whenever its producer left out remediation, and many producers did.
AnalysisInputError's options are now a union: a conforming refusal must
supply both its outcome (userMessage) and next step (remediationAction),
so the compiler lists every producer; only contract violations may fall
back to the schema guidance.

Producers fixed: unknown Frida session and script, decompile_all
output-directory state, the duplicate unknown build computer factory
(collapsed), stale Cutter sessions, Mach-O architecture selection, output
roots that already exist, selected files the host refuses, Ghidra lookups
the bridge could not resolve, YARA path refusals, unresolved native symbol
names, apt key files and withheld sign-in state. A missing selected APK is
now target_unavailable like every other selected-file reader.

The capability fallback "Choose another analysis or target" is deleted; a
capability refusal without its own recovery names details.reason and
binary_session.

Refs #15312

* fix(errors): classify caller selections and target bytes by their real failure

Several refusals reported a code that reads as corruption or a crash:
- a missing unknown_id and a missing Evidence reference now report
  invalid_request instead of execution_failure and
  evidence_integrity_mismatch;
- close_binary with snapshot_path in a resource-only session reports
  invalid_request instead of evidence_integrity_mismatch;
- ADB push onto an existing device path and pulls into an occupied output
  directory are conforming invalid_request refusals naming overwrite or
  output_directory, not unreadable_output;
- damaged APK ZIP, signing-block, signer and central-directory structures
  are malformed targets, not invalid input;
- NuGet and VSIX bytes without a ZIP signature are unrecognized, not
  malformed;
- a historical source graph file whose entries contradict its root
  commitment is an integrity failure, not invalid input;
- a CDP protocol failure states what happened instead of the unclassified
  fallback message.

Refs #15319

* feat(errors): expose the producer's retry class as retry_class

Every error projection now carries retry_class (same_call, change_first, never or unknown_outcome) beside retryable, which stays true exactly for same_call. The field is additive: the error schema accepts errors retained by earlier releases without it.

Refs #15323

* fix(errors): address review of the folded error-contract PRs

Keep a provider's own capability message as its remediation; the binary_session fallback applies only to a bare declared reason. Delete the unused conformingInputRefusal helper. Compose both retry fields for a refused publication whose cleanup is incomplete. Report descriptor exhaustion from a JavaScript directory opendir as occupied capacity. Let an exited Hopper startup attempt without a setup failure code retry unchanged. Declare retry for the Ghidra superseded checkpoint and unknown IDA readiness. Redact ambiguous selector candidates. Give a Ghidra document miss its own recovery. Drop an unchanged-files claim the journal repair cannot make. Name each withheld sign-in refusal's step. Hash the source graph commitment before the cancellation yield. Keep the browser protocol_error message neutral. Add tests for mutation-audit survivors C3, C5, P2, P4, P8, H1, H4 and H5.

* fix(errors): keep a missing Evidence reference an integrity failure and state only the observed commitment mismatch

* test(desktop): assert the unknown build computer refusal's remediation, not its message

The refusal now carries its next step in remediation.action instead of the message, so the closed-computer checks assert the exact code, message and remediation facts.

* fix(errors): keep producer retry choices apart from cleanup and fixed ceilings

A capture's retryable flag no longer folds in pending cleanup, so the projection applies the cleanup rule once and a transient capture with pending cleanup reports change_first instead of never. A release-fixed artifact allowance reports never, and a stale admitted session identity reports change_first (reopen, then retry); both have catalogue rows. The bare capability-unavailable remediation names binary_session only for a binary-analysis session, so standalone bridges such as Cutter are pointed at their own reason.

* test(vsix): expect a non-ZIP selection to be refused as unrecognized

This PR reports bytes without a ZIP signature as another format (unrecognized), not a damaged package; the exact-reason assertion added on main still expected malformed.

* test(delivery): expect the capacity refusal's retry class in delivered failure facts

The exact failure facts asserted on main predate the projection's retry_class; occupied capacity reports same_call.

* fix(errors): mark a sent Hopper cancellation unknown and missing Evidence recoverable

A cancellation Hopper already received may still apply, so its retry class is unknown_outcome instead of same_call; an unsent cancellation keeps same_call. A missing EvidenceReferenceError is change_first, since importing the referenced records lets the same request succeed; other reference failures stay never. Both have catalogue rows.

* fix(hopper): ask for changed launch arguments before retrying an unencodable launch

A launcher path or argument that cannot be encoded as an AppleScript literal meets the same pre-launch guard on every attempt, so the start refusal is change_first and its retry_action is unknown; a start failure without a declared reason stays same_call.

* fix(errors): keep a one-shot cleanup failure's retry class with its cleanup state

A one-shot reply that reports cleanup_incomplete spread the primary or cleanup projection and overrode only retryable, so a timed-out read whose close also failed carried retry_class same_call. The reply now reads its retry class from the typed composed failure, and never offers the same call before cleanup settles.

* test(evtx): expect an unreadable selected log to be refused with its own recovery

This PR treats a well-formed path the host refused as a regular file as conforming input with its own remediation; the evtx boundary test still expected a schema-recovery refusal.

* test(javascript): expect a broken source-graph commitment as an integrity failure

This PR reports a well-formed historical source graph whose entries disagree with its root_sha256 as evidence_integrity_mismatch, not an input issue; the exact refusal assertion added on main still expected invalid_request.
2026-12-01 05:32:33 +00:00

11 KiB

1tagdiscriminantcodecategoryretryretryable_by_default
2AnalysisProtocolErrorunreadable_outputexecution_failureneverfalse
3AnalysisOutputErrorunreadable_outputexecution_failureneverfalse
4AnalysisInputErrorinvalid_requestinvalid_inputchange_firstfalse
5AnalysisAccessDeniedErroraccess_deniedunavailablechange_firstfalse
6AnalysisArtifactChangedErrorartifact_changedintegrity_mismatchsame_calltrue
7AnalysisCapabilityUnavailableErrorcapability_unavailableunsupported_providerneverfalse
8AnalysisCancelledErrorcancelledcancelledsame_calltrue
9AnalysisTimeoutErrorprovider_timeouttimeoutsame_calltrue
10AnalysisResourceConstraintErrorresource_constraintresource_constraintchange_firstfalse
11ConfigurationErrorconfiguration_invalidinvalid_inputchange_firstfalse
12NoBinaryOpenErrortarget_unavailableunavailablechange_firstfalse
13EvidenceIntegrityErrorevidence_integrity_mismatchintegrity_mismatchneverfalse
14ProviderAdapterErrorexecution_failureexecution_failureneverfalse
15AnalysisCapabilityUnavailableErrorretry=same_callcapability_unavailableunavailablesame_calltrue
16AnalysisCapabilityUnavailableErrorretry=change_firstcapability_unavailableunavailablechange_firstfalse
17AnalysisTargetFailureErrorkind=selectioninvalid_requestinvalid_inputchange_firstfalse
18AnalysisTargetFailureErrorkind=unrecognizedunsupported_targetunsupported_targetneverfalse
19AnalysisTargetFailureErrorkind=unsupportedunsupported_targetunsupported_targetneverfalse
20AnalysisTargetFailureErrorkind=malformedunsupported_targetunsupported_targetneverfalse
21AnalysisTargetFailureErrorkind=truncatedunsupported_targetunsupported_targetneverfalse
22AnalysisTargetFailureErrorkind=integritytarget_integrity_mismatchintegrity_mismatchneverfalse
23AnalysisTargetFailureErrorkind=conflictinput_conflictinvalid_inputchange_firstfalse
24AnalysisTargetFailureErrorkind=changedartifact_changedintegrity_mismatchsame_calltrue
25AnalysisTargetFailureErrorkind=accessaccess_deniedunavailablechange_firstfalse
26AnalysisTargetFailureErrorkind=iohost_io_failedexecution_failureneverfalse
27ArtifactOperationErrorreason=cancelledcancelledcancelledsame_calltrue
28ArtifactOperationErrorreason=integrityartifact_operation_failedintegrity_mismatchneverfalse
29ArtifactOperationErrorreason=limitpartialpartialchange_firstfalse
30ArtifactOperationErrorreason=pathartifact_operation_failedexecution_failureneverfalse
31ArtifactOperationErrorreason=unavailableartifact_operation_failedunavailablechange_firstfalse
32ArtifactOperationErrorreason=ioartifact_operation_failedexecution_failureneverfalse
33ArtifactOperationErrorreason=integrity; artifact identity reportedartifact_integrity_mismatchintegrity_mismatchneverfalse
34ArtifactOperationErrorreason=limit; release-fixed allowancepartialpartialneverfalse
35ArtifactOperationErrorreason=integrity; the session's admitted identity no longer matchesartifact_operation_failedintegrity_mismatchchange_firstfalse
36ArtifactOperationErrorreason=integrity; target changed during the readartifact_changedintegrity_mismatchsame_calltrue
37BinaryTargetErrorconstraint=unconstrainedtarget_unavailableunavailablechange_firstfalse
38BinaryTargetErrorconstraint=unconstrained; read permission deniedaccess_deniedunavailablechange_firstfalse
39BinaryTargetErrorconstraint=directory_requires_filetarget_unavailableunavailablechange_firstfalse
40BinaryTargetErrorconstraint=directory_requires_file; read permission deniedaccess_deniedunavailablechange_firstfalse
41BinaryTargetErrorconstraint=wasm_requires_static_inspectiontarget_unavailableunsupported_targetchange_firstfalse
42BinaryTargetErrorconstraint=wasm_requires_static_inspection; read permission deniedaccess_deniedunsupported_targetchange_firstfalse
43BinaryTargetErrorconstraint=file_format_rejectedtarget_unavailableunsupported_targetchange_firstfalse
44BinaryTargetErrorconstraint=file_format_rejected; read permission deniedaccess_deniedunsupported_targetchange_firstfalse
45BinaryTargetErrorconstraint=load_selection_rejectedinvalid_requestinvalid_inputchange_firstfalse
46BinaryTargetErrorconstraint=bundle_type_unsupportedtarget_unavailableunsupported_targetchange_firstfalse
47BinaryTargetErrorconstraint=bundle_type_unsupported; read permission deniedaccess_deniedunsupported_targetchange_firstfalse
48BinaryTargetErrorconstraint=bundle_info_plist_decode_budget_exceededtarget_unavailableunavailablechange_firstfalse
49BinaryTargetErrorconstraint=bundle_info_plist_decode_budget_exceeded; read permission deniedaccess_deniedunavailablechange_firstfalse
50BinaryTargetErrorconstraint=bundle_info_plist_missingtarget_unavailableunavailablechange_firstfalse
51BinaryTargetErrorconstraint=bundle_info_plist_missing; read permission deniedaccess_deniedunavailablechange_firstfalse
52BinaryTargetErrorconstraint=bundle_layout_ambiguoustarget_unavailableunavailablechange_firstfalse
53BinaryTargetErrorconstraint=bundle_layout_ambiguous; read permission deniedaccess_deniedunavailablechange_firstfalse
54BinaryTargetErrorconstraint=bundle_executable_undeclaredtarget_unavailableunavailablechange_firstfalse
55BinaryTargetErrorconstraint=bundle_executable_undeclared; read permission deniedaccess_deniedunavailablechange_firstfalse
56BinaryTargetErrorconstraint=bundle_program_missingtarget_unavailableunavailablechange_firstfalse
57BinaryTargetErrorconstraint=bundle_program_missing; read permission deniedaccess_deniedunavailablechange_firstfalse
58BinaryTargetErrorconstraint=bundle_current_version_missingtarget_unavailableunavailablechange_firstfalse
59BinaryTargetErrorconstraint=bundle_current_version_missing; read permission deniedaccess_deniedunavailablechange_firstfalse
60BinaryTargetErrorconstraint=bundle_path_escapestarget_unavailableunavailablechange_firstfalse
61BinaryTargetErrorconstraint=bundle_path_escapes; read permission deniedaccess_deniedunavailablechange_firstfalse
62BrowserObservationErrorreason=endpoint_unreachableprovider_unavailableunavailablesame_calltrue
63BrowserObservationErrorreason=invalid_endpoint_responseunreadable_outputexecution_failureneverfalse
64BrowserObservationErrorreason=target_not_foundtarget_unavailableunavailablechange_firstfalse
65BrowserObservationErrorreason=target_not_allowedtarget_unavailableunavailablechange_firstfalse
66BrowserObservationErrorreason=application_already_runningtarget_unavailableunavailablechange_firstfalse
67BrowserObservationErrorreason=service_worker_blockedtarget_unavailableunavailablechange_firstfalse
68BrowserObservationErrorreason=target_changedtarget_unavailableunavailablechange_firstfalse
69BrowserObservationErrorreason=target_session_detachedtarget_unavailableunavailablechange_firstfalse
70BrowserObservationErrorreason=protocol_errorunreadable_outputexecution_failureneverfalse
71BrowserObservationErrorreason=disconnectedprovider_unavailableunavailablesame_calltrue
72BrowserObservationErrorreason=payload_limitpartialpartialchange_firstfalse
73BrowserObservationErrorreason=window_not_foundunreadable_outputexecution_failureneverfalse
74BrowserObservationErrorreason=window_metadata_missingunreadable_outputexecution_failureneverfalse
75BrowserObservationErrorreason=process_ownership_unavailableunreadable_outputexecution_failureneverfalse
76BrowserObservationErrorreason=cleanup_failedexecution_failureexecution_failureneverfalse
77BrowserObservationErrorreason=cancelledcancelledcancelledsame_calltrue
78BrowserObservationErrorreason=timeoutprovider_timeouttimeoutsame_calltrue
79BrowserObservationErrorcaused by cancellationcancelledcancelledsame_calltrue
80EvidenceFileErrorreason=not-fileinvalid_requestinvalid_inputchange_firstfalse
81EvidenceFileErrorreason=existsinvalid_requestinvalid_inputchange_firstfalse
82EvidenceFileErrorreason=wrong-kindinvalid_requestinvalid_inputchange_firstfalse
83EvidenceFileErrorreason=missinginvalid_requestinvalid_inputchange_firstfalse
84EvidenceFileErrorreason=symlink-traversalinvalid_requestinvalid_inputchange_firstfalse
85EvidenceFileErrorreason=invalid-jsonevidence_integrity_mismatchexecution_failureneverfalse
86EvidenceFileErrorreason=path-limitresource_constraintresource_constraintchange_firstfalse
87EvidenceFileErrorreason=storage-limitresource_constraintresource_constraintchange_firstfalse
88EvidenceFileErrorreason=ioexecution_failureexecution_failureneverfalse
89EvidenceIntegrityErroranalysis snapshot selected for a resource-only sessioninvalid_requestinvalid_inputchange_firstfalse
90EvidenceIntegrityErrorreferenced Evidence missing from this sessionevidence_integrity_mismatchintegrity_mismatchchange_firstfalse
91ProcessCaptureErrorprocess_capture_failedexecution_failureneverfalse
92ProcessCaptureErrorcaused by cancellationcancelledcancelledsame_calltrue
93ProviderSelectionErrorreason=unknown_providercapability_unavailableunsupported_providerchange_firstfalse
94ProviderSelectionErrorreason=provider_unavailableprovider_unavailableunavailablesame_calltrue
95ProviderSelectionErrorreason=target_unsupportedcapability_unavailableunsupported_providerneverfalse
96ProviderSelectionErrorreason=ambiguouscapability_unavailableunsupported_providerchange_firstfalse
97ProviderSelectionErrorreason=invalid_optionscapability_unavailableunsupported_providerchange_firstfalse
98UnknownRegistryErrorreason=not-foundinvalid_requestinvalid_inputchange_firstfalse
99UnknownRegistryErrorreason=already-existsinvalid_requestinvalid_inputchange_firstfalse
100UnknownRegistryErrorreason=revision-conflictrevision_conflictexecution_failurechange_firstfalse
101UnknownRegistryErrorreason=invalid-transitionexecution_failureexecution_failurechange_firstfalse
102UnknownRegistryErrorreason=integrityevidence_integrity_mismatchexecution_failureneverfalse
103UnknownRegistryErrorreason=limitpartialexecution_failurechange_firstfalse
104UnknownRegistryErrorreason=constraintinvalid_requestinvalid_inputchange_firstfalse
105HopperTimeoutErrorprovider_timeouttimeoutsame_calltrue
106HopperCancelledErrorcancelledcancelledsame_calltrue
107HopperCancelledErrorrequest sent to Hoppercancelledcancelledunknown_outcomefalse
108HopperProtocolErrorunreadable_outputexecution_failureneverfalse
109HopperRemoteErrordiagnostic_type=remoteexecution_failureexecution_failureneverfalse
110HopperRemoteErrordiagnostic_type=authorizationexecution_failureunavailablechange_firstfalse
111HopperRemoteErrordiagnostic_type=invalid_requestinvalid_requestinvalid_inputchange_firstfalse
112HopperRemoteErrordiagnostic_type=selector_not_foundinvalid_requestinvalid_inputchange_firstfalse
113HopperRemoteErrordiagnostic_type=capability_unavailableexecution_failureexecution_failureneverfalse
114HopperRemoteErrordiagnostic_type=bridge_exceptionexecution_failureexecution_failureneverfalse
115HopperProcessErrorprovider_unavailableunavailablechange_firstfalse
116HopperStartErrorprovider_unavailableunavailablesame_calltrue
117HopperStartErrorApple Events authorization denied, launch arguments not encodable, or another REA session owns the targetprovider_unavailableunavailablechange_firstfalse