/eou-foundry:audit-candidate-eou-set CANDIDATE_SET_PATHfrom eou-foundry
Audits a candidate EOU set for boundary quality, minimality, overlap, authority, operational value, and governance risk before advancing to specification.
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 $path (a candidate-set artifact under foundry/self-evolution/candidate-sets/).
$path (required) — path to a candidate-set file at foundry/self-evolution/candidate-sets/cs-{generating_eou}-{YYYYMMDD}-{hhmm}.yml, produced by $generate-eou-candidates. Schema: ${CLAUDE_PLUGIN_ROOT}/schemas/candidate-set.schema.yml (ECP-0013).captured_workflow (optional, ECP-0017 / Rule 96) — when foundry/captured-workflows/cw-{app_id}.yml exists with all four human_approval gates populated, load it. The Set Value Coverage Test runs against its domain_values block.foundry/constitution.ymlfoundry/registry.yml${CLAUDE_PLUGIN_ROOT}/engine/governance.yml (plus the app's foundry/overrides/governance.yml, if present)${CLAUDE_PLUGIN_ROOT}/engine/meta-eous/audit-candidate-eou-set.ymlHalt and report before running tests if:
$path does not resolve to a readable YAML file.candidates array, or candidates is empty.foundry/constitution.yml or foundry/registry.yml does not exist — required for Authority and Non-Overlap tests.Run each test against every candidate in the set.
Each candidate must have one distinct success criterion. A candidate whose success criterion subsumes another candidate's fails this test. Flag candidates with compound or overlapping success criteria.
No candidate may duplicate an existing EOU in foundry/registry.yml or another candidate in this set. Check by purpose, target_object, and success criterion. Flag overlapping pairs and recommend merge or rejection.
Each candidate must fail the following substitution checks — if it passes any, it should be converted instead of created as an EOU:
Generating EOUs in the candidate set must not have authority_level set to approve, publish, or mutate_active. Flag candidates claiming more authority than write_candidate or write_inactive without constitutional justification.
Each candidate must satisfy at least one of:
prevents_failure: names a concrete failure mode it blocksimproves_decision: names a judgment it makes explicitexposes_hidden_judgment: surfaces an implicit step that is currently untrackedimproves_traceability: adds observable accountability to a previously opaque stepReject candidates that exist only for completeness or that duplicate the purpose of an existing artifact.
Each kept candidate must include arguments_against — the strongest case for not creating it. Candidates missing this field are not ready for specification.
If the candidate set includes EOUs that generate outputs, it must also include EOUs (or identify existing ones) for auditing and approving those outputs. A generation-only set without a corresponding audit path is incomplete.
Candidates touching finance, health, legal, safety, content about minors, public claims, publication, or active governance must have responsibility.approver set to a named human role and escalation.require_human_when non-empty. Flag candidates in these domains missing human ownership.
Skip if captured_workflow is not present or human_approval is incomplete.
For each domain_value of priority ≤ 3 in the loaded captured_workflow, verify that at least one candidate in minimal_recommended_subset operationalizes the value via its distinct_success_criterion. A value is operationalized when its id appears in the candidate's distinct_success_criterion text. Domain values that no surviving candidate operationalizes are unserved.
Emit findings in audit_outcome.notes of the form:
dv-001 (priority 1, 'Ingredient over technique') is unserved by minimal_recommended_subset; either add a candidate operationalizing it or revise the captured_workflow priority order."Unserved priority-1 values escalate the verdict to FAIL. Unserved priority-2 or priority-3 values escalate to REVISE.
| Verdict | Criteria |
|---|---|
| PASS | All candidates pass Boundary, Authority, and Operational Value tests. At most 1 Minimality finding per 5 candidates. High-Stakes test passes for every candidate whose target_object falls in finance, health, legal, safety, content about minors, public claims, publication, or active governance domains. |
| REVISE | 1–2 Minimality or Non-Overlap failures, no Authority or High-Stakes failures. Candidates can be revised without rejection. |
| FAIL | Any Authority or High-Stakes failure. More than 2 Minimality failures. Any candidate with an Authority level above write_inactive lacking constitutional justification. |
verdict: PASS if any Authority or High-Stakes test fails, regardless of other results.lifecycle_stage: active — that is the role of $eou-promote after human approval.arguments_against as required, not optional — candidates missing this field fail the Counter-Generation Test.$eou-specify.Write the audit report to foundry/audits/candidate-set-audits/{set_id}.audit.yml:
set_id:
audit_date:
verdict: # PASS | REVISE | FAIL
candidate_recommendations:
keep: # list of candidate IDs — pass all tests
merge: # list of (id_a, id_b, reason) pairs
defer: # list of (id, reason) — valid but out of scope
reject: # list of (id, reason) — fails tests
convert: # list of (id, convert_to: rule|validator|regression_case|stop_condition|checklist)
findings:
- candidate_id:
test:
severity: # critical | high | medium | low
description:
required_action:
required_revisions_before_specification:
- # list of changes needed before any candidate can proceed to eou-specify
Upstream: receives candidate-set artifacts produced by $generate-eou-candidates at foundry/self-evolution/candidate-sets/.
Downstream: PASS verdict feeds $eou-specify (one candidate at a time, after human review); FAIL verdict feeds back into $generate-eou-candidates with a tighter brief.
Related: $eou-audit (audits an EOU spec, not a candidate set); $foundry-audit (audits the whole Foundry, not one set).
Pipeline: generate-eou-candidates → audit-candidate-eou-set → human review → eou-specify
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub xiaolai/eou-foundry --plugin eou-foundry13 skills in this plugin
/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.Other plugins' skills for the same job