/eou-foundry:foundry-auditfrom eou-foundry
Audits the EOU Foundry system holistically: checks schema drift, self-approval risk, generation overreach, weakened validators, missing trace, orphan EOUs, and stale active EOUs without ECP history.
Ships in eou-foundry. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Audit the whole Foundry. Read all governance files first, then execute each check category in order.
foundry/constitution.yml — top-level invariantsfoundry/registry.yml — current EOU registration and lifecycle stages${CLAUDE_PLUGIN_ROOT}/engine/governance.yml (plus the app's foundry/overrides/governance.yml, if present) — approval authority and promotion rules${CLAUDE_PLUGIN_ROOT}/schemas/*.schema.yml — all schema files (authority for valid field names and values)foundry/eous/*.yml — all standard EOU specs${CLAUDE_PLUGIN_ROOT}/engine/meta-eous/*.yml — the engine's meta/generating EOU specs, plus any app-side foundry/meta-eous/*.ymlfoundry/self-evolution/ecp/implemented/ — approved and implemented ECPs (for check 6)Stop and record a critical finding before checks if:
foundry/constitution.yml does not exist — the Foundry is unconfigured.${CLAUDE_PLUGIN_ROOT}/schemas/eou.schema.yml does not exist — schema drift cannot be checked.Every EOU spec must declare all six facet fields: function, target_object, automation_mode, authority_level, risk_level, lifecycle_stage. Flag any spec with missing or placeholder values.
For each EOU with function: generate: verify generation_envelope.forbidden_outputs contains active_eou, approved_eou, and constitution_change. Flag any envelope that permits outputs outside its stated scope.
For each EOU: verify responsibility.executor ≠ responsibility.approver. A single role cannot both produce and approve outputs. Flag any EOU where this boundary is absent or ambiguous.
Every EOU in registry.yml with lifecycle_stage: active or pilot must have a corresponding spec file in foundry/eous/ or foundry/meta-eous/. Every spec file at those stages must be registered. Flag orphan specs and unregistered active EOUs.
Load each schema from ${CLAUDE_PLUGIN_ROOT}/schemas/*.schema.yml. For each active or pilot EOU spec, validate it against the schema. Flag missing required fields and type mismatches.
Any EOU spec that changed authority_level, blast_radius.forbidden_scope, or removed a validator must have a corresponding approved ECP. Determine prior state from versioning.changelog entries in the spec. Check foundry/self-evolution/ecp/implemented/ for the approved ECP. Flag spec changes with no matching implemented ECP.
For each active EOU: at least one regression fixture must exist in foundry/self-evolution/regression/cases/. Flag EOUs with zero regression coverage.
For each EOU: authority_level must match blast_radius.allowed_scope. An EOU with authority_level: write_candidate or lower must not have allowed_scope containing any of: foundry/constitution.yml, ${CLAUDE_PLUGIN_ROOT}/engine/governance.yml (plus the app's foundry/overrides/governance.yml, if present), foundry/registry.yml, foundry/self-evolution/ecp/implemented/, schemas/. Flag any mismatch between authority level and the governance files in the allowed scope.
For each EOU with risk_level: high or critical: escalation.require_human_when must be non-empty and responsibility.approver must be a named human role (not "Claude" or "script"). Flag violations.
For each EOU: purpose.statement must name a concrete failure prevented or decision improved — not a process description. Flag EOUs with purpose statements that describe what the EOU does without naming what failure it prevents.
Write the audit report to foundry/audits/foundry-audits/{YYYYMMDD}.foundry-audit.yml:
audit_date:
findings:
- check: # check category name
severity: # critical | high | medium | low
eou_id: # or "foundry-wide"
description: # what was found
required_fix: # specific change required
summary:
total_findings:
by_severity:
critical:
high:
medium:
low:
pass_rate: # checks passed / total checks
verdict: # PASS | FAIL | CONDITIONAL_PASS
skipped with a reason, not as pass.low-severity warning finding.Upstream: no specific input — audits the whole Foundry. Typically invoked at release milestones, after schema changes, or when portfolio bloat is suspected.
Downstream: produces a foundry-wide audit report under foundry/audits/foundry-audits/. Findings feed $eou-diagnose, $eou-refactor, or directly an ECP via $ecp-propose when policy gaps surface.
Related: $eou-audit (sibling — per-EOU); $eou-validate (sibling — structural-only); $audit-candidate-eou-set (sibling — candidate sets only).
Pipeline: release milestone | schema change → foundry-audit → (findings) eou-diagnose | eou-refactor | ecp-propose
What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/audit-candidate-eou-setAudit a generated candidate EOU set for boundary quality, minimality, overlap, authority, operational value, and governance risk before any candidate advances to specification./audit-judgmentAudit value_invocations in run traces for EOUs with classification.judgment_authorized:true. Verifies invocations against the captured_workflow's declared priority (no F15), checks for drift over multiple runs (no F16), detects hallucinated value ids (no F17), catches silent decisions on contested cases (F14), and runs counterfactual-swap audit as the V1 anti-theater defense./ecp-proposeCreate a formal EOU Change Proposal from a diagnosed failure or refactor option, capturing simulation, regression case, audit, and approval requirements per rule 92./eou-auditAudit an EOU spec — classification, authority, validators, failure modes, trace, blast radius, responsibility./eou-diagnoseDiagnose an EOU failure using the F-code taxonomy and recommend the smallest-blast-radius repair, producing either a diagnosis (path to $ecp-propose) or a no-change record./eou-promoteEvaluate whether an EOU should be promoted, deprecated, or retired based on evidence, maturity model, audits, run traces, and owner approval. Produces a recommendation only — does not execute any lifecycle transition (that is the role of activate/retire execution, which requires human approval).npx claudepluginhub xiaolai/eou-foundry --plugin eou-foundryOther plugins' skills for the same job