Files
captoys/counter.did
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

12 lines
496 B
Plaintext

// Each blob of frames is CapTP frames in Syrup byte-string envelopes.
// Install with 32 bytes of fresh entropy.
service : (entropy : blob) -> {
// Open the caller's session with its `op:start-session`.
start : (frames : blob) -> (blob);
// Carry later frames on the caller's session.
deliver : (frames : blob) -> (blob);
// End the caller's session: every reference held through it and every
// pending answer breaks. What the caller keeps at home stays.
abandonAll : () -> ();
}