Many nodes, one mesh, and nothing in the middle you have to trust
The foundation's nodes now run together as a mesh. Each node is its own program. They find each other through small relays that carry bytes and read nothing else. Work goes to the node whose answers check, and a node or relay that dies is routed around. A shared map stays the same everywhere, and when one node learns to refuse an attack, the whole mesh soon recognises it.
Every message is a LIGHT packet its sender signed. The node it is for checks it at its own door before reading a byte of it. So the relays, the network and every other node can be wrong, or hostile, and the worst they can do is fail to deliver.
Start here
If you want to see it work
- Start the mesh below. Six real foundation nodes start in your tab: two honest triage holders, one dishonest one, a scribe, and two askers. The founder signs a roster of them, and each node pins every member on it.
- Ask for triage a few times. Each ask goes to a holder of the skill, and each asker tries every holder once before it settles (the table marks the ones it has not tried). The answer's receipt is checked, and the asker's link to that holder grows if it checks and falls if it does not. When it does not, the asker keeps the dishonest holder's own signed answer as evidence and shares it; the other asker checks it for itself and counts it too.
- Kill relay A, then ask again. Everything goes through relay B. Now kill the holder the asks are going to (the log says which) and ask: the first ask to it is not answered, expires and counts as a failure, and that asker tells the others. They mark it quiet at once and send it a probe; when nothing answers, their links fall too, so their next asks go elsewhere without losing one. Bring it back: the relay hands it what it held while it was away, it answers the probes, and the others count it live again; its link has to be earned back.
- Write and sync. Write a key at one node, then sync. Every live node ends with the same map: the short code under each node is its map's fingerprint.
- Attack it. Have the stranger forge a packet at a1, then share what a1 learned, then send the same bytes to everyone. Every node now recognises them on sight. Try a variant.
- Drop a member. Have the founder sign a roster without the dishonest holder. Every node unpins it, and what it sends next stops at the sender.
- Read the receipt: the measured claims, re-judged in your tab from the receipt's own facts.
If you run the estate
The measured run is one command, and CI runs it on every push:
git clone https://github.com/sjgant80-hub/fall-kit && cd fall-kit node core/phase3/measure.mjs --check # starts 3 relays and up to 24 nodes as their own processes; same receipt, byte for byte node core/phase3c/measure.mjs --check # the fix (3b) and W4's fix (3c): Phase 3's scenario, both routings, on the node as it is now git worktree add .phase3b 2960fae && node .phase3b/core/phase3b/measure.mjs --check # Phase 3b's own receipt, on the node it measured
To put a node of yours on a mesh, start a relay and point nodes at it:
node core/relay-server.mjs 47301 # a relay on this machine node core/relay-server.mjs 47301 --host 0.0.0.0 # or one another device on your network can reach node core/phase3/cell.mjs 81 honest 47301 # a node: its seed, its role, the relays (port, or host:port) node core/phase3/cell.mjs 85 asker 192.168.1.20:47301 # a node on a second device
A second device is a door you open: the receipt measures one machine and two browser tabs, and does not claim more. The seeds above are public test seeds. A real node makes its own key, const id = await makeIdentity() (fresh from the platform's random source), keeps it as you keep any key, and starts with createNode({ identity: id, … }); its card is what the founder puts on the roster.
Run a mesh in this tab
| Asker | link to h1 | link to h2 | link to the dishonest one |
|---|---|---|---|
| Every link starts at 50%. | |||
These are the real organs (the relay, the roster, the node with its door, its antibodies and its shared map) running in your tab with public test keys. In the measured run each node and relay is its own process on local TCP; here the relays' frames are handed over in memory. Nothing leaves the page.
Want to see the dishonest holder caught? Ask for triage five or six times. Each asker tries every holder once, so the dishonest one is asked, its receipt does not check, and the asker shares the evidence: the other asker re-checks the liar's own signed answer and counts it as well, so the link falls at both. With two askers here it falls to 12.5%, still above the 5% floor; the measured mesh has four askers, and there it falls under the floor (W2, below). The tab runs the routing as it is now, Phase 3b's. Under Phase 3's routing the dishonest holder was never asked at all: that was J4.
A browser tab as a node (pass 5)
Open the WebRTC test as A and as B, in two tabs of one browser. The tabs find each other on this device and open a real WebRTC data channel through falllink, the estate's connection layer, with no STUN server, so nothing leaves the machine. Each tab runs a foundation node. A sends ten signed packets, then one with a byte changed and one sent twice, and B's door decides each.
Loading…
The first time X1 was run, the tabs announced themselves to each other for ever and never connected. falllink sent its offer as the browser's own session-description object, which a BroadcastChannel cannot copy, so no offer ever left the tab, and the half-made connection then blocked every retry. That was fixed in falllink itself, with tests that run it under the same rules as the browser and a mutation gate over the whole library (60 of 61 planted bugs caught; the one left can never behave differently, and says why). Then X1 was run again.
How it works
- Joining. The founder signs a roster: the card of every member. Each node reads it, checks the founder's signature and every card, and pins the members' keys. A card not on the roster is not pinned, however well it is signed. Pinning is the only way a node trusts anyone.
- Carrying. A node says hello to every relay it knows. To say something, it wraps a signed packet in a frame naming the recipient and hands it to the first relay that is up. The relay delivers it, or holds it for a node that is away and delivers it when that node says hello again.
- Routing. To ask for a skill, a node picks the holder its links rate highest. When an answer comes back, its receipt is re-checked. The link grows if it checks and falls if it does not. An ask nobody answers expires and counts as a failed answer, so a node that died is routed around.
- Sharing state. Each node keeps a copy of a shared map. A write is stamped with the writer's Lamport time and id. A sync carries a node's whole map as a signed packet, and the receiver merges it entry by entry: the later stamp wins, and the node id breaks a tie. Whatever order syncs arrive in, every copy ends the same. The kernel is fallsync's, gated in its own repository first, copied byte for byte.
- Sharing immunity. Every packet a door refuses becomes an antibody. A node can share its antibodies as a signed bundle. The receiver re-runs each one on its own door and adopts only those its own door also refuses, so one node's mistake cannot teach the others to refuse their own peers.
- One packet at a time. A node hears one packet at a time, in order. Found while going live: two packets heard at the same moment could both read a sender's old counter, and the lower could set it back, letting the higher be replayed. Hearing is now a queue, and a test holds it there.
The passes
Phase 3 builds one organ per pass, each with its own claims, all sealed together before any of the code.
| Pass | Organ | Claims | Status |
|---|---|---|---|
| Loading… | |||
The receipt
Loading the committed receipt…
| Claim | The claim, and what was measured |
|---|
The two that failed, J3 and J4, read plainly
Both come from one fact about the routing as built: each asker routes on its own evidence, and takes the best it knows. Nothing tells the mesh that a node is down, and nothing makes an asker try a holder it has never asked.
J3, the claim: a node that dies is routed around, with at most 2 asks going to it before every later one goes to a live holder.
Loading…
Why: each asker finds out on its own, by an ask of its own going unanswered, so with four askers four asks go to the dead node. The bar of 2 assumed the mesh would share that a node had died, and it does not.
Corrected before it was kept: the first build of this measurement killed h1, a holder no ask was going to, so J3 could not fail, and it "held". That was a fault in the measuring code, not in the claim. The run now kills the holder the asks are actually going to, and J3 fails.
J4, the claim: at every asker, the honest holder's link outgrows the dishonest one's, and the dishonest one's falls below the floor.
Loading…
Why: routing asks the holder its links rate highest. Every link starts equal, ties go by key order, and with these test keys both honest holders come first. Once they answered well, the dishonest holder was never the best choice again. It was never asked, so it did no harm, but the mesh never learned that it lies.
What it means for J2: J2 held, 64 of 64 triage asks to an honest holder after the first 20, but for the same reason. The routing never had to move away from a liar. A dishonest node that ranks first is caught on its first bad answer, as in Phase 1. One that ranks last is never used, and never exposed.
What fixed both, measured as new claims: a node's silence is now shared the way antibodies are, so one asker's expired ask warns the rest, and every asker tries every holder once. That is Phase 3b, below, sealed before its code and measured on this same scenario: 1 ask to the dead node instead of 4, and the dishonest link at 3.1% at every asker instead of 50%. Neither was patched in here: the receipt above is the one that was sealed, and Phase 3's measured run still asks for Phase 3's routing by name, so it reproduces as it was.
The hostile crowd (H2): sixteen nodes, every kind of packet the door refuses
| Kind | Sent | Admitted | Decoded | Named a variant | Where the doors stopped them |
|---|
Unpinned: signed by the hostile node's own key, which no member pinned. Forged: naming a member's sender slot, signed by the wrong key: variants of the forgery H1 taught. Junk: random bytes. Replayed: a real packet sent again to the node it was for. Changed: a real packet with one byte changed. "Recognised on sight" means a door matched the exact bytes to an antibody and refused them without checking or decoding anything.
Strangers and forgeries against the shared map (S2)
| Kind | Sent | Admitted | Decoded | Named a variant | Where the doors stopped them |
|---|
Re-run it yourself: clone fall-kit and run node core/phase3/measure.mjs --check. It starts every relay and node as its own process, runs every scenario one step at a time, and exits with an error unless the receipt is the same byte for byte. The claims are in claims.json; the receipt is receipts/phase3.json. X1 runs in two browser tabs, so its facts are committed in local/x1.json and re-judged with the rest.
The fix for J3 and J4, measured: Phase 3b
Phase 3's two failures had one cause: every asker routed on its own evidence and took the best it knew. Phase 3b changes the routing in four small ways. Four new claims were sealed before any of its code existed, and they were measured on Phase 3's own scenario, with Phase 3's routing run beside it on the same seeds as the control.
What changed, in plain words
- Askers keep notes, and share them. When an asker's ask goes unanswered, it notes that the holder went silent. When a holder answers with a receipt that does not check, the asker keeps that holder's own signed answer as evidence. It sends its notes to the other members as one signed message, the way nodes already share antibodies.
- Nobody acts on someone else's word. A note of a lie counts only after four checks at the receiver, in this order: the packet carries the accused holder's sender slot and its signature verifies under that holder's pinned key; read by the receiver's own door, it is that holder's answer to the note's sender, for the ask and skill the note names; the answer says VERIFIED; and the receiver's own check of its receipt fails. Only then does it count, as one failed answer, and the same bytes are never counted twice. A note of silence makes the holder "quiet" at the receiver at once, so its asks go elsewhere, and the receiver sends the holder a small probe of its own. If the holder answers, it is alive and nothing changes. Only a probe that goes unanswered counts as a failure.
- A quiet holder is live again the moment it speaks. Quiet is only how a receiver routes: the holder itself can send as before, and any signed packet from it that the receiver's door admits clears it, so a node that comes back and answers the probes the relays held for it is live again at every node that probed it. Its link stays where the silence left it until its answers earn it back.
- Every holder is tried once. An asker asks a holder it has never asked before one it has, then the strongest link, then the smaller key (the whole rule is
chooseincore/node.mjs, about a dozen lines, mutation-tested). So a dishonest holder that ranks last is still asked, once by each asker, and caught. Caught means its answer fails the check, the evidence is shared, and its link falls under the floor at every asker, so no work goes to it while an honest holder is live. It stays a member: removing it from the mesh is the founder's roster, as in Drop a member above.
The receipt
Loading the committed receipt…
| Claim | The claim, what was measured, and what was predicted |
|---|
Phase 3's routing against the routing that shares, on the same run
Both runs are in the same receipt, made by the same measuring code: eight node processes, the same seeds, the same 140 asks, the same holder killed. The one setting that differs is the routing each node process is started with: Phase 3's, named greedy, or the routing that shares.
| What was measured | Phase 3's routing | Phase 3b's routing |
|---|---|---|
| Loading… | ||
W4, the one that failed, read plainly
W4, the claim: a note moves nothing on its sender's word. A member on the roster sent each of the four askers a false report of silence about a live honest holder and four false reports of lies; a stranger sent each a false report too. The sealed bar asked that no link move anywhere, that every false silence be cleared by the holder's answer, and that every one of the 16 false lie reports be refused.
Loading…
Why it failed: one of the four false reports named the other honest holder for the very same answer bytes as the report before it. The receiver had just judged those bytes, the honest holder's real answer, which checks, so it answered "already judged" and stopped, without looking at the name. The report was never counted, but it was never refused either.
What it means: nothing moved: no link changed, no false silence stuck, no stranger got in. But a node keeps a record of every notes message it takes, with how many notes it counted, how many made a holder quiet and how many it refused, and these four false accusations went into it as none of those, so an auditor counting what a dishonest member had tried would count four too few. The fix is to judge a report's name against its bytes before asking whether the bytes are known. That changes the same organ, so it is a claim of its own, sealed before the change, not a quiet patch to this receipt.
W4's fix, measured: Phase 3c
Two claims, sealed before the change (phase3c/claims.json). The change is one line moved in core/node.mjs: a note of a lie is now judged against the holder it names and the ask it names before the receiver asks whether it has seen those bytes, so "already judged" can only mean the same evidence again. V1 re-runs W4 exactly and judges it by W4's own rule. V2 re-runs W1, W2 and W3 and asks that their facts come out exactly as in Phase 3b's receipt, so the change is shown to move nothing else.
Loading the committed receipt…
| Claim | The claim, what was measured, and what was predicted |
|---|
Phase 3b's receipt above still says W4 failed, and always will: it is about the node it measured, and CI re-derives it from that commit (2960fae), byte for byte, on every push.
What it costs, and how close it came
- One ask per holder, per asker. Each asker spends its first asks of a skill trying every holder once. In this run that was four asks to the dishonest holder in all, one from each asker, all within the first 20 asks, and none after. The cost grows with the number of holders of a skill: with ten holders, an asker's first ten asks of it go one to each. Each of those answers is checked like any other, so a lie from an untried holder is caught, not used; what exploring costs is time. A holder the mesh has already proven a liar, pushed under the floor by others' evidence, is not explored at all.
- One probe per member, per silence. When an asker reports a silence, every other member sends the silent holder one small signed probe, and no second one while that holder stays quiet. Nobody's work waits on it.
- One message per member, per new note. In a mesh of N members a new note costs N−1 signed messages, one to each other member. A silence therefore costs 2(N−1) small packets in all: the notes out, and one probe back to the silent holder from each other member. A note of a lie carries the liar's answer packet, a few hundred bytes here.
- The margin on the floor. A fresh link is 50%. Each failure halves it: four take it to 3.1%, under the 5% floor; three leave it at 6.25%, over it. This mesh has four askers, each finding the liar once and counting the other three's evidence, so it crossed the floor exactly. That was predicted before the run and written into the claims. With fewer askers, a mesh needs more evidence per asker to cross it.
Re-run it yourself: node core/phase3c/measure.mjs --check runs Phase 3's scenario twice on the node as it is now, once with each routing, plus W4's false notes, and exits with an error unless the receipt is the same byte for byte. Phase 3b's own receipt is about the node it measured: git worktree add .phase3b 2960fae && node .phase3b/core/phase3b/measure.mjs --check re-derives it there, W4's failure included. The claims are in phase3b/claims.json and phase3c/claims.json; the receipts are receipts/phase3b.json and receipts/phase3c.json.
Blueprint
| Part | What it decides | Gate |
|---|---|---|
core/relay.mjs | The relay's law: frames in, who is here, what waits for who is not, what to deliver. Imports nothing; no sockets, no clock, no crypto, no codec. | Mutation-tested: every planted bug caught |
core/relay-server.mjs | The relay as a process: TCP in and out around the law above. | Glue; exercised by every measured run |
core/roster.mjs | Who is in the mesh: the founder's signed list of member cards, every card checked. | Mutation-tested; one reviewed equivalent, with its written reason |
core/node.mjs | The node: its door, routing by links that tries every holder once, expiring what nobody answers, notes of silence and of lies shared and re-checked, probes, the shared map, antibodies, hearing one packet at a time. Phase 3's routing kept by name. | Mutation-tested; one reviewed equivalent, with its written reason |
core/vendor/sync/crdt.mjs | The shared map's merge law: last writer wins by Lamport time, node id as tie-break. Copied byte for byte from fallsync at a pinned commit. | Gated at its source; CI checks every vendored byte |
core/phase3/cell.mjs | One node as its own process on the relays, driven a step at a time; and what a hostile node sends. | Glue; exercised by every measured run |
core/phase3/judge.mjs | The verdicts: the sealed rules over the measured facts. Pure. Tightened after the run: J3's bar of two now also needs the count to be a whole number, because the reader turns a junk count into minus one and minus one is "at most two". The receipt's count is a whole number, 4, so J3's verdict and every byte of the receipt are unchanged; a test now holds the judge to it. | Mutation-tested: every planted bug caught |
core/phase3/measure.mjs | Starts the relays and nodes, runs every scenario, gathers facts; no verdicts of its own. | CI re-runs it and compares the receipt byte for byte |
core/phase3/claims.json | The thirteen claims, sealed before any of the above existed. | Its commit is named in the receipt |
core/phase3b/judge.mjs | Phase 3b's verdicts: the sealed rules over the measured facts, each with its control. Pure. | Mutation-tested: every planted bug caught |
core/phase3b/measure.mjs | Phase 3's scenario run twice on Phase 3's harness, once with each routing, and the false notes of W4. | CI re-runs it and compares the receipt byte for byte |
core/phase3b/claims.json | Phase 3b's four claims, sealed before its code. | Its commit is named in its receipt |
core/phase3c/judge.mjs | Phase 3c's verdicts: W4 again by W4's own rule, and W1 to W3's facts compared by digest. Pure. | Mutation-tested: every planted bug caught |
core/phase3c/measure.mjs | Phase 3b's measurement, re-run on the changed node. | CI re-runs it and compares the receipt byte for byte |
core/phase3c/claims.json | Phase 3c's two claims, sealed before the change. | Its commit is named in its receipt |
For a business
What it gives you: your systems can talk to each other directly, through relays you run, without a broker or gateway in the middle that has to be trusted with every message.
| Who | What changes |
|---|---|
| CEO | The parts of the business that run on software keep working when one of them fails, and none of them depends on a vendor's cloud being up. |
| CISO | Trust sits in one place, the founder's roster. Every message is signed by a key on it and checked by the node it is for before it is read. A relay or network that is compromised can delay messages, and read them, since bodies are signed and not encrypted, but it cannot forge, change or replay one, and the receipt shows hostile nodes getting nothing through. When one node learns an attack, the others recognise it on sight, and adopt that only after re-checking it themselves. The same holds for what members say about each other: a node counts another's report of a lie only on the liar's own signed answer failing its own check, and a report of silence only when its own probe goes unanswered. A member the founder drops from the roster is unpinned by every node that reads the new one. Each node's memory records every refusal with the stage it happened at, for audit. |
| CTO | Plain JavaScript modules with no runtime dependencies. A relay's law is 111 lines and reads no body; the process around it is 52. State that must be shared converges by a gated CRDT rule instead of a central database lock. |
| CFO | No per-message fee for traffic between your own systems. The cost case below prices that traffic through a managed gateway and firewall, at dated public list prices. As traffic grows, change the volume: the managed path is priced per message, the node path per machine. |
| COO | Kill a relay or a node and work carries on: the receipt kills one of each mid-run and every later ask is answered. Under Phase 3's routing each asker lost one ask to a node that had just died (J3); with Phase 3b's the mesh loses one in all, the first asker's, and that asker warns the rest (W1). Nodes join from the founder's roster, so adding one is a signed list, not a project. |
| The teams | Every refusal names the stage it happened at, and every node keeps a memory of what it heard, so a failure is easy to find. |
The cost case
Messages between your systems through AWS API Gateway and AWS WAF, against foundation nodes and relays on your own machines. The sums are break-it's gated cost kernel, on break-it's dated list prices, as on the foundation's and Phase 2's pages.
Loading the prices…
Security and data protection, answered straight
- What it stops. A message from a key not on the founder's roster, at the sender. A forged one, at the signature. One changed in transit, at the signature or earlier. One sent twice, at the counter. One meant for another node, before it is acted on. Junk, at the first bytes. The receipt sends all of these, from sixteen hostile nodes, and none is admitted.
- What it does not stop. A member whose key is stolen, or whose machine is compromised: it signs what it likes, and the mesh trusts it until the founder signs a roster without it and each node reads that roster. Each node then unpins it, keeping its last counter so nothing it sent before can be replayed. Dropping a member is built, tested and mutation-gated (core/node.mjs unpin, core/roster.mjs rosterChanges), and runs in the tab above; it is not one of Phase 3's sealed claims. A member that answers badly is not stopped either, only routed away from once its answers fail to check. Under Phase 3's routing a liar that was never asked was never found out (J4); Phase 3b's routing asks every holder once, so it is found, and the evidence of it is shared (W2, W3). A relay that drops everything denies service.
- Where data goes. Only to the node a message names, through relays you run. A relay's code reads who a frame is for and how long it is, and never decodes what is in it. The body is signed, not encrypted, so a relay you do not control could read it: run your own, and encrypt anything secret end to end before it is sent. Nothing here calls any outside service.
- Personal data. A relay keeps nothing of its own, only a short queue of frames for nodes that are away, which expires; while they wait, those frames carry what was sent, signed but not encrypted. Each node keeps its own copy of the shared map, so personal data in it lives on every member you put on the roster: put on it only the nodes that may hold it (UK GDPR and GDPR).
Rolling it out
- Two services, one relay. Put a node in front of two systems that already talk to each other, run one relay beside them, and sign a roster of the two.
- A second relay, on another machine, so that losing one costs nothing.
- Then the next service, one at a time, each added to the roster, with what it shares in the shared map declared first.
Support and ownership
Supplied by AI Native Solutions; start through that site. Support, service levels, warranty and liability are agreed per deployment, in each deployment's agreement. The code is MIT-licensed and keeps running without us: the relays and nodes are yours.
Risks, answered
- "It was measured on one machine." Yes. Every node and relay was its own process, talking only over TCP, which is how they would talk across machines; but a second device and a real network are not on the receipt. The relay takes
--hostand a node takeshost:port, so you can open that door yourself. - "The hostile nodes were written by you." They send the kinds of packet the door is built to refuse, and variants of them. No model wrote them, and a real outside red team against a live mesh is the owner's to invite. The claims say so.
- "Last writer wins loses edits." When two people change the same key at once, one change wins and the other is kept nowhere. That is the rule, stated in the claims, and it is right for status and settings. A document two people edit together needs a different merge.
- "A liar can hide." Under Phase 3's routing it could: J4 showed a dishonest holder that was never asked was never caught. Phase 3b's routing tries every holder once, so each asker asks it once and the shared evidence takes its link under the floor (W2, W3). The price is one ask per asker per holder of a skill.
- "How fast is it?" Not on this receipt. Every scenario runs one step at a time so that its receipt is the same on every machine, which is the opposite of a load test. Throughput under load is a measurement of its own.
- "A dead node costs one ask per asker." It did under Phase 3's routing (J3). With Phase 3b's, the first asker's unanswered ask warns the rest, so the mesh loses one ask in all (W1). Each other member sends the dead node one probe, a small signed packet; nobody waits on it.
- "A slow node is treated like a dead one." Yes. An ask that is given up before its answer comes counts as a failure, wherever the cause, and the asker warns the others. When the slow node's answer does arrive, it is live again at that node, and its link is earned back by answers that check. How long to wait is the deployment's choice: the measured run waits 0.8 seconds after the kill.
- "Two holders could fail at once." That is not on this receipt, which kills one. Each failure is handled the same way, one ask lost to each and the rest warned. If every holder of a skill is quiet or under the floor, the strongest of them is still asked, so work keeps trying the best of what is left rather than stopping.
- "Exploring sends real work to a holder nobody has tried." It does, once per asker per holder. The answer is checked before it is used, as every answer is, so an untried liar costs one ask and is caught (W3). What it can cost is time, if the untried holder is slow: that is the price of finding out, paid once.
- "A false report of silence could hurt an honest holder that is slow." It can, by one failure. A false silence makes the holder quiet at each receiver only until it answers their probe, which a live holder does at once. If it is so slow that a receiver gives the probe up first, that receiver counts one failure, as it would for any ask that went unanswered. It cannot make the holder quiet for good: the first packet from it clears it.
- "A member could spread false reports about the others." It can send them, and they move nothing: a report of a lie counts only on the accused's own signed answer failing the receiver's own check, and a report of silence only when the receiver's own probe goes unanswered. In the measured run a pinned member's 20 false notes changed none of 112 links (W4). W4 failed on its own wording and is kept; it was then fixed and measured as its own claim, Phase 3c, with all 16 refused by name (the fix).
The case for the board
The organisation's systems can depend on each other without depending on a middleman. Trust is one signed list. Failures are routed around instead of escalated. Every claim behind that is re-run by a machine anyone can watch, including the one that failed.
The paper: a mesh with nothing to trust in the middle
The problem. Systems that talk to each other usually talk through something in the middle: a broker, a gateway, a service mesh's control plane, a cloud queue. That middle sees every message, and it has to be up, so it becomes the thing to defend and the thing that fails. The usual answer is to make the middle stronger.
The design. Make the middle unable to matter. Relays carry frames and read nothing but the recipient's id; their code imports no codec at all. Every body is a LIGHT packet its sender signed, checked by the recipient's own door, so trust lives at the edges, in the founder's roster and each node's pins. Routing is by evidence: each node keeps links to its peers that grow when answers check and fall when they do not or never come. Shared state is a CRDT, so it converges without a coordinator. Immunity is shared, but adopted only after each node re-checks it on its own door.
What is measured. Thirteen claims were committed before any of Phase 3's code, across five passes. The relay fabric: every frame reaches the node it names, no body is decoded, a relay can die, a node that is away gets what was held for it, once. Joining and routing: the roster, routing by skill and by answers that check, routing around a dead node, and links that follow evidence. Shared state: convergence in three shuffled orders with a relay killed, and nothing changed by a stranger or a forgery. Shared immunity: one node's lesson recognised by all, a crowd of sixteen hostile nodes, and the mesh still working afterwards. Browsers: two tabs over WebRTC. Every node and relay runs as its own process, the run goes one step at a time on fixed public test seeds and a fixed clock, and CI re-runs it and demands the same receipt byte for byte.
What it found. Two claims failed and are kept, both from one fact: each asker routes greedily on its own evidence. When the node being asked dies, every asker finds out separately (J3). A liar that routing never asks is never caught (J4). Going live also found a real bug before any claim was judged: two packets heard at the same moment could set a sender's counter back and let a replay in. Hearing is now one packet at a time, with a test that holds it. It found a fault in its own measuring: the first build of the J3 run killed a holder no ask was going to, which could not fail. It was corrected before the receipt was kept. And X1 found that falllink, the estate's connection layer, had never completed a same-device connection in Chromium; that was fixed in falllink, under a mutation gate, before X1 was measured.
Phase 3b: the fix, measured. The cause of J3 and J4 was one design choice, so the fix is one organ: routing that shares what it learns. Askers keep notes of what they saw themselves (a silence, or a lie with the liar's own signed answer) and share them as antibodies are shared; nothing is acted on until the receiver's own check agrees (its own reading of the liar's signature and receipt, or its own unanswered probe); and every asker tries every holder once. Four claims were sealed before the code and measured on Phase 3's scenario, with Phase 3's routing run beside it as the control. The dead node got 1 ask instead of 4; the dishonest holder was asked once by each asker and its link fell to 3.1% everywhere, against 50% before; and false notes from a pinned member moved nothing. One claim failed on its own wording: four false notes were answered as already judged rather than refused, because they repeated bytes the receiver had judged a moment before. Phase 3c fixed that as a sealed claim of its own: a note is now judged against the holder it names before it is checked as a repeat, all 16 were refused by name, and W1 to W3, re-measured, came out digest for digest as before.
Honest limits. One machine, and two tabs of one browser. Bodies are signed, not encrypted: the design stops a relay from forging or changing what it carries, not from reading it. Hostile nodes that send what the door is built to refuse, not an outside red team. Last writer wins, not a merge of concurrent edits. A stolen member key is trusted until the founder signs a roster without it and the nodes read it. Throughput under load is not measured.
Questions
What is a relay, and can it read my data?
A relay is a small process that carries frames to the node each frame names, and holds them a while for a node that is away. Its code reads the recipient's id and nothing else, and never decodes a body. Every body is a LIGHT packet the sending node signed, and the receiving node's own door checks it, so a relay that lies, drops or replays costs delivery, never safety. But a body is signed, not encrypted: a relay that was compromised could read what it carries, though it could not forge, change or replay it. So run the relays yourselves, and encrypt anything secret end to end before it is sent. The relay's law (core/relay.mjs) imports nothing at all, no codec, door or vault, and the process around it (core/relay-server.mjs) only moves bytes over TCP; the receipt checks the first.
What happens when a node or a relay dies?
Every node says hello to every relay, so when a relay dies the nodes go on through another: in the measured run relay A was killed halfway and all 50 later asks were answered through relay B, with every node's state the same as a run where nothing died. When a node dies, its unanswered asks expire and count as failed answers. Under Phase 3's routing each asker lost one ask to it first (J3, failed and kept). With Phase 3b's routing the first asker that finds out tells the others, who mark the node quiet at once and check with a probe of their own, so the mesh loses one ask in all (W1).
How is shared state kept the same?
Each node keeps a copy of a shared map, a last-writer-wins CRDT by Lamport time with the node id as the tie-break, gated in fallsync first. Changes travel as signed LIGHT packets; only a pinned member's sync is merged. In the measured run eight nodes ended with the same map in three different shuffled orders, one of them with a relay killed halfway.
What is shared immunity?
When a node's door refuses a packet it remembers it as an antibody. It can share its antibodies with the mesh, and each node adopts one only after re-running it on its own door. In the measured run one forged packet refused at one node was, after one round of sharing, recognised on sight by all eight, without decoding.
What did not hold?
In Phase 3, two claims failed and are kept. J3: when the holder the asks were going to died, each of the four askers sent one ask to it before moving on, four against a bar of two. J4: the dishonest triage holder was never asked, so its link never fell. Phase 3b fixed both, measured on the same run (1 ask instead of 4; the dishonest link at 3.1% instead of 50%), and one of its own four claims failed: W4, where four false notes were answered as already judged instead of being refused. None of them moved a link. Phase 3c then fixed W4 as its own sealed claim: all 16 are now refused by name, and nothing else the routing measured changed.
Powered by the Konomi architecture, created by Thomas Frumkin.