mirror of
https://github.com/morluto/rea.git
synced 2026-12-01 19:09:21 +00:00
* 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.
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=integrity; artifact identity reported | artifact_integrity_mismatch | integrity_mismatch | never | false |
| 34 | ArtifactOperationError | reason=limit; release-fixed allowance | partial | partial | never | false |
| 35 | ArtifactOperationError | reason=integrity; the session's admitted identity no longer matches | artifact_operation_failed | integrity_mismatch | change_first | false |
| 36 | ArtifactOperationError | reason=integrity; target changed during the read | artifact_changed | integrity_mismatch | same_call | true |
| 37 | BinaryTargetError | constraint=unconstrained | target_unavailable | unavailable | change_first | false |
| 38 | BinaryTargetError | constraint=unconstrained; read permission denied | access_denied | unavailable | change_first | false |
| 39 | BinaryTargetError | constraint=directory_requires_file | target_unavailable | unavailable | change_first | false |
| 40 | BinaryTargetError | constraint=directory_requires_file; read permission denied | access_denied | unavailable | change_first | false |
| 41 | BinaryTargetError | constraint=wasm_requires_static_inspection | target_unavailable | unsupported_target | change_first | false |
| 42 | BinaryTargetError | constraint=wasm_requires_static_inspection; read permission denied | access_denied | unsupported_target | change_first | false |
| 43 | BinaryTargetError | constraint=file_format_rejected | target_unavailable | unsupported_target | change_first | false |
| 44 | BinaryTargetError | constraint=file_format_rejected; read permission denied | access_denied | unsupported_target | change_first | false |
| 45 | BinaryTargetError | constraint=load_selection_rejected | invalid_request | invalid_input | change_first | false |
| 46 | BinaryTargetError | constraint=bundle_type_unsupported | target_unavailable | unsupported_target | change_first | false |
| 47 | BinaryTargetError | constraint=bundle_type_unsupported; read permission denied | access_denied | unsupported_target | change_first | false |
| 48 | BinaryTargetError | constraint=bundle_info_plist_decode_budget_exceeded | target_unavailable | unavailable | change_first | false |
| 49 | BinaryTargetError | constraint=bundle_info_plist_decode_budget_exceeded; read permission denied | access_denied | unavailable | change_first | false |
| 50 | BinaryTargetError | constraint=bundle_info_plist_missing | target_unavailable | unavailable | change_first | false |
| 51 | BinaryTargetError | constraint=bundle_info_plist_missing; read permission denied | access_denied | unavailable | change_first | false |
| 52 | BinaryTargetError | constraint=bundle_layout_ambiguous | target_unavailable | unavailable | change_first | false |
| 53 | BinaryTargetError | constraint=bundle_layout_ambiguous; read permission denied | access_denied | unavailable | change_first | false |
| 54 | BinaryTargetError | constraint=bundle_executable_undeclared | target_unavailable | unavailable | change_first | false |
| 55 | BinaryTargetError | constraint=bundle_executable_undeclared; read permission denied | access_denied | unavailable | change_first | false |
| 56 | BinaryTargetError | constraint=bundle_program_missing | target_unavailable | unavailable | change_first | false |
| 57 | BinaryTargetError | constraint=bundle_program_missing; read permission denied | access_denied | unavailable | change_first | false |
| 58 | BinaryTargetError | constraint=bundle_current_version_missing | target_unavailable | unavailable | change_first | false |
| 59 | BinaryTargetError | constraint=bundle_current_version_missing; read permission denied | access_denied | unavailable | change_first | false |
| 60 | BinaryTargetError | constraint=bundle_path_escapes | target_unavailable | unavailable | change_first | false |
| 61 | BinaryTargetError | constraint=bundle_path_escapes; read permission denied | access_denied | unavailable | change_first | false |
| 62 | BrowserObservationError | reason=endpoint_unreachable | provider_unavailable | unavailable | same_call | true |
| 63 | BrowserObservationError | reason=invalid_endpoint_response | unreadable_output | execution_failure | never | false |
| 64 | BrowserObservationError | reason=target_not_found | target_unavailable | unavailable | change_first | false |
| 65 | BrowserObservationError | reason=target_not_allowed | target_unavailable | unavailable | change_first | false |
| 66 | BrowserObservationError | reason=application_already_running | target_unavailable | unavailable | change_first | false |
| 67 | BrowserObservationError | reason=service_worker_blocked | target_unavailable | unavailable | change_first | false |
| 68 | BrowserObservationError | reason=target_changed | target_unavailable | unavailable | change_first | false |
| 69 | BrowserObservationError | reason=target_session_detached | target_unavailable | unavailable | change_first | false |
| 70 | BrowserObservationError | reason=protocol_error | unreadable_output | execution_failure | never | false |
| 71 | BrowserObservationError | reason=disconnected | provider_unavailable | unavailable | same_call | true |
| 72 | BrowserObservationError | reason=payload_limit | partial | partial | change_first | false |
| 73 | BrowserObservationError | reason=window_not_found | unreadable_output | execution_failure | never | false |
| 74 | BrowserObservationError | reason=window_metadata_missing | unreadable_output | execution_failure | never | false |
| 75 | BrowserObservationError | reason=process_ownership_unavailable | unreadable_output | execution_failure | never | false |
| 76 | BrowserObservationError | reason=cleanup_failed | execution_failure | execution_failure | never | false |
| 77 | BrowserObservationError | reason=cancelled | cancelled | cancelled | same_call | true |
| 78 | BrowserObservationError | reason=timeout | provider_timeout | timeout | same_call | true |
| 79 | BrowserObservationError | caused by cancellation | cancelled | cancelled | same_call | true |
| 80 | EvidenceFileError | reason=not-file | invalid_request | invalid_input | change_first | false |
| 81 | EvidenceFileError | reason=exists | invalid_request | invalid_input | change_first | false |
| 82 | EvidenceFileError | reason=wrong-kind | invalid_request | invalid_input | change_first | false |
| 83 | EvidenceFileError | reason=missing | invalid_request | invalid_input | change_first | false |
| 84 | EvidenceFileError | reason=symlink-traversal | invalid_request | invalid_input | change_first | false |
| 85 | EvidenceFileError | reason=invalid-json | evidence_integrity_mismatch | execution_failure | never | false |
| 86 | EvidenceFileError | reason=path-limit | resource_constraint | resource_constraint | change_first | false |
| 87 | EvidenceFileError | reason=storage-limit | resource_constraint | resource_constraint | change_first | false |
| 88 | EvidenceFileError | reason=io | execution_failure | execution_failure | never | false |
| 89 | EvidenceIntegrityError | analysis snapshot selected for a resource-only session | invalid_request | invalid_input | change_first | false |
| 90 | EvidenceIntegrityError | referenced Evidence missing from this session | evidence_integrity_mismatch | integrity_mismatch | change_first | false |
| 91 | ProcessCaptureError | process_capture_failed | execution_failure | never | false | |
| 92 | ProcessCaptureError | caused by cancellation | cancelled | cancelled | same_call | true |
| 93 | ProviderSelectionError | reason=unknown_provider | capability_unavailable | unsupported_provider | change_first | false |
| 94 | ProviderSelectionError | reason=provider_unavailable | provider_unavailable | unavailable | same_call | true |
| 95 | ProviderSelectionError | reason=target_unsupported | capability_unavailable | unsupported_provider | never | false |
| 96 | ProviderSelectionError | reason=ambiguous | capability_unavailable | unsupported_provider | change_first | false |
| 97 | ProviderSelectionError | reason=invalid_options | capability_unavailable | unsupported_provider | change_first | false |
| 98 | UnknownRegistryError | reason=not-found | invalid_request | invalid_input | change_first | false |
| 99 | UnknownRegistryError | reason=already-exists | invalid_request | invalid_input | change_first | false |
| 100 | UnknownRegistryError | reason=revision-conflict | revision_conflict | execution_failure | change_first | false |
| 101 | UnknownRegistryError | reason=invalid-transition | execution_failure | execution_failure | change_first | false |
| 102 | UnknownRegistryError | reason=integrity | evidence_integrity_mismatch | execution_failure | never | false |
| 103 | UnknownRegistryError | reason=limit | partial | execution_failure | change_first | false |
| 104 | UnknownRegistryError | reason=constraint | invalid_request | invalid_input | change_first | false |
| 105 | HopperTimeoutError | provider_timeout | timeout | same_call | true | |
| 106 | HopperCancelledError | cancelled | cancelled | same_call | true | |
| 107 | HopperCancelledError | request sent to Hopper | cancelled | cancelled | unknown_outcome | false |
| 108 | HopperProtocolError | unreadable_output | execution_failure | never | false | |
| 109 | HopperRemoteError | diagnostic_type=remote | execution_failure | execution_failure | never | false |
| 110 | HopperRemoteError | diagnostic_type=authorization | execution_failure | unavailable | change_first | false |
| 111 | HopperRemoteError | diagnostic_type=invalid_request | invalid_request | invalid_input | change_first | false |
| 112 | HopperRemoteError | diagnostic_type=selector_not_found | invalid_request | invalid_input | change_first | false |
| 113 | HopperRemoteError | diagnostic_type=capability_unavailable | execution_failure | execution_failure | never | false |
| 114 | HopperRemoteError | diagnostic_type=bridge_exception | execution_failure | execution_failure | never | false |
| 115 | HopperProcessError | provider_unavailable | unavailable | change_first | false | |
| 116 | HopperStartError | provider_unavailable | unavailable | same_call | true | |
| 117 | HopperStartError | Apple Events authorization denied, launch arguments not encodable, or another REA session owns the target | provider_unavailable | unavailable | change_first | false |