# Field — Configuration Management

**Packet:** software-supply-chain-and-release-engineering · **Date:** 2026-07-24
**Grounds:** migrating `linux_migration/*` ops scripts into `scripts/ops/`, the
`/etc/jgwill` → `/etc/miadi` prefix move, and lockfile integrity discipline.

## Canonical concepts

- **Software Configuration Management (SCM).** Identify configuration items, control their
  change, and keep a single versioned source of truth (IEEE Std 828; Berczuk & Appleton,
  *Software Configuration Management Patterns*, 2003).
- **Configuration as code.** Operational config and deploy logic live *in version control,
  beside the artifact they configure* — reviewed, diffable, reproducible (Humble & Farley,
  *Continuous Delivery*, 2010, ch. on config management; Morris, *Infrastructure as Code*,
  2016).
- **Drift and provenance.** Configuration that lives outside VCS drifts silently and loses
  provenance; the lockfile is the *integrity record* of the resolved dependency graph.

## Key finding

The service's operational layer had three configuration smells, each a recognized
anti-pattern:

1. **Un-versioned deploy logic.** The lifecycle scripts lived only in an *untracked* folder
   of a *different* repo (`jgwill/gaia`, `linux_migration/`), disconnected from the code
   they operate. Fix: migrate into `scripts/ops/`, versioned with the app; leave the
   originals as frozen provenance.
2. **Personal-namespace coupling.** Service config sat in `/etc/jgwill/` — a personal drawer
   also holding unrelated secrets. Fix: a **product-scoped prefix** `/etc/miadi/`, portable
   across hosts and decoupled from any one person, with a resolver
   (`miadi-paths.sh`) that falls back to the legacy layout so cutover need not be atomic.
3. **Lockfile as leaked config.** A local `pnpm install` pulled an *untracked* workspace
   package into `pnpm-lock.yaml`; committing it would encode a reference that breaks every
   fresh clone. Fix: keep the lockfile out of unrelated commits — treat it as an integrity
   record, not a scratch file.

## Cautions

- A fallback resolver is a *migration aid*, not a resting state. Cutover (re-running the
  installer to write `/etc/miadi/*`) is a deliberate, separate act.
- Never let a convenience install mutate a shared integrity record (the lockfile) into a
  commit without inspecting the diff.

## Engineering implication (what this grounds)

Deploy logic and service config are configuration items: version them with the artifact,
scope them to the product, and protect the lockfile's integrity. `scripts/ops/README.md`
and `scripts/ops/AGENTS.md` make the contract legible to humans and agents.

## Lines worth carrying into voice chronicle

> The scripts that run the house should live in the house. Config in a stranger's attic is
> not configuration — it is a rumor.

## Sources

See `source-ledger.yaml` — `ieee-828`, `berczuk-appleton-2003`, `humble-farley-2010`,
`morris-2016`.
