Add captureDenials option to retain analyzed ETL traces
Description of the task
Add an optional boolean to processContainer.captureDenials that controls whether MXC deletes or preserves the sealed ETL trace after analysis.
Proposed API:
{
"processContainer": {
"captureDenials": {
"retainEtl": true
}
}
}
Expected behavior:
retainEtldefaults tofalse, preserving the current behavior of deleting the internal ETL after analysis.- When
true, keep the sealed ETL for diagnostics and report its actual path through capture output metadata and the CLI output pointer. - Apply the option consistently to all capture strategies, including native V2 capture and legacy WPR fallback.
- Preserve the ETL when analysis fails if retention was requested, so the trace remains available for troubleshooting.
- Continue treating cleanup failures as explicit errors when retention is disabled.
- Add wire/domain parsing, generated schema and SDK wire-type updates, documentation, and tests for default deletion, requested retention, analysis failure, and unique concurrent trace paths.
Additional context
The current BaseContainer capture flow always calls remove_internal_capture_file after decoding the trace. Retained ETLs may contain sensitive resource paths or identifiers, so documentation should note that callers are responsible for securing and deleting retained traces.
Triage complete.
Labels applied: OS-Windows, Container-Process, Area-SDK-Configuration, Area-Executor-Schema
Assigned: @jsidewhite, @mgudgin — this touches the AppContainer/BaseContainer capture flow, wire model, and SDK configuration.
Maintainers: Comment /investigate to check whether this issue or bug is valid against the most current code. Copilot will also produce a report with the changes that will be needed. For a small, unambiguous documentation or test fix, it may also create one draft PR.
Generated by 🏷️ Issue Triage for #772 · 22.1 AIC · ⌖ 5.58 AIC · ⊞ 6.7K · ◷