morluto
61b4ada453
fix(errors)!: split reader path refusals from malformed target bytes
...
ArtifactReaderFailure("format") covered two different facts: target
bytes that violate their format, and a selected path that is not a
regular file. The shared selected-file projections
(projectOwnedArtifactInputFailure and classifyProviderFailure's file
step) mapped both to invalid_request with an invalid_format path
issue, so corrupt BEAM files and PE certificate table bodies were
reported as caller argument errors.
Split the reason at its producers:
- Path-kind refusals now use the existing "path" selection reason:
regular-file admission, the stable root, directory, ZIP, ASAR and
PyInstaller entries, dyld inputs, the UEFI flash source and extract
occurrence selection. They stay invalid_request.
- The BEAM parser and the PE certificate table parser raise the format
owner's ParseFailureError (malformed or truncated, format "beam" or
"pe-certificate-table"). A short file that does not start with FOR1
is malformed, not truncated. A PKCS#7 name encoding the decoder does
not implement is unsupported, not malformed.
- Short reads inside an admitted range (kernel module, kernel build
config, ELF unwind ranges) are integrity read-coverage failures,
because the file changed during the read.
- Internal contract breaks (stream chunk size, a non-Buffer keyed
archive chunk) are invariant violations; an impossible descriptor
byte count is an I/O failure.
The shared projections now treat only "path" as a selection error.
They take the malformed-target facts from the reader failure's own
parseFailure, which artifactParseFailure sets once from the owner's
ParseFailureError and rebuilt failures keep through primaryFacts.
ArtifactOperationError carries the same facts, so inspect_artifact
refusals (for example Android boot images) now include
details.format_failure, format, offset and field. Android boot entry
planning raises the format owner's malformed failure, and the
redundant shortcut and API-contract format branches are removed.
BREAKING CHANGE: callers that parse `code` see unsupported_target
instead of invalid_request for malformed or truncated bytes from
inspect_erlang_beam and from the inspect_pe_certificates certificate
table body. Truncated reads of a file that changed during
inspect_kernel_module, inspect_kernel_build_config and
inspect_elf_unwind_ranges now report artifact_changed. inspect_artifact
malformed and truncated refusals gain details.format_failure and
details.format. Existing fields are unchanged.
2026-11-23 20:11:49 -05:00
..
2026-11-17 21:03:48 +08:00
2026-11-17 14:40:38 +00:00
2026-11-16 21:13:43 -05:00
2026-11-15 21:53:53 -05:00
2026-11-23 01:42:41 +00:00
2026-11-15 21:53:53 -05:00
2026-11-16 21:13:43 -05:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-17 18:48:24 -05:00
2026-11-17 18:48:24 -05:00
2026-11-15 21:53:53 -05:00
2026-11-19 05:37:00 +00:00
2026-11-23 00:29:37 +00:00
2026-11-15 21:53:53 -05:00
2026-11-16 10:39:23 +08:00
2026-11-15 21:53:53 -05:00
2026-11-21 09:23:26 +00:00
2026-11-15 21:53:53 -05:00
2026-11-23 20:11:49 -05:00
2026-11-15 21:51:18 +08:00
2026-11-15 21:53:53 -05:00
2026-11-22 10:14:53 +00:00
2026-11-22 20:25:44 -05:00
2026-11-23 01:42:41 +00:00
2026-11-24 00:44:40 +00:00
2026-11-21 09:15:18 +00:00
2026-11-15 21:51:18 +08:00
2026-11-16 04:49:19 +08:00
2026-11-16 06:28:01 +08:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:51:18 +08:00
2026-11-20 15:48:58 +00:00
2026-11-22 16:05:53 +08:00
2026-11-20 23:05:46 +00:00
2026-11-20 23:05:46 +00:00
2026-11-18 16:06:51 -05:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-22 20:41:11 -05:00
2026-11-21 00:47:31 -08:00
2026-11-15 21:53:53 -05:00
2026-11-21 13:33:44 +00:00
2026-11-21 12:20:56 -05:00
2026-11-21 17:25:33 +00:00
2026-11-21 18:14:25 -05:00
2026-11-21 18:14:25 -05:00
2026-11-09 22:56:44 +08:00
2026-11-15 22:28:05 -05:00
2026-11-22 11:01:35 +00:00
2026-11-22 11:01:19 +00:00
2026-11-10 05:26:28 -05:00
2026-11-18 10:04:06 -05:00
2026-11-11 04:10:44 -05:00
2026-11-22 13:27:03 -05:00
2026-11-10 05:26:28 -05:00
2026-11-10 05:26:28 -05:00
2026-11-14 14:59:49 +01:00
2026-11-15 21:53:53 -05:00
2026-11-22 17:56:50 +00:00
2026-11-21 20:39:31 +01:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-16 03:56:10 +08:00
2026-11-15 21:53:53 -05:00
2026-11-16 03:56:10 +08:00
2026-11-15 21:53:53 -05:00
2026-11-23 03:55:43 +00:00
2026-11-18 06:23:34 +08:00
2026-11-16 06:28:01 +08:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-18 07:00:09 +08:00
2026-11-17 18:48:24 -05:00
2026-11-23 03:48:37 +00:00
2026-11-18 10:49:22 -05:00
2026-11-18 10:49:22 -05:00
2026-11-23 02:33:17 +00:00
2026-11-21 06:40:39 +00:00
2026-11-16 09:48:52 +08:00
2026-11-22 14:00:41 +00:00
2026-11-23 13:40:29 -05:00
2026-11-15 21:53:53 -05:00
2026-11-14 04:08:37 -05:00
2026-11-16 06:18:49 +08:00
2026-11-17 10:04:46 +00:00
2026-11-22 13:37:28 +00:00
2026-11-16 06:28:01 +08:00
2026-11-21 03:08:49 +00:00
2026-11-22 14:59:04 +00:00
2026-11-17 08:19:52 +00:00
2026-11-24 00:44:40 +00:00
2026-11-09 21:42:53 +08:00
2026-11-20 08:44:13 -05:00
2026-11-23 02:44:42 +00:00
2026-11-17 18:48:24 -05:00
2026-11-20 08:44:13 -05:00
2026-11-15 22:03:37 +08:00
2026-11-16 06:28:01 +08:00
2026-11-23 03:17:51 +00:00
2026-11-16 03:56:10 +08:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-18 12:32:34 +08:00
2026-11-15 21:53:53 -05:00
2026-11-23 20:11:49 -05:00
2026-11-16 06:28:01 +08:00
2026-11-15 21:51:18 +08:00
2026-11-15 21:51:18 +08:00
2026-11-16 03:56:10 +08:00
2026-11-22 18:39:19 +00:00
2026-11-22 13:27:03 -05:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-22 04:01:42 +00:00
2026-11-22 16:30:29 +08:00
2026-11-22 15:42:02 +08:00
2026-11-15 21:53:53 -05:00
2026-11-16 06:28:01 +08:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-18 06:39:40 +08:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:51:18 +08:00
2026-11-15 21:53:53 -05:00
2026-11-23 01:42:41 +00:00
2026-11-19 23:22:53 -05:00
2026-11-23 02:28:45 +00:00
2026-11-10 15:32:41 -05:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-22 13:19:31 +00:00
2026-11-22 13:19:31 +00:00
2026-11-22 13:19:31 +00:00
2026-11-22 13:19:31 +00:00
2026-11-20 13:44:28 +00:00
2026-11-23 03:55:43 +00:00
2026-11-15 21:53:53 -05:00
2026-11-19 23:22:53 -05:00
2026-11-21 06:40:39 +00:00
2026-11-15 21:51:18 +08:00
2026-11-14 05:27:07 +08:00
2026-11-15 21:51:18 +08:00
2026-11-20 20:11:03 +00:00
2026-11-20 16:51:10 -05:00
2026-11-16 03:56:10 +08:00
2026-11-14 19:28:38 +08:00
2026-11-23 23:24:46 +00:00
2026-11-18 16:06:51 -05:00
2026-11-15 20:06:47 +08:00
2026-11-20 01:29:50 +00:00
2026-11-19 23:22:53 -05:00
2026-11-15 21:51:18 +08:00
2026-11-18 16:06:51 -05:00
2026-11-14 19:28:38 +08:00
2026-11-18 16:06:51 -05:00
2026-11-15 21:53:53 -05:00
2026-11-22 08:41:08 -05:00
2026-11-23 07:14:32 +00:00
2026-11-18 17:09:44 +08:00
2026-11-22 04:08:28 +00:00
2026-11-22 04:26:57 +00:00
2026-11-22 09:55:47 +00:00
2026-11-16 06:40:11 +01:00
2026-11-15 21:53:53 -05:00
2026-11-15 17:00:24 +08:00
2026-11-16 08:08:38 +08:00
2026-11-21 00:23:51 -05:00
2026-11-22 08:59:14 -05:00
2026-11-15 21:53:53 -05:00
2026-11-19 23:22:53 -05:00
2026-11-16 04:49:19 +08:00
2026-11-15 10:13:02 -05:00
2026-11-14 11:47:55 +08:00
2026-11-24 00:08:10 +08:00
2026-11-15 21:51:18 +08:00
2026-11-14 13:21:13 +08:00
2026-11-14 13:21:13 +08:00
2026-11-14 04:08:37 -05:00
2026-11-15 21:53:53 -05:00
2026-11-18 03:51:30 -05:00
2026-11-15 21:51:18 +08:00
2026-11-14 11:47:55 +08:00
2026-11-16 03:56:10 +08:00
2026-11-16 05:01:36 +08:00
2026-11-23 01:18:06 -05:00
2026-11-16 06:38:13 -05:00
2026-11-22 15:42:02 +08:00
2026-11-15 21:53:53 -05:00
2026-11-20 17:58:27 -05:00
2026-11-23 00:58:01 -05:00
2026-11-16 06:28:01 +08:00
2026-11-16 07:55:43 +08:00
2026-11-15 21:51:18 +08:00
2026-11-16 06:28:01 +08:00
2026-11-19 19:03:27 +00:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-22 11:42:13 +00:00
2026-11-22 01:23:35 +00:00
2026-11-18 06:59:02 +08:00
2026-11-21 21:28:49 +01:00
2026-11-15 21:53:53 -05:00
2026-11-22 00:31:34 +00:00
2026-11-16 06:28:01 +08:00
2026-11-15 23:55:31 +08:00
2026-11-15 21:51:18 +08:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-16 06:28:01 +08:00
2026-11-14 12:13:56 +01:00
2026-11-19 21:35:17 -05:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-16 06:28:01 +08:00
2026-11-15 21:53:53 -05:00
2026-11-16 03:22:24 +08:00
2026-11-16 06:28:01 +08:00
2026-11-22 15:41:50 +08:00
2026-11-16 03:56:10 +08:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-16 03:56:10 +08:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-05 00:19:50 +08:00
2026-11-22 20:23:50 -05:00
2026-11-14 05:27:07 +08:00
2026-11-15 21:53:53 -05:00
2026-11-22 12:37:14 +00:00
2026-11-23 19:36:23 -05:00
2026-11-11 13:13:09 +08:00
2026-11-19 23:03:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-17 08:19:52 +00:00
2026-11-16 10:59:18 +08:00
2026-11-22 00:12:16 +00:00
2026-11-20 08:24:46 -05:00
2026-11-15 21:53:53 -05:00
2026-11-22 20:51:44 -05:00
2026-11-17 18:48:24 -05:00
2026-11-22 16:38:17 +00:00
2026-11-16 06:28:01 +08:00
2026-11-23 01:42:41 +00:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-16 04:00:00 +08:00
2026-11-13 04:45:16 -05:00
2026-11-15 21:51:18 +08:00
2026-11-15 21:51:18 +08:00
2026-11-19 23:22:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-16 06:28:01 +08:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-20 08:44:13 -05:00
2026-11-22 01:09:10 +00:00
2026-11-22 01:09:10 +00:00
2026-11-22 21:55:40 +00:00
2026-11-15 21:53:53 -05:00
2026-11-24 00:27:11 +00:00
2026-11-24 00:44:40 +00:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-21 08:32:56 +00:00
2026-11-15 21:53:53 -05:00
2026-11-22 03:23:26 -05:00
2026-11-16 04:49:19 +08:00
2026-11-21 09:23:26 +00:00
2026-11-19 23:22:53 -05:00
2026-11-23 17:55:57 -05:00
2026-11-17 18:48:24 -05:00
2026-11-23 17:55:57 -05:00
2026-11-23 03:55:43 +00:00
2026-11-23 17:55:57 -05:00
2026-11-23 17:55:57 -05:00
2026-11-15 21:53:53 -05:00
2026-11-24 00:44:40 +00:00
2026-11-16 06:28:01 +08:00
2026-11-22 03:53:11 +00:00
2026-11-08 00:01:18 +08:00
2026-11-17 18:48:24 -05:00
2026-11-16 10:59:18 +08:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-16 04:49:19 +08:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-23 01:42:41 +00:00
2026-11-23 01:42:41 +00:00
2026-11-04 19:49:40 +08:00
2026-11-22 00:12:16 +00:00
2026-11-16 06:28:01 +08:00
2026-11-09 19:41:54 +08:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:51:18 +08:00
2026-11-13 10:11:06 -05:00
2026-11-15 21:51:18 +08:00
2026-11-22 00:43:59 +00:00
2026-11-16 04:49:19 +08:00
2026-11-17 18:48:24 -05:00
2026-11-19 23:22:53 -05:00
2026-11-17 18:48:24 -05:00
2026-11-16 05:31:37 +08:00
2026-11-22 01:33:13 +00:00
2026-11-15 21:53:53 -05:00
2026-11-22 15:42:02 +08:00
2026-11-22 01:01:01 +00:00
2026-11-15 21:51:18 +08:00
2026-11-15 21:51:18 +08:00
2026-11-15 21:51:18 +08:00
2026-11-19 06:35:08 -05:00
2026-11-24 00:44:40 +00:00
2026-11-22 09:35:41 -05:00
2026-11-15 21:53:53 -05:00
2026-11-16 07:04:34 +08:00
2026-11-21 06:02:44 -05:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-15 21:53:53 -05:00
2026-11-16 04:50:58 +08:00
2026-11-21 10:40:12 +00:00
2026-11-14 13:21:13 +08:00
2026-11-13 04:45:16 -05:00
2026-11-21 08:51:24 +00:00
2026-11-16 06:28:01 +08:00
2026-11-15 21:51:18 +08:00
2026-11-19 23:03:53 -05:00