Fall Kit · core
phase 2 · LIGHT everywhere
Phase 2 of the estate going live · fifteen claims sealed before the code

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.

…payloads in standard formats heard: none admitted, none decoded
…LIGHT packets no trusted key signed: none admitted
…packets a trusted key signed, admitted intact
…claims measured so far, holding

Start here

If you want to see it work

  1. 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.
  2. 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).
  3. 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.
  4. 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

Try changing the amount, adding a field, or breaking the JSON.

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.

PassOrganClaimsStatus
Loading…

The receipt

Loading the committed receipt…

ClaimMeasured

What was thrown at the door (G1)

FormatPayloads
Stopped atPayloadsWhich 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.

JournalEventsAs JSONLIGHTgzip streamgzip file on diskSame 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 codeOne of its own files that does
Loading…

LIGHT's own format, from no trusted signer (G2)

KindPacketsStopped atAdmittedDecoded

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

PartWhat it decidesGate
core/edge.mjsOutside 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.mjsThe 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.mjsThe node that hears: the door, its antibodies, its memory.Mutation-tested (Phase 1)
core/phase2/judge.mjsThe verdicts: the sealed rules over the measured facts. Pure.Mutation-tested: every planted bug caught
core/phase2/corpus.mjs, measure.mjsBuild 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.jsonThe 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.

WhoWhat changes
CEOOne 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.
CISOThe 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.
CTOOne 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.
CFONo 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.
COOIt 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 teamsA 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

Rolling it out

  1. Put the edge in front of one service you already run. Declare the shapes it takes from real examples, and watch what it refuses.
  2. Move that service's inside traffic to LIGHT, one part at a time; the edge keeps taking the old format while you do.
  3. 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

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.

Fall Kit core · phase 2 · MIT · supplied by AI Native Solutions · source · phase 1: the shared foundation · phase 3: the mesh is live
Powered by the Konomi architecture, created by Thomas Frumkin.