eou-foundry

Recursive governance for Executable Operating Units (EOUs) — installable
as a Claude Code plugin into any project that needs to turn messy human
workflows into structured, auditable, improvable operating units.
What an EOU is
An EOU is an operational hypothesis, not a prompt or a checklist:
Given inputs X, context Y, procedure Z, and validation tests T,
this unit should produce output O within acceptable risk R.
Every EOU uses faceted classification — no single vague type label decides
authority or risk:
function + target_object + automation_mode + authority_level + risk_level + lifecycle_stage
What the plugin provides
| Layer | What ships |
|---|
| Schemas | schemas/*.schema.yml — the contract (EOU, ECP, registry-entry, run-trace, no-trace-justification, candidate-set, incident, audit-report) |
| Engine artifacts (v0.5.0+) | engine/ — canonical, plugin-owned, app-inherited: constitution-defaults.yml, failure-taxonomy.yml, maturity-model.yml, refactoring-patterns.yml, runtime-contract.yml, governance.yml, plus 11 canonical meta-EOUs under engine/meta-eous/ |
| Engine theory | engine/{eou-contract, eou-foundry-v2, eou-system}.md |
| Governance rules | 7 rules covering classification, ECP requirement, recursive governance, no-self-approval, generating-EOU constraints, and constitutional reads |
| Skills | 11 Foundry skills (see Skills table below) |
| Templates | Constitution, registry, generic EOU, generating-EOU starters |
| Scaffolding | /eou-foundry:init creates a new application dir with a fresh foundry/ that inherits engine artifacts from the plugin |
| Validators | scripts/validate_foundry.py (full pipeline: constitution merge, registry, ECPs, regression, run traces, trace gate, candidate sets, activation evidence, maturity evidence, dependency DAG, engine artifacts, overrides) |
| Design docs | 6 dev-docs: foundations, architecture, doctrine, vocabulary principles, V6 design pulls, values over rules |
What the plugin does not provide
- Application-level engines. A book-workshop application using A2B
Engine V2.2 needs its own
engine/ docs and its own workshop-specific
skills/rules. The plugin governs the EOU contract; the application owns
its domain.
- Application state. The consuming project's
foundry/constitution.yml,
registry.yml, eous/, incidents/, audits/, runs/ are owned and
versioned by the application, not the plugin.
- Application-level ECPs. Changes to an application's own EOUs go
through that application's ECP cycle. Changes to the plugin go through
the plugin's ECP cycle in
self-evolution/.
Install
From the xiaolai marketplace (recommended):
# one-time, if you haven't already added the xiaolai marketplace:
claude plugin marketplace add xiaolai/claude-plugin-marketplace
# then in any project:
claude plugin install eou-foundry@xiaolai --scope project
From a local checkout (for plugin development):
claude plugin marketplace add /path/to/eou-foundry
claude plugin install eou-foundry@eou-foundry-local --scope project
Quick start
From a workspace directory:
/eou-foundry:init my-app
That creates ./my-app/foundry/ populated from the plugin's templates and
runs validate_foundry.py against it. The new app is its own git repo.
Skills
| Skill | Purpose |
|---|
/eou-foundry:generate-eou-candidates | Generate a ranked candidate EOU set from a messy workflow |
/eou-foundry:audit-candidate-eou-set | Audit a generated candidate set for boundary quality and minimality |
/eou-foundry:eou-specify | Convert an approved candidate into a formal EOU spec |
/eou-foundry:eou-audit | Audit an EOU spec against the schema (judgment-heavy) |
/eou-foundry:eou-validate | Validate the foundry's structural integrity (deterministic) |
/eou-foundry:eou-diagnose | Diagnose an EOU failure using the F-code taxonomy |
/eou-foundry:eou-refactor | Generate candidate refactor options (proposal-only) |
/eou-foundry:eou-promote | Evaluate whether an EOU can be promoted to the next maturity level (recommendation only) |
/eou-foundry:foundry-audit | Audit the consuming project's whole foundry/ system-wide |
/eou-foundry:ecp-propose | Draft a formal ECP from a diagnosed failure or refactor option |
/eou-foundry:generate-regression-cases | Convert incidents and audit failures into candidate regression cases |
v0.5.0 — Engine-reference architecture (ECP-0003)
Pre-v0.5.0, every scaffolded app carried snapshot copies of the engine
artifacts (failure taxonomy, maturity model, governance rules, etc.).
Apps drifted from the engine as the plugin evolved.