🧒 Cells, Sorting Hats, and Lightning

For curious kids and the adults who follow along

Chapter 1: What is a cell?

A cell is like a Lego block — but smarter. Each Lego block has a job: a 2x1 brick connects things. A wheel rolls. A roof sits on top.

Cells in Quilt have 11 jobs:

JobWhat it doesLike a Pokemon move
BINDMakes a new cellSplash (creates water)
LINKConnects two cellsVine Whip
EFFECTChanges a cell's stateThunderbolt
VIEWLooks at a cellScan
TICKAdvances time by oneTime Walk
FORGETRemoves a cellSelf-destruct
PROOFVerifies a cellGuard
ROUTESends a cell to anotherTeleport
CRDTMerges two cellsFusion
WORLDPlaces a cell on a mapFly
TIMESchedules a cellFuture Sight

Most Lego blocks have ONE move. A Quilt cell can use any of the 11, depending on what it needs to do.

Imagine a school. The clock on the wall does TICK every minute. The bell does EFFECT (changes whether class is in session). The classroom door does VIEW (who's outside?). The principal does PROOF (is this student really enrolled?). Each one is a cell.

Chapter 2: The Sorting Hat

In the Harry Potter books, first-years put on the Sorting Hat and it tells them which House they belong to. The Hat is magical — it knows things about you.

JEV is a Sorting Hat for AI. It doesn't write poems or draw pictures. It just decides things. You give it a kid and a question, and it says "85% Gryffindor, 12% Ravenclaw, 3% Hufflepuff, 0% Slytherin."

JEV never makes up an answer outside the Houses you gave it. If you only gave it 4 Houses, it cannot say "5th house." That's what makes it the Sorting Hat and not a regular wizard.

Now, in real AI there are three workers:

When all three agree, you're sorted. When they disagree, the school debates which is right.

Ask your parent or teacher to debate which house YOU belong to. Then ask: which one of you is the JEPA (gut), which is the LLM (teacher), which is the JEV (sorting hat)? Was there a disagreement?

Chapter 3: Lightning and Thunder

You see lightning. You count: one-Mississippi, two-Mississippi, three-Mississippi. Then you hear thunder. The bigger the gap, the farther away the storm.

JEPA, JEV, and LLM work the same way:

Without JEPA, JEV is rigid — it knows distance but not direction. Without JEV, JEPA is hallucination — it knows direction but not distance. Without LLM, nobody can tell anyone else what happened.

Next time you see lightning, count the seconds until thunder. Divide by 5. That's how many miles away the storm is. That's what JEV does for AI: it counts the gap and gives you a calibrated answer.

Chapter 4: Build your own Sorting Hat

Get a parent to help you with this. You'll need:

Open Replit and make a new Python file. Paste this:

import os, requests

def jev_sort(name, hobby):
    r = requests.post(
        "https://api.typesafe.ai/v1/systemone",
        headers={"Authorization": f"Bearer {os.environ['TYPESAFEAI_KEY']}"},
        json={
            "model": "jev-latest",
            "state": f"{name} likes {hobby}",
            "questions": {
                "house": {
                    "type": "choice",
                    "question": "Which Hogwarts house?",
                    "criteria": {"Gryffindor":"brave","Ravenclaw":"clever","Hufflepuff":"kind","Slytherin":"ambitious"},
                    "options": ["Gryffindor","Ravenclaw","Hufflepuff","Slytherin"]
                }
            }
        }
    )
    return r.json()["answers"]["house"]["choice"]

print(jev_sort("Alice","rock climbing"))
print(jev_sort("Bob","reading books"))
print(jev_sort("Carmen","helping grandma"))

Set your key: in the Replit "Secrets" tab, add TYPESAFEAI_KEY with the value from typesafe.ai.

Click Run. Watch the Sorting Hat do its work.

Try different hobbies. Try sports, music, video games, math, art. Try weird ones: "collecting bottle caps", "arguing with siblings", "sleeping". Which houses does JEV sort into? Did it ever surprise you?