Documentation Runner
Runner
An automatic container tests the prototype on a timer. Each cycle it runs the test suites, plays one invented inspection from start to finish, posts its record on Coston2, and publishes what happened.
See its output on Test activity.
The same flow in words
- A timer starts a cycle every two hours, while the computer the container lives on is awake.
- The runner runs the repository’s seven test suites as they are.
- It plays the next of ten scenarios: a whole invented inspection made with the inspector kit.
- It checks that the report follows from its evidence. If not, nothing is posted.
- It posts the record to its own registry with its own test wallet. This does not pass through Flare Confidential Compute.
- It reads what its vault does with a draw, and compares that with what the scenario said should happen.
- It writes the feed and uploads it to its own Cloudflare Pages project.
- The test activity page reads that feed in your browser.
What one cycle does#
- Test suites. Seven suites kept in the repository beside the code, run as they are: about 330 tests.
- One scenario. A whole inspection made with the inspector kit, then what the registry and the vault do with its record. Ten scenarios take turns.
- A look at the owner's demo. It reads, and only reads, the demo registry and vault.
- The feed. It writes one file with the results and uploads it.
The scenarios#
| Scenario | What should happen |
|---|---|
| Clean inspection, draw allowed | PASS on chain; the draw goes through |
| A unit was swapped, draw refused | FAIL; refused with ProofFailed |
| Swap explained as a warranty replacement | PASS_WITH_EXCEPTIONS; refused with ProofHasExceptions |
| A capture made before the inspection | FAIL although every serial matches |
| A host was not read | FAIL with 8 of 16 matched |
| A pass that goes stale by the clock | Allowed while fresh; refused with ProofStale afterwards |
| The same record sent twice | Refused with RecordAlreadyPosted |
| An older record after a newer one | Refused with OlderThanStoredRecord |
| A pass corrected to a fail the same day | The FAIL replaces the PASS and the vault shuts |
| Evidence changed after the report | The evidence check fails and nothing is sent |
Each scenario states what should happen before it runs. The feed records what did happen and whether the two agree. A scenario that does not go as expected is shown as such.
Two modes#
| Mode | Chain | Signs with |
|---|---|---|
| Coston2 | Flare's Coston2 testnet | The runner's own test wallet |
| Simulated | A chain inside the container, new every cycle | That chain's own test account |
On Coston2 the runner uses its own copy of the registry and the vault, for the invented facility fac-runner-0001. It has no rights over the owner's demo contracts.
Limit. The runner posts its records directly. They do not pass through Flare Confidential Compute and are not signed by a machine. The path through the extension is the Coston2 demo.
The runner's wallet#
This project's rule is that no key is stored and the owner sends every transaction himself. The runner is the one exception, chosen by the owner on 23 November 2026, and it is bounded:
- The wallet was made for the runner and is used for nothing else. It holds faucet test funds only.
- Its keystore and the keystore's password stay on the owner's computer, outside the repository, and reach the container read-only.
- The code knows two chains, Coston2 and its own simulated chain, and refuses to start on any other.
- Below 3 C2FLR the runner stops sending and says so in the feed.
Control#
./runner.sh start build the image and start the container
./runner.sh status is it running, in which mode, and its last lines
./runner.sh logs follow its output
./runner.sh once one cycle now
./runner.sh stop stop it
The container runs only while the computer it lives on is awake, so the run log has gaps.
The feed#
The feed is one public file. It holds the runner's settings and addresses, totals, the ten scenarios with their last result, the result of every suite, and the last 60 cycles with every step and transaction hash. It holds no key, password or token.
It is uploaded to its own hosting project, separate from the website's, so the runner can never replace or roll back a page of the site.
What the runner shows, and what it does not#
- It finds a regression. It does not show that the design is right: it tests the code against its author's own expectations.
- The hosts are stand-ins that answer with invented serial numbers. No real machine is read.
- In "a pass that goes stale by the clock" the record is valid for under a minute, so the change shows within one cycle. A real record is valid for weeks.