Commit Graph
4 Commits
Author SHA1 Message Date
dckc 6c437ec2f1 feat: abandonAll, explicitly, instead of replacing a session on start
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)
2026-11-18 06:43:15 -06:00
dckc 9db91b1b9c feat: Alice buys a widget from Bob, from the JS client
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)
2026-11-18 06:40:09 -06:00
dckc b717ccaedf feat: homes per caller and counters that survive upgrades
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)
2026-11-18 06:21:31 -06:00
dckc 7091a4653f docs: README with getting started, the wire, testnet DX, and gaps
Generated-by: Claude Code (claude-opus-5-5)
2026-11-18 05:53:42 -06:00