---
name: undominated-receipt-drift
description: Fail a verification receipt whose recorded hashes no longer match the files it names.
license: MIT
metadata:
  author: Undominated.ai
  version: "1.0.0"
---

# Receipt drift

Use when a receipt is being treated as proof of the current files.

1. Every receipt file must still have the recorded sha256.
2. A missing file is a drift, not a pass.
3. An extra hash with no file is a drift.
4. The checker hashes the bytes it is given. It does not fetch them.

## Run the local check

```sh
python3 scripts/check.py examples/synthetic.json
python3 scripts/check.py /absolute/path/to/your-input.json
```

The bundled example is **synthetic**, not a market measurement. The script reads one local JSON file, prints JSON, and writes nothing. Python 3.10+; no dependencies.

Exit codes: `0` the supplied claim matches the rule; `1` review required; `2` invalid input. A pass is not publication permission.

## Input contract

`files` is an array of objects with `path`, `sha256` (64 hex characters) and `bytesHex` (even-length hex of the current file bytes).

## Deliverable and limits

Return each path whose current bytes do not match the receipt hash.

The user retains control over external actions. This skill does not install dependencies, spend API credits, modify production settings, or publish anything.
