From 9a82483cd3aa7d25c92a0e8b6d2aa65350299a2a Mon Sep 17 00:00:00 2001 From: SkateSpots Date: Thu, 1 Oct 2026 18:40:31 +0700 Subject: [PATCH] docs(agents): record the barter-deposit affordance --- AGENTS.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index a1abb60..14ddcbd 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -190,7 +190,11 @@ session with **no other memory of this project**. So: ⚠️ A receipt proves the **PAYMENT, not delivery** — and applies to **money legs only**: a pure hardware swap has no invoice → no preimage → it stays *attested*; the `deposit` proof is the lever that gives barter a real cost. - **Never** promote a barter or a plain `lninvoice` claim to verified. + **Never** promote a barter or a plain `lninvoice` claim to verified. The + **barter deposit** is now a UI affordance: `ListingTradeActions` shows a + "Good-faith deposit" input for `price_type=trade` listings; paying it stores a + **deposit-slot** receipt (`saveReceipt(coord, r, 'deposit')`) that the buyer's + confirm attaches as `depositProof` (`method=trade`). - **Cashu escrow** (marketplace): time-locked **P2PK** (lock to seller + buyer refund key + locktime) — see **`ESCROW.md`** and `src/lib/cashuEscrow.ts` (unit-tested). Protocol: `cashu_token` on the `31872`; each user advertises a