deviant/scripts/lib
Local Dev 235b358160 feat(asm): tier-4 zero-contention retry — wallet + Potidaea + chipnet proof
Wires the client-side optimistic-chain-plus-retry pattern from
`Parameters/ASM_Native/ASM-single-asset-throughput.md` §2d into both ASM
surfaces (beta wallet AsmCore + Potidaea dApp), plus a shared node.js
retry lib and a chipnet script that proves the fix on live infrastructure.

Same-target reservoir contention (measured 1/6 collision under naïve
parallel broadcast in Parameters/ASM_Native/ASM-no-shared-state-contention.md
§4) now resolves silently: on `txn-mempool-conflict`, the wallet
re-plans against the mempool-inclusive tip and rebroadcasts, bounded to
5 attempts with linear `n × 200 ms` backoff. Fully trustless — no
sequencer, no relay, no coordinator.

Chipnet-proven end-to-end: same 6 wallets, same reservoir tip, same
simultaneous `Promise.all` broadcast — Phase A (baseline) gets 1/6
accepted (reproducing §4 exactly), Phase B (wrapped in withRetry) gets
6/6 accepted, 20 total broadcasts, mean 3.3 attempts, all under 3 s.

Snapshots: 0272 (wallet), 0277 (Potidaea), 0275 (chipnet proof).
Contention doc amended with §4a "Wallet-layer resolution — client-side
retry turns 1/6 into 6/6".

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-09-27 20:57:41 +02:00
..
anyhedge-oracle.mjs chore: initial project baseline — full Deviant codebase under version control 2026-06-13 20:38:07 +02:00
asm-retry.mjs feat(asm): tier-4 zero-contention retry — wallet + Potidaea + chipnet proof 2026-09-27 20:57:41 +02:00
btc-htlc.mjs feat(t6): validate BTC↔BCH end-to-end + bonded M-of-N + wallet UX (ADR-0046) 2026-06-28 00:27:04 +02:00
chipnet-keystore.mjs feat(keystore): master-password encryption for Keys/chipnet-keystore.json 2026-09-01 23:58:47 +02:00
chipnet-multisource.mjs feat(asm): Potidaea swap-relay + tally refresh to 52,998 2026-08-14 01:39:41 +02:00
chipnet-safe.mjs chore: sweep in-flight work across all domains 2026-07-29 01:14:33 +02:00
t6-btc.mjs feat(t6-mvp): wire BTC 2-of-2 lifecycle into the wallet — real open + coop close 2026-07-03 00:52:39 +02:00
t6-engine.mjs feat(t6-mvp): self-custodial channel engine — board (checkDataSig) + BTC 2-of-2 (PSBT) 2026-07-02 02:28:47 +02:00
t6-wallet.mjs feat(t6-mvp): two-party self-custodial wallet protocol (Phase 4a) 2026-07-02 18:14:52 +02:00