Braid

Braiding language models to decentralize knowledge.

Multimodal attribution tracking, powered by AII and served by braided models. Text, code and images keep their addresses from the moment they are written; every token Braid writes says how much each Thread supplied and cites it, so a contribution can earn its royalty. It starts in Craft.

  • Textpassages
  • Codefunctions
  • Imagesdescribed in words

one Thread each one braid, every token cited

Braid for MacComing soonHow it works
rao-studios/BraidBraidPrivate · coming soonrao-studios/AIIAmbient Intelligence IndexPrivate · coming soon

Whose words shaped the answer?

Most language models are trained on text with the names taken off. A crawler collects it, a pipeline cleans it, and somewhere between the two the one fact that mattered most — who wrote this — is discarded as noise. By the time a model answers you, the question of whose words shaped the answer cannot be asked. The information needed to answer it was thrown away before training began.

When does generative AI qualify for fair use?
The question Rao’s stack was built to answer — Sewn, README, 23 October 2025

Braid starts from the opposite premise: provenance is training data too. If the address of every passage survives from the moment it is written to the moment a model learns from it, a model can give that address back — not as a search result stapled to the answer afterward, but as part of what it generates.

That is only possible if the data arrives with its address intact. So the work does not begin with the model. It begins where the data is made: in Craft, and in anyone’s AII.

Thread, where every contribution keeps its address

Everyone who uses Rao’s products has a Thread: the index at the heart of the Ambient Intelligence Index (AII), installed once on their own Mac and shared by every app, each app writing only to its own lane. An AII — Craft’s, or anyone’s — takes three kinds of input: text, code, and images described in words. They are tracked the same way, so each can earn its share of royalties.

Each input is cut into partitions; each partition is embedded on device to 1,024 dimensions and quantized; and what it mentions is folded into a knowledge graph of entities and relationships, where entities merge across lanes. An image never enters the Thread; its description does, tile by tile, so a picture can be cited like a sentence.

Every partition is content-addressed — named by the SHA-256 of its own content. The same passage arriving from two places is stored once. More importantly, it has an address that never changes, and that address is what a citation will eventually point to.

rao-studios/AIIAmbient Intelligence IndexPrivate · coming soon
Figure 1

Text, code and an image, one Thread

A passage, a function and a described frame from one person’s day, written to their AII. The image never enters the Thread — its description does. Every address is the real SHA-256 of the text shown.

  1. TextpassagesRead in Reader · 09:14

    A passage you read

    Distance is not painted in white. It is painted by taking the darks away — the far hill keeps its outline and loses its shadows, one layer of air at a time.

  2. CodefunctionsWritten in Craft · 10:02

    A function you wrote

    float fogAmount(float depth,
                    float density) {
        return 1.0 - exp(-density * depth);
    }
  3. Imagesdescribed in wordsDrawn, then described · 13:20

    A frame you drew, described

    The near pylon of a suspension bridge, sharp and dark against pale fog. Its main cable sweeps away to the right, toward a second pylon that is almost lost; behind them the horizon is a pale, unbroken band.

  1. 1Partitioninto passages, lines or tiles
  2. 2Embed1,024 dimensions, on device
  3. 3Quantize4 KB of floats become short integer codes
  4. 4Graphentities and their relationships
  5. 5Addressthe SHA-256 of the content

Your Thread

thread 857299ac…4645 · a directory on this machine

AddressFromWhere in itEntities in the graph
27adc829…20c8Textpassagescharacters 1,204–1,360atmospheric perspective, contrast, distance
7ebaff20…cf81Codefunctionslines 14–17 of Fog.metalfogAmount(depth:density:), exp, Fog.metal
afadbeb3…c60cImagesdescribed in wordstile (1, 2) of 4 × 3suspension bridge, pylon, fog, horizon

Point at an input or a row to see its whole address.

Nothing in a Thread leaves the machine it lives on by default. It is yours in the plain sense: a directory on your disk, not an account on someone else’s server.

Braid, from everyone who chose to give

A Thread makes one person’s AI better. Braid is how everyone’s knowledge becomes general understanding — with their consent.

Braid is a braided language model. A pretrained model, the commons, is shared by everyone. When a person chooses to contribute a Thread, it becomes a strand of the braid: blocks trained on that Thread alone, read from its lanes in AII, running in front of the commons’ own, and an index of every position in its text — carrying the same addresses it had on the machine where it was made.

For every token it writes, Braid reports how much of that token each strand supplied. The shares are exact and sum to one. Each Thread’s part is cited to its own text, resolved to the exact span, and the citation can be re-read token for token. There is no attention and no KV cache: the commons is a state-space model, so everything a strand knows about a session is a fixed-size state that can be checkpointed, hashed and replayed.

Knowledge that was given can be generalized. Knowledge that was not stays where it is. The model learns from what people contributed, and says precisely whose it was.

rao-studios/BraidBraidPrivate · coming soonrao-studios/AIIAmbient Intelligence IndexPrivate · coming soon
Figure 2Illustration

Many Threads, one braid, every marker traceable

Contributed Threads each join the braid as their own strand; the rest stay on their machines. Follow a marker in the answer back to the one Thread it rests on.

Marker 1 rests on a passage you read — in your Thread.

  • Thread contributed with consent
  • Thread that stays on its machine

Threads dock and undock, a stitch a token

A braid does not have to be fixed for a whole answer. Threads attach and detach at token boundaries: change the link mid-answer and the next token is written with the new set behind it. Nothing is reloaded from the start; a Thread that joins late catches up in one pass.

So an answer can be knitted from whoever knows each part, in any of the three inputs. The commons gives the words no Thread has. A Thread that knows the code leads the code; one that knows the picture leads the picture; and the stream that comes out says, token by token, who led it — which is what a royalty is paid on.

Figure 4Illustration

One answer, three Threads in turn

As the link names a Thread, it docks and winds into the commons; as the link drops it, it undocks. Each stitch is a token in its leader’s colour, and the answer below is washed the same way.

the commonsTextundockedCodeundockedImagesundockeda tokenone stitch a token

The answer, as it is written

 

  • commons 0
  • Text 0
  • Code 0
  • Images 0

A citation, followed all the way back

Suppose you contributed your Thread. Months later, someone you have never met asks Braid about fog in a bridge scene. This is the answer they would read — and every marker in it leads back to your day.

Figure 5Illustration

Four sentences, four sources

Each marker resolves to a sentence in the answer, the passage it rests on, the exact words or tile, and the Thread that passage came from. Ranges and addresses are computed from the text shown.

Someone asks

How should the fog in a bridge scene behave?

Braid answers

Fog reads as distance because it takes contrast away rather than adding white: far shapes keep their outline and lose their darks first. Its density compounds — each stretch of air passes on the same fraction of the light behind it — so the falloff is gentle up close and steep past a certain distance. In a shader that is one expression, used to mix the surface toward the fog color: 1.0 - exp(-density * depth). Keep the horizon pale and the nearest pylon crisp, as in the reference frame.

Choose a marker to follow it back.

1Textpassagesa passage you read
  1. In the answersentence 1, characters 0–136
  2. Rests onsha256:27adc829…20c8
  3. Exactlycharacters 1,255–1,276
  4. Fromthread 857299ac…4645 — yours, contributed with consent

Distance is not painted in white. It is painted by taking the darks away — the far hill keeps its outline and loses its shadows, one layer of air at a time.

Read in Reader · 09:14

A citation that stops at a web page is a reference. One that resolves to a span, a passage, a Thread and a person who agreed to share it is an account — and an account is something people can be credited from. Braid derives that credit from every session: royalties by Thread, and by the document each citation rests on.

Braid for Mac, and Craft’s records

Braid.app is a Mac window onto a braid: one page to ask, one to train. It is not released yet. These are screenshots of it running today, on the 1.5b commons, with a Thread of code attached.

Its first Threads come from Craft. Use Craft as you would; it keeps a training record of each turn in its lane of your AII. When you want a model that knows your code, point Braid at those records and train.

Braid.app’s Inference page: the craft Thread attached behind the Mamba-3 MIMO 1.5b commons, the question “What version of Deltaloom is pinned?”, and the answer “5.21.29…” washed green, craft 72.5% and the commons 27.5%.

Step one · Inference

Attach Threads, and ask

Choose the Threads to braid behind the commons; the commons loads first. Ask in Q/A, or give it the start of a passage to complete.

The answer is painted as it is written. Bare paper is the commons. Pigment is a Thread’s share of the token, in that Thread’s colour. The reading beside it says who wrote how much, and which documents were cited.

A token’s card in Braid.app: the full stop after 5.21.29, led by craft at 0.870 against the commons’ 0.130, with its detection and citation readings and the index rows it was found in.

Step two · The card

Read any token

Hover over a word for its card: who led it, every strand’s share, the two readings that detect a Thread and cite it, and the rows of the Thread’s index it was found in. Click to pin it.

The session log is saved beside it. Verify replays it, number for number.

Braid.app’s Training page: Source set to Craft training records, From home · ~/.rao, the Thread named craft-training and labelled Craft · Training, its budget, and how the Thread is shaped at cut 12.

Step three · Training

Make a Thread from Craft

Craft keeps a training record of each turn in its lane of the Mac’s AII. Braid takes the verified ones, whose checks all passed. On Training, choose Craft training records and the AII they live in.

Each record becomes one row: the ask and the code Craft was shown, read but not learned; then the steps, the model’s reasoning and the answer, learned. About one in twenty is held out. Start it, and the run keeps going if the app quits.

Braid.app’s Threads tab: the craft Thread selected, 7,847 entries, 97.6% memorised, mean loss 0.036, and its training curve falling from 4 nats to near zero over 80 steps.

Step four · Threads

See what a Thread learned

Every Thread in a work area: its version, its training curves, its probe reports, and its provenance index, document by document. Test in Inference attaches it.

Braid for MacComing soon

The app and Braid’s source open together. Until then, start with Craft.