---
name: verification-note
description: Draft a verification note from a Stratta project dossier, one section per question, every paragraph resting on a dossier entry and every gap written as a gap. Trigger phrases: "redige la note de verification", "note de verification", "prepare le rapport du dossier", "verification note".
---

# Verification note

Use this skill when the user asks for the verification note, the review report or the
summary of a Stratta project dossier. The note is what an engineer hands to a reviewer or
an insurer: it says what was retained, what it rests on, and what is still open. It never
says more than the dossier does.

## What to produce

A Markdown document, given back to the user, never written to the dossier. Its shape is
the one the server prints as PDF (the "Note de vérification" button on the dossier page),
so the two can be compared line by line:

1. A title with the dossier name and reference, the organization, the date and the
   dossier status.
2. One section per question, open questions first, then decided, then closed. Each
   section has these parts, in this order, in the language of the user:
   - **Contexte**: the question body and the options considered, the retained one marked.
   - **Exigence**: what the norm requires, from the `reference` entries, each with its
     citation `[CODE § path, p. N]` or `[attachment name, p. N]`.
   - **Preuves**: observations and hypotheses, with their confidence when set.
   - **Décision**: the decision entry, with the clause it rests on; or "close sans
     décision"; or a gap.
   - **Reste ouvert**: entries marked `to_confirm`, and what is missing to settle.
3. A section for the evidence not filed under any question.
4. An annex listing every clause cited, with the text read through `get_section` at the
   time of drafting, so the reviewer reads the norm and not a paraphrase.

## Rules

- Load the dossier first: `list_dossiers`, then `load_dossier`. Read its attachments
  (`list_attachments`, `read_attachment`) when a question rests on one.
- Every paragraph ends with the identifier of the entry it rests on, in the form
  `(#xxxxxx)` using the last six characters of the entry id. A paragraph with no entry
  behind it does not exist in this note.
- A missing requirement, decision or proof is written as `[À établir : …]` (or the
  equivalent in the user's language), never as a plausible sentence. The note is
  valuable because its gaps are visible.
- Quote the norm from a section you read in this conversation. Do not complete a clause
  from memory; if the clause is not in the corpus, say so in the gap.
- Do not conclude that a structure complies, and do not write a decision the dossier
  does not carry.
- End with the line: "Document préparé par un agent à partir du dossier Stratta, à
  valider et signer par l'ingénieur responsable."

## After drafting

Tell the user that the server can produce the same note as a PDF, hashed and timestamped
by a public authority, from the dossier page, and that the two should agree.
