Files
rea/docs/user-visible-errors.csv
morluto efbb66c16a fix(errors)!: report wrong-format, missing-file and missing-Evidence refusals by their cause (#15581)
* fix(errors)!: report wrong-format, missing-file and missing-Evidence refusals by their cause

- inspect_labview_artifact refuses a file with no LabVIEW RSRC data as an
  unrecognized target (code unsupported_target, failure_kind unrecognized),
  as its format siblings do, instead of invalid_request. A PE whose
  resource tree could not be fully read is a malformed PE target.
- inspect_gpu_code_objects, inspect_model_artifact and Apktool reported a
  missing or non-regular selected file through their own copy of the
  selected-file refusal (BinaryTargetError, target_unavailable). They now
  use the shared projectSelectedArtifactFileFailure owner
  (invalid_request, conforming, with its own next step), and the copy is
  removed. The shared owner keeps the verified-symlink recovery the copy
  carried.
- A retained Evidence reference the session does not hold is
  invalid_request / invalid_input instead of evidence_integrity_mismatch.
  Altered or unauthenticated Evidence stays evidence_integrity_mismatch.

BREAKING CHANGE: error codes change for three refusals. A non-LabVIEW
file given to inspect_labview_artifact is unsupported_target (was
invalid_request). A missing or non-regular selected file for
inspect_gpu_code_objects, inspect_model_artifact or Apktool operations is
invalid_request (was target_unavailable). A missing retained Evidence
reference (details.reason "missing") is invalid_request with category
invalid_input (was evidence_integrity_mismatch / integrity_mismatch).
Callers that branch on these codes should match the new values;
details.reason, retry_class and the remediation are unchanged in meaning.

* test(model): expect the shared selected-file refusal for a missing model path

The process-global host read failure test still expected
target_unavailable for path errors on a model file. Those are now the
shared selected-file input refusal.

* fix(resources): name a rejected symlink in the shared selected-file refusal

The GPU and model readers' copy of the selected-file refusal said the
path was a symbolic link; the shared owner reported only ELOOP, so
rejectedSymlinkRecovery failed once they moved to it. Use the rejected
symlink's own message, and keep the errno message for every other
selected-path refusal.

* docs(errors): describe missing references and closure members as the caller's selection

The comment above RESOURCE_SNAPSHOT_NOT_APPLICABLE still said a missing
Evidence reference stays an integrity failure. Missing references,
including retained sources and closure members, are invalid_request; only
altered or unauthenticated Evidence stays an integrity failure.
2026-12-01 17:11:08 -05: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=limit; reader limit that can be raisedresource_constraintresource_constraintchange_firstfalse
34ArtifactOperationErrorreason=limit; reader limit already at its maximumresource_constraintresource_constraintneverfalse
35ArtifactOperationErrorreason=integrity; artifact identity reportedartifact_integrity_mismatchintegrity_mismatchneverfalse
36ArtifactOperationErrorreason=limit; release-fixed allowanceresource_constraintresource_constraintneverfalse
37ArtifactOperationErrorreason=integrity; the session's admitted identity no longer matchesartifact_operation_failedintegrity_mismatchchange_firstfalse
38ArtifactOperationErrorreason=integrity; target changed during the readartifact_changedintegrity_mismatchsame_calltrue
39BinaryTargetErrorconstraint=unconstrainedtarget_unavailableunavailablechange_firstfalse
40BinaryTargetErrorconstraint=unconstrained; read permission deniedaccess_deniedunavailablechange_firstfalse
41BinaryTargetErrorconstraint=directory_requires_filetarget_unavailableunavailablechange_firstfalse
42BinaryTargetErrorconstraint=directory_requires_file; read permission deniedaccess_deniedunavailablechange_firstfalse
43BinaryTargetErrorconstraint=wasm_requires_static_inspectiontarget_unavailableunsupported_targetchange_firstfalse
44BinaryTargetErrorconstraint=wasm_requires_static_inspection; read permission deniedaccess_deniedunsupported_targetchange_firstfalse
45BinaryTargetErrorconstraint=file_format_rejectedtarget_unavailableunsupported_targetchange_firstfalse
46BinaryTargetErrorconstraint=file_format_rejected; read permission deniedaccess_deniedunsupported_targetchange_firstfalse
47BinaryTargetErrorconstraint=load_selection_rejectedinvalid_requestinvalid_inputchange_firstfalse
48BinaryTargetErrorconstraint=bundle_type_unsupportedtarget_unavailableunsupported_targetchange_firstfalse
49BinaryTargetErrorconstraint=bundle_type_unsupported; read permission deniedaccess_deniedunsupported_targetchange_firstfalse
50BinaryTargetErrorconstraint=bundle_info_plist_decode_budget_exceededtarget_unavailableunavailablechange_firstfalse
51BinaryTargetErrorconstraint=bundle_info_plist_decode_budget_exceeded; read permission deniedaccess_deniedunavailablechange_firstfalse
52BinaryTargetErrorconstraint=bundle_info_plist_missingtarget_unavailableunavailablechange_firstfalse
53BinaryTargetErrorconstraint=bundle_info_plist_missing; read permission deniedaccess_deniedunavailablechange_firstfalse
54BinaryTargetErrorconstraint=bundle_layout_ambiguoustarget_unavailableunavailablechange_firstfalse
55BinaryTargetErrorconstraint=bundle_layout_ambiguous; read permission deniedaccess_deniedunavailablechange_firstfalse
56BinaryTargetErrorconstraint=bundle_executable_undeclaredtarget_unavailableunavailablechange_firstfalse
57BinaryTargetErrorconstraint=bundle_executable_undeclared; read permission deniedaccess_deniedunavailablechange_firstfalse
58BinaryTargetErrorconstraint=bundle_program_missingtarget_unavailableunavailablechange_firstfalse
59BinaryTargetErrorconstraint=bundle_program_missing; read permission deniedaccess_deniedunavailablechange_firstfalse
60BinaryTargetErrorconstraint=bundle_current_version_missingtarget_unavailableunavailablechange_firstfalse
61BinaryTargetErrorconstraint=bundle_current_version_missing; read permission deniedaccess_deniedunavailablechange_firstfalse
62BinaryTargetErrorconstraint=bundle_path_escapestarget_unavailableunavailablechange_firstfalse
63BinaryTargetErrorconstraint=bundle_path_escapes; read permission deniedaccess_deniedunavailablechange_firstfalse
64BrowserObservationErrorreason=endpoint_unreachableprovider_unavailableunavailablesame_calltrue
65BrowserObservationErrorreason=invalid_endpoint_responseunreadable_outputexecution_failureneverfalse
66BrowserObservationErrorreason=target_not_foundtarget_unavailableunavailablechange_firstfalse
67BrowserObservationErrorreason=target_not_allowedtarget_unavailableunavailablechange_firstfalse
68BrowserObservationErrorreason=application_already_runningtarget_unavailableunavailablechange_firstfalse
69BrowserObservationErrorreason=service_worker_blockedtarget_unavailableunavailablechange_firstfalse
70BrowserObservationErrorreason=target_changedtarget_unavailableunavailablechange_firstfalse
71BrowserObservationErrorreason=target_session_detachedtarget_unavailableunavailablechange_firstfalse
72BrowserObservationErrorreason=protocol_errorunreadable_outputexecution_failureneverfalse
73BrowserObservationErrorreason=disconnectedprovider_unavailableunavailablesame_calltrue
74BrowserObservationErrorreason=payload_limitpartialpartialchange_firstfalse
75BrowserObservationErrorreason=window_not_foundunreadable_outputexecution_failureneverfalse
76BrowserObservationErrorreason=window_metadata_missingunreadable_outputexecution_failureneverfalse
77BrowserObservationErrorreason=process_ownership_unavailableunreadable_outputexecution_failureneverfalse
78BrowserObservationErrorreason=cleanup_failedexecution_failureexecution_failureneverfalse
79BrowserObservationErrorreason=cancelledcancelledcancelledsame_calltrue
80BrowserObservationErrorreason=timeoutprovider_timeouttimeoutsame_calltrue
81BrowserObservationErrorcaused by cancellationcancelledcancelledsame_calltrue
82EvidenceFileErrorreason=not-fileinvalid_requestinvalid_inputchange_firstfalse
83EvidenceFileErrorreason=existsinvalid_requestinvalid_inputchange_firstfalse
84EvidenceFileErrorreason=wrong-kindinvalid_requestinvalid_inputchange_firstfalse
85EvidenceFileErrorreason=missinginvalid_requestinvalid_inputchange_firstfalse
86EvidenceFileErrorreason=symlink-traversalinvalid_requestinvalid_inputchange_firstfalse
87EvidenceFileErrorreason=invalid-jsonevidence_integrity_mismatchexecution_failureneverfalse
88EvidenceFileErrorreason=path-limitresource_constraintresource_constraintchange_firstfalse
89EvidenceFileErrorreason=storage-limitresource_constraintresource_constraintchange_firstfalse
90EvidenceFileErrorreason=ioexecution_failureexecution_failureneverfalse
91EvidenceIntegrityErroranalysis snapshot selected for a resource-only sessioninvalid_requestinvalid_inputchange_firstfalse
92EvidenceIntegrityErrorreferenced Evidence missing from this sessioninvalid_requestinvalid_inputchange_firstfalse
93ProcessCaptureErrorprocess_capture_failedexecution_failureneverfalse
94ProcessCaptureErrorcaused by cancellationcancelledcancelledsame_calltrue
95ProviderSelectionErrorreason=unknown_providercapability_unavailableunsupported_providerchange_firstfalse
96ProviderSelectionErrorreason=provider_unavailableprovider_unavailableunavailablesame_calltrue
97ProviderSelectionErrorreason=target_unsupportedcapability_unavailableunsupported_providerneverfalse
98ProviderSelectionErrorreason=ambiguouscapability_unavailableunsupported_providerchange_firstfalse
99ProviderSelectionErrorreason=invalid_optionscapability_unavailableunsupported_providerchange_firstfalse
100UnknownRegistryErrorreason=not-foundinvalid_requestinvalid_inputchange_firstfalse
101UnknownRegistryErrorreason=already-existsinvalid_requestinvalid_inputchange_firstfalse
102UnknownRegistryErrorreason=revision-conflictrevision_conflictexecution_failurechange_firstfalse
103UnknownRegistryErrorreason=invalid-transitionexecution_failureexecution_failurechange_firstfalse
104UnknownRegistryErrorreason=integrityevidence_integrity_mismatchexecution_failureneverfalse
105UnknownRegistryErrorreason=limitpartialexecution_failurechange_firstfalse
106UnknownRegistryErrorreason=constraintinvalid_requestinvalid_inputchange_firstfalse
107HopperTimeoutErrorprovider_timeouttimeoutsame_calltrue
108HopperCancelledErrorcancelledcancelledsame_calltrue
109HopperCancelledErrorrequest sent to Hoppercancelledcancelledunknown_outcomefalse
110HopperProtocolErrorunreadable_outputexecution_failureneverfalse
111HopperRemoteErrordiagnostic_type=remoteexecution_failureexecution_failureneverfalse
112HopperRemoteErrordiagnostic_type=authorizationexecution_failureunavailablechange_firstfalse
113HopperRemoteErrordiagnostic_type=invalid_requestinvalid_requestinvalid_inputchange_firstfalse
114HopperRemoteErrordiagnostic_type=selector_not_foundinvalid_requestinvalid_inputchange_firstfalse
115HopperRemoteErrordiagnostic_type=capability_unavailableexecution_failureexecution_failureneverfalse
116HopperRemoteErrordiagnostic_type=bridge_exceptionexecution_failureexecution_failureneverfalse
117HopperProcessErrorprovider_unavailableunavailablechange_firstfalse
118HopperStartErrorprovider_unavailableunavailablesame_calltrue
119HopperStartErrorApple Events authorization denied, launch arguments not encodable, or another REA session owns the targetprovider_unavailableunavailablechange_firstfalse