# SYNTHETIC DATA — Control Plane signed evidence sample

This is actual output from the Control Plane application in an isolated local test
harness, not from the website sandbox. The harness supplies synthetic identities,
a StubACN authority-service double and an in-memory payment connector. No money
moved, no production service was called and no customer data was used.

Source commit: b84cf87e6537955dc074b1a44b54860a5b1c638c
Format: theplus-signed-export/2
Entry points: POST /actions, GET /actions/evidence/export,
GET /actions/evidence/public-key (ASGI test client).

The unchanged product response contains one allowed synthetic payment decision.
The exporter reports one chain record checked and no truncation for this fixture.
Those are signed product assertions, not an independent chain check by this script.
The original JSON is unchanged; the synthetic context lives here and in provenance.json.

## Run the verification

Requires Python 3.10+ with venv/pip, plus the cryptography dependency pinned in
requirements.txt. Downloads and dependency installation require network access;
verification itself is offline. Replace the absolute path below with the directory
where you extracted the ZIP (no shell script or package executes automatically).

```sh
SAMPLE_DIR="/absolute/path/to/audit-sample"
python3 -m venv "$SAMPLE_DIR/venv"
"$SAMPLE_DIR/venv/bin/python" -m pip install -r "$SAMPLE_DIR/requirements.txt"
"$SAMPLE_DIR/venv/bin/python" "$SAMPLE_DIR/verify.py" "$SAMPLE_DIR/intact.json" "$SAMPLE_DIR/public-key.pem"
```

Expected: `VERIFIED: signed by ed25519:gBKSQwGEzi_7BLnU; 1 decisions, 0 ACN acknowledgements`
Exit code: 0.

```sh
"$SAMPLE_DIR/venv/bin/python" "$SAMPLE_DIR/verify.py" "$SAMPLE_DIR/altered.json" "$SAMPLE_DIR/public-key.pem"
```

Expected: `NOT VERIFIED: the payload does not match its recorded hash: it was altered after signing`
Exit code: 1. This is the intended negative control, not an installation failure.
Only the decision's outcome was changed to `allowed-by-forger`; its signatures were retained.

## What the result proves — and does not prove

- The script is copied byte-for-byte from the pinned product commit. It checks
  the Ed25519 signature and payload digest using the supplied public key. It also
  rejects unsupported formats, duplicate JSON keys and non-standard JSON numbers.
- A pass proves consistency with this demonstration key. The key is supplied in
  the same download, so it is NOT independently authenticated as a company or
  production key. In a real audit, obtain and compare the trusted public key
  through a separate channel. Replacing the bundle, key and verifier together
  defeats trust based only on this download.
- The signature covers `payload`. It does not independently validate the embedded
  hash chain, execution claims, timestamps, source provenance, envelope metadata,
  HMAC signature, event truth or completeness of the underlying database.
  Removing a row from this signed payload fails; that does not prove the exporter
  included every real event. An authorized signer can sign an incomplete export.
- This is a local application test with ACN and payment test doubles. It does not
  establish production reliability, real authority enforcement, delivery of a
  payment, customer results or regulatory certification.
- The source commit and file digests document provenance. They are not remote
  attestation that this checkout generated the file. IDs, timestamps and ephemeral
  signing keys change when the harness is rerun; fresh output is not byte-identical.
- No private key or credentials are distributed. Keep using synthetic inputs.

Public-key PEM SHA-256:
`c771b7c027a497161144b4d9e9aaaf17896a5c7c6a20618e64c39987920002f2`

See provenance.json for file digests, the source commit and adapter context.
