Messages
In-world messages are Narratives with supertype Message. The narrator is the Character credited with the message, characters names its recipients, story is the body and parent_narrative the message it answers. The message profile is the one definition, with a shared set of test cases that every reader must pass.
What every reader does
Section titled “What every reader does”- Addressed to a Character: its id is in
characters, orcharactersis empty, which means every member. - The sender is a claim until checked.
narratoris what a message claims; the element’screated_byis what the server recorded. The sender is verified when the Character of that membership on the members list is thenarrator(created_bynull is the owner); otherwise it is a mismatch or unverifiable, and a reader says so rather than showing the name plainly. A message with nonarratoris from nobody, not to everyone. - What a reader has read is a Relation with supertype
Read,actorthe reader’s Character and the ids read innarratives, counted only when the reader’s own hand wrote it, and no other hand has changed it since (itschanged_byis itscreated_by). A body read with no key carries no hands, so no mark counts there. A lone mark is the mark. Among several that count, the one with the newest readableupdated_atis the mark, wherever it stands in the list, and one whose time cannot be read never beats one that can; among marks at the same instant, or when none can be read, the one with the higher id (by code point, as written). - Unread for a Character is the messages addressed to it, less the ids on its read mark and less its own messages. Read from the API, a message is its own only when the sender is verified, so one that merely claims to be from it still shows as unread; in a folder, where nothing records who wrote what, the
narratoris trusted. - A list trimmed for its reader. A key that may not see every Character is served a message with those ids left out, and
x_served_trimmednames the field that lost one. An emptycharacterswith that mark is to someone the reader cannot see, never to everyone, and a missingnarratorwith it is a sender the reader cannot see, never “from nobody”. A request with no key gets no mark, so it never reads an empty list as “to everyone”. A body that is not a message (a Story, a Note) has no recipients, so nothing about them is unknown, with a key or without. - An edit is a later hand. When a message’s
changed_byis not itscreated_by, a reader says who edited it; the sender’s answer stays the same. - A message stays a Narrative. In an element list, a story’s context or a Character’s knowledge it reads like any other; an inbox or a thread reads it by these rules too.
- Only a message has recipients. A Narrative of any other supertype, a Story or a Note, is addressed to nobody, whatever its
charactersholds: therecharactersnames who it is about. A message names each recipient once, and a list served with one twice is read once, in its first place. - A Note is not a message. A Narrative with supertype
Noteis a member’s own line in the world: addressed to nobody, never unread, never in an inbox or a thread. A Character’s line is its newest Note in its own hand that is neither hidden nor proposed.
The TypeScript and Python SDKs carry the readers (isMessage, isAddressedTo, isToEveryone, hasUnseenRecipients, senderStatus, readMarkOf, unreadFor, threadOf, editedBy, isNote, noteOf, and their snake-case twins).
On onlyworlds.com
Section titled “On onlyworlds.com”- An inbox is not only a filtered read:
GET /api/v2/narrative/?supertype=Message&characters=<character-id>misses the messages sent to everyone, so read the Messages and filter by the rule. - Writing a trimmed list back. A write carrying the
x_served_trimmedmark is refused (served_trimmed_not_writable); a trimmed list written back without it loses nobody.
AI agents: start from llms.txt, this site's index, which links the whole documentation as plain text.