# HTTP6 synthetic Python reference example

This example uses the public Python SDK adapter, a local Go pilot, and the precompiled WASIX 02 demonstration guests. It contains no proprietary circuit-generation source and does not reimplement the circuit. The SDK repository supplies the compiled guests separately.

The example creates a fresh synthetic wallet fixture and uses no real account, payment network, or personal data. It checks an allowed request and its response evidence, an over-limit refusal observation, modified response and request evidence, the returned signed ledger chain, and one local wallet effect. It retains the new private fixture directory for inspection.

This is a single-host experimental example. Its trust pins come from the same local fixture; it does not prove independent operation, current authority, the newest ledger head, external settlement, production security, or an information-theoretic guarantee. A verified failure observation does not independently establish caller identity, policy correctness, or the state of an external effect.

## Prerequisites and licensing

- Python 3.10 or later.
- Go 1.23 or later with CGO and a working C compiler, to build the public pilot host.
- Wasmer 7.4.0 and a compatible Unix-like environment.
- A checkout of the public HTTP6 SDK at the revision below, including its compiled demonstration guests.

Review the [compiled circuit notice](https://github.com/HTTP6-ORG/http6-sdk/blob/6e37a6b015ddb6612d82597a4870dd5884758fe3/circuits/NOTICE.md). The applicable notice explains how nonprofit organizations, private entities, and commercial users can request permission. This example does not grant a circuit license.

## Run a fresh fixture

Choose new paths whose parent directories already exist. The assembly script and this example refuse to reuse existing output directories. The example writes generated fixture keys and evidence under its private output directory. Keep that directory private and remove it only when you no longer need its records.

```sh
git clone https://github.com/HTTP6-ORG/http6-sdk.git
cd http6-sdk
git checkout 6e37a6b015ddb6612d82597a4870dd5884758fe3
./pilot/assemble-demo.sh /private/path/to/new-demo-bin
python3 /path/to/synthetic_reference.py \
  --sdk "$PWD" \
  --pilot /private/path/to/new-demo-bin/http6-pilot \
  --output /private/path/to/new-reference-run
```

The script checks the five guest hashes and the Python adapter hash from the documented SDK revision before starting the fixture. The pilot host is built locally from the SDK's public host source; operators must verify their checkout, toolchain, host binary, and environment according to their own policy. The script does not independently establish the trustworthiness of that host.

On success, the program prints a JSON summary and writes `summary.json` inside the new output directory. Its `state` directory contains synthetic fixture evidence and `agent.stderr.log` records pilot errors. A refusal or lost response is not general proof that an external effect did not occur. Do not automatically retry an uncertain real-world operation.

See the [HTTP6 reference example page](https://www.http6.org/developers/validation-kit/), the [SDK integration guide](https://www.http6.org/developers/sdk/multilanguage-sdks/), and the [SDK repository](https://github.com/HTTP6-ORG/http6-sdk) for the associated architecture and current notices.
