interplane.Get Omega
Read in your language

spark-connector

aien-dev/spark-connector

Brought by drakestapleton

branch main Branches Tags History

spark-connector / trust / README.md

67 lines · 3768 bytes Raw Blame History Rendered
1# What a community record proves
2
3The hub shows, for a published part revision R, "Ran again by N community runners: K agree".
4
5## What the record is
6
7Each counted machine is a registered key (P-256). The hub counted a key for R only when all of
8these held (docs/PROTOCOL.md; interplane-forge `community/20api.om`):
9
10- the key registered with a message signed by that key, and has not left;
11- the hub issued a job to that key, less than an hour before, naming R and the compiler
12 `3ad9f10f…` (the salvage pin, the compiler of the hub's own check);
13- the key signed a result naming that job, R, that compiler, and a binary hash, a stdout hash and
14 an exit outcome, and the signature verifies over every byte before the signature line;
15- it is the first counted result of that key for R (later ones are stored and never counted).
16
17N is the number of such keys. K is the size of the largest group of them that reported the same
18binary hash, stdout hash and exit outcome; D = N - K disagree.
19
20## What it proves, and under which assumption
21
22If at least one of the K agreeing keys is held by an honest operator whose runner was this
23repository's runner, unmodified, with `bin/omc` hashing to the pin (the runner checks it before
24every job), then on that machine: the source of R, compiled by that compiler inside the cell, gave
25a binary with that hash, and running it inside the cell on R's declared input wrote exactly those
26stdout bytes and ended with that outcome.
27
28When the agreeing result also equals the hub's own receipt for R (the page says so), the same bytes
29came back from Interplane's own check and from at least that one honest machine.
30
31## What it does not prove
32
33- Keys are free: one person can make any number of them. K says nothing about how many people or
34 independent machines took part, so a record is never called "verified" and never changes what the
35 hub's own check (the salvage receipt) means.
36- A dishonest key can sign any result. If every agreeing key is dishonest, the record proves
37 nothing about R.
38- A program that writes the same bytes everywhere is not thereby correct or safe beyond its one
39 declared example.
40- Hardware faults and a runner that was changed are indistinguishable from lies; the record shows
41 them as disagreements.
42
43## Disagreement
44
45D > 0 means at least one key reported different bytes. Either a machine misbehaved (a lie, a fault,
46a changed runner or compiler) or building and running R is not deterministic. The page shows the
47disagreement and does not present the part as reproduced; the developer view lists every key with
48its time, outcome and both hashes, and links each signed message, so anyone can check the
49signatures (the gate does it independently with OpenSSL).
50
51## What the volunteer trusts
52
53- The runner binary: its sha256 is printed by the join line and listed at
54 https://interplane.io/community/ and in `dist/SHA256SUMS`; it is rebuilt byte for byte from this
55 repository with the pinned compiler.
56- The job compiler `omc` (sha256 pinned and checked before every job), which runs only in the cell.
57- The Linux kernel's Landlock, seccomp and resource limits, as applied by Omega's `execpure`.
58
59The hub can only ask the runner to build and run published parts' declared examples. The runner
60checks that the record's SHA-256 is the revision the job names, so the hub cannot substitute other
61code without publishing it; a malicious published part is contained by the cell like any other.
62
63## The counting rule in Lean
64
65`Counting.lean` states and proves properties of the rule on a model (results in arrival order,
66first result per key and revision counted). See that file for the exact theorems and the
67verification record. The correspondence between the model and the Omega code is not proved.