diff --git a/nulib/lib_provisioning/cmd/env.nu b/nulib/lib_provisioning/cmd/env.nu index ec6d9cf..e5f99b4 100644 --- a/nulib/lib_provisioning/cmd/env.nu +++ b/nulib/lib_provisioning/cmd/env.nu @@ -1,12 +1,9 @@ -export-env { - use ../config/accessor.nu * - use ../utils/logging.nu [is-debug-enabled] - use ./lib.nu check_env - check_env - $env.PROVISIONING_DEBUG = if (is-debug-enabled) { - true - } else { - false - } -} +# export-env block removed by ADR-025 Phase 3 blocker 4. +# The former block called check_env (a pre-flight gate) and set $env.PROVISIONING_DEBUG. +# Nobody imports cmd/env.nu directly; it was only reached via the star-import chain +# from lib_provisioning/mod.nu. With that chain being emptied, this block would +# never fire at CLI start anyway. Thin handlers that need the debug flag already +# set it explicitly via `if $debug { $env.PROVISIONING_DEBUG = true }` — and +# remaining reads like `if not $env.PROVISIONING_DEBUG { ... }` are gated upstream +# by the same flag. diff --git a/nulib/lib_provisioning/providers/registry.nu b/nulib/lib_provisioning/providers/registry.nu index e677fd5..f3d8213 100644 --- a/nulib/lib_provisioning/providers/registry.nu +++ b/nulib/lib_provisioning/providers/registry.nu @@ -270,7 +270,7 @@ export def refresh-provider-registry [] { init-provider-registry | ignore } -# Export environment setup -export-env { - $env.PROVIDER_REGISTRY_INITIALIZED = false -} +# export-env block removed by ADR-025 Phase 3 blocker 4. +# The former block set $env.PROVIDER_REGISTRY_INITIALIZED = false at module load time. +# Every read site uses `$env.PROVIDER_REGISTRY_INITIALIZED? | default false`, so the +# unset state is equivalent to false. Zero behaviour change.