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.
The same flow in words
inspect newstarts the job folder: the schedule, an empty findings file, the capture script and a code for this inspection.- 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.
- The capture files go into the job’s
captures/folder. The inspector enters findings infindings.json. inspect buildmatches serials to the schedule, checks each capture, rates every exception and writes the report, the proof record and the evidence index.inspect verifyrebuilds everything from the evidence files and says whether the hashes still hold.coston2-job.shposts 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 type | Meaning | Valid for (proposed) |
|---|---|---|
| F | Funding inspection | 90 days |
| Q | Periodic re-verification | 90 days plus 14 days' grace |
| E | Event inspection | 90 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.
| Section | Command | Used for |
|---|---|---|
identity | nvidia-smi --query-gpu=index,serial,uuid,name,vbios_version,driver_version --format=csv | The serial match |
telemetry | nvidia-smi --query-gpu=index,serial,utilization.gpu,memory.used,temperature.gpu,power.draw --format=csv | Recorded per matched unit. Not rated |
dcgm | dcgmi discovery -l | Kept as evidence. Not parsed |
system | uname -srm | Kept 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#
| Type | Meaning |
|---|---|
MISSING | On the schedule, not read from any host |
EXTRA | Read from a host, not on the schedule |
DUPLICATE_IN_SCHEDULE | The same serial on two or more schedule lines |
DUPLICATE_IN_READ | The same serial read more than once |
UNREADABLE | A GPU reported no serial, or a line could not be parsed |
MODEL_MISMATCH | The 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.
| Code | Meaning |
|---|---|
NONCE_MISMATCH | The capture carries another code than this job's |
DATE_MISMATCH | The capture time is more than one day from the inspection date |
TRUNCATED | The file has no end marker |
NO_IDENTITY, IDENTITY_FAILED | The identity query is missing, was cut off, or ended with an error |
NO_HOST, NO_TIME | The header lacks the host or a readable time |
The overall result#
| Open findings | Result |
|---|---|
| Any Red | FAIL |
| Amber only | PASS_WITH_EXCEPTIONS |
| None, or Green only | PASS |
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#
- It shows which devices answered on which host, at what time, after the code was given out.
- It does not show who owns the devices or where the host is. The standard covers that with a physical inspection and a written confirmation from the facility operator.
- Whoever controls the host can make it answer anything. The capture is only as good as the inspector's control or sight of the session.
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.