Infrastructure Patches — site-specific env overlays via patch registries#21
Draft
michael-herwig wants to merge 1 commit intomainfrom
Draft
Infrastructure Patches — site-specific env overlays via patch registries#21michael-herwig wants to merge 1 commit intomainfrom
michael-herwig wants to merge 1 commit intomainfrom
Conversation
…ency graph Design record for site-specific configuration via environment overlays using client-configured patch registries. Patches modeled as edges in the same dependency graph as evelynn's dependencies, composed via a single Kahn's topological sort.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Enterprise environments need to layer site-specific configuration (corporate certificates, proxy settings, registry mirrors) on top of third-party packages without forking or rebuilding them. Package publishers can't anticipate every consumer's infrastructure requirements.
Proposed Solution
A client-configured patch registry model: infrastructure operators maintain a separate OCI registry containing lightweight patch descriptors that map packages to companion config packages. When OCX installs or executes a patched package, it co-installs the companions and composes their environment variables on top.
Key design decisions:
Patchedges in the same DAG as evelynn'sDependencyedges, composed via a single Kahn's topological sort. No separate env composition phases.SSL_CERT_FILEpointing to the company CA bundle)Example
Status
Proposal / ADR only — no implementation yet. Looking for feedback on:
ConstantTrackerinfo vs. warn distinction)artifacts/symlink store for non-package OCI artifactsArtifacts
.claude/artifacts/adr_infrastructure_patches.md— full design record.claude/artifacts/research_infrastructure_patches_overlays.md— industry research (Nix overlays, Kustomize, OCI Referrers, Conda, Homebrew)