/verification-foundation:deliverable-fidelity-enfrom verification-foundation
Checks whether the final document still carries what the analysis actually found. Takes the list of findings with their severities and the finished deliverable, runs a mechanical coverage check with a bundled zero-dependency script, then an LLM spot-check on the RED findings for tone-downgrading, and returns a deterministic verdict PASS / CONDITIONAL_PASS / FAIL from published weights and thresholds. An omitted RED finding blocks. The third axis of verification, next to citation checking (are the sources real) and adversarial review (does the thesis hold): this one asks whether the summary is faithful to the analysis. Jurisdiction-neutral. Use when: "does the summary cover everything", "did anything drop out of the executive summary", "fidelity check", "is the deliverable faithful", "check the memo against the findings" - before sending any document that summarises a longer analysis.
Ships in verification-foundation. 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.
Read when SKILL.md points to them; scripts run unread.
The dangerous failure is not a bad citation. It is a real finding that fell out of the summary. The analysis flagged a RED clause, the opinion runs to twelve pages, and the board summary does not mention that clause at all, because the model dropped it while "summarising". Every citation checks out, the thesis survives attack, and the deliverable still lies by omission.
Three separate axes of verification:
citation-extraction-en - do the cited sources exist and say what is claimed (truth).adversarial-legal-review-en - does the thesis survive attack (robustness).deliverable-fidelity-en - does the deliverable carry the analysis (fidelity).When a final document summarises a longer analysis: an opinion with an executive summary, a due-diligence memo with a risk table, a report with a conclusions section. Anywhere that shortening can lose a finding. Not needed for a short letter with no analysis-to-summary layer.
{
"findings": [
{ "id": "F1", "severity": "RED", "text": "liability cap conflicts with the mandatory statutory minimum", "resolution": "recommend deleting the cap" },
{ "id": "F2", "severity": "YELLOW", "text": "payment term of 60 days creates a cash-flow risk", "resolution": "" }
],
"deliverable": "<full text of the final document>"
}
Severities: RED, YELLOW, GREEN or INFO. resolution is optional and is checked separately:
a finding can be mentioned while the recommendation attached to it quietly disappears.
Mechanical check (the script, free of judgement):
node scripts/fidelity-check.mjs <task.json>
The script extracts the key terms of each finding, normalises them (case, whitespace, quotes,
dashes) and expands each term into its likely English surface forms (plural, -ies/-y,
-ed, -ing), then checks how many appear in the deliverable. Per finding: represented or
omitted. An omitted RED exits 1. Resolutions are checked too.
The engine deliberately expands rather than truncates. Cutting characters off a word is how the Polish counterpart absorbs inflection, but in English it manufactures false matches - "clause" truncated to "clau" would match "claustrophobia". A false match is the dangerous direction, because it silently passes an omitted RED finding.
LLM spot-check (judgement) - for the RED findings the script lists under
heaviest_for_llm_spotcheck (three at most), check not just that the words are present but
that the meaning survived. A RED finding can be mentioned and simultaneously defused -
"a point to consider" where the analysis said "void provision". No mechanical match catches
a downgrade of tone. Where there are no RED findings this step does not run; the script does
not escalate YELLOW.
Verdict - computed deterministically by the function below, never by general impression.
Three steps, always in this order:
Step A - critical conditions. Any one of these means FAIL, with no further arithmetic:
omitted_red non-empty, exit 1),red_resolutions_missing non-empty).Step B - weighted coverage score. Each finding carries a weight by severity:
| Severity | Weight |
|---|---|
| RED | 5 |
| YELLOW | 2 |
| GREEN / INFO | 1 |
score = sum of weights of represented findings / sum of weights of all findings.
A score below 0.85 means FAIL, even when no RED dropped out. Losing YELLOW findings
wholesale is still omission.
Step C - conditional threshold. Three or more omitted YELLOW findings cap the result at CONDITIONAL_PASS: the deliverable may go out only after a human decides, with the list of omitted findings attached. Otherwise PASS.
The weights and thresholds are published on purpose. An auditor can reconstruct the verdict from the numbers in the report alone, without asking the model to justify itself. That is the AI Act record-keeping requirement reduced to arithmetic.
## Deliverable fidelity: FAILED
Mechanical: 4/5 findings represented
- OMITTED (RED): F3 "contractual penalty with no upper limit" - BLOCKING, absent from deliverable
LLM spot-check (RED, max 3):
- F1 (RED) - faithfully carried
- F2 (RED) - PRESENT BUT DOWNGRADED: analysis said "void provision", deliverable says "a point to consider"
- F4 (YELLOW) - carried
Verdict function:
- Step A (critical): omitted RED F3 plus downgraded RED F2, so FAIL.
- Step B (for information): represented F1(5)+F2(5)+F4(2)+F5(1) over all F1..F5 (5+5+5+2+1)
= 13/18 = 0.72, below 0.85.
Verdict: FAIL - do not send. Add F3 to the summary and restore F2 to its actual weight.
It does no legal work and no legal judgement. It does not decide whether a finding was
correct, only whether it survived into the deliverable: a wrong finding faithfully carried
passes this check, and that is by design - correctness is the job of
adversarial-legal-review-en and citation-extraction-en. It does not rewrite the document,
does not rank findings, and does not invent severities; it consumes the severities you supply.
A PASS verdict means the analysis reached the page, never that the analysis was right.
The check runs locally on text you already hold. The script makes no network calls and writes
nothing outside the task file you point it at. Where the deliverable carries privileged or
client-identifying material and an external model is involved in the spot-check, run
privilege-preflight-en first.
A published verdict function with explicit weights makes the control reproducible by a third party from the report alone. Fidelity is the axis that catches a deliverable which is accurate in every sentence and still misleading in what it leaves out.
English counterpart of MateMatic's deliverable-fidelity-pl (Apache-2.0). Rebuilt rather than
translated, because the matching engine is language-dependent: the Polish version truncates
endings to absorb inflection, this one expands terms into surface forms. Rubric, verdict
function and thresholds are shared by design, so the two versions produce comparable verdicts.
These rules apply to every skill in this plugin, including where the skill itself is silent. They are copied into each skill, so they hold whether you install the whole plugin or a single skill.
If an error would pass without being stopped by layers 1-5, the fault is in the skill. Fix the tool, do not add a note. "This is not legal advice" stops no error and transfers no responsibility.
(GDPR Art. 6), (Case C-311/18, CJEU).[check on EUR-Lex].The tag sits next to the line it concerns. A case number that exists is not enough - check the content.
Nothing is sent, filed, signed or published before a qualified person checks and approves it. A skill output is a draft, not a finished document.
The verification foundation is jurisdiction-neutral - the method, not the substance of any one legal system. It connects to no external source (no MCP connectors) and makes no outbound calls of its own; what you type still goes to your configured model (see https://github.com/matematicsolutions/awesome-matematic-skills-en/blob/main/TRUST.md). Substance comes from separate plugins (eu-law-sources). Deep national law (e.g. Polish case law) lives in the Polish marketplace, by design.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
10 skills in this plugin
/adversarial-legal-review-enA red team for a high-stakes deliverable - takes a finished, high-stakes document (a legal opinion, a DD/M&A memo, a court/board submission, a recommendation) and runs an adversarial debate: a builder constructs the strongest version of the thesis, an attacker tears it apart with counter-arguments and contrary authority, a synthesizer reconciles, a verifier does a final check. Goal: find the weakness BEFORE your opponent, the court, or the client does. Cost-gated - for high-stakes work only, not every query (token-expensive). Use when: "attack this opinion", "red team", "devil's advocate for this document", "find the weaknesses", "stress-test the argument", "what will the other side say", "pre-mortem", "defend this thesis", "adversarial review", verifying a high-stakes deliverable before it goes out. English counterpart of adversarial-legal-review-pl (this version drops the Polish case-law layer and is jurisdiction-agnostic).
/citation-extraction-enExtracts the legal citations from an English-language text by pattern and rule, with no LLM in the extraction step, so the same text yields the same list every run - ECLI (CJEU and national), EU act identifiers (CELEX, Official Journal references, Regulation and Directive numbers), case names, and cited provisions (Article/section). It then normalises, deduplicates and resolves short references (ibid., id., supra, op. cit., the above-cited judgment) to their antecedent. The front end to verification: collect what is cited, then check it. Unusual or malformed citation formats can still be missed, so treat the output as a working list rather than a guarantee. Jurisdiction-neutral, EU-aware. Use when: "list every citation in this text", "what authorities are cited", "extract the provisions", "pull the case references", "what is cited here" - before verification or before sending.
npx claudepluginhub matematicsolutions/awesome-matematic-skills-en --plugin verification-foundation