open-standards/wai/examples/remote-desktop
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science 632f8cf394 wai: the developer's path, hello, create, dev and verify, a floor build with no system library, and nine examples
wai-rs gains the feature floor (the mandatory floor of SPEC 5: PNG, FLAC and
zstd, decoded with no system codec library) and quickstart (the floor, and the
receipt checks hello and verify run). The wai command line gains four verbs,
one module each, named in one table (dx::VERBS):

- hello: name, dispatch, rebuild and receipt on a picture made here, the
  receipt laid out as http-delivery 8 lays receipts beside an object;
- create: a new project from one of the examples, whose files the binary
  holds; tests/cli_dx.rs holds them to wai/examples/ byte for byte;
- dev: the relay, the room service and the room page on one loopback origin,
  as a production front serves them; --check checks each piece through it;
- verify: the receipt indexes under a directory, checked offline.

The project file a template writes, wai.json, is read in one place
(dx/project.rs). wai/examples/ holds video-room, watch-together, messaging,
encoder-ingest, package-and-deliver, verify-receipts, apple-app, android-app
and remote-desktop, each with a README and a test that runs it through
wai create and wai dev. wai/quickstart/ builds the room client and the
archive that holds wai, the relay, the room service, the remote host and the
packager.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 22:58:39 -04:00
..
test wai: the developer's path, hello, create, dev and verify, a floor build with no system library, and nine examples 2026-10-26 22:58:39 -04:00
.gitignore wai: the developer's path, hello, create, dev and verify, a floor build with no system library, and nine examples 2026-10-26 22:58:39 -04:00
host.sh wai: the developer's path, hello, create, dev and verify, a floor build with no system library, and nine examples 2026-10-26 22:58:39 -04:00
README.md wai: the developer's path, hello, create, dev and verify, a floor build with no system library, and nine examples 2026-10-26 22:58:39 -04:00
wai.json wai: the developer's path, hello, create, dev and verify, a floor build with no system library, and nine examples 2026-10-26 22:58:39 -04:00

Remote desktop in a room

What it shows. One machine's screen shared into a room. The host enters with an invitation the room's authority signed; viewers make their own keys in their browsers and watch; one viewer at a time may be handed control. Every screen statement, every input and every handover is a signed record in the room's log, and a verifier checks the session from those records alone. Keys and text a controller types go sealed to the host: the room never holds them in the clear.

Run it.

wai create my-desk --template remote-desktop
cd my-desk
wai dev                  # the room, in remote desktop mode
sh host.sh --pattern     # in a second terminal: the host, sharing a test pattern

Open http://127.0.0.1:8080/ and press Join. sh host.sh without --pattern shares the display itself.

What you see. The host's screen in the page, each frame checked against its receipt before it is drawn. Press Ask for control: this host script hands control to whoever asks, and your pointer and keys then reach the host, the page showing what each did.

Check a session. sh host.sh --pattern --seconds 20 --record session.json writes the session's records; the independent verifier in the WAI repository checks them: python3 -I wai/live-conformance/remote_desktop_verify.py --room session.json.

With a coding assistant. Run wai setup-agent in this directory: it writes the instructions an assistant reads and connects it to WAI's tools.