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-07 03:20:12 +00:00
2026-11-22 16:01:00 +08:00
2026-11-23 13:25:13 +00:00
2026-11-22 15:55:16 +08:00
2026-11-22 09:09:27 -05:00
2026-11-19 00:13:06 -05:00
2026-11-02 02:13:32 +08:00
2026-11-18 14:58:29 -05:00
2026-11-19 00:10:15 -05:00
2026-11-19 00:10:11 -05:00
2026-11-16 03:56:10 +08:00
2026-11-13 10:11:06 -05:00
2026-11-19 00:13:00 -05:00
2026-11-06 10:01:25 +08:00
2026-11-24 00:44:40 +00:00
2026-11-21 19:51:56 +01:00
2026-11-22 19:07:59 +00:00
2026-11-06 20:16:31 +08:00
2026-11-18 09:42:00 -05:00
2026-11-06 10:01:25 +08:00
2026-11-18 10:48:59 -05:00
2026-10-13 03:47:45 +08:00
2026-11-23 17:44:41 -05:00
2026-11-06 13:34:26 +08:00
2026-10-11 18:39:49 +08:00
2026-11-06 10:01:25 +08:00
2026-11-07 03:20:12 +00:00
2026-11-19 20:46:12 -05:00
2026-10-24 02:00:10 +08:00
2026-10-29 08:37:36 +08:00
2026-10-07 00:57:08 +08:00
2026-11-09 19:39:51 +08:00
2026-11-06 15:13:51 +08:00
2026-11-16 10:59:18 +08:00
2026-11-19 00:12:36 -05:00
2026-11-06 17:52:09 +08:00
2026-11-19 00:12:41 -05:00
2026-11-19 00:12:45 -05:00
2026-11-19 00:10:24 -05:00
2026-11-19 00:10:19 -05:00
2026-11-10 16:40:47 -05:00
2026-11-18 19:45:05 -05:00
2026-11-18 18:29:31 -05:00
2026-11-19 00:12:55 -05:00
2026-11-02 02:13:32 +08:00
2026-10-09 16:10:55 +08:00
2026-11-16 03:56:10 +08:00
2026-11-11 21:36:57 -05:00
2026-11-16 06:28:01 +08:00
2026-11-16 03:56:10 +08:00
2026-11-22 11:50:09 +00:00
2026-11-23 20:11:49 -05:00
2026-10-23 18:40:23 +08:00
2026-10-23 18:40:23 +08:00
2026-10-31 00:22:16 +08:00
2026-11-16 06:10:25 +08:00
2026-11-04 23:53:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 03:56:10 +08:00
2026-11-22 01:40:30 +00:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:56:10 +08:00
2026-10-19 14:32:48 +08:00
2026-11-13 10:11:06 -05:00
2026-11-16 04:20:40 +08:00
2026-11-16 10:59:18 +08:00
2026-10-24 05:08:24 +08:00
2026-11-02 02:52:20 +08:00
2026-10-18 03:22:29 +08:00
2026-11-13 10:11:06 -05:00
2026-11-13 06:17:22 -08:00
2026-10-24 03:11:07 +08:00
2026-10-25 05:09:26 +08:00
2026-11-19 05:08:14 +00:00
2026-11-15 21:53:53 -05:00
2026-11-19 05:08:14 +00:00
2026-11-16 05:31:37 +08:00
2026-11-13 10:11:06 -05:00
2026-10-07 12:25:37 +08:00
2026-11-13 04:45:16 -05:00
2026-11-15 19:39:33 +08:00
2026-11-17 18:48:24 -05:00
2026-11-18 07:31:37 +08:00
2026-11-06 20:16:31 +08:00
2026-10-28 11:34:28 +00:00
2026-11-16 03:56:10 +08:00
2026-11-18 07:00:09 +08:00
2026-11-22 12:58:38 -05:00
2026-11-15 13:45:19 +08:00
2026-11-20 17:54:30 +00:00
2026-11-23 03:55:43 +00:00
2026-11-13 10:11:06 -05:00
2026-11-22 11:01:35 +00:00
2026-11-16 03:56:10 +08:00
2026-10-07 20:00:24 +08:00
2026-10-11 05:33:05 +08:00
2026-10-11 08:27:46 +08:00
2026-11-19 00:10:11 -05:00
2026-11-18 09:42:00 -05:00
2026-10-21 18:26:58 +08:00
2026-11-16 06:38:13 -05:00
2026-11-12 19:24:54 -05:00
2026-11-02 02:13:32 +08:00
2026-10-28 05:05:21 +08:00
2026-11-02 02:13:32 +08:00
2026-10-28 07:51:03 +08:00
2026-10-28 07:51:03 +08:00
2026-10-22 14:15:35 +08:00
2026-10-29 16:14:05 +08:00
2026-11-14 04:08:37 -05:00
2026-10-25 15:06:27 +08:00
2026-10-28 23:18:22 +08:00
2026-10-22 00:43:30 +00:00
2026-11-17 18:48:24 -05:00
2026-11-16 06:28:01 +08:00
2026-11-19 05:08:14 +00:00
2026-11-13 10:11:06 -05:00
2026-11-16 14:19:12 -05:00
2026-11-21 14:10:15 +00:00
2026-11-21 19:47:52 +00:00
2026-11-21 19:41:41 +00:00
2026-10-12 12:37:00 +08:00
2026-11-21 19:41:41 +00:00
2026-11-15 19:54:17 +08:00
2026-11-15 14:49:33 +08:00
2026-11-15 16:57:29 +08:00
2026-11-15 16:57:29 +08:00
2026-11-15 16:57:29 +08:00
2026-11-22 15:38:01 +00:00
2026-11-15 13:54:20 +08:00
2026-11-22 15:38:01 +00:00
2026-10-25 05:09:26 +08:00
2026-10-10 01:49:54 +08:00
2026-10-10 03:52:35 +08:00
2026-10-12 22:35:55 +08:00
2026-11-13 04:45:16 -05:00
2026-11-16 06:28:01 +08:00
2026-10-14 08:28:14 +08:00
2026-10-06 16:53:33 +08:00
2026-11-19 11:41:37 +00:00
2026-11-16 00:04:05 +08:00
2026-10-23 02:30:06 +08:00
2026-11-12 19:24:54 -05:00
2026-11-22 03:47:15 +00:00
2026-10-23 06:11:21 +08:00
2026-11-22 12:22:36 +08:00
2026-11-16 10:59:18 +08:00
2026-10-29 22:54:58 +08:00
2026-11-10 17:03:59 -05:00
2026-10-30 18:29:18 +08:00
2026-10-07 23:16:48 +08:00
2026-10-23 05:58:16 +08:00
2026-11-12 19:24:54 -05:00
2026-10-09 06:51:53 +08:00
2026-10-25 08:29:20 +08:00
2026-10-13 12:59:22 +08:00
2026-10-23 02:26:58 +08:00
2026-10-15 12:15:55 +08:00
2026-11-23 23:27:12 +00:00
2026-10-15 12:15:55 +08:00
2026-10-09 18:39:19 +08:00
2026-10-24 03:00:07 +08:00
2026-10-13 21:44:08 +08:00
2026-11-10 16:47:10 -05:00
2026-11-15 17:00:24 +08:00
2026-11-20 17:58:27 -05:00
2026-11-22 16:49:26 +00:00
2026-11-20 17:58:27 -05:00
2026-11-11 17:39:19 +08:00
2026-11-14 04:08:37 -05:00
2026-11-19 20:49:33 +00:00
2026-11-16 03:56:10 +08:00
2026-11-10 16:47:10 -05:00
2026-10-24 02:56:59 +08:00
2026-10-13 22:15:43 +08:00
2026-10-20 17:25:19 +08:00
2026-11-16 05:16:56 +08:00
2026-10-24 06:24:55 +08:00
2026-10-09 00:09:55 +08:00
2026-10-27 08:55:34 +08:00
2026-11-10 16:47:10 -05:00
2026-11-13 06:17:43 -08:00
2026-10-20 17:25:19 +08:00
2026-11-12 19:24:54 -05:00
2026-10-16 06:06:00 +08:00
2026-11-23 01:21:54 +00:00
2026-10-24 06:24:55 +08:00
2026-11-14 14:28:08 +08:00
2026-11-15 17:25:31 +08:00
2026-10-24 23:49:25 +08:00
2026-11-12 19:24:54 -05:00
2026-10-12 04:07:14 +08:00
2026-11-12 19:24:54 -05:00
2026-11-15 20:18:45 +08:00
2026-11-01 00:15:28 +08:00
2026-10-24 08:22:14 +08:00
2026-10-26 22:20:00 +08:00
2026-10-23 23:02:07 +08:00
2026-10-24 03:11:07 +08:00
2026-10-21 17:51:24 +08:00
2026-10-12 23:12:10 +08:00
2026-11-16 04:49:19 +08:00
2026-11-16 04:38:58 +08:00
2026-11-17 19:58:40 +08:00
2026-11-19 00:10:06 -05:00
2026-10-25 07:31:42 +08:00
2026-11-16 13:56:34 +00:00
2026-11-19 06:08:59 -05:00
2026-11-06 13:23:13 +00:00
2026-11-16 06:45:42 +08:00
2026-11-16 06:45:42 +08:00
2026-11-19 03:49:34 -05:00
2026-11-16 06:45:42 +08:00
2026-11-19 11:19:07 +00:00
2026-11-22 01:01:01 +00:00
2026-11-15 18:26:13 +08:00
2026-11-14 05:36:23 +01:00
2026-11-08 16:39:20 +00:00
2026-10-27 21:24:30 +08:00
2026-11-16 04:27:07 +08:00
2026-11-15 21:53:53 -05:00
2026-11-22 00:31:34 +00:00
2026-11-16 03:56:10 +08:00
2026-11-16 21:27:46 -05:00
2026-10-21 23:32:07 -07:00
2026-11-18 09:42:00 -05:00
2026-11-24 00:27:11 +00:00
2026-11-16 08:40:43 +08:00
2026-10-20 09:48:52 +00:00
2026-10-27 06:43:53 +08:00
2026-11-15 09:52:48 +08:00
2026-11-15 17:25:31 +08:00
2026-11-23 03:00:10 +00:00
2026-11-11 17:39:19 +08:00
2026-11-11 17:39:19 +08:00
2026-11-15 19:37:10 +08:00
2026-11-19 11:25:23 -05:00
2026-11-11 14:10:25 +08:00
2026-10-24 01:00:14 +08:00
2026-11-06 19:09:18 +00:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:56:10 +08:00
2026-11-08 16:39:20 +00:00
2026-10-25 07:57:07 +08:00
2026-11-21 20:10:41 +00:00
2026-10-29 07:36:56 +08:00
2026-10-24 03:00:10 +08:00
2026-11-06 17:52:09 +08:00
2026-10-25 08:29:20 +08:00
2026-11-11 16:37:48 -05:00
2026-10-16 05:09:35 +08:00
2026-10-24 06:24:55 +08:00
2026-10-08 04:46:46 +08:00
2026-10-12 23:42:47 +08:00
2026-11-11 16:37:48 -05:00
2026-11-20 18:14:22 +00:00
2026-11-20 19:03:59 +00:00
2026-10-28 14:39:34 +00:00
2026-10-07 23:45:23 +08:00
2026-11-15 21:53:53 -05:00
2026-11-18 14:59:49 -05:00
2026-10-18 01:03:19 +08:00
2026-11-14 19:28:38 +08:00
2026-10-13 01:37:47 +08:00
2026-10-21 12:48:29 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 03:56:10 +08:00
2026-10-29 13:45:12 +08:00
2026-10-23 10:39:28 +00:00
2026-11-11 21:34:29 +08:00
2026-11-16 04:27:07 +08:00
2026-10-13 21:13:01 +08:00
2026-11-21 20:59:38 +01:00
2026-11-20 14:14:58 +00:00
2026-11-13 10:11:06 -05:00
2026-11-02 02:13:32 +08:00
2026-11-19 11:51:55 +00:00
2026-11-08 08:57:05 +08:00
2026-11-21 22:35:15 +00:00
2026-11-16 03:56:10 +08:00
2026-11-15 09:26:29 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 03:56:10 +08:00
2026-10-15 08:16:22 +08:00
2026-10-27 18:50:40 +08:00
2026-11-16 08:22:50 +08:00
2026-11-13 10:11:06 -05:00
2026-10-07 18:39:10 +08:00
2026-10-20 19:05:38 +08:00
2026-10-23 23:02:07 +08:00
2026-11-15 20:54:31 -05:00