dotfiles-agentsRepository
On this page

The vendoring rule — when third-party content may live in-tree

Governance rule. Provenance: backlog decision-6 (externals materialization = pinned-vendored-copy) + owner ruling 2026-08-04. This rule defines the minimum bar that gates the origin: vendored provenance class; decision-028 amendment and scripts/check_provenance.py enforcement are built under backlog task-10 and cite this document.

Readiness correction (2026-09-09): The former PPTX example failed the license requirement. Its authored replacement is documented in presentations replacement. Current-file replacement does not clear reachable historical copies; see the license inventory. The four-part bar below still applies.

The default: do not vendor

primitives-core/ is self-authored (ADR 0015). Third-party content is normally not copied in — it is either recorded by reference in ../externals.yaml (upstream

The minimum bar (all four must hold)

A body may be vendored only if a human can answer yes to all four:

  1. Composition, not convenience. We build on top of, wrap, or bundle the third-party body — we do not merely want to redistribute it. (If we only want to ship it as-is, that fails — see Excluded below.)
  2. In-tree is necessary. The composition cannot work through reference-only / install-from-upstream — the base bytes must be present in the tree for our layer or bundle to function or ship coherently.
  3. Pinnable + attributable. The upstream is a real repo with an immutable commit SHA to pin against, a license that permits vendoring, and a clear attribution target. A branch name, a missing license, or an unresolvable upstream fails the bar.
  4. Contract-ready. The entry will carry the full origin: vendored contract (below). If it can't, it isn't vendored.

Anything that fails the bar is not vendored: it is reference-only in externals.yaml, re-authored as first-party, or dropped.

Sanctioned scenarios

Two composition shapes are known to clear the bar (owner-ruled 2026-08-04). They are examples, not an exhaustive list — a new shape must still pass all four criteria above.

  1. Modification of an external — we compose our own layer on top of a third-party body and need that base in-tree for the layer to build on. This describes a composition shape, not permission: evidence that the exact upstream license permits redistribution is required independently. The former PPTX example did not meet that requirement.
  2. Bundle of homegrown + external — a plugin or bundle that must ship first-party and third-party pieces together as one coherent, self-contained unit, where splitting the third-party piece out to install-from-upstream would break the bundle's promise of working on install.

Excluded: re-hostable upstreams

If a third-party extender is installable directly from its upstream and we only want to catalog or redistribute it — with no composition on top — it does not get vendored. It is reference-only (externals.yaml, install-from-upstream). This is why decision-6 dropped the four plugin externals (frontend-design, code-simplifier, typescript-lsp, skill-creator): all install straight from anthropics/claude-plugins-official, and we compose nothing on top of them, so re-hosting them would be pure passthrough — the anti-pattern ADR 0015 forbids.

The origin: vendored contract

Every vendored body must carry, at minimum:

A vendored entry whose upstream later disappears is not deleted — it is reclassified disposition: orphaned and reviewed under task-11 (vendored-skill quality).

Relationship to other rules