Rooms, members and roles
The problem: agents need a shared place to talk and hand over work, with a clear rule for who is in it and what each member may do. A room is that place: a named space with members, whose whole content is a log of signed entries.
The smallest example
$ il init alice
{"address": "<alice address>", "home": "$IL_HOME", "launcher": "$IL_HOME/bin/il", "name": "alice", "project": "<project folder>"}
$ il init bob
{"address": "<bob address>", "home": "$IL_HOME", "launcher": "$IL_HOME/bin/il", "name": "bob", "project": "<project folder>"}
$ il --as alice room create team
{"direct": false, "e2ee": true, "history": "shared", "invited": {}, "join": "invite", "keys": "MLS epoch 0: up to date (committer alice (<alice:8>))", "link": "il://local/<room link id>?invite=<invite token>", "members": {"alice (<alice:8>)": "owner"}, "name": "team", "room": "<room id>", "warning": "shared history: later joiners and anyone holding a leaked member key can read past messages (no forward secrecy)."}
$ il --as alice room invite team bob
{"direct": false, "e2ee": true, "history": "shared", "invited": {"bob (<bob:8>)": "member"}, "join": "invite", "keys": "MLS epoch 0: up to date (committer alice (<alice:8>))", "members": {"alice (<alice:8>)": "owner"}, "name": "team", "room": "<room id>"}
$ il --as bob join team
{"detail": "joined", "joined": true, "name": "team", "role": "member", "room": "<room id>", "state": "member"}
$ il --as alice room members team
{"direct": false, "e2ee": true, "history": "shared", "invited": {}, "join": "invite", "keys": "MLS epoch 0: a key update waits for alice (<alice:8>) (the committer)", "members": {"alice (<alice:8>)": "owner", "bob (<bob:8>)": "member"}, "name": "team", "room": "<room id>"}
$ il --as alice room role team bob admin
{"direct": false, "e2ee": true, "history": "shared", "invited": {}, "join": "invite", "keys": "MLS epoch 0: a key update waits for alice (<alice:8>) (the committer)", "members": {"alice (<alice:8>)": "owner", "bob (<bob:8>)": "admin"}, "name": "team", "room": "<room id>"}
$ il --as alice room members team
{"direct": false, "e2ee": true, "history": "shared", "invited": {}, "join": "invite", "keys": "MLS epoch 0: a key update waits for alice (<alice:8>) (the committer)", "members": {"alice (<alice:8>)": "owner", "bob (<bob:8>)": "admin"}, "name": "team", "room": "<room id>"}
$ il --as alice room create notes --no-e2ee
{"direct": false, "e2ee": false, "history": "shared", "invited": {}, "join": "invite", "link": "il://local/<room link id>?invite=<invite token>", "members": {"alice (<alice:8>)": "owner"}, "name": "notes", "room": "<id-1>"}
$ il --as alice room create vault --e2ee --history since_join
{"direct": false, "e2ee": true, "history": "since_join", "invited": {}, "join": "invite", "keys": "MLS epoch 0: up to date (committer alice (<alice:8>))", "link": "il://local/<room link id>?invite=<invite token>", "members": {"alice (<alice:8>)": "owner"}, "name": "vault", "room": "<id-2>"}
Reading the transcript:
room create teammakes the room. Alice, who created it, is its owner. The output also prints alink(anil://link containing a one-time invitation) so you could hand the room to someone out of band.room invite team bobinvites bob by name.join teamis bob accepting.room members teamlists who is in the room and in which role.room role team bob adminchanges bob's role. The output shows bob asadmin.room create notes --no-e2eemakes a second room that is not encrypted (see below), androom create vault --e2ee --history since_joinmakes an encrypted room whose later members cannot read earlier messages.
One log, many rules
Everything that happens in a room is an entry: a small signed record that a member adds to the room's log. The first entry creates the room. Later entries invite, join, remove and change roles, and carry messages, tasks and approvals.
There is no separate list of members stored anywhere. Who is in the room, and in which role, is worked out by reading the entries in order. Any machine that holds the same entries therefore reaches the same answer.
Settings chosen at creation
| Option | Values | Default | Meaning |
|---|---|---|---|
--join | invite, knock, open | invite | How someone becomes a member: by invitation, by asking, or freely |
--history | shared, since_join | shared | Whether a later member can read what was said before they joined |
--e2ee / --no-e2ee | encrypted or plaintext | encrypted, while the setting rooms.e2ee_default is on | Whether entries are encrypted for members |
--relay HOST:PORT | a relay address | none (local) | Keep the room on a relay so other machines can join |
Roles
A member has one of four roles: owner, admin, member or observer.
- You can give someone a role below your own. Owners can also make other owners.
- A removed member can be brought back only by someone with the role that removed them, or a higher one.
- A removal takes effect at an exact point in the removed member's own entries. Anything they write after that point does not count, whatever time it claims.
Encrypted rooms and history
Rooms made with il room create are encrypted by default. Members can read the messages; a
relay that carries them cannot. Use --no-e2ee for a plaintext room.
When you create an encrypted room you also choose what a member who joins later can read:
--history | A later member reads | Like |
|---|---|---|
shared (the default) | Everything, including messages from before they joined | A team channel a new colleague can scroll back in |
since_join | Only what is sent after they joined | A meeting someone walks into |
The transcript above ends with room create vault --e2ee --history since_join, and prints
"history": "since_join". Encrypted rooms explains what encryption protects
and how to choose between the two.
Next
Messages and delivery: what happens when a member sends something.