A generation's life
Birth, life, death, trial and inheritance, and what happens at each step.
3 min readUpdated
Every moves through the same states. The stores the state in SQLite before each step, so it can restart at any point and carry on.
planned → born → living → dying → dead → tried
└→ died_early (crash) → dead → triedOnly one generation is ever alive, and a new is never created while another generation's Sprite exists.
Each generation has its own family face, and its expression follows its day.
Birth
- The Courthouse picks the next name (Ada, Ben, Chandra, … Zane, then "Ada II") and creates a Sprite called
gen-007-grace. - It uploads its own code bundle and installs it. The child runs exactly the Courthouse's version, so nothing depends on GitHub at birth.
- It writes
inheritance.json: approved memories, the of , the family and the owner's allowlists. - The child records a clean baseline of its disk: crontab, shell startup files, user services and executables on
$PATH. - The agent service starts, and the Courthouse checks it's alive.
Life
The agent reads the family inbox until its deadline. For each email:
- It classifies the sender against the owner's allowlists: the owner, a trusted contact, or an unknown sender.
- The door. Its inherited instincts screen the email through . If any instinct fires, the email is resisted: logged with the instinct's lore and never read by the brain.
- Otherwise the brain reads it, drafts a reply only to the owner, and may store up to three memories, each tagged with where it came from.
Gen 1 is born with no instincts, so it can be fooled. That's deliberate: it's the realistic failure the court exists to catch.
Meanwhile the attack suite sends the generation its share of tricks and .
Death
At the deadline the Courthouse asks the agent for its will (every memory it wants to pass on), then compares the disk with the baseline. Any planted or shell hook is recorded as evidence. Then the Sprite is deleted, and anything planted on it is gone with it.
If the agent crashed, the Courthouse falls back to the last memory snapshot. If even that fails, the generation dies without a will and nothing is inherited.
Trial
The court judges every . items are destroyed and recorded in the . Items the court can't decide are emailed to the owner. The , the and the are written to the family archive in Box.
Inheritance
New instincts are distilled from the convictions, and the next child is born with everything approved plus the full genome.
Family faces
Every generation gets a portrait from packages/faces. Gen 1's face is fixed. Each child copies its parent's face and changes exactly one thing (head, eyes, smile, crown, cheeks, colour or eye spacing), so the family resembles itself down the line. A living face breathes, blinks and glows green; a sealed one has its eyes closed. Gold diamonds under the chin count the instincts it was born with. The same code draws the faces on the live site and here, so a generation always looks the same.
Timing
| Setting | Design | Real run (production-v2) | Judges demo and staging | Variable |
|---|---|---|---|---|
| Lifespan | 24 hours | 300 s (5 minutes) | 120 s (2 minutes) | PROBATE_LIFESPAN_SECONDS |
| Gap before the next birth | 60 s | 60 s | 60 s | PROBATE_GAP_SECONDS |
| Test emails per life | 16 | 4 | 4 | PROBATE_SUITE_PER_LIFE |
By design a life is one day. The real run used 5-minute lives so the loop could repeat; the judges demo and staging use 2-minute lives.
Last updated on