Ending a session breaks every reference and pending answer that lives
only in it, so it takes its own update method rather than happening as
a side effect of start. A second start traps again; the clients take
--abandon-all to end the session a previous run left open.
Generated-by: Claude Code (claude-opus-5-5)
shop.mjs runs the ERTP story step by step as the principal of a key
file; connect.js holds the session setup it shares with counter.mjs.
The client stages any number of string, integer, and reference
arguments, and reports why an answer broke.
A new start from a caller closes that caller's old session, so a client
can come back with the same key.
Generated-by: Claude Code (claude-opus-5-5)
Nodes on a canister's subnet can read its state, so no authority rests
on swiss numbers. fetch("home") answers the caller principal's own
durable store of named objects (init, get), found through Loam's name
index and made on first use; fetch("makeCounter") answers the public
maker. Homes, counters, and the CapTP identity live in Loam over the
stable-memory log, reopened in post_upgrade; sessions end with the heap.
The canister installs from 32 bytes of entropy passed as its argument
and refuses the anonymous principal. The client takes a key file, so a
caller can come back to its home, and sends string and reference
arguments.
Generated-by: Claude Code (claude-opus-5-5)