Select the explicit workspace transaction mode for a network boundary. Dry-run/reporting boundaries observe without mutation; every other selection reconciles safe drift and refuses unsafe states.
(dry_run: bool)
| 12 | /// Dry-run/reporting boundaries observe without mutation; every other |
| 13 | /// selection reconciles safe drift and refuses unsafe states. |
| 14 | pub(crate) fn boundary_mode(dry_run: bool) -> WorkspaceTxnMode { |
| 15 | if dry_run { |
| 16 | WorkspaceTxnMode::Observe |
| 17 | } else { |
| 18 | WorkspaceTxnMode::Reconcile |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | /// Enter a stable workspace transaction or convert remediation into one CLI refusal. |
| 23 | pub(crate) fn enter_workspace( |