mirror of
https://github.com/morluto/rea.git
synced 2026-12-02 11:33:10 +00:00
* 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.
11 KiB
11 KiB
| 1 | tag | discriminant | code | category | retry | retryable_by_default |
|---|---|---|---|---|---|---|
| 2 | AnalysisProtocolError | unreadable_output | execution_failure | never | false | |
| 3 | AnalysisOutputError | unreadable_output | execution_failure | never | false | |
| 4 | AnalysisInputError | invalid_request | invalid_input | change_first | false | |
| 5 | AnalysisAccessDeniedError | access_denied | unavailable | change_first | false | |
| 6 | AnalysisArtifactChangedError | artifact_changed | integrity_mismatch | same_call | true | |
| 7 | AnalysisCapabilityUnavailableError | capability_unavailable | unsupported_provider | never | false | |
| 8 | AnalysisCancelledError | cancelled | cancelled | same_call | true | |
| 9 | AnalysisTimeoutError | provider_timeout | timeout | same_call | true | |
| 10 | AnalysisResourceConstraintError | resource_constraint | resource_constraint | change_first | false | |
| 11 | ConfigurationError | configuration_invalid | invalid_input | change_first | false | |
| 12 | NoBinaryOpenError | target_unavailable | unavailable | change_first | false | |
| 13 | EvidenceIntegrityError | evidence_integrity_mismatch | integrity_mismatch | never | false | |
| 14 | ProviderAdapterError | execution_failure | execution_failure | never | false | |
| 15 | AnalysisCapabilityUnavailableError | retry=same_call | capability_unavailable | unavailable | same_call | true |
| 16 | AnalysisCapabilityUnavailableError | retry=change_first | capability_unavailable | unavailable | change_first | false |
| 17 | AnalysisTargetFailureError | kind=selection | invalid_request | invalid_input | change_first | false |
| 18 | AnalysisTargetFailureError | kind=unrecognized | unsupported_target | unsupported_target | never | false |
| 19 | AnalysisTargetFailureError | kind=unsupported | unsupported_target | unsupported_target | never | false |
| 20 | AnalysisTargetFailureError | kind=malformed | unsupported_target | unsupported_target | never | false |
| 21 | AnalysisTargetFailureError | kind=truncated | unsupported_target | unsupported_target | never | false |
| 22 | AnalysisTargetFailureError | kind=integrity | target_integrity_mismatch | integrity_mismatch | never | false |
| 23 | AnalysisTargetFailureError | kind=conflict | input_conflict | invalid_input | change_first | false |
| 24 | AnalysisTargetFailureError | kind=changed | artifact_changed | integrity_mismatch | same_call | true |
| 25 | AnalysisTargetFailureError | kind=access | access_denied | unavailable | change_first | false |
| 26 | AnalysisTargetFailureError | kind=io | host_io_failed | execution_failure | never | false |
| 27 | ArtifactOperationError | reason=cancelled | cancelled | cancelled | same_call | true |
| 28 | ArtifactOperationError | reason=integrity | artifact_operation_failed | integrity_mismatch | never | false |
| 29 | ArtifactOperationError | reason=limit | partial | partial | change_first | false |
| 30 | ArtifactOperationError | reason=path | artifact_operation_failed | execution_failure | never | false |
| 31 | ArtifactOperationError | reason=unavailable | artifact_operation_failed | unavailable | change_first | false |
| 32 | ArtifactOperationError | reason=io | artifact_operation_failed | execution_failure | never | false |
| 33 | ArtifactOperationError | reason=limit; reader limit that can be raised | resource_constraint | resource_constraint | change_first | false |
| 34 | ArtifactOperationError | reason=limit; reader limit already at its maximum | resource_constraint | resource_constraint | never | false |
| 35 | ArtifactOperationError | reason=integrity; artifact identity reported | artifact_integrity_mismatch | integrity_mismatch | never | false |
| 36 | ArtifactOperationError | reason=limit; release-fixed allowance | resource_constraint | resource_constraint | never | false |
| 37 | ArtifactOperationError | reason=integrity; the session's admitted identity no longer matches | artifact_operation_failed | integrity_mismatch | change_first | false |
| 38 | ArtifactOperationError | reason=integrity; target changed during the read | artifact_changed | integrity_mismatch | same_call | true |
| 39 | BinaryTargetError | constraint=unconstrained | target_unavailable | unavailable | change_first | false |
| 40 | BinaryTargetError | constraint=unconstrained; read permission denied | access_denied | unavailable | change_first | false |
| 41 | BinaryTargetError | constraint=directory_requires_file | target_unavailable | unavailable | change_first | false |
| 42 | BinaryTargetError | constraint=directory_requires_file; read permission denied | access_denied | unavailable | change_first | false |
| 43 | BinaryTargetError | constraint=wasm_requires_static_inspection | target_unavailable | unsupported_target | change_first | false |
| 44 | BinaryTargetError | constraint=wasm_requires_static_inspection; read permission denied | access_denied | unsupported_target | change_first | false |
| 45 | BinaryTargetError | constraint=file_format_rejected | target_unavailable | unsupported_target | change_first | false |
| 46 | BinaryTargetError | constraint=file_format_rejected; read permission denied | access_denied | unsupported_target | change_first | false |
| 47 | BinaryTargetError | constraint=load_selection_rejected | invalid_request | invalid_input | change_first | false |
| 48 | BinaryTargetError | constraint=bundle_type_unsupported | target_unavailable | unsupported_target | change_first | false |
| 49 | BinaryTargetError | constraint=bundle_type_unsupported; read permission denied | access_denied | unsupported_target | change_first | false |
| 50 | BinaryTargetError | constraint=bundle_info_plist_decode_budget_exceeded | target_unavailable | unavailable | change_first | false |
| 51 | BinaryTargetError | constraint=bundle_info_plist_decode_budget_exceeded; read permission denied | access_denied | unavailable | change_first | false |
| 52 | BinaryTargetError | constraint=bundle_info_plist_missing | target_unavailable | unavailable | change_first | false |
| 53 | BinaryTargetError | constraint=bundle_info_plist_missing; read permission denied | access_denied | unavailable | change_first | false |
| 54 | BinaryTargetError | constraint=bundle_layout_ambiguous | target_unavailable | unavailable | change_first | false |
| 55 | BinaryTargetError | constraint=bundle_layout_ambiguous; read permission denied | access_denied | unavailable | change_first | false |
| 56 | BinaryTargetError | constraint=bundle_executable_undeclared | target_unavailable | unavailable | change_first | false |
| 57 | BinaryTargetError | constraint=bundle_executable_undeclared; read permission denied | access_denied | unavailable | change_first | false |
| 58 | BinaryTargetError | constraint=bundle_program_missing | target_unavailable | unavailable | change_first | false |
| 59 | BinaryTargetError | constraint=bundle_program_missing; read permission denied | access_denied | unavailable | change_first | false |
| 60 | BinaryTargetError | constraint=bundle_current_version_missing | target_unavailable | unavailable | change_first | false |
| 61 | BinaryTargetError | constraint=bundle_current_version_missing; read permission denied | access_denied | unavailable | change_first | false |
| 62 | BinaryTargetError | constraint=bundle_path_escapes | target_unavailable | unavailable | change_first | false |
| 63 | BinaryTargetError | constraint=bundle_path_escapes; read permission denied | access_denied | unavailable | change_first | false |
| 64 | BrowserObservationError | reason=endpoint_unreachable | provider_unavailable | unavailable | same_call | true |
| 65 | BrowserObservationError | reason=invalid_endpoint_response | unreadable_output | execution_failure | never | false |
| 66 | BrowserObservationError | reason=target_not_found | target_unavailable | unavailable | change_first | false |
| 67 | BrowserObservationError | reason=target_not_allowed | target_unavailable | unavailable | change_first | false |
| 68 | BrowserObservationError | reason=application_already_running | target_unavailable | unavailable | change_first | false |
| 69 | BrowserObservationError | reason=service_worker_blocked | target_unavailable | unavailable | change_first | false |
| 70 | BrowserObservationError | reason=target_changed | target_unavailable | unavailable | change_first | false |
| 71 | BrowserObservationError | reason=target_session_detached | target_unavailable | unavailable | change_first | false |
| 72 | BrowserObservationError | reason=protocol_error | unreadable_output | execution_failure | never | false |
| 73 | BrowserObservationError | reason=disconnected | provider_unavailable | unavailable | same_call | true |
| 74 | BrowserObservationError | reason=payload_limit | partial | partial | change_first | false |
| 75 | BrowserObservationError | reason=window_not_found | unreadable_output | execution_failure | never | false |
| 76 | BrowserObservationError | reason=window_metadata_missing | unreadable_output | execution_failure | never | false |
| 77 | BrowserObservationError | reason=process_ownership_unavailable | unreadable_output | execution_failure | never | false |
| 78 | BrowserObservationError | reason=cleanup_failed | execution_failure | execution_failure | never | false |
| 79 | BrowserObservationError | reason=cancelled | cancelled | cancelled | same_call | true |
| 80 | BrowserObservationError | reason=timeout | provider_timeout | timeout | same_call | true |
| 81 | BrowserObservationError | caused by cancellation | cancelled | cancelled | same_call | true |
| 82 | EvidenceFileError | reason=not-file | invalid_request | invalid_input | change_first | false |
| 83 | EvidenceFileError | reason=exists | invalid_request | invalid_input | change_first | false |
| 84 | EvidenceFileError | reason=wrong-kind | invalid_request | invalid_input | change_first | false |
| 85 | EvidenceFileError | reason=missing | invalid_request | invalid_input | change_first | false |
| 86 | EvidenceFileError | reason=symlink-traversal | invalid_request | invalid_input | change_first | false |
| 87 | EvidenceFileError | reason=invalid-json | evidence_integrity_mismatch | execution_failure | never | false |
| 88 | EvidenceFileError | reason=path-limit | resource_constraint | resource_constraint | change_first | false |
| 89 | EvidenceFileError | reason=storage-limit | resource_constraint | resource_constraint | change_first | false |
| 90 | EvidenceFileError | reason=io | execution_failure | execution_failure | never | false |
| 91 | EvidenceIntegrityError | analysis snapshot selected for a resource-only session | invalid_request | invalid_input | change_first | false |
| 92 | EvidenceIntegrityError | referenced Evidence missing from this session | invalid_request | invalid_input | change_first | false |
| 93 | ProcessCaptureError | process_capture_failed | execution_failure | never | false | |
| 94 | ProcessCaptureError | caused by cancellation | cancelled | cancelled | same_call | true |
| 95 | ProviderSelectionError | reason=unknown_provider | capability_unavailable | unsupported_provider | change_first | false |
| 96 | ProviderSelectionError | reason=provider_unavailable | provider_unavailable | unavailable | same_call | true |
| 97 | ProviderSelectionError | reason=target_unsupported | capability_unavailable | unsupported_provider | never | false |
| 98 | ProviderSelectionError | reason=ambiguous | capability_unavailable | unsupported_provider | change_first | false |
| 99 | ProviderSelectionError | reason=invalid_options | capability_unavailable | unsupported_provider | change_first | false |
| 100 | UnknownRegistryError | reason=not-found | invalid_request | invalid_input | change_first | false |
| 101 | UnknownRegistryError | reason=already-exists | invalid_request | invalid_input | change_first | false |
| 102 | UnknownRegistryError | reason=revision-conflict | revision_conflict | execution_failure | change_first | false |
| 103 | UnknownRegistryError | reason=invalid-transition | execution_failure | execution_failure | change_first | false |
| 104 | UnknownRegistryError | reason=integrity | evidence_integrity_mismatch | execution_failure | never | false |
| 105 | UnknownRegistryError | reason=limit | partial | execution_failure | change_first | false |
| 106 | UnknownRegistryError | reason=constraint | invalid_request | invalid_input | change_first | false |
| 107 | HopperTimeoutError | provider_timeout | timeout | same_call | true | |
| 108 | HopperCancelledError | cancelled | cancelled | same_call | true | |
| 109 | HopperCancelledError | request sent to Hopper | cancelled | cancelled | unknown_outcome | false |
| 110 | HopperProtocolError | unreadable_output | execution_failure | never | false | |
| 111 | HopperRemoteError | diagnostic_type=remote | execution_failure | execution_failure | never | false |
| 112 | HopperRemoteError | diagnostic_type=authorization | execution_failure | unavailable | change_first | false |
| 113 | HopperRemoteError | diagnostic_type=invalid_request | invalid_request | invalid_input | change_first | false |
| 114 | HopperRemoteError | diagnostic_type=selector_not_found | invalid_request | invalid_input | change_first | false |
| 115 | HopperRemoteError | diagnostic_type=capability_unavailable | execution_failure | execution_failure | never | false |
| 116 | HopperRemoteError | diagnostic_type=bridge_exception | execution_failure | execution_failure | never | false |
| 117 | HopperProcessError | provider_unavailable | unavailable | change_first | false | |
| 118 | HopperStartError | provider_unavailable | unavailable | same_call | true | |
| 119 | HopperStartError | Apple Events authorization denied, launch arguments not encodable, or another REA session owns the target | provider_unavailable | unavailable | change_first | false |