/eou-foundry:eou-validatefrom eou-foundry
Validates structural integrity of Foundry schemas, registry entries, EOU specs, generating-EOU envelopes, and recursive-governance constraints. Produces a validation report without repairing violations.
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.
Validate the structural integrity of the EOU Foundry at foundry/.
${CLAUDE_PLUGIN_ROOT}/schemas/eou.schema.yml — the authoritative EOU spec schema${CLAUDE_PLUGIN_ROOT}/schemas/ecp.schema.yml — the authoritative ECP schemafoundry/constitution.ymlfoundry/registry.ymlStop and record a critical finding if:
${CLAUDE_PLUGIN_ROOT}/schemas/*.schema.yml is absent — validation cannot proceed without schemas.foundry/ directory does not exist in the working directory.Run each check in order. Record every violation — do not stop at first failure.
Verify all schema files in ${CLAUDE_PLUGIN_ROOT}/schemas/*.schema.yml exist. If any are absent, record a "schema file absent" critical finding and stop (cannot validate specs without schemas).
For each spec in foundry/eous/ and foundry/meta-eous/:
${CLAUDE_PLUGIN_ROOT}/schemas/eou.schema.yml required_top_level must be present.classification must include all six facets: function, target_object, automation_mode, authority_level, risk_level, lifecycle_stage.valid_* lists in ${CLAUDE_PLUGIN_ROOT}/schemas/eou.schema.yml).lifecycle_stage: active or pilot must have a registry entry in foundry/registry.yml.foundry/eous/ or foundry/meta-eous/.responsibility.executor must not equal responsibility.approver (self-approval violation).function: generate: generation_envelope.forbidden_outputs must include active_eou, approved_eou, and constitution_change.For each spec with function: generate:
generation_envelope.allowed_outputs must not include active_eou, approved_eou, or any variant of constitution_change.generation_envelope.default_status must be candidate.python3 "${CLAUDE_PLUGIN_ROOT}/scripts/validate_foundry.py"
Include the output in the validation report.
Write the validation report to foundry/audits/validation/{YYYYMMDD}.validation.yml:
validation_date:
checks_run:
- check_name:
status: # pass | fail | skipped
findings:
- severity: # critical | high | medium | low
eou_id: # or "foundry-wide"
description:
required_fix:
summary:
total_findings:
by_severity: {critical: N, high: N, medium: N, low: N}
verdict: # PASS | FAIL | CONDITIONAL_PASS
foundry/, not a single EOU. Use $eou-audit to audit a specific EOU spec.low-severity finding: "No violations found; verify checks ran against all specs."Upstream: no specific input — runs against the whole foundry/ tree. Typically invoked before opening a PR or release.
Downstream: produces a validation report under foundry/audits/validation/. Failures may seed $eou-diagnose (if a structural failure traces to an EOU) or $eou-refactor.
Related: $eou-audit (sibling — judgment-heavy audit; this skill is mechanical/structural); $foundry-audit (sibling — system-wide, includes vocabulary and governance drift).
Pipeline: pre-release | pre-PR → eou-validate → (failures) eou-diagnose | eou-refactor
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub xiaolai/eou-foundry --plugin eou-foundry13 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).Other plugins' skills for the same job