# Synthesis — Software Supply-Chain & Release Engineering

**Packet:** software-supply-chain-and-release-engineering · **Date:** 2026-07-24
**Method:** deep-research-foundations · **Verification:** mixed (see `source-ledger.yaml`)

This packet grounds a single session's work (jgwill/Miadi#521, #520, #515) in three
recognized fields and distils **two gradeable contributions** — small, transferable design
principles that outlive the specific fix.

## The two contributions

### 1. Trust-boundary-aware provenance-policy scoping

*A quarantine/provenance policy should key on the trust boundary it defends, not apply
uniformly.* pnpm's 24 h release-age cooldown is sound against untrusted third-party
publishers and pointless friction against the first-party scopes you publish yourself.
Excluding those scopes **by pattern** (not by version) preserves the protection where the
threat lives and removes the friction — and the near-daily manual-allowlist edit — where it
does not. (Fields: *Software Supply-Chain Security*, with *fail-safe defaults* /
least-privilege from Saltzer & Schroeder 1975.)

### 2. Fail-safe deployment state ordering

*Never mutate serving state ahead of a verified artifact.* Build while the current version
keeps serving; switch only once a completed, verifiable artifact exists. The anti-pattern —
stop the server and flip to prod mode *before* building — converts a build failure into a
human-recoverable outage. (Fields: *Release Engineering & Continuous Delivery*, with
*fail-safe defaults*, Saltzer & Schroeder 1975.)

Supporting both, from *Configuration Management*: deploy logic and service config are
configuration items — version them with the artifact, scope them to the product, protect the
lockfile's integrity.

## Structural tension resolved

| | |
|---|---|
| **Current reality (before)** | A default supply-chain cooldown blocked first-party daily deliveries; the fix was a manually-maintained per-version allowlist that rotted. Deploy logic lived un-versioned in another repo; the prod switch could strand an outage on build failure. |
| **Desired outcome** | Daily first-party deliveries flow through one command; the cooldown still guards third-party deps; deploy is fail-safe; the ops layer is versioned and product-scoped. |
| **What resolved it** | Scope-glob exclusion (trust boundary), `miadi-refresh.sh` (fail-safe ordering), `scripts/ops/` migration (configuration as code). |

## Engineering implications (actionable)

- Model any "cooldown / quarantine / auto-merge-delay" policy against an explicit trust
  boundary; exclude owned scopes by pattern; never glob a third-party namespace.
- In any deploy script, order: build → verify artifact → *then* mutate serving state; on
  failure, leave the last-good state serving.
- Keep operational scripts and service config in the repo, product-scoped; treat the
  lockfile as an integrity record.

## How this feeds Chronicle / Voice

Each field file carries a **"Lines worth carrying into voice chronicle"** block — speakable
formulations of the grounding, ready to open an episode or a `/voice` narration before the
session story begins.

## Provenance & audience

- **Audience:** engineers touching dependency policy or deploy scripts in Miadi / Mighty
  Eagle; stewards assessing whether a decision is academically sound; agents about to
  reintroduce a per-version pin (don't — see `software-supply-chain-security.md`).
- **Verification:** `pnpm-minimum-release-age` and the npm registry state were **live-verified
  this session**; the academic anchors are training-knowledge references (`verified: false`)
  — confirm DOIs before formal publication.
