Innovation Blockchain

Documentation · Coston2 testnet prototype · invented data

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#

ThingRun byAttended
The runner containerItself, on a timer, on the owner's computerNo. The owner starts, stops and rebuilds it
The Coston2 driversThe owner, in his own terminalYes. Each asks for a keystore password
Signing a recordThe inspector, in his own terminalYes
Publishing the websiteThe owner, or a session at his wordYes. Each publish needs the owner's word
The runner's feedThe runnerNo. A standing exception, for the feed file only
The docs buildAnyone with the repositoryIt 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.

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.

ReaderWhat it takesIf the file is missing
The runnerThe addresses of the owner's v1 demo contracts, which it only readsIt stops at its start and says so. The same if an address in it is malformed
These pagesEvery address on Addresses and reference, the dated runs on Coston2 demo, the test counts and the runner's scenario countThe build stops with a message that names the file
The READMEs and the home pageThe state paragraphKept 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.

ModeWhat it does
--checkBuilds 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.

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.

DriverContractsWhat it doesState
coston2-v2.shRegistry v2, the signed pathDeploys 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 repayBuilt. Checked offline and on a local chain. Not yet run by the owner
coston2-run.shRegistry v1Stage A: deploys and registers the extension, starts the test machine, wires the gateRun on 22 November 2026
coston2-demo.shRegistry v1Stage B: the passing path and the failing pathRun on 22 November 2026
coston2-finish.shRegistry v1Stage C: the stale path, in two runs about a day apartRun 1: done 2026-11-23. Run 2: pending
coston2-job.shRegistry v1Posts the record of a job folder through the test machineChecked 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.

TaskHowState
Choose the inspector idA decisionNot chosen
Make and hold the signing keyThe owner creates a keystore account himselfNot created
Sign each record digestcast wallet sign --account <inspector account> <record digest>, then inspect signNo record signed with the owner's key
Publish the key idThe engagement letter, the report's signature block, and KeysNothing published
Deploy registry v2 and a vault on Coston2./coston2-v2.shNot deployed by the owner yet
Read a record from the registrycast call, as on Check a record yourselfManual
Rotate a key, relay a revocationcast send, as on KeysManual
Rebuild the runner after a code change./runner.sh startThe running container predates the signed record
Refill the runner's walletThe Coston2 faucetBy hand when the feed says funds are low
Update the facts file and rebuild the docsEdit prototype/facts.json, then run the buildBy hand after each Coston2 run
Publish the site./publish.sh --deployAt the owner's word each time
Dry-run the capture script on one real GPU hostBefore any visitNot done. No real host has been read
Take professional advice, set the fee, make the callsSee Pilot packThe owner's own

What is not automated, on purpose#