One language inside, and one checked edge to the outside
LIGHT is the estate's own compact message format. A LIGHT packet carries who sent it, a counter so it can never be replayed, and a signature, and the door checks all of that on the raw bytes before it reads a single byte of the body. Phase 2 makes LIGHT the language every part of the estate keeps and carries things in. The outside still speaks JSON and the web, so one thin edge takes those in, checks them against a declared shape, and re-says them inside as signed packets.
The point is that nothing inside ever parses bytes it cannot trust. Bytes in any other format stop at the first four. Bytes in LIGHT's own format that no trusted key signed stop at the sender or the signature. Everything a trusted key does sign gets through, intact.
Start here
If you want to see it work
- Throw anything at the door. Paste text, JSON, a web request, anything, or pick an example. Press Hear it: the door says exactly where it stopped it, and that it never decoded the body.
- Make a real packet. Press Sign it as a packet: the same text, signed with a public test key the door has pinned. It is admitted. Then press Change one byte (refused at the signature) and Send it again (refused at the counter).
- Go through the edge. Give the edge an example of what it should accept, then a request. A request that fits becomes a signed packet inside and comes back out as the same JSON; one that does not is refused at a named stage and no packet is built.
- Read the receipt. The measured claims below are re-judged in your tab from the receipt's own facts.
If you build an app
The edge is one module in the shared foundation (core/edge.mjs). Copy the foundation into your repo with node core/tools/vendor-into.mjs <your repo>, then:
import { sealInside, outbound, shapeOf } from './vendor/fall-kit-core/edge.mjs';
// declare what this edge accepts (or write the shape by hand: string, int, list, object, any…)
const shape = shapeOf({ customer: 'ACME', amount: 12, lines: [{ sku: 'X1', qty: 1 }] });
// outside → inside: checked (size, UTF-8, JSON, shape), then signed by the edge's own key
const inn = await sealInside(requestBytes, { shape, sender: edge.slot, counter }, edge.sign);
if (!inn.ok) return reply(400, inn.stage + ': ' + inn.why); // no packet was built
node.hear(inn.bytes); // inside, only signed LIGHT
// inside → outside: through the door first, then standard JSON
const out = await outbound(packetBytes, { peers, verifyBytes, lastCounter });
if (out.ok) reply(200, out.json);
Try the door
The verdict appears here.
Through the edge
The result appears here.
These run the real door and the real edge in your tab, with public test keys (fixed seeds; never use them for anything real). Nothing leaves the page.
How it works
- The edge is the only place outside formats are read. A request is checked in a fixed order: its size, whether it is valid UTF-8, whether it parses as JSON, and whether it fits the shape the edge declared it would take. Only then is the value re-said as a LIGHT packet, signed by the edge's own key. A request refused at any step builds no packet.
- The door decides on raw bytes. Every packet inside, from the edge or from another part, passes the same stages before its body is decoded: size, the four-byte magic
LGT1, the version, the length, the dictionary, a sender with a pinned key, a signature that verifies, and a counter that has not been used. - Learning makes it stricter, never blind. Each refusal is remembered as an antibody. The measurement checks that after learning from every refused payload, the node still admits everything its trusted peer signs.
- Going out, the door comes first. A packet leaves as JSON only if it passes the door. A forged or replayed packet produces no output at all.
The passes
Phase 2 moves one organ per pass, each with its own claims, sealed together before any of the code.
| Pass | Organ | Claims | Status |
|---|---|---|---|
| Loading… | |||
The receipt
Loading the committed receipt…
| Claim | Measured |
|---|
What was thrown at the door (G1)
| Format | Payloads |
|---|
| Stopped at | Payloads | Which means |
|---|
The corpus is every file in five public estate repositories at sealed commits, whole and cut four ways (each half, a 512-byte window from the middle, and every tenth byte flipped), plus a GET and a POST to every live estate page, 500 form bodies and 1,000 runs of random bytes from fixed seeds.
Kar's memory, kept in LIGHT (pass 2)
Kar's mind keeps an event journal it rebuilds itself from after every restart. It is now one LIGHT vault instead of a gzip file, and an old gzip journal still loads: the first save after it writes the vault, reads it back, and only when every event matches moves the old file aside, kept, never deleted. Each journal below was loaded from gzip, migrated, and booted again from LIGHT.
| Journal | Events | As JSON | LIGHT | gzip stream | gzip file on disk | Same after |
|---|---|---|---|---|---|---|
| Loading… | ||||||
"Same after" means the same events, the same counts in every organ when the mind boots from the journal, and the same SHA-256 of the events. The gzip stream is the raw compressed bytes; the gzip file is what actually sat on disk (the stream as base64 inside a JSON envelope with its receipt). M2 is judged against the stream, the stricter of the two.
Every model call, kept in LIGHT (pass 3)
Kar's controller decides which mind each job goes to: code, the local model, or Claude. Every call it makes is now appended to a call book in LIGHT: what was asked, of which mind, what came back and what it cost. The book is append-only, and each record carries the SHA-256 of its contents, so a changed book is refused at the record that changed.
Loading…
The mesh between pages, in LIGHT (pass 4)
Fall Kit's same-device mesh lets estate pages open on one device find each other. From Fall Kit 3.2.0 every message on it is a LIGHT packet signed by the device's own key, made by the browser and kept so that no page can read its private half, and a page reads one only after the door has checked it. An old JSON message, from a page still on an earlier kit, still arrives, marked legacy.
Loading…
Re-run B1 yourself: open the mesh test as A, then as B in another tab.
How far LIGHT reaches, counted honestly (pass 5)
A repository counts as speaking LIGHT only when its own code does, outside any copy it carries: a vendor folder, the Fall Kit block inlined in its page, or the kit carried as its own fall-kit.js file. The first census counted copies too, so a repository that only carried the foundation looked as if it spoke it.
This census's own instrument was corrected twice before its numbers were taken, both times towards the sealed rule. It had counted a linked build's copy of fall-kit.js as that build's own code (fallgarden), and it had not read imports relative to a file inside light/, so it missed konomi-tongue, LIGHT's own home. It counts this machine's clones of the estate's repositories, so the receipt says how many it read and how many it could not.
| Speaks LIGHT in its own code | One of its own files that does |
|---|---|
| Loading… | |
LIGHT's own format, from no trusted signer (G2)
| Kind | Packets | Stopped at | Admitted | Decoded |
|---|
Re-run it yourself: clone fall-kit and run node core/phase2/measure.mjs --check. It clones the five repositories at the sealed commits, measures everything again, and exits with an error unless the receipt is the same byte for byte. The claims are in claims.json; the receipt is receipts/phase2.json.
Blueprint
| Part | What it decides | Gate |
|---|---|---|
core/edge.mjs | Outside requests in (size, UTF-8, JSON, declared shape, then signed); packets out (the door, then JSON). Pure; the signer and verifier are handed in. | Mutation-tested: every planted bug caught |
vendor/light/packet.mjs | The door: every stage on raw bytes, then the body. Copied byte for byte from konomi-tongue's LIGHT at a pinned commit. | Gated at its source; CI checks every vendored byte |
core/node.mjs | The node that hears: the door, its antibodies, its memory. | Mutation-tested (Phase 1) |
core/phase2/judge.mjs | The verdicts: the sealed rules over the measured facts. Pure. | Mutation-tested: every planted bug caught |
core/phase2/corpus.mjs, measure.mjs | Build the pinned corpus from fresh clones and measure; no verdicts of their own. | CI re-runs them and compares the receipt byte for byte |
core/phase2/claims.json | The fifteen claims, sealed before any of the above existed. | Its commit is named in the receipt |
For a business
What it gives you: inside your estate, nothing reads a message it cannot prove came from a key you trust, and only one small, tested edge reads the outside world's formats.
| Who | What changes |
|---|---|
| CEO | One small, tested edge becomes the only part of the estate that reads the outside world's formats, so an attack on parsing has one place to land, and nothing new is rented to get there. Every claim about it is re-run by a machine anyone can watch. |
| CISO | The parsing surface shrinks to one edge with a declared shape per door. Every internal message is authenticated and replay-proof before it is read, and bytes in any other format are refused at four bytes. The measurement is on your own kind of bytes, re-run by CI. |
| CTO | One format, one door, one edge, in plain modules with no runtime dependencies. Teams keep writing JSON at the edge; inside, LIGHT is invisible to them. |
| CFO | No per-message gateway between your own systems. The cost case below prices the same traffic through a managed gateway and firewall, at dated public list prices. |
| COO | It moves one part at a time, and every edge still takes the old formats while a part is moved, so nothing working stops working. |
| The teams | A malformed request is refused with the stage and the reason, before anything is built, so a bad call is easy to find. |
The cost case
Traffic between your systems through AWS API Gateway and AWS WAF, against foundation nodes on your own machines. The sums are break-it's gated cost kernel, on break-it's dated list prices.
Loading the prices…
Security and data protection, answered straight
- What it stops. Bytes in any format other than LIGHT, at the first four bytes. LIGHT-shaped bytes that no pinned key signed, at the sender or the signature. A signed packet changed after signing, at the signature. A packet sent twice, at the counter. A request the edge was not declared to take, at the shape, before any packet exists.
- What it does not stop. Content that is harmful once read, carried inside a packet a trusted key signed: it is decoded faithfully, and the part that shows or acts on it must still judge it. A stolen key. A machine already compromised.
- Where data goes. Nowhere the modules send it: they open no connections. You carry the bytes over your own channel. On this page, everything stays in your tab.
- Personal data. The edge declares exactly which fields it takes, so a field nobody declared is refused rather than stored. That makes data minimisation (UK GDPR and GDPR) a line of code you can read.
Rolling it out
- Put the edge in front of one service you already run. Declare the shapes it takes from real examples, and watch what it refuses.
- Move that service's inside traffic to LIGHT, one part at a time; the edge keeps taking the old format while you do.
- Then the next service, with its own declared shapes. Each move is measured before the next.
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.
Risks, answered
- "Most of this is refused at four bytes, so of course it holds." Yes: that is the design, and it is still worth measuring on real bytes. The harder claims are G2 and G3: LIGHT-shaped packets without a trusted signature never pass, and a node that has learned from thousands of refusals still admits everything its trusted peer signs.
- "Is LIGHT always smaller?" No. On Kar's real journals it is far smaller than gzip, about half on a 10,000-event journal. On a journal of a few events it is a few bytes larger, because every vault carries a 32-byte SHA-256 of its contents and a header. That is why M2, "no larger on every journal", is on the receipt as measured, whichever way it went.
- "An exact shape is strict." It is meant to be.
shapeOfdeclares an example's exact shape; a real edge usually writes a looser one by hand (a list of up to N, text up to N characters, any JSON within a depth). - "So the estate does not speak LIGHT everywhere?" Not in every repository's own code, no, and the receipt says so (C3). The core does, and every gear page carries the LIGHT mesh through the kit; a page's own code moves to LIGHT when that page has something to keep or carry, one at a time.
The case for the board
The organisation stops parsing untrusted input everywhere and starts parsing it in one place, with a declared shape, in front of a door that reads nothing a trusted key did not sign. Every claim behind that is re-run by a machine anyone can watch.
The paper: one language inside
The problem. Most breaches start with a parser: some part of a system reads bytes it should not have trusted, in a format rich enough to hide something. Every service that accepts JSON, HTML, form bodies or its own wire format is another parser, and each is written a little differently.
The design. Give the inside of the estate one format, LIGHT, and one door that decides on raw bytes before anything is parsed: the magic number, the version, the length, the dictionary, a pinned sender, a verified signature and a fresh counter, then the body. Put the outside's formats behind one thin edge that checks size, encoding, syntax and a declared shape, and only then re-says the value inside, signed. Outbound, reverse it: the door first, then JSON.
What is measured. Fifteen claims were committed before any of Phase 2's code, across five passes. The first pass throws the estate's own files at the door, every one whole and cut four ways, with web requests, form bodies and random bytes. It then throws six kinds of LIGHT-shaped packet that no trusted key signed, and checks that everything a trusted key signs still gets through, intact, after the node has learned from every refusal. The second keeps Kar's mind journal in LIGHT, migrating old journals without loss, and vaults his whole memory every night. The third keeps every model call the controller makes as a LIGHT record. The fourth moves Fall Kit's mesh between pages onto signed LIGHT and carries it into the gear builds. The fifth counts, by a rule written down first, which repositories now speak LIGHT in their own code. A pure judge turns the facts into verdicts, and CI re-runs every measurement it can and demands the same receipt byte for byte; the few facts only a browser or this machine can gather are committed and re-judged.
Honest limits. The signature and counter are the floor; the format is the surface reduction. Neither judges content a trusted key signed. LIGHT here is the estate's wire codec (konomi-tongue's LIGHT); falllight is a separate vocabulary for how nodes connect, not this codec. The cards and the contribution records move to LIGHT in their own phases and sessions, not here.
Questions
What is LIGHT?
The estate's own compact message format: a lossless coder, a signed packet, and a door every packet passes before it is read. A packet carries who sent it, a counter so it cannot be replayed, and an Ed25519 signature; the door checks all of that on the raw bytes before decoding a single byte of the body.
What does 'LIGHT everywhere' change?
The estate's parts keep and carry what they know as signed LIGHT, so there is one format to check, one door, and no part that parses untrusted bytes. The outside world still speaks JSON and the web, so one thin edge takes those in, checks them against a declared shape, and re-says them inside as signed packets.
Does LIGHT stop harmful content?
No, and it does not claim to. The signature and the counter keep out bytes that no trusted key signed. Content carried inside a packet a trusted key did sign is decoded faithfully, and the part that uses it must still judge it. A stolen key and a compromised machine are outside what it protects.
How was it measured?
Fifteen claims were committed before any Phase 2 code existed. The first six were measured on a corpus pinned to five public repositories: every file, cut four ways, plus web requests to every live estate page, form bodies and random bytes. A pure judge turns the facts into verdicts, and CI re-runs the whole measurement and demands the same receipt byte for byte.
What does it cost?
It is MIT-licensed, with no licence fee, and runs on machines you already have. The cost case on this page is the one the foundation's own page uses: the same traffic sent through a managed API gateway and firewall, at dated public list prices.
Powered by the Konomi architecture, created by Thomas Frumkin.