Do not take this site's word for it. This page fetches a real run ledger and checks it on your machine, with the same rule the project's own verifier uses.
The rule
Eachrecordcarriesthehashoftheonebefore
A run writes one line per event: a task finished, an event sent, a flag snapshot. Each line's hash is made from the previous line's hash and its own content. Change or remove any line and every hash after it stops matching.
The Merkle root is one number built from the hashes of every finished task. It is published with the results, so anyone holding the ledger can rebuild it and compare.
Check the rollout ledger
runs/rollout/ledger.jsonl, as committed: 13 finished tasks. About 708 KB to fetch. Nothing is sent anywhere.
Nothing has run yet. Press the button.
seq · kind · hash stored in the ledger · hash recomputed here
One task
Prove a single task is under the root
The root is one hash over every finished task. To show that one task is part of it you do not need the others: you need its hash and one neighbour per level of the tree. Pick a task, and this page climbs from its hash to the root in your browser.
Fetching the leaves…
Pick a task on the left. Its record, its hash and its path to the root appear here.
The full check
Thesamething,fromaclone
The browser check covers one small ledger. The repository's commands cover every run, and a second command recomputes every arm with Flagsmith's own flag-engine.
shell
git clone https://github.com/Prashant-thakur77/fork-in-the-bill.git && cd fork-in-the-bill && uv sync
# hash chain and Merkle root of one run
uv run python -m integrity.verify_ledger runs/rollout
uv run python -m integrity.verify_ledger runs/exp1
# every recorded arm, recomputed offline from the saved environment
uv run python -m integrity.verify_assignment --run runs/exp1
The browser code is board/web/src/site/ledger.ts. A test runs it against the Python verifier's output on this ledger. Numbers are re-printed the way Python prints them, so the bytes that are hashed are the same.
Pilot roots recomputed from runs/pilot-*/ledger.jsonl at build time, with the same rule as integrity/merkle.py.
Verifyityourself
From a fresh clone, with Python and uv installed.
shell
git clone https://github.com/Prashant-thakur77/fork-in-the-bill.git
cd fork-in-the-bill
uv sync
sha256sum -c prereg/HASHES.txt
uv run python -m integrity.verify_ledger runs/pilot-control
uv run python -m integrity.verify_ledger runs/pilot-lanes_v1
make verify # every committed run: ledgers, roots, assignments
verify_ledger prints the Merkle root. For the pilot runs it must match the receipt above. make verify runs the same checks over every committed run, and CI runs them on every push:
integrity/snapshot_env.py saves the Flagsmith environment document at the start of the run, every 15 minutes during it, and at the end. It removes the organisation and project names first, and it writes each snapshot's SHA-256 and a summary of the routing flags to the run's ledger. If the flag or the split changed mid-run, the snapshots would show it.
infra/flagsmith/ describes the flags, the lanes_v1 variant, the environment defaults and the experiment's segment override as Terraform, but it is only ever planned, never applied. An apply in the middle of a run would publish new feature-state versions on the flag the experiment is splitting, and could reset parts the provider cannot express (the variant key and the per-segment weights) that the CLI scripts set. So the scripts in flagsmith/ stay the only writers, and make flags-drift runs a read-only plan that must report no changes. Each check can be appended to the run's ledger as a config record with the plan's hash, so the ledger shows that the flag configuration matched the committed code during the run.
Thehashingrules
Short enough to re-implement. This site does, to print the pilot roots.