ReturnHarness
The rig behind the return rows of RoomConformanceSuite (#3159, Task 1.9): one host, and as many devices as a row asks for, each of which can lose its link and get it back.
A device's return has to be the room's own work. Since Room.resume was retired (#3215), a joiner whose link tears re-weaves through its factory's loom and says Hello again, and the host's key → seat table decides. That loop runs only on a loom that heals the same seam in place: a loom that hands back a new seam leaves the room torn, and it ends HostLost. So the harness owns the fabric, and the rows own the room: nothing here gives a row a way to drive a return through the room it is checking.
hostHeartbeat and joinerHeartbeat are the configs the harness's rooms run, and they are not a detail. A joiner's own reconnect window has to outlast the host's detection plus its hold, or a joiner gives up before the host lets its seat go, and no readmission is reachable at all: RoomConformanceSuite checks that before any row that needs it, and fails naming the numbers.
Rooms run on the test scheduler, so the rows wait in virtual time. A harness whose fabric does real I/O cannot use these rows as written.
That includes a device keeping the pass its host's Welcome carried: a room keeps it in work it schedules after handling the Welcome, and a row that is about to kill the process waits for it by running the test scheduler's pending work once the device sees its host. A harness whose rooms keep the pass anywhere else — another dispatcher, a key store that waits on real I/O — loses it to the kill. The relaunch then has nothing to present, and the pass rows red on the admission policy being asked: returnInsideGrantNoVetting, the in-term arm of expiredGrantIsVetted, and the last arm of revokedSubjectIsVetted.
The rows read the host's clock only off the host's own roster (a partition's since), so the harness's clock may start wherever it likes; it has to move with the test scheduler.
Constructors
Properties
The host's device. The rows call RoomFactory.host on it exactly once.
The config the host's room runs: how fast it notices a silent joiner, and how long it holds a seat.
The session the host opens; joinTag must reach it.
The config every device's room runs: how long a joiner keeps trying to come back.
What a device's room joins to reach hostPattern's session.
Whether the harness can put a pass into a device's Proof that its room would never present: the planted-pass rows.
Whether the harness can lose a pass renewal on a link that stays up: the lost-renewal rows.
Whether the harness can start a process under an id an earlier process of its device had: the superseded-id row.
Functions
Start another process on the host's device — a second tab of the browser the host runs in — and return its factory. Rooms it makes prove the host's own key, under a peer id of their own: a fresh one on every call, never the host's.
A new device, with a key of its own and no process running yet.