# Receipt-to-claim match

A reusable skill the "Audit expense reports against policy" recipe pulls in. Add it once and every agent on the team can use it.

Confirm the receipt in Drive actually supports the claimed vendor,
amount, and date before any approval.

## Method
1. Locate the receipt file in `{{drive_folder}}` linked to the
   expense line.
2. Extract vendor, amount, and date from the receipt image or PDF.
3. Compare each field exactly against the claimed value in
   `{{expense_sheet}}`, recomputing the comparison independently
   rather than trusting a prior match flag.
4. Treat any mismatch, however small, as a failed match.
5. If no receipt is found, treat the line as unmatched, not as a
   pass.

## Rules
- Never approve a line where the receipt amount, vendor, or date
  differs from the claim, even slightly.
- A missing or unreadable receipt always fails the match — never
  assume it would have matched.
- Acceptable rounding tolerance for amount matching, if any (set on
  first run, then stored in memory).
- Never edit the claimed amount to match the receipt — flag the
  discrepancy instead.

## Output
A match result per line: `{line_id, receipt_found, matched,
mismatch_fields}`.
