# Sample verification

A reusable skill the "Index every signed contract, verified" recipe pulls in. Add it once and every agent on the team can use it.

Independently re-extract a random sample of contracts and certify the index's accuracy before publishing.

## Method
1. Randomly select {{sample_pct}}% of indexed contracts, without weighting toward any type.
2. Re-extract key terms for the sample with no access to the first pass's output.
3. Compare the two extractions field by field for each sampled contract.
4. Where both passes agree, mark the contract verified-by-sample.
5. Where they disagree, mark the contract disagreement-flagged rather than silently picking one value.
6. Compute the agreement rate across the sample and log it for trend tracking.

## Rules
- The re-extraction pass must have no visibility into the first pass's results.
- Disagreements are flagged, never resolved automatically by picking either pass.
- Default sample percentage (set on first run, then stored in memory; suggest 10%).
- A declining agreement rate across runs signals the extraction skill needs review, not the sample size.

## Output
A verification status per sampled contract, verified-by-sample or disagreement-flagged, plus an overall agreement-rate figure for the run summary.
