# Context-Layer — Software Supply-Chain & Release Engineering

**Date:** 2026-07-24 · **Method:** deep-research-foundations · **Repo:** jgwill/Miadi

## Shared language

| Term | Meaning in this packet |
|---|---|
| **Release-age cooldown / quarantine** | Refusing to resolve a package version until it is ≥ N minutes old (pnpm `minimumReleaseAge`, default 1440). |
| **Trust boundary** | The line between publishers/pipelines you control (first-party scopes) and those you do not (third-party deps). |
| **First-party scope** | An npm scope whose maintainers, registry credentials, and CI we own: `mia-co`, `@medicine-wheel/*`, `@miadi/*`. |
| **Fail-safe ordering** | Sequencing a deploy so a failure leaves the last known-good state serving. |
| **Configuration item** | Any versioned artifact whose change must be controlled — here, ops scripts, service config, the lockfile. |

## Fields in scope (MECE)

1. **Software Supply-Chain Security** — the cooldown, provenance, the scope-glob decision.
2. **Release Engineering & Continuous Delivery** — the guarded prod switch.
3. **Configuration Management** — versioning ops scripts, the `/etc/miadi` prefix, lockfile integrity.

Cross-cutting anchor: **fail-safe defaults & least privilege** (Saltzer & Schroeder, 1975)
grounds both gradeable contributions.

## Provenance & source-quality rules

- Prefer standards, primary sources, and peer-reviewed work; mark each source `verified:
  true|false`.
- Two facts were **live-verified this session**: pnpm's `minimumReleaseAge` default/behavior
  (via pnpm docs), and `@miadi/foundations` being unregistered on npm (registry E404).
- Academic anchors are training-knowledge references pending DOI confirmation.

## Repo placement & crosswalk

- Packet lives at `foundations/software-supply-chain-and-release-engineering/` (consumed here).
- Registered in the repo-root `foundations/source-ledger.yaml` crosswalk.
- Bundled for distribution by `@miadi/foundations` (packages/foundations).
- **Mighty Eagle / QMD:** eligible for registry crosswalk and QMD indexing; not yet federated.

## Related issues, specs, artifacts

- jgwill/Miadi#521 — release-age scope-glob + `scripts/ops/` layer (the work this grounds).
- jgwill/Miadi#520 — fresh-clone reproducibility (workspace pre-build + glob dep).
- jgwill/Miadi#515 — prod/dev switch mechanism + BUILD_ID gate.
- `scripts/ops/README.md`, `scripts/ops/AGENTS.md` — the operational contract.
- `@miadi/episodic-memory-schema` — shared provenance vocabulary (PROV-DM, OAIS).
