LIGHT·

LIGHT · the estate's inner language

One lossless codec for the estate's organs to speak between themselves. Memory, organ-to-organ messages and records are carried in LIGHT — a coder primed with a shared dictionary grown from the estate's own files, so what both sides already know costs almost nothing — and translated to JSON or text only at the edges where the estate meets the outside world. A message between organs travels as a signed packet, checked before a byte of it is read. It is switched on one channel at a time, where it measures better; how far it has spread is under risks.

one codec · shared dictionary · signed packets verified before decode · many files as one vault · starting the kernel…

Compress something, live Read the receipts What it does for a business What it does and doesn't do
3.4×median, smaller than the file as committed, over 179 held-out estate files
losslessevery held-out file and all 356 memory files decode back exactly
42 of 44small messages smaller than both gzip −9 and Brotli 11
MITno licence fee; zero dependencies; runs on your machines

What it isA language the organs already half-know

Compression is prediction: the better you can guess the next byte, the fewer bits you spend on it. LIGHT is a coder that guesses from what it has seen, primed before the first byte with a dictionary grown from the estate's own files — the headings, the record shapes, the credit lines the estate writes again and again. A message both sides already partly know is cheap; that is what it means for two organs to "speak the same language", measured in bytes.

Start hereFive steps, no install for the first three

  1. Compress something. Type or paste any text in Try it. Watch it shrink, with and without a shared dictionary, next to your browser's own gzip and deflate. Everything runs in this tab with the real codec.
  2. Watch the signed door. The packet demo beside it signs a message with a key made in your browser, then shows a copy signed by a stranger's key, and one with a byte changed, refused at the door — before their bodies are ever decoded.
  3. Read the receipts. Every claim was sealed in git before the code. The receipts show what was measured, what held, and what failed and is kept.
  4. Check it on your own machine. Clone the repository and run, with Node 20 or later and nothing installed: node --test (every test in the repository, LIGHT's included), node light/tools/check.mjs (the seals and the receipt), node light/tools/barrier.mjs --check (the barrier claims, measured again). The mutation gate is in the blueprint.
  5. For a team: put your own volumes and your own prices into the cost case, then follow Adoption to wire one channel.

Try itThe codec and the door, live

compress

as UTF-8 bytes—
LIGHT, no dictionary—
LIGHT, shared dictionary—
this browser's gzip · deflate—
read back through the signed door—

The dictionary here is a small sample made in the page, so the live gain is smaller than the estate's full 183 KB dictionary gives in the receipts. The receipts compare against gzip −9 and Brotli 11 in Node; your browser's built-in gzip and deflate run at their default level.

the signed door

Two keys are made in your browser. One is pinned, one is a stranger. The same message is sent through the door signed by each.

signed by the pinned key—
signed by a stranger's key—
one body byte changed in transit—
decoder ever ran on a refused packet—

A refusal names its stage — sender, signature — and the body is never decoded. The signature is the hard floor; see honest scope.

The receiptsSealed first, measured second, failures kept

All 19 claims were committed to git before the codec or any measuring code existed (light/claims.json, commit ac90c1e). Files are split TRAIN / HELD-OUT by their last commit date; the dictionary and all tuning read TRAIN only, and the measurement read HELD-OUT for the first time. The main receipt is light/data/light-run.json; the barrier claims B1–B3 are measured by light/tools/barrier.mjs into light/data/barrier-run.json, which CI measures again on every push.

claimmeasuredpredicted
loading the receipt…

C1's census counted vendored copies as well as an organ's own code. It is superseded by the census v2 of fall-kit's go-live Phase 2, which counts own code only; C1 stays here as it was measured, failed as predicted.

How it worksInside everything, standard at the edges

The estate's organs store and exchange data in LIGHT through one codec; standard forms appear only at the edges memory, recordson disk, in LIGHT another organa signed LIGHT packet THE ONE CODECcodec · packet · vault shared dictionarygrown from the estate the doorverify → decode the edge codecLIGHT ⇄ standard the outsidehuman · API · browser standard forms (JSON, text) live only here
  1. Store in LIGHT. An organ writes its memory and records through the codec. On disk they are LIGHT; the file a human reads is produced at the edge when asked.
  2. Talk in LIGHT. An organ-to-organ message is a signed LIGHT packet. The receiver's door checks it on raw bytes and decodes the body only if it is admitted.
  3. The dictionary is the shared tongue. Grown from TRAIN files only and versioned. Both sides hold it, so a short familiar message codes to very little. A later version grows from later files; the id in each packet says which dictionary it needs.
  4. Translate only at the edges. Where the estate meets a human, a standard API or a browser, a thin edge codec turns LIGHT into the standard form and back. Inside is all LIGHT; the outside never needs to know it exists.

The door, stage by stage — traced from the barrier receipt

The order below is open() in light/packet.mjs, and the counts are the real run in light/data/barrier-run.json: our own door, the 28 sealed test inputs, keys made by Node's Ed25519, re-measured by CI on every push.

The LIGHT door checks eight things on the raw bytes before it decodes anything: 27 raw test inputs stopped at size, 1 at magic; 1 forgery at sender and 3 at signature; 28 correctly signed packets admitted and decoded back exactly on the raw bytes — nothing is decoded until all eight pass size magic version length dictionary sender signature counter decodecodec admitted 27 refusedraw inputs 1 refusedraw input 1 refusedforgery 3 refusedforgeries 28 of 28back exactly A · B128 classic test inputs (SQL, script, shell, path, template, JSON, XML, HTTP…) as raw bytes: 0 admitted, 0 decoded B · B24 well-formed packets without the key (sender not pinned, stranger's key, zeroed signature, flipped byte): 0 decoded C · B3the same 28 inputs as the data of correctly signed packets: all 28 decode back exactly — so the edge must escape them

One message through the codec

Drawn from light/codec.mjs. Every bit of the input is predicted, then coded with the probability the prediction gave; the decoder makes the same prediction from the same tables and so reads the same bit back. Integers only, so Node and your browser agree on every bit.

Bytes get a header (length and check), then each bit is predicted by seven models, mixed by learned weights into a probability that drives a 32-bit arithmetic coder; the tables are primed first by the shared dictionary your bytesany length headerlength (varint)+ 4-byte check for every bit — eight a byte bit's place last byte last 2 bytes last 3 bytes last 4 bytes current word match model mixer7 learned weights pnext bit is 1 codersplit range at p learn: states and weights move toward the bit that came LIGHT bytesheader + code primed first: the shared 183 KB dictionary (light/dict/v1.txt)lent to each short message, handed back byte-identical by a journal

Decode refuses a stream whose 4-byte check of the input does not match — the wrong dictionary, or changed bytes — so it returns the exact input or nothing.

BlueprintSix kernels, each gated, and everything around them

Each kernel is pure, with its own tests, under a mutation gate: witness, pinned at v0.6, changes the code one operator at a time and the tests must catch every change. Survivors are allowed only with a written reason (light/witness.baseline.json). It runs on GitHub's runner on every push, and the run must re-derive exactly the counts committed in light/data/witness.json.

kernelfilewhat it ismutation gate
codeclight/codec.mjsbytes ⇄ LIGHT: a context-mixing arithmetic coder, primed with a dictionary, integers only96 / 100 · 4 reviewed
packetlight/packet.mjsthe signed door: size, magic, version, length, dictionary, sender, signature, counter on raw bytes, then decode57 / 60 · 3 reviewed
vaultlight/vault.mjsmany files as one solid stream, every SHA-256 checked, paths kept inside their folder54 / 61 · 7 reviewed
sha256light/sha256.mjsthe one hash, for dictionary ids and vault entries9 / 10 · 1 reviewed
judgelight/judge.mjseach sealed claim held against the measured facts, by rules fixed in code — a claim is decided by what was measured, never by its prediction99 / 99
costlight/cost.mjsthe cost case below: sourced figures, the receipt's figures, your inputs30 / 30

CLEAN: 345 of 360 mutants killed; the other 15 reviewed-equivalent, each with a written reason.

Around the kernels

organwhat it doeshow it is checked
light/claims.json · light/barrier.jsonthe 19 sealed claims, and the 28 sealed test inputs for B1–B4committed at ac90c1e before any code; every tool refuses to run if either differs from that commit
light/dict/v1.txtthe shared dictionary, 182,969 bytes, grown from TRAIN files onlyits SHA-256 and id re-checked against the receipt on every push
light/tools/measure.mjsthe measurement over the 179 held-out files, the memory vault and break-it's mesh → light/data/light-run.jsonruns on the machine that holds the estate's clones; CI re-checks its receipt (check.mjs)
light/tools/check.mjsseals intact, dictionary hash, the judge re-run on the receipt's own facts, the codec round-tripCI, every push
light/tools/barrier.mjsB1–B3 against our own door → light/data/barrier-run.jsonCI measures again, every push, and must get the same facts
light/tools/witness-check.mjseach kernel's mutation run must be clean, uncapped and equal to light/data/witness.jsonCI, every push
light/tools/corpus.mjs · dict.mjs · tune.mjsgather the material by the sealed rule; grow the dictionary from TRAIN; tune on a validation split inside TRAINrun where the clones are; their outputs are pinned by hash in the receipt
light/tools/memory.mjs · census.mjsKar's memory as one vault (private; only totals published); C1's census of the estaterun locally; totals in the receipt
light/page.mjs · light/index.htmlthis page: runs the kernels in your tab, reads LIGHT back only through the door, reads the receipts, computes the cost casetest/light-page.test.mjs: self-only policy, no inline handlers, every control wired, every number checked against the receipts, and the page's own script run against a small DOM — the round-trip and the barrier through the door, the receipts, the cost case equal to the kernel's
light/vendor/…/basis.jsonthe sourced external figures the cost case readscopied byte for byte with git; its hash is tested against light/vendor/SOURCE.json
.github/workflows/light.ymlruns all of the above on GitHub's runnerevery run is public: light workflow runs

The language barrier, honestlyWhat a private language does and doesn't do

Bytes meant to break software are written in languages an attacker shares with an ordinary target — SQL, script, shell, a template. A LIGHT door does not speak them: sent as raw bytes they fail at the size or the magic number, before anything parses them. But that is only true at the door. The same bytes carried as data inside a signed packet decode back to exactly themselves — LIGHT does not disarm them; only the edge that renders or runs that data can. This demo shows both, in your browser, on the sealed test inputs; the same claims measured in Node are in the receipts above (B1–B3).

at the door · raw bytes refused

test inputs sent as raw bytes—
admitted—
decoder ever ran—

None is a signed LIGHT packet, so each fails at size or magic — noise in a language the door does not speak.

at the edge · rendered as text

carried as data in signed packets, read back exactly through the door—
became markup or code when shown—

Each decoded entry is put on the page as text, through the page's own sink. The count that became live markup is what matters — it must be 0, and that is the edge's job, not the language's.

show the test inputs, rendered as text

Honest scopeDefense-in-depth, not magic

The hard floor is the signature. A LIGHT packet is refused unless it is signed by a pinned key, checked on raw bytes before any decode. No cleverness and no volume forges a signature without the key. That is what protects an organ-to-organ channel.

The language is the layer on top. Because LIGHT is custom, compressed and evolving, the shared-language attack surface at a door is absent — standard exploits are bytes in a language it does not speak. Real and useful, but it is surface-elimination, not a substitute for the signature, and it is not security-through-obscurity standing alone.

It does not disarm data. Injection carried as the content of a message is decoded faithfully; the edge that renders or executes it is where it is made safe (escaped, parameterised). LIGHT moves the bytes; it does not sanitise them.

It is not encryption. LIGHT makes data smaller and proves who sent it; it does not hide it. Anyone holding the dictionary can decode a body. Confidentiality comes from encryption in transit and at rest, alongside LIGHT.

Out of scope, stated plainly. A stolen key (the holder of a key is that sender), host or root compromise, and physical or social attacks are not addressed here. LIGHT removes the shared-language and unsigned-message vectors, not every conceivable one. The edges — where LIGHT meets a standard form — are the one place the shared-language surface briefly exists, so this page — the one edge built here — reads LIGHT only through the door, and its own test gates that (claim E1).

The broader claim that a private verified language "neutralises an AI swarm" is a framing, not something this page measures. What is measured is above: the codec, the door, the vault, on held-out files, with the failures kept.

For businessWhat LIGHT does for a company that runs many systems

LIGHT gives a team one internal format for its records and the messages its systems send each other: every message signed and checked before anything reads it, every store lossless and hash-checked, smaller than raw data — and owned outright: MIT, zero dependencies, running on the team's own machines.

What it does for each role

CEO

One internal language the company owns, with no vendor in the loop. Every claim about it was written down before it was measured, and the ones that failed are shown — so what the board hears is what was measured.

CFO

The money is bytes stored and sent, computed below from your own volumes and your own prices; the licence costs nothing. Straight: if you already compress with Brotli, the saving is small and the CPU can cost more than it saves — the calculator shows both.

COO

One format across services and the browser. A whole store packs into one vault with every file's hash checked on the way out, and leaving is one decode pass back to the original bytes.

CTO / CISO

Signed packets from pinned senders, a replay counter, every check on the raw bytes before decode. Measured: 28 sealed test inputs sent raw and 4 forgeries, 0 decoded — and CI measures it again on every push. Every kernel is mutation-gated on GitHub's runner.

Engineering teams

One zero-dependency ES module per job — codec, door, vault, hash. The same bytes in Node and the browser, because the coder uses integers only. Tests and the mutation gate ship with it.

Security, data and compliance teams

Data never leaves your machines; nothing in the kernels does I/O. Decoded data is exactly what was sent, so escaping and validation at the edge stay where your controls already are.

The cost case — your volumes, your prices

Computed in this tab by light/cost.mjs (mutation-gated, like the codec). External figures come only from the sourced basis listed under the result; LIGHT's figures only from the receipt; everything you type stays in this tab. We do not guess your storage or network price: none is in our sourced basis, and yours is the one that matters — leave it at 0 to see only the gigabytes and the CPU.

computing…

linetodaywith LIGHT
loading the basis and the receipt…

How it is worked out: against raw data, LIGHT keeps 1 ÷ the median held-out ratio of today's bytes (the floor — the totals ratio is higher); against Brotli-compressed data, LIGHT's total over Brotli's total on the same held-out files (the smaller win). CPU is the measured one-thread speed, each GB sent encoded once and decoded once, and your store converted once; reads of the store are not counted. On machines you own the CPU is costed as electricity at a laptop processor's base power; if you rent CPU, type your price per core-hour and it replaces the electricity, which is inside the rent. Money rises by CPI each year after the first. If you already compress, the CPU your current compressor spends today is not counted in the today column, so the comparison leans against LIGHT. Not counted: your team's time to roll it out (the Adoption steps), which is yours to estimate.

where every figure comes from

  • loading…

Against what you use now

The standard coders are free, so the honest comparison is bytes, on the same 179 held-out files: LIGHT 318,550 B, Brotli 11 326,952 B, gzip −9 408,024 B, from 1,952,051 B raw. On small messages of up to 2 KB — the size of an organ-to-organ message — the median is LIGHT 430 B, Brotli 475 B, gzip 575.5 B, and LIGHT is smaller than both on 42 of 44. The win over a standard coder is small on big files and real on small messages, which is what systems mostly send each other. What no standard coder gives you is the door: a signature checked on raw bytes before anything is parsed.

Security and data protection

Roll-out

One channel at a time, backwards-compatible at its boundary, measured against your own baseline before it is switched on. The steps are in Adoption.

Ownership, support, exit

Risks, answered straight

The case for the board

LIGHT is a small, owned piece of infrastructure: one internal format whose messages are signed and checked before anything reads them, and whose stores are lossless and hash-checked. It costs nothing to licence and runs without a supplier. Its saving on storage and transfer is real against raw data (3.4× at the median file) and small against data already compressed, and it uses CPU to get it — so adopt it for the integrity of what your systems tell each other, and count the bytes as a measured bonus on your own numbers. Every claim was sealed before it was measured; three failed and are shown. The risk is contained: one channel, backwards-compatible, measured first, and leaving is one decode pass.

AdoptionHow a team rolls it out

LIGHT fits a team that runs many services, agents or devices exchanging structured messages and keeping records — where the same shapes recur, where it matters who sent a message, and where the data has to stay in-house. It is not for bulk data you already compress where CPU is tight, and it does not replace encryption.

  1. Try it on your own data, here. Paste one of your real records into Try it. Nothing leaves the tab.
  2. Run the gates on your own machine. Clone the repository and run the commands in Start here, and the mutation gate as light.yml runs it. You are trusting what you just re-ran, not this page.
  3. Grow your own dictionary from your own files. Split your files by date into TRAIN and HELD-OUT; grow the dictionary from TRAIN only (light/tools/dict.mjs is the method). Version it.
  4. Write down what you expect before you measure. Commit your claims first, as light/claims.json was, then measure on HELD-OUT with the judge and the check tool. Keep what fails.
  5. Wire one channel, backwards-compatible. Make the receiver accept LIGHT packets and the old format; switch the sender when both ends speak LIGHT. break-it's mesh did exactly this: a JSON share from an older node still adopts.
  6. Turn on the door. Pin each sender's key, keep each sender's last counter, refuse anything unsigned. Decode only what the door admits.
  7. Gate it in your CI. Copy .github/workflows/light.yml: the tests, the receipt checks and the pinned mutation gate, with the memory cap.
  8. Keep the dictionaries with the data. Every packet and vault names the dictionary it needs; retire none you ever wrote with.

What success looks like: on your own held-out files, the bytes against your baseline, measured; on the channel, nothing decoded before it was verified; in CI, every kernel clean on every push.

White paperLIGHT: prediction as a shared language, behind a verify-first door

Abstract

LIGHT is a lossless, integer-only, context-mixing arithmetic coder primed with a dictionary grown from an organisation's own files, wrapped in a signed packet whose door verifies sender, signature and counter on the raw bytes before decoding. Measured on 179 held-out files with 19 claims sealed in git before any code existed, it compressed the median file 3.4×, stayed lossless throughout, beat both gzip −9 and Brotli 11 on 42 of 44 small messages, packed a 356-file memory 4.162× byte-identically, and refused every one of 28 sealed test inputs sent as raw bytes and 4 forgeries without decoding any. It failed its 15× target and its 0.5 MB/s speed target; both failures are kept.

1 · Prediction is compression

An arithmetic coder spends close to −log₂ p bits on a bit it predicted with probability p. LIGHT predicts each bit from seven contexts — the bit's place in its byte, the last one to four bytes, the current word, and a match model that finds where the last six bytes appeared before and predicts what followed them — and mixes the seven guesses with weights that learn as they go. The mixed probability, a 12-bit integer, splits a 32-bit range. No floating point is used anywhere, so an encoder in Node and a decoder in a browser make the same prediction for every bit.

2 · A language both sides hold

Before the first byte, the model reads a shared dictionary — 182,969 bytes of the lines the estate writes again and again, grown from TRAIN files only. That primes both its tables and its match history, so a short message made of familiar pieces codes to very little. Copying the primed tables per message would cost megabytes; instead a short message is lent the tables, the first write to each slot is journaled, and the journal hands the model back byte-identical before encode or decode returns (tested by hashing the whole model before and after).

3 · The door

A LIGHT packet is a 23-byte header, the coded body and a 64-byte Ed25519 signature over a fixed domain, the header and the body. The door checks, in order and on the raw bytes: size, magic, version, length, dictionary, sender, signature, counter — and only then decodes. Bytes in any other language fail at size or magic; bytes in LIGHT's own format from someone without a pinned key fail at sender or signature; the decoder is never called for either. Data carried inside an admitted packet comes back exactly, so the edge that shows or runs it remains responsible for making it safe.

4 · Method

The claims and the barrier corpus were committed (ac90c1e) before the codec, the door or any measuring code. Material is every git-tracked JSON and Markdown file of up to 256 KB in the estate's public clones, split by last-commit date into TRAIN and HELD-OUT; the dictionary and every tuning choice read TRAIN only. A pure judge, itself mutation-gated, holds each claim against the measured facts; CI re-runs the judge on the receipt's own facts, re-checks every seal, measures the barrier claims again and runs the mutation gate over every kernel on GitHub's runner.

5 · Results

Median 3.416× over 179 held-out files (L1, 15×: failed, as predicted). 0 round-trip failures (L2). Small messages: median 430 B against Brotli's 475 B and gzip's 575.5 B (L3). Totals: 318,550 B against Brotli's 326,952 B (L4). Speed: 0.369 MB/s encode, 0.366 MB/s decode on one thread (L5: failed). Memory: 356 files, 3,009,962 B to 723,167 B, 4.162×, byte-identical (M1, M2). Mesh: a 64-antigen share 2.499× smaller than its JSON, forgeries refused before decode (K1–K3). Barrier: B1–B3 held. The mutation gate: 345 of 360 mutants killed, 15 reviewed-equivalent with written reasons.

6 · Limits

A shared dictionary saves only what recurs, so new material will not reach 15×. One thread is slow. Against data already Brotli-compressed the gain is small. The dictionary is a versioned dependency that must be kept with the data. The model-facing claims (T1, T2) were not measured in the receipt: the local model timed out on this laptop, and the judge decides them only on the answers the model gives, so they stay unmeasured until it runs. LIGHT is not encryption and does not address a stolen key.

FAQQuestions

What is LIGHT?
One lossless codec the estate's organs use to store and exchange their data. It is a context-mixing arithmetic coder primed with a shared dictionary grown from the estate's own files, so a message both sides partly know costs few bytes. Where it is switched on, memory, organ-to-organ messages and records are carried in LIGHT; it translates to JSON or text only at the edges where the estate meets the outside world.
Did it reach 15× denser than JSON?
No, and that was predicted. On 179 held-out estate files the median was 3.4× smaller than the committed file, not 15×. A shared-dictionary coder saves what recurs; most of a new file is new. The claim was sealed as the bar and is kept FAILED with the measured number.
Is LIGHT a security system?
The security is the cryptographic part: a LIGHT packet is refused unless it is signed by a pinned key, on the raw bytes, before anything is decoded. That is the hard floor. The custom, compressed, evolving language removes the shared-language attack surface on top of that — real, but defense-in-depth, not a substitute for the signature. It does not make injection carried as data safe; only the edge that renders or runs that data can.
Is LIGHT encryption?
No. LIGHT makes data smaller and proves who sent it; it does not hide it. Anyone holding the dictionary can decode a body. Use encryption in transit and at rest for confidentiality; LIGHT's signature gives authenticity and integrity, not secrecy.
How is it measured honestly?
Every claim was committed to git before the codec or any measuring code existed. Files are split TRAIN/HELD-OUT by their last commit date; the dictionary and all tuning read TRAIN only, and the measurement reads HELD-OUT for the first time. A pure, mutation-gated judge holds each claim against what was measured; failures are kept on the page, and CI re-checks the receipts on every push.
Whose work is it?
Powered by the Konomi architecture, created by Thomas Frumkin, used with his permission. LIGHT is the estate's own codec, grown in the Konomi frame; the name follows Thomas's LIGHT language. Supplied by AI Native Solutions. MIT, no licence fee.