refactor(platform/bootstrap): selective imports + drop 3 dead imports (ADR-025 L2)

bootstrap.nu had 5 star-imports. Body scan showed only 2 of the 5 files
contributed any used symbols:

  config/accessor.nu      -> config-get
  services/health.nu      -> wait-for-service

The other 3 files were imported with `use X *` but supplied zero used
symbols — dead imports inherited from an earlier architecture:

  utils/logging.nu       (0 used)   dropped
  services/lifecycle.nu  (0 used)   dropped
  services/dependencies.nu (0 used) dropped

All imports now use absolute paths from nulib/ root. Existing selective
imports (context_manager, setup/mod, nickel_processor) kept as-is and
promoted to absolute paths for consistency with ADR-025 rule.

Validation:
  nu --ide-check 50 platform/bootstrap.nu -> 0 errors

Refs: ADR-025, .coder/benchmarks/phase2-transitivity.md Layer 2
This commit is contained in:
Jesús Pérez 2026-04-17 08:01:04 +01:00
parent 4b95148324
commit e4fe2298f8
Signed by: jesus
GPG key ID: 9F243E355E0BC939

View file

@ -2,14 +2,15 @@
# Ensures critical platform services are running before executing provisioning tasks
# Infrastructure-agnostic: supports Docker, Kubernetes, remote servers, etc.
use ../config/accessor.nu *
use ../config/context_manager.nu [get-active-workspace]
use ../setup/mod.nu [get-config-base-path]
use ../utils/logging.nu *
use ../utils/nickel_processor.nu [ncl-eval-soft]
use ../services/health.nu *
use ../services/lifecycle.nu *
use ../services/dependencies.nu *
# Selective imports — absolute paths (ADR-025 Phase 3 Layer 2).
# 5 former star-imports reduced to 2 selective imports. The other 3
# (utils/logging.nu, services/lifecycle.nu, services/dependencies.nu) had
# zero used symbols in this file — they were dead imports.
use lib_provisioning/config/accessor/core.nu [config-get]
use lib_provisioning/config/context_manager.nu [get-active-workspace]
use lib_provisioning/setup/mod.nu [get-config-base-path]
use lib_provisioning/utils/nickel_processor.nu [ncl-eval-soft]
use lib_provisioning/services/health.nu [wait-for-service]
# Load service deployment configuration
def get-service-config [service_name: string] {