dotfiles-agentsRepository
On this page

Amendment note (2026-09-09): Decision-6 and the vendoring rule add the qualified origin: vendored exception enforced by check_provenance.py. The original self-authored-only rationale is preserved below.

Decision 028 · primitives-core is self-authored only; externals by reference

The source tree holds homegrown primitives only — third-party material is a reference (externals.yaml), never a copy.

Context

The whole system depends on a clean provenance line: origin: authored (homegrown, edited here) vs origin: sourced (third-party, tracked elsewhere). Copying a third-party skill, agent, or hook body into primitives-core/ erases that line — the copy drifts silently from its upstream and becomes indistinguishable from authored work. This is the "wholesale passthrough" the composition principle forbids: this marketplace composes its own primitives, it does not re-host other people's.

decision-026 settles how externals are recorded (upstream + pinned ref, cloned at build). This decision settles the complementary placement invariant: what is allowed to live under primitives-core/ at all.

Decision

primitives-core/ holds self-authored primitives, with a narrow vendoring exception. Every roster entry whose source lives under primitives-core/ must be origin: authored or origin: vendored. Third-party material is normally recorded by reference in ../../externals.yaml (non-null upstream + ref) and never copied into the source tree.

Exception: origin: vendored entries — third-party bodies committed into the tree with full provenance record — are permitted only where a human can answer yes to all four criteria in ../vendoring-rule.md (composition, in-tree necessity, pinnable + attributable, contract-ready). This rule defines the minimum bar and two sanctioned scenarios.

scripts/check_provenance.py enforces this as a machine floor (make provenance, in make ci): invariant (1) is the placement rule above (no origin: sourced under primitives-core); invariant (2) is the externals-intent rule (every externals.yaml entry carries upstream + ref); invariant (3) enforces the vendored contract (every origin: vendored entry carries LICENSE, non-null upstream + immutable ref). The origin: sourced ⇒ non-null upstream+ref roster rule is enforced separately by check_roster.py.

Consequences

Affects

primitives-core/ (all bodies) · primitives-core.yaml (origin field) · externals.yaml · scripts/check_provenance.py · scripts/check_roster.py · primitives-core/README.md · CLAUDE.md · evals/ingest.py (promotion provenance).