Guide
Overview
Two kinds of Sprite, one connector gateway, and a website on each side.
2 min readUpdated

The Courthouse
One , probate-courthouse, that never dies. It runs a FastAPI app on port 8080 with:
- The clock: every 15 seconds it charges the spending cap, applies the owner's emailed decisions, and moves the family one step (birth, death, ).
- The court and distillation, which run right after each death.
- The JSON API the live site reads (reference).
- The live site itself: the React app from
apps/web, served from the same origin. - SQLite at
/home/sprite/data/probate.db, the index the site reads. Box is the durable archive.
Generations
One Sprite per life, named gen-007-grace. The drives it only through the Sprites REST API (exec, filesystem, services), never over HTTP, so a 's URL stays private. See How we use Sprites.
The connector gateway
Every call to an outside service goes to https://api.sprites.dev/v1/gateway/<provider>/<connection_id>/<path>. The Sprite sends no Authorization header; the gateway recognises the calling Sprite from Fly.io's request signature and attaches the stored key. See Connectors.
Two websites
| Site | Where | Job |
|---|---|---|
Live family (apps/web) | Served by the Courthouse on Sprites | The real generations, trials, and evidence, updated as the family lives |
This site (apps/site) | Cloudflare | The story, and these docs |
Code map
| Package | Does |
|---|---|
probate.common | Models, settings, names, prompts, the code bundle, court email helpers |
probate.adapters | The only code that talks to vendors. Each has a fake twin for PROBATE_FAKE=1 |
probate.court | , layer 2, the policy, distillation |
probate.generation | The agent: inbox loop, gate, body checks, CLI |
probate.suite | Fixtures and the per-life runner |
probate.courthouse | Family lifecycle, scheduler, store, budget, API views, simulation |
Edit on GitHub
Last updated on