mirror of
https://github.com/morluto/rea.git
synced 2026-12-05 14:31:22 +00:00
* fix(artifacts): refuse an unusable extract_artifact output_root before scanning extract_artifact checked output_root only when it created the output tree, after scanning the whole archive and preparing its reader. A destination that already existed was refused there, and the refusal carried the archive's complete inventory as its partial observation: 1.7 MB of error text for a 2,000-entry ZIP. The read-only SafeOutputTree.checkDestination admission, which firmware and environment-bundle extraction already use, now runs before the archive is read. SafeOutputTree.create still rechecks and acquires the destination exclusively, so a destination that changes after the early check is still refused there. Refs #15326 * fix(artifacts)!: report a refused extract_artifact output_root as caller input A destination refusal on extract_artifact is now an input error on output_root, as firmware, UEFI, script and bundle export report theirs. Every destination refusal conforms to the input contract and names the fix instead of pointing at the schema. BREAKING CHANGE: extract_artifact reports a refused output_root as invalid_request with an issue at output_root (CLI: outputRoot) instead of artifact_operation_failed with reason path. Destination refusals of extract_firmware, UEFI extraction, export_web_scripts, export_environment_bundle, environment-export/build and desktop build exports no longer carry recovery.kind inspect_input_contract; read remediation.action and details.issues instead. Refs #15326 * test(artifacts): expect the caller-input refusal for a refused extract_artifact output_root The provider extraction boundary tests still asserted ArtifactOperationError reason path, the shape this change replaces; they now expect AnalysisInputError with an issue at output_root. * test(artifacts): prove extract_artifact refuses the destination before reading the source