Documentation Operations
Operations
How the prototype is run day to day: the runner, the one file that states the facts, the publish command and its guard, the drivers the owner runs himself, and what only the owner can do by hand.
One rule under all of it. No tool and no agent in this project creates, reads, stores or prints a private key or a password, and nobody but the owner sends a transaction. The one bounded exception is the runner's throwaway test wallet. Everything is on Flare's Coston2 testnet.
A signed record is at the centre of what is run here. A signature shows who issued the record and that it was not changed. It does not show that the facts are true.
Who runs what#
| Thing | Run by | Attended |
|---|---|---|
| The runner container | Itself, on a timer, on the owner's computer | No. The owner starts, stops and rebuilds it |
| The Coston2 drivers | The owner, in his own terminal | Yes. Each asks for a keystore password |
| Signing a record | The inspector, in his own terminal | Yes |
| Publishing the website | The owner, or a session at his word | Yes. Each publish needs the owner's word |
| The runner's feed | The runner | No. A standing exception, for the feed file only |
| The docs build | Anyone with the repository | It only writes files |
The runner#
The runner is a Docker container named ibc-runner. One script controls it: prototype/runner/runner.sh, with start, status, logs, once, stop, setup-wallet and feed. The commands are on Runner.
- Interval. A cycle every 2 hours by default (
IBC_INTERVAL_MINUTES). - Memory. A Docker volume keeps the runner's memory: its deployments, its totals and its last 60 cycles.
stopkeeps it. - Mode. With the runner's wallet present it works on Coston2. Without it, it runs every scenario on a simulated chain inside the container and touches no real chain.
- Rebuild.
startagain after a code change rebuilds the image from the working copy and replaces the container. Until then the container runs the code it was built from. - Funds. Below 3 C2FLR the runner stops sending and says so in the feed. The owner refills the wallet from the Coston2 faucet by hand.
- Feed. Each cycle uploads
activity.jsonto the runner's own Cloudflare Pages project. That project is separate from the website's, so the runner cannot replace a page of the site.
State today: the running container was built before the signed record. It plays ten scenarios with unsigned records against the runner's v1 pair. The first cycle after a rebuild deploys a new registry v2 and vault, which costs two deployments in test funds.
The runner uses one wallet for every role. The multi-party testbed runs the roles as separate programs with separate accounts: it is run by hand, on a local chain only, and the runner's next image runs its tests without containers as one more suite.
The facts file#
prototype/facts.json is the one file that states the project's state: the chain, every public address, the dated Coston2 runs, the test counts as measured, and what has not been shown. It holds no key, password or token. Its date is 23 November 2026.
| Reader | What it takes | If the file is missing |
|---|---|---|
| The runner | The addresses of the owner's v1 demo contracts, which it only reads | It stops at its start and says so. The same if an address in it is malformed |
| These pages | Every address on Addresses and reference, the dated runs on Coston2 demo, the test counts and the runner's scenario count | The build stops with a message that names the file |
| The READMEs and the home page | The state paragraph | Kept in step by hand |
Nothing writes the facts file automatically. When the owner runs something on Coston2, the file is edited by hand, and then the docs are rebuilt:
cd website
node _tools/docs/build.mjs # write the pages from the sources and the facts file
node _tools/docs/build.mjs --check # write nothing; fail if a page on disk differs
node --test _tests/*.test.js # the website's tests
A test fails when a page on disk is not what a fresh build writes, when an address on the reference page is not in the facts file, or when the scenario count differs from the runner's code.
The publish command and its guard#
The website is published with one command, website/publish.sh, and only at the owner's word.
| Mode | What it does |
|---|---|
--check | Builds the docs into a temporary copy and fails if docs/ differs. Runs the tests. Changes nothing |
--stage | --check, then the guard, then copies the site to a staging folder beside the repository. Uploads nothing |
--deploy | --stage, then uploads, adds a line to PUBLISHED.log, and fetches three live pages to report their status |
The guard. More than one session edits and publishes the site, so the live site can be newer than a checkout. PUBLISHED.log holds one line per publish: commit id, UTC time, file count. Before anything is copied, the guard takes the commit on the last line, fetches from the live site every published file that commit held, and compares the bytes. If any file differs, someone else has published since, and the script stops. There is no flag to pass it.
--deployrefuses when the website folder has uncommitted changes, because the log records a commit and that commit must be what was uploaded.- The upload token is read from a file into the environment of the one upload process. It is never printed, put in an argument or written to a file.
- The guard does not see a file that someone else added to the live site and that the last published commit did not hold.
README.md,publish.sh,PUBLISHED.log,_tests/and_tools/are not published.
The attended drivers#
Each driver is a script the owner runs in his own terminal. Each asks for the keystore password, never sees a private key, and refuses any chain but Coston2. The signed-path driver also prints what it is about to send before each transaction.
| Driver | Contracts | What it does | State |
|---|---|---|---|
coston2-v2.sh | Registry v2, the signed path | Deploys the registry and the vault, signs one job's record with the inspector's keystore account, submits it, reads back, tries a draw and a repay | Built. Checked offline and on a local chain. Not yet run by the owner |
coston2-run.sh | Registry v1 | Stage A: deploys and registers the extension, starts the test machine, wires the gate | Run on 22 November 2026 |
coston2-demo.sh | Registry v1 | Stage B: the passing path and the failing path | Run on 22 November 2026 |
coston2-finish.sh | Registry v1 | Stage C: the stale path, in two runs about a day apart | Run 1: done 2026-11-23. Run 2: pending |
coston2-job.sh | Registry v1 | Posts the record of a job folder through the test machine | Checked offline. Not run on Coston2 when its notes were written |
Three of them have an offline test that runs the script against stand-ins for the tools, with no chain and no key: coston2-v2.sh, coston2-finish.sh and coston2-job.sh. The runner runs those tests every cycle. Details and results are on Coston2 demo.
What the owner must do by hand#
No tool does these.
| Task | How | State |
|---|---|---|
| Choose the inspector id | A decision | Not chosen |
| Make and hold the signing key | The owner creates a keystore account himself | Not created |
| Sign each record digest | cast wallet sign --account <inspector account> <record digest>, then inspect sign | No record signed with the owner's key |
| Publish the key id | The engagement letter, the report's signature block, and Keys | Nothing published |
| Deploy registry v2 and a vault on Coston2 | ./coston2-v2.sh | Not deployed by the owner yet |
| Read a record from the registry | cast call, as on Check a record yourself | Manual |
| Rotate a key, relay a revocation | cast send, as on Keys | Manual |
| Rebuild the runner after a code change | ./runner.sh start | The running container predates the signed record |
| Refill the runner's wallet | The Coston2 faucet | By hand when the feed says funds are low |
| Update the facts file and rebuild the docs | Edit prototype/facts.json, then run the build | By hand after each Coston2 run |
| Publish the site | ./publish.sh --deploy | At the owner's word each time |
| Dry-run the capture script on one real GPU host | Before any visit | Not done. No real host has been read |
| Take professional advice, set the fee, make the calls | See Pilot pack | The owner's own |
What is not automated, on purpose#
- No always-on test machine. The v1 demo's machine lived in Docker on the owner's computer and is started when a driver needs it.
- No script that reads a key from a file or prints one. The v1 Hardhat deploy path reads a key from an environment variable for one session; it is left as it is and is not used for the signed path.
- No transaction sent by anyone but the owner, the runner's test wallet excepted.