feat(errors): project fixed native and producer input allowances as typed refusals (#11623)

* feat(errors): project fixed native and producer input allowances as typed refusals

fixedNativeAllowance wrote its allowance and value only into the remediation
sentence, and fixedProducerInputAllowance put the byte count into the
allowance name. Both now build fixedAllowanceOptions with limit and unit, so
the native command output capture, PE resource metadata, Ghidra
installation-properties and artifact analysis input refusals project
details.refusal {kind: fixed_ceiling, allowance_kind, limit, unit}. The
fixed-ceiling remediation renders the value from those facts for every
ceiling that carries them.

Refs #10508

* test(errors): check the rendered allowance value, not its sentence
This commit is contained in:
morluto authored and GitHub committed 2026-11-16 08:39:18 +08:00
1 parent 3f4953bfae
commit d4a7c17b38
9 files changed
+36 -27

No files matched your search

+2 -1
View File
@@ -218,7 +218,8 @@ export const translateNativeCommandFailure = (
...fixedNativeAllowance(
"The native command output capture allowance",
"capture",
`${String(NATIVE_COMMAND_OUTPUT_BUDGET_BYTES)} bytes`,
NATIVE_COMMAND_OUTPUT_BUDGET_BYTES,
"bytes",
),
},
),