Commit Graph
9 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 ed7d662d56 feat: ERTP mints, purses, payments, and a shop, in Loam
makeIssuerKit(name) answers a mint; its issuer makes purses, which
withdraw payments and take deposits of their own brand. makeShop(price,
proceeds, stock) sells one unit of stock for exactly price, moving
payment, proceeds, and stock in one Loam transaction. A public board,
a home every caller shares, is where Alice and Bob find each other's
issuers and the shop.

Generated-by: Claude Code (claude-opus-5-5)
2026-11-18 06:35:59 -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 eb15a05668 feat: Loam engine logging each commit to stable memory
Rows live in the heap, as in Volatile; each committed transaction is
also appended to a log that opening replays, so a store survives a
canister upgrade.

Generated-by: Claude Code (claude-opus-5-5)
2026-11-18 06:03:05 -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
dckc da6c3f02ce feat(client): pipeline sends on the fetch's answer
Sends target an answer before it settles (Host.vowSend), so the fetch
and every send cross in one update call. Add icp.yaml for icp-cli, the
successor to dfx.

Generated-by: Claude Code (claude-opus-5-5)
2026-11-18 05:53:10 -06:00
dckc 1177fc86b6 feat: Counter canister and a Node client, over OCapN on a local replica
The canister is freestanding wasm32 importing only ic0. Each caller
principal gets a CapTP session: start carries op:start-session, deliver
carries later frames, and each reply carries the canister's frames.

The client peer is wasm too, driven from Node by @icp-sdk/core. It
holds answer releases so they ride ahead of the next call instead of
costing an update call of their own: handshake, fetch, and each send
are one update call apiece.

Generated-by: Claude Code (claude-opus-5-5)
2026-11-18 05:47:04 -06:00
dckc 6348422012 feat: Counter over glowcap's byte-fed Host, one request/response per round
An in-memory client and canister-shaped server exchange CapTP frames
in Syrup byte-string envelopes, as update calls will carry them.

Generated-by: Claude Code (claude-opus-5-5)
2026-11-18 05:37:48 -06:00