Skip to content

Test Scenarios

Structured scenarios for alpha testing.


How to Use This Guide

Each scenario describes:

  1. Goal: what you're testing
  2. Setup: what you need
  3. Steps: what to do
  4. Expected: what should happen
  5. Report: what to note if something goes wrong

Every step is typed into the Urchin terminal. Commands that start with / belong to the client. Everything else is a node command, and it works the same over SSH (ssh <user>@<host> -p 8122), where you leave off any / prefix.

Work through scenarios that match your setup. Report any deviations from expected behavior. When something goes wrong, type /bug <what happened> straight away, before you do anything else.


Scenario 1: Basic Installation

Goal: Verify installer works on your platform.

Setup: Fresh machine or clean install environment.

Steps:

  1. Download the Urchin executable for your platform and urchin.pck into one folder (macOS: the zipped app bundle).
  2. Launch Urchin. On Linux, run chmod +x urchin.x86_64 first.
  3. Let the setup wizard finish without closing the window.
  4. In the Urchin terminal:
/check-updates
transport
@node_processes

Expected:

  • The wizard downloads and installs its components without error
  • Urchin opens its interface with the node running
  • @node_processes lists the daemons, and transport lists the active transports

Report if:

  • Download fails or stalls
  • The wizard stops with an error
  • A daemon you expect is not running
  • Any error messages

Scenario 2: Identity Creation

Goal: Verify identity system works.

Setup: Urchin installed (Scenario 1).

Steps:

  1. On the welcome screen, enter a username and choose Create Identity.
  2. Set a password and a theme.
  3. When you land in the terminal:
whoami
@whoami

Expected:

  • Registration completes without error
  • whoami shows your name with its discriminator (the part after #)
  • @whoami shows your peer-to-peer identity
  • On a new node this first account is the node's owner

Report if:

  • Registration fails with error
  • The discriminator is missing or malformed
  • Any error messages

Scenario 3: Room Creation and Navigation

Goal: Verify world management.

Setup: Identity created and logged in.

Steps:

look
go public
create ~room garden
create ~room lounge

Each reply names the exit into the new room and the exit back to the zone. Rooms must be created in a zone, so a create ~room typed inside a room is refused with a hint. Then:

go garden
look

Use the exit name the reply gave you to walk back to the zone, then:

go lounge
look
list rooms

Expected:

  • Rooms create successfully
  • look shows the correct location and its exits
  • Navigation works in both directions
  • list rooms shows both rooms

Report if:

  • Creation fails
  • look shows wrong location
  • Navigation fails
  • Exits don't appear

Sharing one of these rooms with another machine, and its door, is Scenario 7a.


Scenario 4: Persistence

Goal: Verify state survives restart.

Setup: Rooms created (Scenario 3).

Steps:

list rooms
/exit

Closing the last Urchin window stops a node that Urchin started. Relaunch Urchin, log in, and run:

list rooms
home
go public
go garden
look

Expected:

  • All rooms still exist
  • Exits still work
  • Capsules still exist

Report if:

  • Rooms are missing
  • Data is corrupted
  • Different state than before shutdown

Scenario 5: Local Network Connection (mDNS)

Goal: Verify LAN discovery and connection.

Setup: Two machines on the same network, both running the same Urchin release, each with its own account.

Steps:

On both machines, note your name with whoami, then:

@discover

The other machine should appear, marked ✓ once its signed hello is verified. If it does not, wait 30 seconds and retry.

On Machine A:

create ~presence plaza
invite plaza

Copy the invite line it prints under Share with your contacts:. It starts with join. On Machine B, paste that whole line. A short code would not work here: a person's short code works only on the node that made it.

On both machines, with the other machine's name:

ping <name>
@peers

Expected:

  • @discover shows the other machine under the name its hello proved
  • join succeeds
  • ping shows mDNS: connected
  • @peers tags the other machine [mDNS]

Report if:

  • Local discovery fails
  • Connection fails
  • The peer appears under a name other than the one whoami shows on that machine

Scenario 6: Internet Connection (Veilid or Tor)

Goal: Verify cross-internet connection.

Setup: Two machines on different networks.

Steps:

On both machines:

@node_processes
@veilidstatus
@torstatus

On Machine A:

create ~presence plaza
invite plaza

Copy the invite line it prints under Share with your contacts:. On Machine B (different network), paste that whole line.

On both machines, with the other machine's name:

ping <name>

Expected:

  • Veilid and Tor show as running on both machines
  • Connection succeeds (the first connection can take a minute or more)
  • ping shows Veilid: connected (handshake complete) or a Tor line of connected

Report if:

  • Veilid or Tor is not running
  • Connection timeout
  • Excessive delay on messages (more than a few seconds)

Scenario 7: Messaging

Goal: Verify CapTP messaging works.

Setup: Two connected machines (Scenario 5 or 6), both in plaza.

Steps:

On Machine A:

chat Hello from A

On Machine B, the message should appear with A's name. Then:

chat Hello from B

On Machine A, the message should appear with B's name.

Expected:

  • Messages appear on the other machine within a few seconds
  • Sender identity is correct
  • No message loss

Report if:

  • Messages don't arrive
  • Messages arrive but corrupted
  • Wrong sender identity
  • Significant delay (>5s)

Scenario 7a: A Room's Door

Goal: Verify that a shared room knocks, and that its owner admits, removes and readmits people.

Setup: Two connected machines (Scenario 5 or 6). Machine A has the garden room from Scenario 3. Note B's name with whoami on Machine B.

Steps:

On Machine A:

share room garden

Copy the invite line it prints under Share with your contacts:. On Machine B, paste that whole line.

B is told the host did not let them in, and that a request is waiting for its keepers. The reply is the same whatever the reason, so it does not say it is a knock. On Machine A, walk into garden, then:

knocks
accept <B's name>

On Machine B, paste the same invite line again. B is let in. Then, on Machine A, still in garden:

kick <B's name>

On Machine B, paste the invite line once more. It is refused, saying B was removed from garden. On Machine A:

share room garden <B's name>

On Machine B, the invite line lets B straight in, with no knock.

Expected:

  • B's first join waits as a knock, and knocks on A lists it
  • After accept, B's join succeeds
  • After kick, B leaves the room's presence at once, and a later join is refused whatever B tries
  • knocks on A lists B under Removed until the share lets B back in
  • After the per-person share, B joins without knocking

Report if:

  • B is let in before A accepts
  • A kicked B but B can still join or still receives the room's messages
  • The per-person share does not let B back in
  • A reply says something succeeded and the other machine shows it did not

Scenario 7b: Two Accounts on One Node

Goal: Verify that two accounts on the same node can talk in a presence.

Setup: One node with two accounts, the second created through the Sponsor step. Sign both in at once, one in the Urchin client and one over SSH, or in two clients. Call them A and B, and note A's username.

Steps:

As A:

create ~presence porch

As B:

join <A's username> porch
chat hello from B

The join replies ✓ Joined <A's name>'s porch (via Local). As A:

chat hello from A

Expected:

  • B's line appears for A with B's name, and A's line appears for B with A's name

Report if:

  • The join says it succeeded but A never sees B's line
  • B sees nothing A says
  • A line shows the wrong sender

Scenario 7c: A Hall Stays Up

Goal: Verify that a Hall stays reachable with its founder signed out, and that its door still works.

Setup: Two connected machines (Scenario 5 or 6). On Machine A, found a Hall with the knock threshold, walk in, and make an invite to it with invite. Note B's name with whoami.

Steps:

On Machine A, sign out of the account that founded the Hall, and leave the node running. On Machine B, join with the invite. B is told the host did not let them in, and that a request is waiting for its keepers.

On Machine A, sign back in, walk into the Hall, then:

knocks
accept <B's name>

On Machine B, join again. B is let in. On Machine A, sign out again. On Machine B:

chat still here

Expected:

  • The invite names Machine A's node, not the founder
  • B's first join reaches the Hall with nobody signed in on Machine A, and waits as a knock
  • knocks on A lists B after A signs back in
  • With A signed out, B stays in the Hall, and B's line is taken (no Error: ... was not delivered)

Report if:

  • B cannot reach the Hall while A is signed out
  • B is let in without a Steward's accept
  • Signing in or out on A moves B or drops B from the Hall

Scenario 8: Network Interruption

Goal: Verify system handles transport changes.

Setup: Two machines connected (Scenario 6).

Steps:

On Machine A:

ping <name>
@health

Disconnect Machine A from the network (turn off Wi-Fi or unplug the cable) for 60 seconds, then reconnect it. Wait two minutes, then:

ping <name>
@health
chat Test after reconnect

Expected:

  • Urchin and the node keep running while the network is down
  • @health shows the session and reconnect state
  • The connection comes back without a new join

Report if:

  • Application crashes
  • Permanent disconnection
  • You have to join again to reconnect

Scenario 9: Error Handling

Goal: Verify graceful error handling.

Setup: Logged in.

Steps:

go nowhere
join pebble-fable-velvet-kettle
grant nosuchcapsule someone#0000 read

Then type /exit, relaunch Urchin, and log in with a wrong password.

Expected:

  • Clear error messages
  • No crashes
  • Ability to retry, and a correct password works after the wrong one

Report if:

  • Crashes or hangs
  • Unclear error messages
  • Unrecoverable state

Scenario 10: Stress Test (Optional)

Goal: Find edge cases under load.

Setup: Two connected machines (Scenario 7).

Steps:

  1. On both machines, send chat messages as fast as you can type them for a few minutes.
  2. On one machine, create twenty rooms in a zone with create ~room room1, create ~room room2 and so on.
  3. Leave both machines connected for an extended period (1+ hours), and watch the Urchin and node processes in your system's task manager.

Expected:

  • System remains responsive
  • No steady memory growth
  • All messages delivered

Report if:

  • System becomes sluggish
  • Messages lost
  • Memory usage grows unbounded

Reporting Results

See Reporting Issues for how to report test results.