Innovation Blockchain

Documentation · Coston2 testnet prototype · invented data

Documentation Inspector kit

Inspector kit

One inspection is one folder. A read-only script captures each host, and three commands take the folder from the first step to the proof record. The kit handles no key, contacts no host and touches no chain.

One inspection with the inspector kit inspect new copies the schedule, draws the day’s code ibc-capture.sh on each host: serials, telemetry, time, code captures/ one file per host, hashed as captured findings.json the inspector’s own findings inspect build match, capture checks, ratings, result result/ report, proof record, evidence index coston2-job.sh posts the record through the machine inspect verify rebuilds from the evidence and compares code writes writes verified
One inspection with the inspector kit. One inspection is one folder. Three commands and one script take it from the first step to the proof record.
The same flow in words
  1. inspect new starts the job folder: the schedule, an empty findings file, the capture script and a code for this inspection.
  2. On each GPU host the capture script runs read-only queries and writes one file with the serial numbers, a telemetry snapshot, the time and the code.
  3. The capture files go into the job’s captures/ folder. The inspector enters findings in findings.json.
  4. inspect build matches serials to the schedule, checks each capture, rates every exception and writes the report, the proof record and the evidence index.
  5. inspect verify rebuilds everything from the evidence files and says whether the hashes still hold.
  6. coston2-job.sh posts the record to the Coston2 testnet, and refuses a job that does not verify.

Quick start#

Try it on the invented sample job. It needs Node 22 or later and nothing else.

cd prototype/collector
npm run -s sample-job
open build-output/job-demo/result/report.html

The sample builds to PASS with 16 of 16 units matched, and verify confirms every hash.

Note. Keep real jobs outside the repository. A real job folder holds a client's schedule and serial numbers, which must never be committed.

Start a job#

node src/inspect.mjs new <job-folder> --schedule <file> --type F|Q|E --date YYYY-MM-DD [--inspector <id>]

It copies the collateral schedule into the folder, writes an empty findings file, copies the capture script in, and draws the code of this inspection: 16 hex characters.

The code is not a key and signs nothing. The inspector gives it out on the day, and each capture carries it, so a capture made before the inspection cannot be passed off as today's.

Engagement typeMeaningValid for (proposed)
FFunding inspection90 days
QPeriodic re-verification90 days plus 14 days' grace
EEvent inspection90 days, a placeholder

Capture each host#

sh ibc-capture.sh <code> [output-folder]

Run it in a session the inspector controls or watches. It writes one file, <host>.ibc-capture.txt, and prints that file's SHA-256, which the inspector notes at once.

SectionCommandUsed for
identitynvidia-smi --query-gpu=index,serial,uuid,name,vbios_version,driver_version --format=csvThe serial match
telemetrynvidia-smi --query-gpu=index,serial,utilization.gpu,memory.used,temperature.gpu,power.draw --format=csvRecorded per matched unit. Not rated
dcgmdcgmi discovery -lKept as evidence. Not parsed
systemuname -srmKept as evidence

The script only reads. It changes no setting, installs nothing, needs no root and opens no network connection. A tool that is not installed is recorded as such, and the capture goes on. It never overwrites a capture.

Build the report#

node src/inspect.mjs build <job-folder>

It matches the serial numbers read from the hosts to the schedule, checks every capture, rates each exception, and writes the result folder. See Report and proof record for what is in it.

Exceptions from the serial match#

TypeMeaning
MISSINGOn the schedule, not read from any host
EXTRARead from a host, not on the schedule
DUPLICATE_IN_SCHEDULEThe same serial on two or more schedule lines
DUPLICATE_IN_READThe same serial read more than once
UNREADABLEA GPU reported no serial, or a line could not be parsed
MODEL_MISMATCHThe serial matches, but the model differs

An exception that no finding explains becomes a Red finding. The inspector can explain one in the findings file; a warranty replacement not yet on the schedule is Amber in the standard.

Problems with a capture#

Each is a Red finding, because a read that cannot be relied on means the collateral cannot be verified.

CodeMeaning
NONCE_MISMATCHThe capture carries another code than this job's
DATE_MISMATCHThe capture time is more than one day from the inspection date
TRUNCATEDThe file has no end marker
NO_IDENTITY, IDENTITY_FAILEDThe identity query is missing, was cut off, or ended with an error
NO_HOST, NO_TIMEThe header lacks the host or a readable time

The overall result#

Open findingsResult
Any RedFAIL
Amber onlyPASS_WITH_EXCEPTIONS
None, or Green onlyPASS

Verify a result#

node src/inspect.mjs verify <job-folder>

It re-hashes every evidence file, rebuilds the report from them, and compares with the result folder. It prints ok or DIFFERENT per item. It finds a changed capture, a changed schedule, a file added or removed, and an edited report. Anyone holding the job folder can run it.

Post it to Coston2#

prototype/e2e/coston2-job.sh <job-folder>

The driver posts the job's record through the test machine, after checking that verify holds. The owner runs it with his own test wallet. See Coston2 demo.

What a capture shows, and what it does not#

Not verified. The capture script has run only against a stand-in for nvidia-smi. It has not run on a host with a GPU, and DCGM output is captured but not parsed.