The Tabard's shared world is backed by a relational database (Postgres) — that is the source of truth for the world pool, replenishment, the rumor mill, the world engine, and the notifications feed. On top of that, a player's own saved game can be mirrored to their own ATProto repo — user-owned, public, $0 to us. This page defines that client/backend split and its contract, then the ATProto mirror: the lexicons, the service account, and how anyone reads the records.
There is a database, by design (a relational store is the right tool for the world engine and the rumor mill). The split is clean, and the client never has to think about the DB:
| Side | Owns |
|---|---|
| Backend · Postgres + a service tier | The world pool, content replenishment, the rumor mill, the world engine (tick / cascade), and the notifications/retcon feed. The heavy, global, async, and LLM work — all offline of the player hot path. |
| Client · your browser | A deterministic, inference-free engine that dispatches + dedups: it holds the pool plus your personal seen set and decides what crystallizes where. No round-trip per step; works offline; the same engine whether the pool came from Postgres, an API, or an ATProto repo. |
| What | Shape |
|---|---|
| the world pool | an array of content items (id · type · tags · tiers · content · requires). The backend owns it; the client loads it (already deduped against your seen server-side, or deduped client-side — see below). |
| your character fold | everything you've done: seen_ids + placements (your frozen feature → content bindings) + facts + inventory + tiers/xp. Delivered as one aggregate read or as an event stream the client folds — the engine is deterministic, so either yields the same in-memory state. |
| the notifications / retcon feed | com.minomobi.hoop.story.verdict records on the service repo, tagged with your DID — "the Tabard changed under your feet": rumor-mill pushes and entity diffs. The client fetches its own at load + subscribes live (the engine can't write into your repo, so these live on the service repo). |
The client already does the thing the backend needs: every dispatch computes
pool − what you've seen. Each character carries a seen_ids set;
selection is pool.filter(c => !seen.has(c.id)) → gate on facts/items → tier-bias → pick →
mark seen. First touch crystallizes (freezes a feature → content_id
binding); later touches recall it. So "fetch all character events at load, strip the seen from the pool,
dedup in memory" is the engine — not a new mechanism.
Bindings are by id, so the backend's golden rule (edit entities in place — same content id, never swap) makes most retcons free:
| Backend action | Client effect |
|---|---|
| edit an entity in place (enrich / regen, same id) | recall returns the new body automatically (placement stores the id; content is looked up live). The notifications feed carries the diff, so the player sees what changed without wandering back. |
| retire an entity (status ≠ active) | recall flags it retired → render as a faded / redacted memory. |
| force a re-roll / un-see a binding | the one case needing a push: the feed sends an invalidation (content ids / feature keys to evict from this character's placements + seen); the slot re-crystallizes on next touch. |
Postgres is the source of truth; ATProto is an optional mirror of your save — user-owned, public, durable, $0 to us. Drop it and the game is unchanged; keep it and anyone can read your progress (below). The shared world content can likewise be published to the service repo as a public, rebuildable projection. The records below are that mirror layer.
morphyxmino.bsky.socialdid:plc:yivyyp54vddf7qf2lpsikhe4https://chalciporus.us-west.host.bsky.network
morphyx hosts the shared, read-mostly collections: the world's content pool and the Director's pulse. It never holds your save — that lives in your repo, paid for by you, owned by you.
| NSID | Lives in | rkey | What it is |
|---|---|---|---|
| com.minomobi.hoop.story.save | the player's repo | world key (ship seed) | Your durable game state for one world — facts, placements, inventory, equipment, NPC standing, xp & tiers — as a serialized snapshot (stateJson). Written batched (debounced, on unload), never per footstep. |
| com.minomobi.hoop.story.content | morphyx | content id | One world entity (creature / item / lore_fragment / npc / plot_beat / rumor), stored verbatim. The shared pool the engine crystallizes from; a player's own generated side-quests can be written to their repo under the same NSID. |
| com.minomobi.hoop.story.pulse | morphyx | self |
The shared cross-player rollup — rumor mill, presence, worldVersion, recent canon shifts — re-derived by the engine from events. A disposable projection. |
| com.minomobi.hoop.story.verdict | morphyx | per result | Per-player async results tagged subjectDid — the retcon/notification feed (entity diffs, rumor outcomes). Replaces the old notifications poll; the client reads the ones tagged for it. |
| com.minomobi.hoop.story.rumor | the player's repo | tid |
A rumor the player spreads — a write-only outbox: the client never reads it back. Append-only (rkey = TID), each names a subject (a content id) by reference. The engine tails the firehose for these and may answer with a verdict or new content. Cross-player propagation is the engine's job (a future PvP surface). |
| com.minomobi.hoop.place | the player's repo | tile / chamber addr | A place on the map that anchors a thread (the main-site forum layer). |
| com.minomobi.hoop.message | the player's repo | tid | A message in a place's thread. |
Schemas live in the repo at hoop/lexicons/*.json. The save's stateJson
is a serialized MemoryStore.snapshot(), so the save can evolve without re-versioning the lexicon.
Enough to start publishing. Rules for all of them: every record carries $type =
its NSID; you putRecord(collection, rkey, value) to the repo named below; reads are public,
writes are signed by that repo's key. Edit in place — re-putRecord the same rkey;
for content, retire via status:"retired", never deleteRecord (a deletion
orphans players' crystallized bindings). The three the ENGINE publishes (to morphyx), then the one
the CLIENT publishes (to each player's repo) for your consume side.
com.minomobi.hoop.story.content — engine → morphyx · rkey = contentId (uuid, forever)| field | type | req | notes |
|---|---|---|---|
| type | string enum | ✔ | npc·item·lore_fragment·creature·plot_beat·rumor — which pool a feature dispatches from |
| content | object | ✔ | the renderable payload: {name, description, mechanics?, dialogue?, revelation_hint?} — open-shaped (dialogue trees vary) |
| revelation_tier · narrative_tier · power_tier | int 1–5 | — | hard tier gates; the client gates locally. 1–5 (not 1–3) |
| tags | string[] | — | world/role tags; the role→tag bridge biases dispatch |
| requires | object | — | {facts, items, min_rep} gate blob (client skips min_rep). Empty ⇒ always available |
| approved · status | bool · enum | — | only approved:true dispatches; status: active|retired |
| refs · revelation_hint · produces · source_npc · spreads_via · trigger_conditions | mixed | — | carried first-class from the world_export (spine/gate signals; rumor provenance; plot_beat triggers) |
| lane · provider · genState · createdAt | string | — | provenance: spine|sidequest · who generated it · steer digest · timestamp |
// putRecord("com.minomobi.hoop.story.content", "<contentId-uuid>", …)
{
"$type": "com.minomobi.hoop.story.content",
"type": "npc",
"content": {
"name": "Kael Kest",
"description": "A salt-merchant of the Nave who trades in questions.",
"dialogue": { "nodes": { "greet": { "says": "What currency do you bring?",
"choices": [ { "id": "leave", "text": "None.", "effects": { "end": true } } ] } } }
},
"tags": ["nave", "drift", "market"],
"refs": ["The Nave", "The Drift"],
"revelation_hint": "The Ordinary",
"revelation_tier": 1, "narrative_tier": 1, "power_tier": 1,
"requires": {}, "approved": true, "status": "active",
"lane": "spine", "provider": "authored",
"createdAt": "2026-06-19T12:00:00.000Z"
}
com.minomobi.hoop.story.pulse — engine → morphyx · rkey = self (singleton, last-write-wins)| field | type | req | notes |
|---|---|---|---|
| summaryJson | string ≤20k | ✔ | readable rollup the client shows: {travellers, totalMet, topContent, topChambers, tierDist, xpSum} (JSON string) |
| updatedAt | datetime | ✔ | |
| playersJson | string ≤900k | — | the Director's working state {did → {met, chambers, tier, xp}}; not for clients |
| cursor | string ≤32 | — | Jetstream cursor (µs) of the last folded event — where replay resumes |
// putRecord("com.minomobi.hoop.story.pulse", "self", …)
{
"$type": "com.minomobi.hoop.story.pulse",
"summaryJson": "{\"travellers\":12,\"totalMet\":340,\"topContent\":[[\"<id>\",9]],\"topChambers\":[],\"tierDist\":{\"1\":5,\"2\":7},\"xpSum\":4200}",
"playersJson": "{\"did:plc:abc\":{\"met\":[\"<id>\"],\"chambers\":[\"ch0\"],\"tier\":2,\"xp\":40}}",
"cursor": "1718800000000000",
"updatedAt": "2026-06-19T12:00:00.000Z"
}
com.minomobi.hoop.story.verdict — engine → morphyx · rkey = tid (time-sortable cursor) · tagged subjectDid| field | type | req | notes |
|---|---|---|---|
| subjectDid | did | ✔ | the recipient — the client keeps the ones where this == its own DID |
| type | string | ✔ | open: entity_changed · entity_retired · invalidation · rumor · input_result |
| createdAt | datetime | ✔ | basis of the TID rkey / cursor |
| subject | string | — | the contentId the verdict concerns (find the placement); for invalidation, ids may ride in payload |
| world · worldVersion | string · int | — | which save it applies to; a read-only cache-key bump |
| payload | object | — | entity_changed: {entity, kind, summary, added?, before?, after?}; invalidation: {contentIds?, featureKeys?} |
// putRecord("com.minomobi.hoop.story.verdict", "<tid>", …)
{
"$type": "com.minomobi.hoop.story.verdict",
"subjectDid": "did:plc:abc...",
"type": "entity_changed",
"subject": "<contentId>",
"world": "7", "worldVersion": 42,
"payload": { "entity": "Kael Kest", "kind": "npc",
"summary": "rumor churn rewrote his price", "before": { "price": "salt" }, "after": { "price": "silence" } },
"createdAt": "2026-06-19T12:00:00.000Z"
}
com.minomobi.hoop.story.save — CLIENT → player's repo · rkey = world (ship seed) [you consume, read-only]| field | type | req | notes |
|---|---|---|---|
| world | string ≤64 | ✔ | ship seed; one save per world. (= the rkey too) |
| stateJson | string ≤100k | ✔ | JSON.stringify(MemoryStore.snapshot()); schemaVersion = its v field. Decode per the schema below. |
| updatedAt | datetime | ✔ |
// in the PLAYER's repo: at://<did>/com.minomobi.hoop.story.save/<seed>
{
"$type": "com.minomobi.hoop.story.save",
"world": "7",
"stateJson": "{ \"v\":1, \"invSeq\":3, \"players\":[[\"local\",{ \"id\":\"local\", \"revelation_tier\":2, \"narrative_tier\":2, \"power_tier\":2, \"xp\":40, \"seen_ids\":[\"<contentId>\"], \"hp_current\":25, \"hp_max\":25 }]], \"facts\":[[\"local\",[[\"coins\",18],[\"character\",{…}]]]], \"placements\":[[\"local\",[[\"ch0:r5#2\",{\"content_item_id\":\"<contentId>\",\"interaction_count\":2,\"first_seen\":0}]]]], \"equip\":[[\"local\",[[\"mainhand\",1]]]], \"npc\":[[\"local\",[[\"<npcId>\",{\"standing\":0,\"flags\":{},\"current_node\":\"greet\"}]]]], \"inv\":[[\"local\",[{\"id\":1,\"content_item_id\":\"<contentId>\",\"qty\":1}]]] }",
"updatedAt": "2026-06-19T12:00:00.000Z"
}
stateJson decode: it's the engine snapshot (single-player, so each [[id,…]] array
has one entry). players[0][1] = tiers/xp/seen; facts[0][1] = [[key,value]]
incl. character; placements ref content by content_item_id; equipment is
slot→invId resolved in inv. Key player identity on the commit DID, not any field
inside (the inner "local" is ignored).
com.minomobi.hoop.story.rumor — CLIENT → player's repo · rkey = tid [engine consumes off the firehose]| field | type | req | notes |
|---|---|---|---|
| world | string ≤64 | ✔ | ship seed the rumor pertains to. |
| text | string ≤600 | the rumor body — what's being spread, in words. | |
| subject | string ≤256 | the content_item id this rumor is about, by reference (the content isn't copied). | |
| subjectType | string ≤32 | npc / creature / item / lore_fragment / plot_beat / rumor. | |
| subjectName | string ≤200 | display label at spread time. | |
| tier | int 1..5 | revelation tier of the subject when spread. | |
| createdAt | datetime | ✔ |
// in the PLAYER's repo, append-only: at://<did>/com.minomobi.hoop.story.rumor/<tid>
{
"$type": "com.minomobi.hoop.story.rumor",
"world": "7",
"text": "Word spreads of Olo the cradle-keeper (npc).",
"subject": "np-olo",
"subjectType": "npc",
"subjectName": "Olo",
"tier": 2,
"createdAt": "2026-06-24T12:00:00.000Z"
}
Write-only from the client. The game never reads its own rumors; it just appends them.
The engine tails this collection across player repos (Jetstream) and may answer by writing a
verdict (a retcon/notice, possibly to other players) or new shared content — both
channels the client already consumes. No client-side rumor consumer exists by design (cross-player effects
flow back through the verdict feed; direct player-vs-player is a later surface).
Reads are public and unauthenticated — standard com.atproto.repo XRPC. Three steps:
# resolve a handle to a DID curl "https://public.api.bsky.app/xrpc/com.atproto.identity.resolveHandle?handle=alice.bsky.social" # resolve the DID to its PDS (the service endpoint in the DID doc) curl "https://plc.directory/did:plc:xxxx" | jq '.service[] | select(.id=="#atproto_pds").serviceEndpoint'
curl "<pds>/xrpc/com.atproto.repo.getRecord?repo=<did>\ &collection=com.minomobi.hoop.story.save&rkey=<world-seed>"
curl "https://chalciporus.us-west.host.bsky.network/xrpc/com.atproto.repo.listRecords?\ repo=did:plc:yivyyp54vddf7qf2lpsikhe4&collection=com.minomobi.hoop.story.content&limit=100"
An at-uri names any record exactly: at://<did>/<nsid>/<rkey> — e.g. your
save is at://<your-did>/com.minomobi.hoop.story.save/<seed>.
Does the round trip in your browser — resolve a handle, find its PDS, and fetch any
com.minomobi.hoop.story.save records there. (Empty if that person hasn't signed into the game.)
Why this shape? See the data-flow and the story spine. The rule that matters: truth is the records; everything else is a cache.