Seedelf-Wallet

Chunk 34 · Lovejoin token pools

1.6.0’s feature (the owner, 2026-10-13). Lovejoin PR #163 adds a token-mixing variant of the contracts: a launch pools one native token, and every box in it holds exactly box_lovelace ADA plus Q of (policy, name).

We launch no pools. Seedelf users launch them from their private balance: they choose the token and pay the ADA for the launch and the reference scripts. They also carry their own bootstrap and movement problems.

Why it matters: today a token in a one-time account, or one coming back into a Seedelf, is never mixed, so under some circumstances it can be tied to its owner. With token pools, someone buying NIGHT or a stable token can mix it and go back into the mixer, the way ADA already does.

Status: ✅ done, in 1.6.0 (#308, #312, #314–#321 and #323, then the gate, #324, merged as babb8e76; the release’s record is roadmap.md’s handoff note). Archived after 1.6.0, its open items carried into post-release-roadmap.md’s Kept in mind (Left by 1.6.0’s release review and Left by chunk 34’s sessions). Every step below happened, 34g last: its release review of every PR since 1.5.0, its fix rounds and the blind back-translation (Session 12), the final checks, the live run of the collateral’s mix, the PR, the deploy and the upload. The plan went through two rounds of the owner’s questions on 2026-10-13.

Read first:

Design session 1 (2026-10-17)

The owner’s answers to Claude’s first proposal. Where they differ from the sections below, these win.

Decided

  1. Pools are permissionless. Anyone may launch a pool of any token, at any amount: “it’s not me determining what token deserves a pool”.
    • This replaces 2026-10-13’s direction of listed tokens only: D1’s A, and i’s one amount per token.
    • A token may have several pools, one per amount: a 10 $ and a 100 $ stable pool, say.
    • The pool’s creator sets Q. The wallet offers bounds, never a choice of its own.
    • Round three narrows the tokens to the wallet’s token list (20).
  2. Discovery is live. A pool launched after a release must show up without one.
    • Releases are rare. Waiting on the owner to list a pool would also make the owner the judge of what’s real: “not that decentralized”.
    • A list bundled at packaging is only a head start, and never decides what’s real.
  3. Verifying a pool needs no contract change. The owner asked whether the datum should carry the seed, so that the hashes could be reproduced locally. They already are:
    • M, L and F come from P through the pinned templates, and P comes from its seed (§2).
    • The seed is the launch transaction’s spent input. It’s read once per pool and checked by a hash, so whoever supplies it needn’t be trusted.
    • A seed in the datum would save that one read, at the cost of a new contract version.
  4. The Lovejoin page becomes a hub: your mixes, then the pools, with the most used first.
  5. Your mixes: one list, followed to the end. It shows every mix, from either side and in any pool, from its funding until its last box is back.
    • Each card says enough to tell which mix it is.
    • Within a pool, a box that comes back counts against the pool’s oldest open mix, since mixed boxes are interchangeable.
    • 34a′’s records follow from this: a public mix’s record stays until its boxes are counted back.
  6. Bootstrap is a button that sends a number of boxes, at the pool’s value, into the pool with no fan-out.
    • The boxes never come back by themselves. The user brings them back by hand, one at a time.
    • “The bootstrap is very important and must be done.”
  7. The gate stays a floor of 30 boxes not yours, for now, with the crowd stated plainly. The owner’s thought, still to explore: “the floor exists after some bootstrap event”.
  8. Four boxes a mix (D3) is a Settings option. Three stays the default. D3’s fallback to three comes with it.
  9. Cert 0 registers L (Still open 5), and the first real preprod launch confirms it.
  10. A launch is paid from the private balance by default. The public account may pay instead, as the user’s choice to show that link, the way the wallet allows it elsewhere.

Decided in round two

Claude’s second proposal, with the owner’s answers.

  1. A pool is shown when it’s genuine and finished, and the earliest for its values.
    • Genuine proves it’s a real Lovejoin pool: the derived hashes and the seed proof (§2).
    • Finished is the price of being shown: its mix_box and mix_logic reference scripts sit at the holder, and L is registered.
      • That’s about 21.4 ₳ burned for good, beyond a bare pool’s 2.1 ₳. The scripts differ for every pool, and mix_logic refuses deregistration (it allows RegisterCredential and nothing else).
      • So a junk pool costs about 23 ₳, gone for good.
      • Every pool the wallet launches is finished.
    • Earliest for its values, (token, Q, box ADA). A copy is never shown.
      • The fee cap doesn’t count: only fee_contract reads it (self.fee <= max_fee_per_mix_lovelace, line 171 at 8131b1d), and the wallet never uses it.
      • Someone who launches a pool’s values first does no harm. Same values mean the same scripts, and finished means it’s ready.
    • None of this can be undone, so a shown pool stays shown. The read set only grows, and no one’s boxes drop out of view.
  2. The holder is the index. Every launch puts its reference UTxO at 288fea77…, which takes no parameters, so discovery watches that one address.
    • The data layer reads it from db-sync. Koios reads it bit by bit: the address’s transactions after a block height.
    • Everything at the holder is locked for good, so spam there is burned, not parked.
    • The list bundled at packaging (npm run lovejoin-pools) is a head start: the shown pools’ seeds and references, so a first sync skips their lookups.
  3. The hub groups pools by token.
    • The tokens you hold come first, known without a read. Then come the most used, counted as boxes not yours.
    • Each pool shows its numbers, never a “top” badge, since parked boxes can buy rank.
    • Search by ticker or policy. Only the token list’s tokens have pools (20).
  4. The creator sets Q, and may change the box’s ADA within limits.
    • Q is entered in display units.
    • Thirty boxes’ worth (30 × Q) must fit within the token’s total supply. Dropped by the owner’s call 35 (2026-10-19): a typo guard nothing on chain needs, which cost a request naming the token. Q’s only bound is the ledger’s.
    • The form lists the token’s existing pools with their crowds, so a creator can join one rather than split it.
    • A copy of a shown pool’s values is refused.
    • Mixing’s cost per box is said plainly. The wallet prices only ADA (prices.ts), so no bound is in money.
    • The box’s ADA: the wallet suggests the optimum, the least for the token’s shape plus a margin, rounded up to 0.5 ₳. That’s 4.5 ₳ for every token S0d measured.
      • The creator may change it (“there is a lowerbound to the ada because of the token and datum”).
      • The lower bound is S0d’s: a box must come back and then pay part of its token on its own, under the live parameters.
      • The upper limit is 9 ₳ (27).
  5. Returns default to the token’s most used pool that can take a box.
    • Change picks any other pool of the token that works, or skips it, as reviews already allow.
    • “There are going to be a single pool for most tokens so this will probably be a none issue.”
  6. Bootstrap at its best is many users each putting in many boxes: “N users depositing k boxes, where N and k are as large as possible”.
    • A creator doing 30 alone is fine, and “a group getting together” can do a proper bootstrap.
    • The gate stays 30 boxes not yours.
    • The crowd line counts deposits as well as boxes, for example “30 boxes, from 1 deposit, none mixed yet”.
    • Claude’s addition: a pool below the floor shows how its bootstrap is going, with Bootstrap as its main button, so a group can see it fill.
  7. ADA pools on the new contracts are allowed, at any amount but 10 ₳. one_shot_mint accepts an ADA-only datum (an empty policy and name, Q = 0).
    • The classic pool keeps 10 ₳, bundled and still an option.
    • The wallet never launches a 10 ₳ ADA pool. One made elsewhere is a copy of the classic’s value and is never shown (Claude’s reading of “prevents making another 10 ada pool”).
    • This replaces backward compatibility 2’s old rule.
  8. Bootstrap replaces the seed (“Help start the pool”). Seed boxes already in a pool still come back by themselves. It’s to be tried and iterated: “this may just need some testing to figure out the best strat”.

Decided in round three

The owner’s answers to Claude’s remaining questions.

  1. It all ships as 1.6.0. The steps can land as parts, but 1.6.0 is the release that carries token pools: the owner has said so publicly. Nothing ships until it’s all done.
    • Claude’s note: main serves the privacy policy live, so the policy’s Changes entry for the new reads goes in with the PR that releases 1.6.0, not with an earlier part.
  2. Only tokens in the wallet’s token list can have pools, for launching and for showing. A token pool’s token must be in the bundled tokens/list.json for its network. ADA pools need no token.
    • “Then fake tokens are not there”, and the list already holds the high-volume tokens. A new token waits for a release that lists it.
    • Otherwise pools stay permissionless: any amount, several a token, and anyone may launch one.
    • Lookalike marks become moot for pools.
    • The preprod rehearsal’s test token goes into preprod’s list, as an unregistered entry, which test networks allow.
  3. A creator needn’t hold the token: “a creator can just be a creator if they want to be”. The list gives its decimals.
  4. Only standard pools are shown: “A user not following this standard should not be shown.” A standard pool is genuine, has its scripts at the holder and L registered (11), and its token is listed (20). The extension is the guardrail for how pools are made.
    • The standard holds on every network. The owner leaned that way and Claude agrees: preprod rehearses mainnet’s exact rule.
    • So PR #163’s dev pool on preprod (c5852bb7…, its scripts at a key address) isn’t shown. Preprod’s first standard pool is the one the rehearsal launches.
  5. Launching and bootstrapping stay separate. A creator may only create, a bootstrapper only bootstrap, or someone may do both. The launch’s review offers Bootstrap next, and never forces it.
  6. Bring them all back sits beside bringing one back. The wallet spaces the boxes out as normal returns are spaced: one box a run, at random delays, never in one transaction. It’s to be tried for its UX.
  7. Four boxes a mix on every pool, the classic too.
  8. Looking for new pools: Koios is asked when the hub opens; the data layer, at every refresh.
  9. The box’s ADA tops out at 9 ₳ in a token pool. An ADA pool has no upper limit: its box ADA is its amount, and “a user could create large pools”.
  10. The Seedelf minimum stays as it is (Still open 9): the suggested 4.5 ₳ already allows for it.
  11. The preprod tests are dual. Claude runs them in dev mode, the launch included, from the private test wallet. Then the owner tries them by hand, perhaps bootstrapping Claude’s pool: Claude’s automatic run, then the owner’s manual one.

Decided at 34c (the owner, 2026-10-17)

  1. “Finished” is finished by its launch. The launch transaction itself puts mix_box and mix_logic at the holder and registers L, unless L was registered in an earlier block. “Earliest for its values” is then the earliest launch: by block, place in the block, then id.
    • So a pool’s standing is final the moment it’s found: never checked again, never displaced. A shown pool stays shown.
    • Every launch the wallet makes qualifies. A pool finished later, in another transaction, is never shown.
    • Claude’s reason: “first to finish” needs every event’s place on chain and re-checks unfinished pools forever, and “earliest launch, shown once finished” lets a bare 2.1 ₳ launch hold a value.
  2. Deposits are counted as possible origins. A pool’s crowd is every deposit some box in it now could have come from: a mix’s boxes could be any of its inputs. A deposit whose boxes have all left, mixed or not, no longer counts. The data layer works it out (mainnet); on Koios the crowd line shows boxes alone.
  3. Core keeps its own copy of the rules. The data layer’s copy is its own (seedelf-data/api/src/lovejoin/), and nothing new is published for the CLI. The two are held to shared vectors and scenarios. This replaces §10’s small shared crate.
    • The owner asked for an explanation first. The trade: one copy would need seedelf-lovejoin published before core at the next CLI release; two copies can disagree where the vectors don’t reach.

Decided at 34e (the owner, 2026-10-18)

  1. A swap that buys a token a pool takes funds its boxes, on by default. Without it, a swap’s return holds only its 2 ₳ margin beside the token, so no swap’s proceeds would ever go through a token pool. Its review adds the ADA the proceeds’ boxes take (each box’s own ADA, which comes back with it, and its mixes’ fees, which don’t), apart from the swap’s own funding; Change picks another pool of the token, or none. Claude asked; the owner chose it.

Still open after session 1

Each is small, and the step named settles it.

The owner’s calls this builds on (2026-10-13)

  1. The contracts are more or less frozen: “nothing is really wrong with them explicitly”.
    • The fee contract doesn’t matter to the wallet. Its private flow never uses fee shards, so the contract’s N ≥ 3 junk-input issue needs no work here.
  2. 4 ₳ a box in the pools the wallet launches, “but we may need to come back to this one with a provable test showing what exactly it has to be for this flow”.
    • The owner chose 3 ₳ first. Then the review found that a 3 ₳ box comes back as about 2.70 ₳ plus Q, which can’t pay for a partial token send on its own (about 3.39 ₳), so the send would co-spend another UTxO.
    • Step S0d is that test. Its answer (2026-10-17): 4 ₳ covers a typical token with 1.7% to spare, and not the worst a launch can name. The table is under The groundwork; the figure is the owner’s to choose.
  3. Reference scripts at the holder, mix_box and mix_logic only. About 23.3 ₳ that never comes back, plus the fee:
    • mix_logic’s reference, 15.82 ₳;
    • mix_box’s, 3.63 ₳;
    • the reference UTxO, about 1.84 ₳;
    • the stake deposit, 2.00 ₳.

    fee_contract is not published.

  4. Pool spam needs careful discussion: “a rich bad actor … creating an overwhelming amount of bs pools just to slow down the sync”.
    • The direction: listed tokens only, “as we can do it by volume of trading”.
    • Also: “the pool discovery page might be an easy way to filter nonsense or spam pools”. The earliest pool per listed box value “will probably work here”.
    • Still open: “how many pools can exist for that single token”. And “pool creation will be on the user and not the wallet this time”. See D1.
  5. Bootstrap needs a review for every pool, ADA too: “even 30 does not really cut it”.
    • The direction: Bootstrap a pool, at any time. “A user can just bootstrap a pool on their own knowing they won’t come back automatically unlike just using the pool.” See D2.
  6. Mainnet’s check is preprod’s: “test on preprod as that is free, then make sure it works. That way mainnet would be good to go.” No real-money test; the full preprod rehearsal gates launching on mainnet.
  7. Backward compatibility with the existing ADA pool comes first. “New ada pools will probably not be created at this moment.”

Backward compatibility with the classic ADA pool

Nothing a 1.5.x user has, or relies on, moves. Each point is a test or a gate, not a hope.

  1. The classic pool stays as it is. Mainnet’s c145c10f… and preprod’s 67ffe4ed… stay bundled, as Pool::classic, which is today’s Protocol::of. They keep the same hashes, reference UTxOs and 10 ₳. Every builder’s output for them stays byte-identical. lovejoin_mainnet_test.rs, withdraw_zero_test.rs, lovejoin_test.rs and the WebAssembly mainnet tests pass unedited.
  2. The classic pool keeps 10 ₳. ADA pools on the new code are allowed at any other amount (session 1, 17). The wallet never launches a 10 ₳ ADA pool, and one made elsewhere is a copy of the classic’s value, never shown. (Until session 1: “an ADA pool on the new code is never shown, read or used”.)
  3. A return or a mix with no tokens plans exactly as 1.5.0 does. A regression test runs 1.5.0’s planner cases through the new planner and compares the plans byte for byte: the deposits, the fan-outs, the costs on the review. Token boxes only ever add to a plan.
  4. Every record written before still reads, and means the same. A record without a pool is the classic pool’s. That covers:
    • the sealed lovejoin.<network> Schedule (due times, notMixed, unsure, Withdrawing), and chain records;
    • lovejoinMaybe, SESSION_LOVEJOIN_PUBLIC and …SENDING;
    • spent.ts’s reservations, and the session and auto records.

    The upgrade test takes a 1.5.0 vault mid-flight (a chain in flight, a withdraw in its write-ahead slot, boxes due) and checks that it all finishes after the update as it would have before.

  5. Classic boxes keep coming back on time across the update: the same delays, one box a run, the same quiet times. Nothing redraws a due time already drawn.
  6. The data layer keeps 1.5.x working.
    • lovejoin/pool and /since keep their shape and data, and Kupo’s patterns stay.
    • New routes go beside them.
    • The API is deployed before the wallet that reads them is uploaded.
  7. The classic pool’s screens read as today. A user who never touches a token pool sees the same words and numbers. The “10 ₳” strings take the pool’s value, and English stays byte-identical for the classic pool, chunk 19’s rule. The Settings switch keeps its meaning, and Activity’s Into Lovejoin and Lovejoin mix stay.
  8. A restore finds classic boxes exactly as before. Token pools add to the scan, never replace any of it.

What PR #163 changes

The datum and the box value

The one-shot mint and the parameter chain

What it doesn’t check, and what it costs

The bytecode

How it fits together today

The owner scalar

One pool, hardcoded, at:

The flows

The data layer

Choices made here (the owner can overturn any)

1. Pools as data, in two contract versions (seedelf-core/src/lovejoin/)

A Pool holds:

The classic pool stays bundled, as its own trust anchor.

BoxValue::cbor() ports Lovejoin’s crypto/ref/src/value.rs, replaces denom_value_bytes, and is tested on Lovejoin’s 64 box_value parity vectors.

Templates

2. Trusting a pool: verify_pool

Cheap checks first, offline before network:

  1. Shape.
    • The output is at 288fea77…, with no stake credential and no reference script.
    • It holds exactly one P.lovejoin and nothing but ADA besides.
    • Its inline datum decodes strictly as 8 fields within range.
  2. Derived hashes. M, L and F are derived from P, and must equal the datum’s. Every address and reward account is built from the derived hashes, never from the datum.
  3. A genuine one-shot: hash(apply(one_shot_mint, seed)) == P. The script makes the NFT one of a kind, so the seed alone proves it, whoever supplied the seed:
    • the bundled list;
    • the data layer;
    • or the inputs of the transaction that made the UTxO, which takes one tx_info, on the Koios path only.
  4. Not a 10 ₳ ADA pool on the new code (backward compatibility, 2).
  5. Shown only when finished, the earliest for its values, and of a listed token or ADA (session 1, 11, 20, 22). Run the cheap checks first, so a fake costs no lookup: are the derived scripts’ references at the holder (from the same scan), and is L registered (one batched account_info)? Only then the seed proof. As built (34c, decision 30), L is checked once, when the pool is found: Koios’s look reads its launch’s certificates, or, for a launch that didn’t register it, L’s earlier registration (account_update_history); from the data layer’s list (mainnet) it’s the server’s word, by its own copy of the rule.

Verified and usable aren’t the same thing.

An escape hatch for a pool that turns unreturnable: bring a box back with the fee paid from the public account, saying that it ties the box to the account. The withdraw builder has no fee input today (lovejoin.rs:795-833). Since the owner’s call 36 (2026-10-19), the private balance pays by default (lovejoin::withdraw_private: a Seedelf UTxO of ADA alone beside the box, tied to it on chain), and the public account is the user’s visible choice.

3. Finding pools and reading them

Session 1 settled it (11, 12):

4. Builders generalized (core + WebAssembly)

ScriptSpend

Deposit

Mix

Withdraw

Script refs

Large integers

5. Starting a pool

One transaction, straight from the private balance, or from the public account if the user chooses (session 1, 10): an account-paid builder beside this one, for 34d. The private one holds:

It’s about 6.6 KB, and atomic: no half-launched pool, no stranded deposit.

How it’s put together

Checks before the review

The review

Mainnet

6. Choosing pools

Weighed against the review’s traps.

7. Returns through token pools (sessions.ts, wasm/src/lovejoin.rs)

8. Records

A record with no pool is the classic pool’s. Each of these gains a pool:

These stay network-wide: one box a run, the spread, the quiet times, and the inTurn names.

Elsewhere, every place learns every pool:

Two new Activity kinds: Started a Lovejoin pool, and Into Lovejoin · NIGHT.

9. Screens

The Lovejoin page is a hub (session 1, 4, 5, 13):

A pool’s own page shows:

How a mix is shown was settled in session 1 (5). The owner asked for it on 2026-10-14: “how to display a current lovejoin mix just in general needs a review … Mixing from public does not show on the mixes so there is no way to track it”. What the page did before:

Every other screen — Home, Settings, UTxOs, Activity, ClaimAll, SiteSessions, the swap review — shows its figures per pool.

Strings

Docs

10. The data layer (mainnet; deployed before the wallet’s upload)

Session 1 set its shape (11, 12):

The groundwork (2026-10-17)

One branch, web-wallet/token-pools-groundwork, of what needs no more design, so the design session starts from what’s proven. The classic pool doesn’t move: a classic deposit is pinned byte for byte to 1.5.0’s (lovejoin_pools_test.rs), and the classic Lovejoin, withdraw-zero, width and WebAssembly tests pass unedited.

Built, in core (seedelf-core/src/lovejoin/, now a directory):

Built, in WebAssembly (none of it called by the worker yet):

Built, in the worker: only §4’s large-integer fix. The network’s check now hands Ogmios a chain’s unsent UTxOs as the JSON text WebAssembly wrote (RawJson), tested with 2^53 + 1 and 2^64 − 1.

What S0 found

Other findings

Left for the design, and why

34a′ · The records (2026-10-17)

Branch web-wallet/token-pools-records. The step that §8 and session 1 (5, 6, 18) set, as built, in the worker (lovejoin.ts, rpc.ts). Nothing in core or WebAssembly changed. Claude’s choices, the owner’s to overturn.

The gate comes first: 1.5.0’s own record (tests/lovejoin-1-5-0.test.ts, backward compatibility 3, 4, 5 and 8).

What stays as 1.5.0 wrote it. The sealed lovejoin.<network> schedule keeps the classic pool’s fields where they are, with their meanings: due, notMixed, unsure, withdrawing, chains, marks, leaves, origins, asking and unlock. A wallet that never touches a token pool keeps the same record, and chain records keep their 1.5.0 lifetime. Token pools add beside them, never inside:

One rule set, run per pool. Every rule that counted the classic pool’s boxes now counts each pool’s: due times against the boxes that can come back, boxes not mixed yet, a restore’s lookups. Given the classic pool, each gives 1.5.0’s answer, which the gate checks. What’s network-wide stays network-wide: one box a run, the spread, the quiet, the unlock’s draws, and the turns.

Every shown pool is read (session 1, 11 and 12). The read set is the classic pool and what discovery hands the worker (LovejoinDeps.pools, 34c’s). Until 34c, discovery hands it nothing, so the classic pool is all a wallet reads.

Your mixes: mixes, one entry a mix (session 1, 5). The list the hub shows, followed until the mix’s last box is back. Chain records keep their own lifetime, and no rule reads mixes, Bootstrap’s hold aside, so it can’t change how boxes come back.

Bootstrap, a kind of its own (session 1, 6 and 18). Its chain record is a deposit with no mixes, as a seed’s is, marked bootstrap.

Status and Home. status and held keep the classic pool’s figures where they are, so the classic screens read as today. Each token pool read adds an entry under pools, and Bootstrap’s held boxes are listed apart (bootstrap). Two methods are new, for 34d and 34f: mixes(), the list with each mix’s chain while its record is kept, and releaseBootstrap(), Bring them all back.

Also changed:

An independent review of the diff, adversarial, found three that the tests had missed. Each is fixed, with a test that fails without the fix:

Tests: the gate, and tests/lovejoin-pools.test.ts (18), with PR #163’s preprod token pool read beside the classic pool. A token pool read in the same request as the classic pool’s; a pool that doesn’t verify left out; its own due times, and Home’s figures; a token box back through its own pool, its token with it; one box a run across pools; due times kept through a read that didn’t cover the pool; a chain spanning pools; squaring up, and the lag; mixing again taking boxes over; 1.5.0’s entries made once; Bootstrap’s hold, by hand, and Bring them all back, and against a box with no mix and a deposit Koios didn’t answer; a chain that never went; a restore’s lookup per pool, through discovery failing. Thirteen one-line changes to the new rules each fail them.

For later steps:

Left to later steps: building chains into token pools, Bootstrap’s button and the launch’s record (34d); the planner per pool (34e); discovery and the read set’s source (34c); every screen (34f).

34c · Discovery and the data layer (2026-10-17)

Branch web-wallet/token-pools-discovery, from main 88e5be7. Session 1’s 11, 12 and 26, and 30 to 32, as built. Claude’s choices, the owner’s to overturn.

The rule, three times over. A pool is shown when it’s standard and the earliest launched of its values.

The data layer (mainnet, db-sync alone; Kupo indexes neither the holder nor the token pools):

The wallet:

Tests: core’s vectors (2), the ADA pool case in lovejoin_pools_test.rs; the data layer’s rule, settling and assembly tests, 5 crowd tests and the 503 route test (scripted_kupo.rs); WebAssembly’s candidate, launch check and hash-named scripts (lovejoin-pools.test.mjs); the extension’s lovejoin-discovery.test.ts (13), three feed tests in lovejoin-pools.test.ts, the head start’s check, and Remove wallet’s caches. The classic pool’s tests and 1.5.0’s gate pass unedited. Against the real preprod Koios (LIVE_KOIOS=1): the holder, a launch’s tx_info with tx_block_index, and registrations read as discovery reads them.

An independent review of the diff, adversarial, found these. Each is fixed, with a test where one can run offline:

Waiting on the owner: the server’s queries against home’s db-sync (Production Reads are the owner’s to run), from seedelf-data/: cargo test --test live_lovejoin -- --ignored --test-threads=1 --nocapture. It checks that the combined feed’s queries give the classic route’s rows field for field when given the classic pool’s mix box, that the classic pool’s crowd counts the route’s boxes, and that every candidate at the holder is read and checked; with --nocapture it prints each one’s verdict and the classic pool’s crowd.

For later steps:

34d · The flows (2026-10-18)

Branch web-wallet/token-pools-flows, from main 87e83cb. The step’s row as built: the tile’s flows per pool, Bootstrap in place of the seed, a pool’s start from either side, the withdraw’s escape hatch, and Activity. Core, WebAssembly and the worker; the screens are 34f’s, and today’s page changed only where the worker’s change would have made it untrue. Claude’s choices, the owner’s to overturn.

Core (seedelf-core/src/lovejoin/)

WebAssembly

The worker

The page, only where the worker’s change made it untrue:

Tests: core’s launch (7), box value and pools tests; WebAssembly’s lovejoin_flows_test.rs (7); the worker’s lovejoin-flows.test.ts (14): a mix into the token pool from either side, end to end; Bootstrap from either side; a pool’s start and every refusal; the escape hatch; Activity’s names. Also the screens’ BootstrapHeld, the seed’s tests made Bootstrap’s, and the e2e offer. The classic pool’s tests and 1.5.0’s gate pass unedited.

The review’s findings, fixed (2026-10-18). An independent adversarial review of 84c2775 found nine; each is fixed, with a test.

  1. Privacy, high: every mix flow named its pool to Koios. split read one pool, so fits, againBoxes, a session’s chain, publicBuild and publicAgainBuild sent credential_utxos for that pool’s mix_box alone. It lists the whole read set now, as a status read does, and takes the pool’s rows. Test: every read naming a mix_box names both pools, through fits (either pool), room and a token mix’s publicBuild.
  2. Privacy: a private launch landing read the public account again. lovejoin-launch is in PRIVATE_SPENDS; the account’s launch carries a slot, as an account-paid mint does. Tests: private-refresh.test.ts, either side.
  3. Money: a large private Bootstrap was funded, then couldn’t deposit. Capped: core’s bootstrap_most builds the deposit from one UTxO of funding_for(n, 0, box) and the boxes’ token, its change at a base address, and finds the most it pays for by halving. The worker’s privateBootstrapMost asks WebAssembly (lovejoinBootstrapMost) once an epoch per pool, and mixOutBuild refuses more with “Bootstrap 1 to N boxes at a time.” On preprod’s parameters that’s 53 classic boxes, 40 of LJTEST and 35 of the worst token. (Since 1.6.0’s release review, 318-rust#0: the cap builds the deposit and its sweep back, which the funding pays 1.5 ₳ more for: 96 classic boxes, 64 in a token pool, on today’s parameters.) Growing the reserve instead would have changed 1.5.0’s funding at depth 0, which its gate holds. Tests: core’s a_private_bootstrap_is_held_to_what_its_reserve_pays_for (N builds, N + 1 doesn’t); the worker’s refusal before giveme.my is asked, with the public account’s cap unchanged.
  4. Money: a launch rebuilt without the certificate could be another pool. Both builds are made at review. Send sends the one without the certificate only if it makes the same pool, or account_info says its own L is registered too; otherwise it refuses (lj.launch.otherPool) and nothing is sent. Test: a build without the certificate made to name another pool is refused, then sent once that pool’s L is registered.
  5. Money, low: the copy check read a stale list. build calls discovery.look first, the request every wallet makes. Test: a pool the look finds refuses the start as a copy.
  6. Tests: a 1.5.0 seed record (its chain a seed’s, no mixes) still brings its box back by itself once someone else’s mix moved it, as a Bootstrap’s never does; a private Bootstrap’s chain is recorded bootstrap, with its session and no due time, once its funding lands and the session runs.
  7. Privacy: a launch’s asset_info and account_info went out at review. Both wait for Send now (see 4), before anything is sent; the review asks only what any spend asks. Test: neither at build, both at Send before submittx.
  8. Privacy default, low: from missing or malformed launched from the public account. Refused (lj.launch.from) before anything is read. Test: undefined, “”, “account” and “Public”.
  9. Display, low: a paid withdraw left the public balance stale. One the account paid for drops the whole reading as it’s sent and as it lands (watchSent’s toAccount, and settleWithdrawing). Tests: the escape hatch’s, at both moments; private-refresh.test.ts for the watch.

The two new strings (lj.launch.from, lj.launch.otherPool) are machine drafts in es and ja; neither is in the critical set.

For later steps:

34e · The planner, returns through token pools, and four boxes a mix (2026-10-18)

Branch web-wallet/token-pools-planner, from main 9cb97a3. The step’s row as built: each pool’s costs, a return’s tokens through their own pools (§6, §7), Change, a swap that funds its token’s boxes (33), and D3. Core, WebAssembly and the worker; the screens are 34f’s. Claude’s choices, the owner’s to overturn, but 33, the owner’s.

Core (seedelf-core/src/lovejoin/mod.rs)

WebAssembly

The worker

Strings: six new accuracy-critical keys, lj.width.warn.* (4) and lj.tokens.skip.warn.* (2), the worker’s reasons, in es and ja. An independent agent that saw only the Spanish and the Japanese back-translated them. It found the Spanish “mezcla” with no subject (in cost, readable as the ADA doing the mixing), “sus” and “para él” loose for a token, and “alcanza a pagar”. In the Japanese, 件 with no noun read as transactions, 空きボックス as empty boxes, and トークンに選ばれた as chosen by the token. Each was rewritten. The round is “Chunk 34’s 34e round” in verified-critical-*.json.

Tests: core’s lovejoin_planner_test.rs (9): the classic pool three wide as before, each pool’s estimate, plan_across, a deposit and a chain across pools, four wide and short for four. WebAssembly’s lovejoin_across_test.rs (4): a return’s plan and chain across pools, a fill’s token in and a stranger’s out, four wide, the width read on its own. The worker’s lovejoin-planner.test.ts (13):

The classic pool’s tests and the 1.5.0 gate pass unedited. The two preference tests that list every setting gained the width.

Claude’s calls, the owner’s to overturn:

Where it stands (2026-10-18). Built on web-wallet/token-pools-planner. The review’s ten findings below are fixed, each with a test that failed without its fix. Every check passed on the final tree: cargo fmt --check, clippy -D warnings (crypto, core, wasm), cargo test --workspace --locked (618), wasm/build.sh then node --test (53), npm run typecheck, Vitest 2,258 both builds (VITE_ENABLE_MAINNET=false too), npm run build:ext and e2e 100/100. Not run: the store build’s e2e (CI’s last step: never package.mjs in the main tree), and nothing on preprod. Next: commit (code, then docs), push and open the PR into main, as 34d’s #318 went; then 34f.

The review’s findings (2026-10-18, each fixed with a test). An independent adversarial review read the diff (no code run) and found ten. Line numbers are the tree’s before the fixes. The tests are in lovejoin-planner.test.ts’s 34e’s review findings (3’s in swap-runner.test.ts, 8’s in core’s lovejoin_planner_test.rs).

  1. Medium-high, privacy and backward compatibility 3: a token leg that fails sends the whole return back directly, ADA included. chain returns acrossOf’s chain or its throw (lovejoin.ts ~2434). buildBack’s leftOut (sessions.ts ~3726) then returns it all directly when only the token leg failed: its pool’s first mix refused by the network, a PoolShort for that leg, or a deposit over 16 KiB or short of ADA. 1.5.0 would have mixed that ADA. Fixed: a Lovejoin failure across pools (narrower) builds the classic pool’s chain alone, from the same read; each token that was to go in comes back directly, skipped with lj.tokens.skip.warn.failed.
  2. Medium-high: a swap 1.5.0 allowed is now refused at review, with no ways to Change from. tokenWay (sessions.ts ~1383) caps a swap’s token boxes by the chain, the deposit and the room, never by what the private balance pays beside the swap. With a box worth about 10 ₳ that’s about 9 boxes, about 76 ₳ more, and buildFunding refuses (sess.notEnoughPrivate). The pool read also comes before a funding that then fails. Fixed: a funding refused for the private balance (NotEnoughPrivate, by its type) is built again with the token’s boxes at none, the token back directly and skipped with lj.tokens.skip.warn.balance. A swap the balance can’t pay at all is refused as before. The pool read before it stays: it’s the one listing every read is, kept POOL_ROOM_MS.
  3. Medium, privacy griefing (around final review F4): auto.fills takes every arrival as the fill (sessions.ts ~3018). A stranger’s UTxO holding 1 of the approved token and hundreds of junk assets goes into the deposit. Its junk’s least ADA comes from the user’s spare, and the junk comes back as the session’s own token change; enough of it pushes the deposit past 16 KiB, which through 1 sends it all back directly. Fixed: a fill is a transaction whose every UTxO at the account holds ADA and the swap’s tokenIn/tokenOut alone (fillsOf).
  4. Medium, over-funding: againBuild funds at Settings’ width after againBoxes fell back to three. againBoxes names its width only when it’s four (lovejoin.ts ~2305), so funding(..., undefined) reads Settings’ four, records mix.width: 4 beside a fellBack saying three, and over-funds (about 16 ₳ a box at depth 3; it comes back with the return). mixOutBuild reads Settings twice the same way (sessions.ts ~1614). Fixed: both callers pass on the width chosen, three when none is named. fits and againBoxes return what they did, so the classic tests run unedited.
  5. Low-medium: the swap review prices only at the width asked. priced’s poolShort and fits, tokenWay’s room and stopCost use four’s need: a pool with room for three but not four reads “comes back directly” while the return falls back to three and mixes. Fixed: one rule for every chain’s width, wayOver (fanOut, acrossOf, the review). The review weighs the token’s boxes and the ADA’s together, as one chain goes, and shows three with fellBack (new on SwapLovejoin) where four can’t take what three would. Its approval keeps that width. ifStopped and Stop’s dialog go from that width down, as the return does, each with its own width/fellBack. skipped is three’s.
  6. Low: collateralWanted uses Settings’ width (sessions.ts ~3831): at four, a session whose spare pays a three-wide box isn’t offered Put in 5 ₳, and reads noBox. Fixed: priced at three.
  7. Low: with both widths short, four is chosen, so the refusal quotes four’s need (fanOut’s and acrossOf’s rule; againBoxes, publicAgainBuild’s count(4) >= count(3) at 0). Fixed: four only when it takes a box (wayOver, againWay).
  8. Low: plan_across keeps the reserved plan as soon as it leaves tokens (mod.rs ~1516), one token box short at a boundary. Fixed: the unreserved plan is tried first and kept when it leaves no token.
  9. Low, reads: readSet now runs where it didn’t, and can ask the data layer for its pool list (discovery.refresh, throttled by REFRESH_MS): a swap’s quote as the user types (tokenWay → poolsOf), and a return whose spare pays for nothing (acrossOf before countAt’s gate). usable adds an epoch_params read at review. Fixed: a new dep, known (discovery’s kept pools, asking nobody), serves the quote and acrossOf’s first look (readSet(network, true)). funding takes the pool as read, so the quote asks nothing at all. The review reads the parameters once, for usable and the funding alike (readContract’s known).
  10. Low, the plan and the code disagree: wayOf gives {} for a swap with no auto.lovejoin, which then goes at Settings’ width (maybe four) where the plan says three; and a swap’s token leg at return isn’t capped at the approved boxes, so a fill above minAmountOut can take more token boxes, and the classic leg’s ADA, than the review showed. Fixed: such a swap goes three wide (its Stop dialog too). The approval keeps each token’s boxes (auto.lovejoin.tokenBoxes), and its return takes no more (ChainWay.returns.most). Change at a return’s review isn’t capped: that review shows what it builds.

Found while fixing: core’s one_leg_deposits_exactly_as_deposit_from passed about half the time. pallas-txbuilder keeps an output’s tokens in a HashMap, so a token change holding two policies is written in either order, by chance, and so is the deposit’s id. That’s harmless on chain and true of every builder in the workspace. The test now compares byte for byte with one policy, and with two compares the transaction as the ledger reads it, its tokens sorted (read_tx).

The strings: two new accuracy-critical keys, lj.tokens.skip.warn.balance and .failed, in es and ja, back-translated twice by independent agents that saw only the Spanish and the Japanese (“Chunk 34’s 34e review round” in verified-critical-*.json). The first pass found the balance reason readable as the swap itself being short, in the English too. All three languages were rewritten.

Claude’s calls in the fixes, the owner’s to overturn:

The fixes’ review (2026-10-18). An independent read-only review of the fixes found no money bug in the worker’s arithmetic, confirmed each test above fails without its fix for the reason it states, and found three wide unchanged, the reservations sound and the reads within the listing rule. What it found is fixed, each with a test that fails without it (lovejoin-planner.test.ts’ 34e’s fixes’ review; 7’s public side in lovejoin.test.ts), but where said:

  1. The retry was on NotEnoughPrivate alone. A funding whose token boxes took more of the private balance’s UTxOs than one transaction spends (a balance of returned 10 ₳ boxes) still refused the swap. Now any failure but what another try may mend builds the swap’s own funding again; the swap’s own failing too is refused as before (tested).
  2. The fallback marked every token with a pool .failed, over the noBox a leg had this time. Each try now starts each way afresh, and the fallback marks only those with no reason yet. No test of its own: a token leg with no box beside a classic box can’t arise, as the token legs are paid first; the path is the first round’s 1.
  3. The width’s counts and the guess were outside the fallback, so a failure there sent the ADA back directly. Both are inside it now: a guess that fails is the classic pool alone. mixOutBuild’s half of the first round’s 4 has a test now too: Settings changed between the pool check and the funding.
  4. Stop’s dialog left out the token boxes’ ADA when it hadn’t read the account yet. The approval keeps it (auto.lovejoin.fund).
  5. funding threw on a pool: null from a page (typeof null is “object”), which the old code read as the classic pool. Fixed there, and the handler passes a string or nothing.
  6. The guess before any pool read took a token’s first shown pool, where the build takes its most used: now its cheapest box.

Left open:

Found sound: one leg three wide byte for byte as before; the fan-out at a width; indexing of legs, leaves and each leg’s first mix, and crossCheck’s additional UTxOs; the records’ pools, leaves, width and window; strangers’ tokens kept out; protocols_of, poolChoice, namedFor; narrower’s exclusions; one listing for the rooms; the i18n keys.

For later steps:

34f · The screens (2026-10-18)

Branch web-wallet/token-pools-screens, from main 6ca8016 (after #319 merged). The screens over 34d’s and 34e’s RPCs, drawn from session 1 (4, 5, 13, 14, 16), and 34e’s release blocker. Mostly the extension’s UI; the worker gained only what the screens had to read. Claude’s choices, the owner’s to overturn: none was asked this time, and every one is listed under Claude’s calls below.

Lovejoin’s page is a hub (Lovejoin.tsx; session 1, 4, 5, 13):

A pool’s page (PoolPage, the classic pool’s too): its box value as the title, its crowd as the aside (the classic pool’s “The classic pool · …”), the wallet’s boxes, where the data layer counted them the deposits its boxes could have come from (an ⓘ), its launch on Cardanoscan (the explorer’s warning when this wallet started it), the escape hatch, the box actions, Mix and Bootstrap, each scoped to this pool (Bring one back now names it: lovejoin-withdraw-now’s pool). The hub owns the reads and every poll (sessions running, a public mix being sent), so they go on while a pool’s page is open, and a Send comes back to the hub, where the mix is followed.

Start a pool (LovejoinLaunch.tsx; session 1, 10, 14, 17, 20, 21, 23): the token from the wallet’s list (held first) or ADA; Q in the token’s units; each box’s ADA, suggested, with its least and, in a token pool, 9 ₳ as bounds (lovejoin-launch-terms, asked once typing pauses); the token’s pools already shown, with their crowds, each opening its page (a copy highlighted, and Review off with why); Pay from, two tabs, private by default. The review: each box, who pays, what never comes back (the reference UTxO, the two scripts, the stake deposit) and its total, the fee, the total leaving and the balance after, “at most” for the deposit, what’s public, the floor, and the no-audit note. Sent: the pool shows once a look finds it, and Bootstrap is offered from its page, never forced.

Reviews:

Elsewhere: Settings’ Four boxes a mix switch, each depth priced at the width (depthCost), and a line that a token comes back through its own pool. Home’s In Lovejoin, a row per pool with something there. A site’s way back priced at the width. The chain rows say four boxes a mix where they went four.

The worker, for the screens:

Strings: about 130 new keys in en, es and ja; the “10 ₳” keys became the pool’s value (lovejoin.boxesOf, lovejoin.mixes.boxesOf, claim.andBoxesOf, …), English byte-identical for the classic pool. Seventeen are accuracy-critical, back-translated by independent agents that saw only the Spanish and the Japanese, thirteen of them twice (“Chunk 34’s 34f round” in verified-critical-*.json). The first pass found the English itself ambiguous in three (“not whose” with no noun, “the rest” readable as the other UTxOs, an unnamed fee), and all three languages were rewritten for them.

Docs: flows.md (the hub, a pool’s page, a token pool’s mix, four wide, Bootstrap below the floor, the escape hatch, Start a pool, a return’s tokens and the swap approval), architecture.md (the screens), privacy.md (the hub reads nothing new; why a crowd counts boxes not yours), lovejoin-mix-width.md (four is a choice since 1.6.0).

Tests: tests/lovejoin-hub.test.ts (30): a box’s value in words, the groups’ order and search, the crowd line, the pool rows and their news, the hub’s first rows (classic-only word for word, across pools, hidden), Your mixes (order, cards, hidden counts, a stopped chain), Change, the swap approval’s (all but the switch-off case fail on main’s screen), a mix’s reviews in a token pool and four wide, Home’s rows and gate, Settings’ switch. lovejoin-pools.test.ts (7 new): the facts, none on Koios, Bring one back scoped to a token pool and to the classic pool, a pool page’s own errors, a start aged out, the held pool’s box. lovejoin-planner.test.ts (4 new): the switch-off build, a return’s values, the token collateral offer, and a swap’s fill for it in its approved pool. Each worker test fails without its fix. The e2e’s Lovejoin tests take the hub’s extra tap, and the floor’s test Bootstrap leading. A screen harness (the scratchpad Vite harness over the real components) rendered the hub, each kind of pool page, the launch form and review, and the swap approval, for the visual check.

Checks (2026-10-18): npm run typecheck; Vitest 2,299 on both builds (VITE_ENABLE_MAINNET=false too); npm run build:ext; e2e 100/100. No Rust changed. The Lovejoin e2e under taskset -c 0,1 … --repeat-each=4 --workers=4: two steps fail under that load, and fail the same on main’s build (checked in a worktree): the first pool read after a restore (its assertion now waits 15 s, sized to the read) and Home’s banner once a public mix lands (20 s already). Not run: the store build’s e2e (CI’s), nothing on preprod (34g).

The review’s findings (2026-10-18, each fixed with a test that fails without its fix, but where said). An independent adversarial review read the diff and ran the suites; it found the approval’s totals, the pool scoping, the hidden balances, the classic pool’s words and the hub’s effects sound, and twelve issues:

  1. Home hid In Lovejoin when every box was in token pools: its gate read the classic pool’s figures alone. inLovejoinShown counts every pool.
  2. A refused swap’s switch or Change built it again, and Watch then opened the new, unsent build’s index. The switch and Change wait while a refusal shows. (No test: a refusal’s foot over a review, which the screens’ renders can’t reach; the e2e’s refusal paths pass.)
  3. The approval said all of the token is mixed: what’s less than a box comes back directly. It says so, about how much (swaps.lovejoin.privacy.tokenRest), and onToken says whole boxes.
  4. The switch showed where nothing would go in (a token too short for a box, and, with the first fix, every swap with Settings’ Lovejoin off). It shows when something goes, or when it was turned off on this review; a token that makes no box is said under the switch’s place.
  5. The Mix form’s four-wide fallback capped the stepper at four’s room, and priced four while it said three. The stepper offers what either width takes, as widthFor goes; falling back, the funding is asked at three (lovejoin-funding’s new width). Checked in the harness.
  6. Bring one back on a pool’s page gave the other pools’ errors. They’re scoped to the pool too.
  7. collateralWanted didn’t count a swap’s fill, counted a token its approval sent back, and strangers’ with no session: it follows wayOf now.
  8. A token→token swap’s stop line quoted ₳ its boxes weren’t priced on: the funding’s ADA counts only for an ADA swap, as the worker prices it.
  9. Home could say “2 boxes of 0 ₳” for a pool not read this time: it names the pool by its id.
  10. A failed Refresh on a pool’s page threw the user to the hub (and back later): the page stays, saying the read failed, Review off. A return review’s Change no longer outlives the review. (No test of its own; the e2e’s refresh paths pass.)
  11. A start no look ever finds was said to be on its way for good: a day on, it isn’t said.
  12. Money statements were unchecked machine drafts: About 23 ₳ never comes back (the form’s and the hub’s) and the deposit’s at most are .warn. keys now, back-translated; lovejoin.boxesOfTen, removed, left the verified lists.

Claude’s calls, the owner’s to overturn:

For 34g:

34g · The preprod rehearsal and the release (from 2026-10-18)

Branch web-wallet/release-1.6.0, from main e6b5dae (after #320 merged); sessions 1 to 3 committed as 8cc0044 (code) and 030fdcf (docs), the last review’s fixes on top (The last review below), and session 5’s three owner calls on top of those (the owner: “start 34g”, then “get a handoff going right now so we can continue this into a new context window”). The step’s row: Claude’s preprod rehearsal in dev mode, the release review across everything since 1.5.0, its fixes, the policy’s Changes entry, the lists and the version; then the owner’s rehearsal by hand, the PR, the deploy and the upload. #321 merged sessions 1 to 10 into main (68150b39) and #323 Session 11 (web-wallet/collateral-mix, 499768f6); Session 12, the release review, is on web-wallet/review-1.6.0.

The last handoff

Done: every step this section names happened, and 1.6.0 shipped from babb8e76 (#324). What it left is in post-release-roadmap.md’s Kept in mind; what follows is the record.

Next (Session 12’s Left): the final checks on rounds 3d and 4; then Claude’s live run on preprod (the collateral’s mix through the real giveme.my with a lock and unlock mid-chain, a private Bootstrap, and the repaired live harness); e2e on the final tree. The owner’s: the live db-sync tests, their own test of item 11, what’s left of item 4 under Before session 5, Session 12’s calls with the policy’s date, and the earlier sessions’ (Session 9’s, 10b’s six, Session 10’s and Session 11’s). Then the PR, CI green on every step; after the merge, the API’s deploy, status and the curl checks, then the package, the upload and the record PR.

Session 12: the release review and its fix rounds (2026-10-24/25)

Branch web-wallet/review-1.6.0, from main at 499768f6 (#323’s merge), committed as it went: d5fa7ede (the review, and the fix round’s first edits, cut short when the laptop’s editor crashed under the load), 9978654a (those made to build, on the other computer), c87d8dfc (the fixers’ brief), fc8561c7 (round 1), e43eef7f (round 2), 8cd8ce08 (the lists and vitest), 56dce2cd (round 3), 3ea05dc1 (round 3b) and 677715db (round 3c, and the docs). It’s the step’s release review, across everything since 1.5.0, and its fixes. The working record was compressed into archive/plans/review-1.6.0.md once the PR was ready (the owner, 2026-10-26). Its full text (HANDOFF.md, FINDINGS.md, the briefs, fixes/ with each fixer’s report and review/ with each reviewer’s) is in git at 7e2d89ed, and that file’s The IDs says where each family is. What should outlast it is here, in this session.

The review (2026-10-24), read-only, of #308–#323 at 499768f6: 33 slices, one reviewer for each small PR and two to five for each large one (#314, #317–#321, #323); seven lenses across them (privacy, the 1.5.0 upgrade and the classic pool, release readiness, Spanish, Japanese, and two end-to-end scenario walks); then a completeness critic, whose three gaps each got a probe. A skeptic per slice tried to refute every finding, and every high and medium was then reproduced on its own, most by a throwaway test that failed on the tree: 83 agents. 136 findings: 8 high and 8 medium, each confirmed twice; 78 low and 22 nits; 16 owner’s calls; 4 refuted.

The highs were three problems:

  1. Every private Bootstrap failed (318-rust#0, 323-rust#0, x-scenarios-lj#0: the same bug found three times). Session 11’s call 4, a Bootstrap needs no collateral (62162483), left a private Bootstrap’s session 1.5 ₳ beside its boxes, and the deposit’s change, about 1.33 ₳, can’t pay a sweep back into Seedelf (an output’s least is 1.456780 ₳, plus the fee). So the chain failed, and the session came straight back, a second fee paid and no box in. Two unit tests went red with it (x-compat#0, docs-small#0, x-release#0), so CI’s build and e2e never ran on #323, which merged while its check was still running, 12 minutes before that check failed; web-wallet.yml runs on pull requests alone, so main looked green.
  2. A hostile pool (314-wasm#0): a launch whose script output at the holder carries a deeply nested datum (about 37 ₳ to make) overflowed the WebAssembly’s stack as pools were verified, and every mainnet wallet whose read included that pool locked itself.
  3. Two Bootstraps in one pool (316#0): a box brought back by hand was credited to the oldest, whose own boxes then stopped being held and came back by themselves, unmixed, tying its deposit to the private balance.

The mediums: Bring every box back now ended before a just-sent chain’s boxes landed, wiping their due times (321-lj-worker#0); the swap and site approvals’ totals left out the collateral’s mix (323-worker#1); Remove wallet went ahead at the first yes while a payment’s parts waited (gap-1#1); after a restore, a session funded in parts brought back only one part’s tokens (x-scenarios-sessions#0); a public Bootstrap’s banner said its boxes were on their way to the private balance (318-worker#0); a public deposit’s box came back tied to nothing (316#1); the Collateral page opened from Home raced Home’s watch (309#0); and this step’s own gate, still open (x-release#1): the collateral’s mix never ran live or through the real giveme.my, and the owner’s live db-sync tests and calls wait.

The fix rounds. Fixers in the one tree by file ownership, each fix test first: seen failing for its reason, fixed, then mutation-checked (the fix undone, the test failing, the fix put back). Words in en, es and ja together; no refusal the chain wouldn’t make (a warning or a visible choice instead). The lead rebuilt the WebAssembly, ran the suites and committed each round.

The release prep (8cd8ce08): vitest 5.0.1 → 5.0.3 (GHSA-qxg6-89mg-rqv8 and GHSA-xp26-3454-mjgp: moderate, dev-only, nothing shipped; npm audit finds nothing else); npm run tokens, both registries unchanged (2 preprod tokens, 32 mainnet); npm run dreps, one more mainnet DRep named (GNP1_DRep, 465 in all), preprod’s 62 unchanged; npm run lovejoin-pools, preprod’s head start gaining a MIN pool of 4.5 ₳ and 500 MIN a box (three pools; mainnet none); the data layer’s token decimals, from a fresh registry clone, unchanged (1,172 tokens), so nothing to commit. The version was 1.6.0 already.

Checks (the lead’s, on 3ea05dc1 but where said):

For the owner (the calls that matter for the release, each with a recommendation; every fixer’s calls are in review/OWNER-CALLS.md, and HANDOFF.md’s in its section The owner’s calls, both in git at 7e2d89ed (archive/plans/review-1.6.0.md)):

  1. The privacy policy’s date (x-privacy#4, x-release#4): decided (the owner, 2026-10-26): the merge day, 26 October 2026. Its Effective line and its 1.6.0 entry carry that date, and the header’s list names the session collateral’s mix.
  2. A return held at its collateral’s mix for up to a day, with no way out (323-worker#3, x-scenarios-sessions#3; Session 11’s call). The rounds made each wait say why and how long, and let withdraws go meanwhile. Recommended: an “unmixed, now” way out after a few hours, soon after 1.6.0, or in it if the live run finds giveme.my slow.
  3. What a funding adds for the collateral’s mix (reserve’s call 1): 2.8 ₳ at today’s prices for a site’s session and a top-up that pays a new collateral, 1.5 ₳ for a swap or a mix, only where a pool of 5 ₳ boxes would take the collateral (dormant on mainnet until one holds its floor); what isn’t used comes back, and a balance short of it is funded without it. Recommended: keep. The alternative is 1.5 ₳ everywhere, the collateral mixed only where enough is left at the return.
  4. The private Bootstrap’s way back (bootstrap’s calls): its boxes plus 3 ₳, a For returning the rest row, and the cap one deposit’s most (96, 64 in a token pool). Restoring the 5 ₳ collateral isn’t taken (Session 11’s call 4). Recommended: keep; pricing the 1.5 ₳ from the parameters, so a dearer byte doesn’t lower the cap (68 classic boxes, and 51 of LJTEST, at 6,465 lovelace a byte), after 1.6.0.
  5. The collateral’s mix on a swap’s approval with no box (R3-13, sc-o-1’s call 7): its 1.5 ₳ shows with no switch, where a swap with a box has one. Recommended: one line naming Settings → Lovejoin, as the site’s funding note does, which keeps your call that its switch lives in Settings (Session 10); a switch on the approval only if you’d rather. Preprod only in 1.6.0.
  6. Making the Web Wallet check required (HANDOFF): #323 merged 26 seconds after its check started, and the check failed 12 minutes later. Recommended: yes. A check whose workflow a path filter skips stays pending, though, which blocks a PR that doesn’t touch seedelf-platform/, so it needs a job that always reports.
  7. Leave or accept, as HANDOFF recommends: four boxes a mix costing a later token its box where three would mix it (319-rust#1, 319-worker#1; 34e’s open call 8: leave, since four is off by default and mainnet has no token pools); a token return at depth 1 capping its deposit at 64 boxes (319-worker#2: accept); Done said while a box someone else’s mix moved after a later chain is left (321-lj-worker#3); a session funded without the reserve paying its collateral’s mix from what was coming back (323-worker#7); a swap approved under 1.5.0 coming back with a mix its approval never showed (x-compat#3); every private funding reading every pool to price the reserve (x-privacy#3); the store’s WebAssembly wrapping a u64 overflow where test builds panic (x-release#7). Later: Transaction details for every part (321-parts-worker#5). Answered with warnings: a lock cutting a payment’s waiting parts (321-parts-worker#2): the countdown and Remove wallet name them, and Home no longer calls such a payment confirmed.
  8. An ADA-to-token swap whose token gets no box says its collateral is mixed only if enough is left, reserve paid or not, and so do Max’s note (“may take”) and every site’s funding and top-up (fx-promise’s calls 1 and 2). Approved as an order, Minswap may still build that swap against the pools, whose swap leaves the token beside all the ADA, and a return that comes back directly can’t pay for the mix from that; a site’s session’s return holds whatever the site leaves. Recommended: keep for 1.6.0. The collateral’s mix paid from a token UTxO’s ADA (R3-10’s option (a), under Left for later) would let the swap say mixed.

Left, in order:

Left for later: post-release-roadmap.md’s Left by 1.6.0’s release review.

Session 11: item 11’s collateral mixed, not just put in (2026-10-23)

The ask (the owner, 2026-10-23): “can we investigate if the collateral utxo gets mixed or just sent to the mixer? it should be mixed.” It was only sent: the return made the box and wrote its origin as a deposit (noteCollateralBox, { mixed: false }), the wallet’s own chains never draw its own boxes (fresh_for), and Mix my boxes again, which took it first, ran as a session whose own new collateral went in unmixed in turn, so one unmixed collateral box was always left. It moved only if someone else’s random draw took it (Session 10’s call 4). The chicken and egg: the collateral backs every mix of the chain, so it can’t be a box until they’re done.

The owner’s calls: the tail goes fan-out → the collateral into its box → that box’s mix → the return sends the change to Seedelf, the return last; that mix under giveme.my’s collateral (“its a chicken n egg thing”); one wave, three wide; a session’s funding adds about 1 ₳ for it; the waiting mix kept sealed, so a lock doesn’t lose it; back with the rest where the tail can’t be built at review.

Built:

Calls made here (yours to overturn):

  1. The resume and the send-time rebuild are one path, through buildBack (the runner’s, or Bring back): a stopped chain’s tail is built again as a chain of its own, rather than its record renamed mid-send (a chain’s id is its return’s hash).
  2. The rebuild isn’t held back from the unlock run. It’s a return, which the runner sends as it sends a swap’s; withdraws keep their own rule.
  3. The reserve counts only where a funding paid it (SessionRecord.collateralReserve), so a session funded before this never loses a box to it; without, the tail is paid from what the chain leaves, if that’s enough.
  4. A by-hand 5 ₳ (collateralTopUp) adds no reserve: its exact 5 ₳ output is what its checks look for.

Tests: core a_mix_under_givemes_collateral_passes_mix_logic, a_sessions_collateral_goes_into_a_box_and_is_mixed_once; WebAssembly the chain’s tail, the direct return’s, the fallbacks, the reserve, the rebuild with giveme.my’s witness beside the session’s, and the_collateral_never_draws_a_box_its_chain_drew (mutation-proven); Vitest’s tail block in lovejoin-planner.test.ts (the chain, giveme.my only once everything before is on chain, the refusal’s wait then the stop then the rebuild, a lock’s cut holding the return back, the direct return, the floor, off, the funding’s reserve; the giveme wait and makers’ tail mutation-proven), and lovejoin-screens-review.test.ts’ rows. Not run here: e2e, and a live run on preprod.

Its review (the same day, after the session’s crashes; an xhigh review of the two commits, each finding checked against the code). The fix round, each with a test that fails without it (mutation-checked), but where it says none:

  1. A rebuild that never started kept the tail from being built again. recordChain marked the stopped chain’s tail over before start(), and a refused start (another chain had reserved a box it drew) never undid it, so the next return swept what pays for its mix. It hands the tail back.
  2. A Bootstrap’s chain held its collateral’s leaf as one of the Bootstrap’s boxes for good. chainSent counted it under the Bootstrap’s entry in the 5 ₳ pool, and nothing counts a box back against a Bootstrap still holding its boxes. That leaf is no entry’s now, and its return counts against none (countBack; that line has no test of its own).
  3. A direct return with its collateral’s mix lost why Lovejoin was left out. Sent as a chain, sendChain cleared lovejoinSkipped and never wrote the return’s; it writes it, as sendBack does.
  4. An Ogmios behind on the mix’s own inputs stopped the chain. Its deposit’s box or the chain’s change, found on chain by another read, read as a drawn box gone (StalePool), spending one of TAIL_TRIES; tailWitness takes those (ours) as Koios behind, asked again at the next pump.
  5. tailOf read ended without cuts(). A return built before any page had asked Lovejoin anything since a lock took the cut chain for one being sent, and swept what pays for its mix. The runner’s unlock run happened to run cuts() first; tailOf does now.
  6. The plan across pools counted boxes without the reserve its chain takes out (planAcross), so a leg the reserve tips could fall back as failed.
  7. A depth-0 chain’s network check took the collateral’s mix for its first (crossCheck), drawn from a 5 ₳ read unstale never refreshes, and a measurement there would have left the whole Bootstrap out. Never the tail’s: tailWitness measures it before giveme.my.
  8. A rebuilt tail’s landed restarted, so its day ran twice: carried over.
  9. moreThanDue left a sending chain’s leaf’s due time uncounted in the 5 ₳ pool (no test: the window is one transaction).
  10. Bring everything back counted a direct return with its collateral’s mix as one transaction, not three (collateralTail.txs).
  11. lessReserve had taken PrivateReview’s doc comment (no test: a comment).

The lock-cut test now also lists the box once it lands and sends the rebuilt mix, the path the live run’s lock-and-resume will take.

The owner’s calls on what the review left (2026-10-23), built the same day, each with a test that fails without it (mutation-checked):

  1. A deposit that never lands holds the return an hour, not a day (TAIL_UNLANDED_MS, from when its chain stopped): it was most likely dropped, and the return going is safe if it lands after all, since both spend the same UTxOs. Koios not answering still waits. The day stays for a deposit that landed and waits on giveme.my.
  2. giveme.my is asked again after a minute, then two, four, up to 30 minutes (TAIL_WITNESS_WAIT_MS, kept on the chain’s progress), not every pump: a day of a busy giveme.my is about 50 requests, not about 1,400.
  3. No 5 ₳ pool is read for a return whose account holds no 5 ₳ to mix. The rest (the five-minute room cache for funding reviews, one listing through the whole build) after release.
  4. A Bootstrap needs no collateral (the owner: “Entering into the contract does not require any interaction … an oversight into our stack of assuming all transactions with smart contracts require collateral but its only a subset”), built here too (the owner, 2026-10-24: “Just make the changes on this branch”). A private Bootstrap’s funding pays the boxes alone: no 5 ₳ and no tail reserve (mixFunding). buildBack builds its depth-0 chain without one (depositOnly; collateralWanted wants none for it), chain() and plan() take it optional, as do WebAssembly’s ChainRequest and PlanRequest (Holdings.collateral, mixes_collateral, which refuses none only for a chain that mixes, as core’s chain_across does), and its return is a sweep, never merged (the owner’s call: a merge puts up a collateral; the sweep leaves one more private UTxO under the same history). The change goes to an address the session’s own transactions paid, never first a stranger’s. The review drops its collateral row (PrivateReview), the form stops counting 5 ₳ (bootstrapLimits), and lovejoin.bootstrap.cantAfford no longer names a collateral, in three languages. A Bootstrap funded before this keeps its 5 ₳, which its return puts up and merges as before, and a seed’s comes back with the rest, never mixed. Tests: WebAssembly a_bootstrap_with_no_collateral_deposits_and_sweeps_back (and a chain that mixes still refused without one); Vitest the funding’s one payment and no reserve, the return’s deposit and sweep with nothing put up, the review with no collateral row, the form’s bound; each mutation-checked. This branch’s Bootstrap-tail fixes (review items 2 and 7) stay as guards, reached by no new chain. It broke every private Bootstrap: the deposit’s change can’t pay the sweep back, so each came straight back with no box in. The release review found it, and the funding now carries its way back, 1.5 ₳ more (Session 12).

The audit (a subagent, cited to file and line, 2026-10-23) of every flow that funds or requires a collateral found the Bootstrap the one clear case: every other runs a script that needs one, bar two that may not, left as they are since a swap’s way back and Stop’s cancel aren’t known when it’s funded: a direct pool swap (Danogo) whose return comes back directly, and an order swap that’s never cancelled (Stop’s cancel falls back to the largest UTxO of ADA alone). A Bootstrap’s funding now looks unlike other sessions’ (an amount and exactly 5 ₳: privacy.md, The funding’s shape marks it), which costs a Bootstrap nothing, since it shows itself on chain by design, but leaves the crowd of fundings that look alike by one.

Left: WebAssembly’s CollateralTail repeats core’s Tail, for the builder extraction.

Since the release review (Session 12): a site’s funding and a top-up that pays a new collateral add 2.8 ₳ at today’s prices, what a return back directly needs (swaps and mixes keep 1.5 ₳), and a funding the balance can’t pay with it goes without it; withdraws go while the mix waits on giveme.my; each wait says why and for how long; and a chain with no box of its own gets its entry.

Session 10: item 11, a session’s 5 ₳ collateral into the 5 ₳ pool (2026-10-22)

The ask (the owner, testing 1.6.0 on the laptop, after a Bootstrap’s review said it spent money Private sessions 29 and 30 left): “so if we did have a 5 ada pool then we could have a pool for mixing old collaterals?”, then “coming from a private one time session it can send that ada into the 5 ada pool … since after the sc interaction it doesnt need the collateral anymore. We should have it here.” Every return through Lovejoin brought its session’s 5 ₳ collateral back to the private balance under the session’s history (merged into the funding’s change, or a new UTxO), and mixing old collaterals later from the private balance would tie those sessions together in one funding. Asked (the owner’s answers): which returns (every return through Lovejoin, a chain’s or one that comes back directly), the box while it’s unmixed (like any unmixed box: not mixed yet, Home points to Lovejoin, Mix my boxes again takes it first), mainnet with no 5 ₳ pool (dormant until one exists; we launch none), and a switch (its own in Settings). A correction made on the way: a Bootstrap’s held boxes never come back by themselves (bootstrapOf), so the box isn’t held as a Bootstrap’s; it’s a box not mixed yet, as any deposit’s, which other people’s mixes move and which then comes back by itself.

Built:

Tests: WebAssembly lovejoin_test: a chain’s return, merged and swept, puts one box of exactly 5 ₳ at the pool, owned by the key, and returned leaves it out; a direct return, merged and swept, the same; one that can’t pay for the box, or a pool of other boxes, is as before (the fallback mutation-proven). Vitest lovejoin-planner.test.ts (a 5 ₳ ADA pool launched as minPool’s MIN pool is, adaPool): a chain’s return makes the box, its origin is written at Send, and a pool read lists it not mixed yet with no tx_info for the return; a direct return makes it; directly by the switch, Settings off, no 5 ₳ pool, or a 25 ₳ ADA pool, none. Each worker piece mutation-proven (no origin, the switch ignored, the direct return without the pool: each fails one test).

For the owner (calls made, yours to overturn):

  1. Read at build, not approval: a swap’s approval fixes whether it comes back through Lovejoin (auto.direct), but the collateral switch is read when the return is built, as Settings’ Lovejoin is for any other session.
  2. The approvals’ notes are unchanged: “What isn’t used comes back with the 5 ₳ kept aside” (a mix’s approval, lovejoin.review.privateNote, againNote) and “…kept aside for contracts, and comes back” stay true (it comes back, later, as a box), but no longer “with” the rest where a 5 ₳ pool is shown. Rewording them changes classic-only users’ screens and four more strings in three languages.
  3. What it can’t fix: the rest of a return still joins the funding’s change, which carries the session’s history; the box takes 5 ₳ out of it. The 5 ₳ pool could also take a return’s ADA left under a 10 ₳ box in 5 ₳ steps, leaving under 5 ₳ tied: not built.
  4. A box nobody mixes waits: on preprod only our wallets mix in the 5 ₳ pool, and on mainnet there’s none yet. Until it moves, Home says it’s not mixed yet and Mix my boxes again takes it first (your call), which starts a session with a new collateral.
  5. The privacy policy’s date (again): its 18 October entry now carries this too.

Checks (on the laptop): Rust workspace 658 passed, 0 failed (12 ignored, the live ones), cargo fmt --check and clippy -D warnings (core, WebAssembly) clean; the WebAssembly rebuilt from it, node --test 55 of 55; tsc clean; the critical keys 444. Vitest: 2,564 passed + 4 skipped on the preprod build, with one timeout, restore-scan’s “offers 5 ₳ where the account’s ADA alone…” (C41, C47), which takes 4.1–4.3 s alone here before and after this change, against a 5 s limit, and passes alone; on the default build two tests that pin every preference gained the new one (fixed), and three timed out only while other runs loaded the laptop. Not run: e2e (this laptop has no Playwright browser), and the live run on preprod.

Its review (2026-10-22, a fresh session, after this one crashed partway through the worker and resumed): every piece listed under Built is in the tree; both chains’ returns (chain_at, chain_across_pools, through with_return) and the direct return take the pool; collateralBox survives both of the worker’s chain paths (...built); every send goes through sendBack. Two fixes, both in WebAssembly, where the box is built (CollateralBox::back_from):

  1. A merged return paid for the box out of the funding’s change. A session holding only its collateral, with the funding’s change still there, built the box, the change paying the fee, and what comes back (total - fee - 5 ₳) went below zero: a panic in a test build, and in wasm-release, which doesn’t check overflow, a review saying about 18.4 trillion ₳ comes back. The box now goes in only out of the session’s own ADA; short, the return is built as before.
  2. A box of money that isn’t the collateral. The worker asks for the box wherever the return goes through Lovejoin, collateral or none, so an account whose collateral a site’s transaction or an earlier return spent put 5 ₳ of its other ADA in a box, which the review called Its 5 ₳ collateral. The box now goes in only where the return takes the collateral (exactly 5 ₳ of ADA alone, no datum, no script: the worker’s collateralFits).

Tests: lovejoin_test’s a_return_boxes_only_its_collateral_and_only_from_its_own_ada (was …_when_it_cant_pay_for_the_box) gains the merged return of the collateral alone and an account whose collateral is spent; each fix mutation-proven (each removed fails it). Checks on the laptop: Rust workspace 658 passed, 0 failed (12 ignored), cargo fmt --check and clippy -D warnings (core, WebAssembly) clean; the WebAssembly rebuilt, node --test 55 of 55; tsc clean; Vitest’s lovejoin-planner, lovejoin-screens-review, settings and preferences 101 of 101 (the full suite not run again: nothing in the worker changed). package-lock.json was npm’s rewrite on this laptop, reverted.

Its live run (2026-10-22, on preprod, two fresh wallets driven through a preprod-only build from a copy of the extension, by e2e/live’s harness): A, funded from the faucet, paid B 1,000 ₳, minted a Seedelf and made 150 ₳ private, then mixed one box of the classic pool from its private balance, one wave deep: Private session 1, funded with 12.45 ₳ and the 5 ₳ kept aside. Its chain’s return, 178ad8d4…8d5f (block 5,324,692), merged into the funding’s change: it spent the session’s 5 ₳ collateral (put up as its own collateral too), the chain’s 1.455805 ₳ change and the funding’s 132.316792 ₳ change, and paid #0, 5 ₳ to the 5 ₳ pool (18c4df77…, boxes at 7962202a…) under an inline {a, b}, and #1, 133.535907 ₳ back into Seedelf: the session’s own 6.455805 ₳ paid the 0.23669 ₳ fee and the box, the funding’s change none of it. A’s 5 ₳ pool page then held “1 box, 5 ₳, Not mixed yet”. B, from its public account, set its collateral and mixed 2 boxes three waves deep in the 5 ₳ pool (27 transactions, drawing 52 of its 54 other boxes); its mix 8c6b6c3c…d585 (block 5,324,714) moved A’s box. Not waited for (the owner: not 1 to 6 hours here): A bringing the moved box back by itself; A’s phrase is the gitignored extension/.preprod-test-wallet.txt on the laptop, and the box comes back once A is unlocked past its due time.

Its floor (the owner, 2026-10-23, asked whether the PR was ready: “there has to be some min amount of boxes … because its going to mix like the rest”). The box went into any shown 5 ₳ pool, so on mainnet the first one anyone started (about 23 ₳) would have taken every session’s collateral, with nobody else’s boxes there to hide among, or only its starter’s, who could then trace every box a mix of theirs moved. collateralPool now asks for the network’s floor of boxes that aren’t the wallet’s (30 on mainnet, as a mix does; preprod’s 0 reads nothing more), read as split reads, every pool the wallet reads listed together; a read that fails leaves the box out, never the return. The switch’s note says so (settings.lovejoin.collateralOn, three languages, not critical); privacy.md, architecture.md and flows.md too. Test: lovejoin-planner.test.ts’ floor case (a pool under it takes none, the return still direct; two other people’s boxes there and it goes in), failing with the check removed.

Session 9: the branch review and its fix round (2026-10-21/22)

The review (the owner, 2026-10-21: “lets get code review going on this branch”), read-only, of c6883afd against main e6b5dae: workflow wf_baed1a06-657, ten lenses (WORKER-PARTS, WORKER-FUNDING, WORKER-LOVEJOIN, RUST-BUILD, RUST-PLANNER, RUST-LOVEJOIN, PRIVACY, SCREENS, I18N-DOCS, CROSS), two verifiers each (one traced the code, one weighed the impact), a completeness critic and two gap rounds (gap 1: the new guards no test exercises, by mutation, and the Rust planner with overflow checks; gap 2: a chained funding through the worker). A maintenance reboot cut it during gap 1; it went on as wf_9e0f775e-03e, which ran gap 1 again over its earlier logs, verified it and synthesized. 60 verified findings, none refuted, merged to 47: 8 medium, 24 low and 15 untested guards; nothing high. Almost all came from e674be62..HEAD (items 1 to 10b), which no earlier review covered. The report, by key, with every finding’s scenario, fix and verification, and the reviewers’ reproduction tests, is in the session’s review-1.6.0/ folder, which survives a reboot (/home/logic/.claude/projects/-home-logic-Documents-LogicalMechanism-Seedelf-Wallet/8e6aafe7-1478-43c2-8f97-65390b044df4/review-1.6.0/: REPORT.md, FIX.md the fixers’ brief, CHANGES.md what the round changed, scratch/work/).

The fix round (the owner: “fix what is worthy then commit and push”): five fixers in the one tree by file ownership (RUST, PARTS-SEND, PARTS-REVIEW, SESSIONS, LOVEJOIN), each test first: every fix has a test that fails without it. Three contracts between them: mayGo (parts.ts asks SessionService.partsMayGo before each waiting part), MaybeSentWait (pending.ts’s typed wait), and the carry’s history (WebAssembly’s Carried and the worker’s carried, each tested on its own half). Then a cross-area review of the merged fixes, three lenses: 1 medium and 9 lows, also fixed.

What changed, by finding key (CHANGES.md has each in full):

For the owner (calls made, yours to overturn):

  1. Keeping histories apart beats fees. The history-first plan may cost a part more, or more fee; where it would chain and the worth plan wouldn’t, the worth plan goes, merging histories (a chain only where needed).
  2. A Bootstrap’s funding is one transaction again, as in 1.5.0: one from a balance of many small UTxOs is refused at review rather than funded in parts. Sizing its cap for parts instead is circular.
  3. A site waits while its private session’s funding lands: every call from it, enable(), reads and signing. Short or never: unlinked.
  4. A session the wallet no longer keeps (forgotten, disconnected) cancels its funding’s waiting parts.
  5. Opening Bring it back during a funding cancels the waiting parts, even if it’s closed unsent, while its review could be sent (10 minutes).
  6. Bring every box back now waits for boxes a kept review holds, rather than ending without them: its “N left” stays until the review lapses or is sent. Stop always works.
  7. A stopped-parts banner can be dismissed, and its link names the first part.
  8. The parts note reads “Too much for one transaction, so it goes as N, one after another.”

Not fixed:

Checks on the final tree (the WebAssembly rebuilt from it):

The two changed critical values (settings.lovejoin.warn.bringStopped, .privacy.bringCost) were back-translated blind: four rounds for Spanish and two for Japanese, a fresh agent each (verified-critical-*.json).

Session 8: item 10b, built (2026-10-21)

Built as 10b, the design (under Session 7) has it, but where it bent (below). Live on A, every local check green; the owner’s other agent committed dependabot fixes on this branch meanwhile (1eb5267e, vite 8.3.3), so only 10b’s own files are staged.

For the owner (calls made, yours to overturn):

  1. What waits lives in session storage, not sealed as the design had it: a lock or a closed browser stops the rest, which never go; what they’d have spent stays in the private balance, and a funding goes short (Bring it back). No new device record, so no privacy policy entry. The review asks to keep the wallet unlocked. A sealed record would let Home say after an unlock that they didn’t go. (1.6.0’s release review: the lock still cuts them, but the lock countdown and Remove wallet name them first, gap-3#6, gap-1#1, and the watch keeps how far the payment went, sealed, so Home says after an unlock that the rest didn’t go, 321-parts-worker#0.)
  2. Home holds new payments while parts wait, as it does for any payment on its way.
  3. Two tx_status asks per look while a part waits (the watch’s and the parts’ own), at most every 15 s; one could serve both.
  4. 0 confirmations counts as not yet: a part waits one more block than it must.
  5. A funding rarely chains: a payment to an address needs less ADA than the bundles hold, so their surplus pays the fees; the funding path is tested by unit, not live.
  6. Still open, (b) under Also item 10: the “1 of 3” words. Live had two parts, neither turned away, so neither message showed.

Session 8’s handoff: item 10b, chains where needed and Max over every UTxO

State, 2026-10-21: 10a is committed and pushed on web-wallet/release-1.6.0 (79742931 code, 923ae44e docs): a session’s funding in parts, independent parts only. Every check was green on that tree: Rust core + WebAssembly, Vitest 2,479, e2e 103/103 on the dev and store builds, cargo fmt --check, clippy -D warnings, the i18n guards. It’s live on preprod too (10a, built, below). The owner’s three calls are under Session 7 below. 10b’s design is 10b, the design there: build it as written, or say where it had to bend.

Where to start, by file:

The live case is ready on A (driver on port 47001, build dist-A-parts-5 = 10a; rebuild with DIST_TAG=parts-6 FRESH_DIST=1, after a kill -9 of the old driver, which ignores SIGTERM and keeps the profile locked). A holds 24 private UTxOs: the 400 test tokens in 20 bundles at exactly their least, 120.496922 MIN in 2 UTxOs (one also holding the 2,218 tADA back from 10a’s swap), and two 1.75 tADA UTxOs. All 400 tokens, 0 tADA, to A’s own Seedelf was refused before (409 tADA in one UTxO, 3+ parts by size): with 10b it should go as a chain. That run also shows whether the “1 of 3” words read right, the open question (b) under Also item 10.

Session 6: the owner’s test by hand (2026-10-19)

The owner tests chunk 34 by hand on the dev build and hands over items, mostly the screens’. Each is fixed with a test that fails without it, looked at in the screens harness, and dist rebuilt.

  1. The Mix form never said how much could go in. Testing the MIN pool: “I just keep clicking the up button … but dont really see how much I can put in nor does it limit my box count by that amount”. Found: from the public account the stepper went to ten whatever its ADA (only its token held it back), at ten it stopped with no reason, it never showed a balance, and a side holding none of the token kept “4 boxes” beside “too little MIN for one box”. Fixed: what the paying side holds beside the boxes’ label (“180 ₳ · 450 MIN”, Bootstrap’s too; HeldOnSide); the public account’s ADA holds the stepper (mixMost, nothing kept aside: its collateral is apart and the deposit’s fee is in the reserve), with capBalancePublic, noneAffordPublic, cantAffordPublic; at ten, capMix (“At most 10 boxes go in at a time”); the count drops to one where none fits (boxesShown). The owner asked for ADA pools too, so the classic pool’s form gains the balance line and the ten line: two lines added to backward compatibility 7’s byte-identical form, nothing reworded. Test lovejoin-held-balance.test.ts.
  2. A mix’s card dropped its transactions for “0 of 4 back”. 34f’s card took the entry’s view as soon as a private mix had one: Coming back and “x of N back”, nothing of a chain still landing or retrying. Asked: tx state, then the count; tx state only; or both. The owner: “Tx state only, no count.” The card keeps a private mix’s session tag and line throughout as 1.5.0’s list did (tagOf, subOf, detailOf); any other mix says “3 of 9 transactions sent” or where it stopped while its chain’s record is kept, Done after. lovejoin.mixes.back and .backMoved are gone. Tests in lovejoin-hub.test.ts.
  3. Your mixes would grow without end, and so would Pools on mainnet (the owner, after item 2: “a clear button … or clear all that clears all not in flight mixes”, pagination, and “a grid where the token gets the token image”; the three calls asked, each the recommended one). Clear on each card not in flight and Clear all for them: a cleared mark on the list’s entry (sealed schedule, MixEntry) and on the mix session (mix.cleared), set by lovejoin-mixes-clear, which skips a chain being sent and a session not over (clearable in the page). A cleared entry’s session stays named as listed, and the last few over are picked before the cleared go, so clearing brings no older ones in. Ten at a time, tokens.showMore. Pools as a grid (PoolGrid) once there’s more than ADA’s group: logo, ticker, the wallet’s boxes or how many pools; a token with one pool opens its page (tileOpens), one with more its own screen (PoolGroupList untitled); a pool’s Back returns there, a sent mix to the hub (onHub). ADA’s alone keeps its rows, so a classic-only hub reads as before. Tests in lovejoin-hub.test.ts, lovejoin-release-rules.test.ts. Found by the full e2e run: on preprod the hub’s first read lists the classic pool alone, and the grid comes with the read after the look finds the head start’s MIN and 5 ₳ ADA pools (R10’s read again), so a test that clicked fast saw rows and a slow one the grid; the e2e now opens the classic pool through ADA’s tile on preprod (classicRow) and comes back through ADA’s list (poolToHub). A fresh preprod device sees the rows turn into the grid a moment after opening; mainnet bundles no token pool, so its hub keeps rows.
  4. Mix my boxes again went three with four set, and nothing let a mix choose (“it will default to 3 instead of attempting … 4 as possible. And I dont have an option for that”). againWay went four only where four took as many boxes as three. The owner: “Four now, rest next press” (the review already said “Mix the rest once this is done”), and a per-mix switch, default from Settings. againWay goes four wherever four takes a box; atThree says what three would take, on both sides’ again reviews (public’s gained owned). The Four boxes a mix switch (FourSwitch, Settings’ keys reused) is on the Mix form and Mix my boxes again’s review, one width a page; every build takes width (lovejoin-mix-private-build, -public-build, -again-build, -again-public-build, lovejoin-funding, which no longer caps at Settings’). The form’s formWidth (four going three behind the setting) became formRoom: at four the stepper stops at four’s room or one chain’s length, with capFour/noneFitFour naming three’s. Tests in lovejoin-planner.test.ts (the old fallback test rewritten to the new rule, mutation-proven), lovejoin-screens-review.test.ts, and the mix-again e2e turning the switch both ways.
  5. No way to get everything out of Lovejoin at once (the owner, after Bring them all back on a Bootstrap: “a user has no way to do an emergency like get everything out of lovejoin oh crap button”; then “it could be in the settings … you have to confirm it … then it just does a proper chain and removes it all”). Asked: one at a time or many in flight; and whether nothing new goes in meanwhile. The owner: one at a time (“just more things to break”), and only what’s there now. One at a time without the hour: withdrawOne frees its slot once a submit is taken, so the next goes at once, and only a box’s waits held them apart. Bring every box back now in Settings → Lovejoin (not “Bring everything back”, a session’s), behind its question (BringAllBackQuestion, settings.lovejoin.privacy.bring and .bringCost): lovejoin-bring-all-back seals bringing in lovejoin.<network>, and every run from then (bringAllBackNow, from withdrawDueNow, the unlock’s too) takes every box, mixed or not, a Bootstrap’s held ones too (bootstrap, so its entry counts them), the classic pool’s first, a stuck pool’s paid from the private balance (call 36), for BRING_RUN_MS (2 min) a run; it waits as Bring one back now does (a chain being sent or mixing again, a withdraw that may have gone through, a payment that may), and leaves reserved boxes to their chain. Over when a run finds no box it can take: due times and counts cleared for Home (since session 9: it takes only what was there when asked, a mix sent since keeping its waits and its due times, and waits for boxes a kept review holds rather than ending without them). BRING_FAILED_RUNS (3) runs that sent nothing (a pool read that failed counts) stop it with the latest reason (settings.lovejoin.warn.bringStopped) and Try again; Stop forgets it. Settings reads lovejoin-held’s bringing every 4 s (BringAllBackView). Tests: lovejoin-bring-all-back.test.ts (real WebAssembly: four boxes in two pools and a Bootstrap’s in one run, then over; waits for a chain being sent, mutation-proven; three failing runs stop it, asked again it goes; a failed pool read; Stop), settings.test.ts, and an e2e (asked with nothing in Lovejoin: kept, then over). The three critical keys back-translated blind over three rounds (verified-critical-*.json); most fixes were the English’s own. The boxes come back as that many private UTxOs, which also tests spending many of them at once (the owner). Then (“so bring it all back is global over all pools and not just a select pool. hmmm”; asked, then: “global oh crap button in settings … Then on that pool mix page, something that allows that pool specific”): bringing.pool, from each pool’s page (BringAllBack in ui/components/BringAllBack.tsx, shared with Settings, pool, shown while the wallet has something there), the run taking that pool’s boxes alone and clearing that pool’s figures when over. Every pool’s widens a pool’s run; another pool’s is refused (lj.bringOtherPool, the page’s button off with lovejoin.bring.other). No new critical key: the question’s privacy notes are Settings’ own. Tests: the pool’s run (mutation-proven), the widening and refusal, and the page’s states in settings.test.ts. On the pool’s page a link with its line under it, as Help start the pool is (the owner asked: a large button or the link? Claude: the link, as it’s rare and costs privacy; Settings’ stays a button; “yea do it”). Then the text cut (“we are doing that thing again where we write paragraphs … the rest is text like some god damn essay”): the link alone, Settings’ button with one short line, the question’s confirm “Bring them back” (one line), its notes a few short sentences (settings.lovejoin.privacy.bring, .bringCost, .warn.bringStopped shortened, back-translated again), lovejoin.bring.note gone. Then (“Not the best indications of what is going on but it did function correctly”): a run counted its sends only at its end, so a pool’s run showed none sent, then done; now left is set as a run starts and each send counted as it goes, a bar beside the counts, read every 2 s (test: the counts go 0/4 to 4/0 in one run).
  6. The UTxO page is “soooo long” once a pool’s boxes come back as a UTxO each (“paginate that page so its not wild when someone brings back huundreds of utxos”). Twenty rows at a time, then Show 20 more (UTXOS_PAGE, tokens.showMore, as Your mixes pages); kept ones still first. Test: an e2e with 26 public UTxOs.
  7. Bring every box back now sat at “0 boxes left” until the next run ended it (“Maybe when it hits zero it becomes a, confirming on chain then the final done update”), and Settings’ line goes above its button, apart from the wait’s selector. Now a run with none left to send that sent some waits while its pools still list a box it spent (confirming), the page saying “8 boxes sent. Waiting for the chain to confirm.” with no Stop, and Done (“back in your private balance”) once none is listed. Tests: the run waits until the fake Koios marks the boxes spent, for every pool and one.
  8. A payment more UTxOs pay than one transaction spends errored out (“spending more thatn the max amount of utxos does not create two healthy tx to handle the utxo load, it just errors out without any solution”; the hundreds of private UTxOs Bring every box back now leaves make it common). Asked: split or combine first, and which flows. The owner: split the payment; Send and Make public. Core’s refusal is typed (build::TooMany, is_too_many); WebAssembly’s buildTransferParts/buildWithdrawParts build an amount to one recipient in parts (in_parts: the largest 20 of the rest a part, all their ADA but its fee, its unrequested tokens kept (transfer_most, sweep_most: Everything would have paid them), the UTxOs holding the tokens sent kept for the last, which pays what’s left) and Max over every UTxO (max_in_parts), MAX_PARTS 25; never a session’s funding, most, or several recipients. The worker keeps each part under its own key (keepParts, partKey, the first with partHashes) and sends them in turn through the reviewed send (sendParts), the last with PendingTx.chain; a part refused after the first says how many went (worker.parts.partly), and Koios not answering stops the rest (partlyMaybe). The reviews add the parts up (whole), with a Transactions row and a one-line note; Max’s notes on both forms rewritten (no more “up to 20”), back-translated blind. Tests: core apart_test (typed), WebAssembly api_test (an amount in parts both ways, the tokens in the last; Max in parts both ways; one part), payment-parts.test.ts (two parts sent with the chain, a refused second, Max in parts, one part as ever), an e2e review of two parts. Then “attempting to send all my min to myself … its not breaking it up”: the MIN was in more UTxOs than one spends, all kept for the last, which then couldn’t go. While the tokens sent are in more than 20 UTxOs, a part sends what the 20 holding the most hold (token_group, share_of, less), with the least ADA that carries it; Max too. Tests: 30 UTxOs of a token, all of it, both ways and Max (each failed before), and through the worker. Live on preprod (Claude, the test wallet A in dev mode, at the owner’s ask): two sends of 20 × 10 MIN to A’s own Seedelf (d06fd4e7…, b8e58263…) spread its MIN over 42 UTxOs (at 22 it still went as one: a transaction fits 22 Seedelf spends, a part takes 20); then all 3,120.496922 MIN to itself went as 2 parts, a275a398… (20 inputs, 2,900.496922 MIN) and 66113cab… (22 inputs, 220 MIN), sent within 2 s of each other and both on chain at the next look, the MIN intact, A’s private UTxOs 47 → 9; the submit answered with chain {first, total: 2}.
  9. Parts for any UTxOs and any tokens (the owner: “we know our solution works for ada only and for ada plus tokens but we dont know if it works in general for any type of utxo with arbitrary amount of tokens”). Claude’s harness, wasm/tests/payment_parts_shapes_test.rs (ignored, about a minute in release): 23 wallet shapes (ADA alone, a token spread thin, a pool’s boxes brought back, NFTs, bundles of 10–60 tokens, a move-in’s bundles at exactly their least, ADA-poor holders, a mix), each asked amounts, amounts with some or all of the tokens, Max and Everything, both ways; every part decoded and checked as the ledger would (size, each output’s value, conservation, nothing spent twice, exactly the tokens asked), every refusal against the most the wallet could pay. It found, each fixed with a test that fails without it:
    • Token parts carried no ADA. A part of the tokens sent paid the least they need and kept the rest of its UTxOs’ ADA as change, so 113 ₳ of the 189 ₳ in 42 pool boxes, with all their MIN, was refused as “Not enough ADA”. Now a part pays all its UTxOs hold but its fee, or, over what’s owed, what leaves the rest its least (in_parts); the tokens go first, then parts of ADA alone.
    • A size refusal was final. Only too much computation tried fewer UTxOs, so Everything and Max on a move-in’s 12 bundles of 20 tokens (20,397 bytes) were refused, as were all 240 tokens. Core’s refusal is typed (build::TooLarge, is_too_large); a part too large tries fewer UTxOs, read off how far over it was (TooLarge::fewer, Room).
    • No output’s value was checked. 160 tokens went in one output of 11,176 bytes, past max_val_size (5,000): the review showed it, the node would refuse it. settle now refuses an output over 5,000 bytes (MAX_VALUE_SIZE, value_size, matched against the ledger’s encoding), and a payment’s tokens go 20 to an output as change and deposits already did (seedelf_payment, pay_address; minimum_seedelf_payment/minimum_address_payment are their outputs’ least added up, unchanged up to 20 tokens), so 160 tokens go as one transaction. Public Send to an address splits the same way.
    • A move-in’s bundles starved later parts of ADA. Each holds exactly its least, so a part of them pays its fee only with an ADA UTxO, and the first part took them all: Max sent 9 of 14. While more parts of tokens follow, a part takes only the ADA UTxOs it needs (Room::ada, for_ada); Max’s token parts take ADA UTxOs too.
    • Make public’s “up to” was one transaction’s. Its shortfall measure (most) now goes in parts too.
    • The review’s least was the last part’s (whole): now theirs added up, so “the least the network accepts” shows when that’s all the parts pay.
    • What stays refused is real: amounts over what the balance pays, and a Seedelf payment of a move-in’s 240+ tokens with fewer ADA UTxOs than parts (a Seedelf output of 20 tokens needs exactly the ADA their bundle holds, so each part’s fee needs an ADA UTxO, and parts never wait on one another). Max there sends what it can and says how many it left.
    • Found live: Koios lists a token it hasn’t cached with "decimals": null, and seedelf-koios read a u8, so a request holding a just-minted token was unreadable (“invalid type: null, expected u8”; anyone can pay one to a Seedelf). It reads as 0 (zero_if_null, rows_test). Mainnet’s data layer always writes a number.
    • Tests: core build_test (value size as the ledger encodes it, an output too large refused typed, 80 tokens to an address 20 to an output, the size refusal typed), WebAssembly api_test parts_of_any_shape (five shapes, each refused or wrong before), payment-parts.test.ts (the least added up), Koios rows_test; the “tokens in the last” test now asserts the tokens in the first.
    • Live on preprod (Claude, test wallet A in dev mode; test tokens minted to A’s public account by a scratch tool under A’s own key): L1 370 ₳ and all 3,120,496,922 MIN to A’s own Seedelf, with 22 MIN holders (96.5 ₳) and 322.5 ₳ beside them: 2 parts, be3a888b… (the 20 largest holders, their ADA and MIN) and 7fd14364… (the last 2 and the 300 ₳ UTxO), exactly 370 ₳. L2 all 240 test tokens (12 policies of 20), 0 ₳, from a move-in’s 12 bundles: one transaction, 49c5a551…, the payment in 12 outputs of 20 (before: one output of about 9.7 KB, which the node refuses). L3 Make public 80 of them to A’s address: 9139991a…, 4 outputs of 20 to it. L4 240 tokens each under its own policy from 12 bundles at exactly their least: 2 parts by size, 1df39434… (8 bundles and an ADA UTxO for its fee, 14,568 bytes) and 1300ea4e… (8,459 bytes), their least added up on the review. All on chain. The null decimals were found here, at L2’s move-in. Hashes in full in the rehearsal’s NOTES.md.
    • Then the owner’s test by hand: “I send all ada to myself. But I do not get a single utxo of ada and the rest as change … it skipped multi pure ada utxos and did not spend them.” Max took the largest UTxOs by ADA, a move-in’s bundles (each holding only its tokens’ least) ahead of small UTxOs of ADA alone, and the next part, all bundles, couldn’t pay its fee, which ended Max. Now a part takes UTxOs by what they add, their ADA less their own tokens’ least (Worth, core max_inputs_by), and a part of ADA alone that can’t pay tries fewer (Room::fewer). Test max_spends_every_utxo_of_ada_before_bundles_that_add_nothing (fails on 1cd50db); the shapes harness now checks no Max leaves a UTxO of ADA alone. Live: A’s Max to itself went as one transaction, 80f15c41…, every spendable UTxO of ADA alone in it, one output of 409.88 ₳, the tokens back 20 to an output. Uncommitted.
    • Parts that can’t share one big ADA UTxO were found next, and moved to item 10 (below) at the owner’s word.

Session 7 starts here: item 10, a one-time account’s funding in parts, and parts that share ADA

State, 2026-10-21: item 9 is pushed on web-wallet/release-1.6.0 (1cd50db code, b5104a9 docs) and the owner is testing it by hand. Item 10 waits for that test (the owner: “Let me test first to make sure it works for me”); start it when the owner says so, and fold in what the test finds first.

The ask (the owner, after item 9): “if a user wants to sell X tokens on minswap but to fund the private one time flow it requires that tx to be split with the logic you just wrote.” A private swap funds its one-time account in one transaction, so selling a token spread over more UTxOs than one spends (MIN back from a pool’s boxes), or one too large, is refused as Send was before item 9.

The owner’s call: “if it requires y parts but y-k come in then its not complete and is basically equal to the one time account being not funded.” A session is funded only when every part of its funding has landed; until then nothing runs, and with one never landing it counts as never funded. Still to confirm with the owner before building that branch: what happens to the parts that did land. Today a never-funded session’s account is empty, so nothing comes back; here it holds some of the money. Claude’s reading: the run stops (auto.failed) and what came goes back as Stop would bring it (the approval’s way, direct or through Lovejoin), never swapped. Ask whether that’s automatic or offered.

Where it is now:

Order of work:

  1. WebAssembly: funding in parts with funding’s order kept; api_test cases (a token over 30 UTxOs funded in parts; another session’s money left last; a top-up’s own first; one part as ever), each failing first.
  2. Worker: buildFunding → buildWithdrawParts + whole; KeptOut keeps parts (keepParts under SESSION_OUT); outSubmit records an out per part and sends them with sendParts, the last with chain.
  3. Funded = every out confirmed (or its outputs listed), in view() and the runner; never funded = any out never landing; then the owner’s rule above, after asking the open question.
  4. A part refused at submit after the first (worker.parts.partly): the same as a part never landing.
  5. Screens: the approval and the session page as Send’s review (a Transactions row, the one-line note), the session reading “funding” until every part lands; new words back-translated blind (es/ja), as each round has.
  6. Tests: Vitest (two-part funding sent with its chain; the runner waits for both; one never lands → not funded), an e2e review, then live on preprod before reporting (memory test-live-on-preprod): spread A’s MIN over more than 20 private UTxOs with pre-transactions, then a private swap selling all of it on preprod Minswap. Gotcha from item 9’s L1: a second batch of 20 × (4.5 ₳ + 10 MIN) to A’s own Seedelf was paid from the first batch’s holders (same history, the selector keeps histories apart), so the count stayed 22: send the batches from money of different histories, or more per batch.

Also item 10: parts that share ADA (the owner, 2026-10-21: “add it to item 10 and we can discuss it further there”). To discuss with the owner before building:

The owner’s calls, 2026-10-21 (session 7):

The plan, in two steps (Claude’s cut):

10a, built (session 7, uncommitted until its checks pass):

10b, the design (Claude’s, before building):

Harness: the rehearsal driver is in session 2c01f20b’s scratchpad (/tmp/claude-1000/-home-logic-Documents-LogicalMechanism-Seedelf-Wallet/2c01f20b-bc3b-453d-8ae9-c6a3d6e0af08/scratchpad/rehearsal/: driver.mjs, rpc.sh, NOTES.md; A on port 47001, last on dist-A-parts-3). The test-token minter is in session 726de239’s scratchpad (/tmp/claude-1000/-home-logic-Documents-LogicalMechanism-Seedelf-Wallet/726de239-add8-4f9c-a2ad-43cb303569dd/scratchpad/minttool/). A holds 480 test tokens on preprod, and its MIN is in two private UTxOs at its own Seedelf after L1.

Session 5: the owner’s three calls of 2026-10-19, built

After the last review (below) the owner went through its open calls and made three, each reversing a rule Claude had added on top of the contracts (memory no-paternalistic-guards: the wallet refuses only what the ledger or the contracts refuse, a user’s mistake is the user’s, and the private balance pays by default wherever the public account could). Session 4 started them (core’s withdraw_private) and stopped for a new context; session 5 (2026-10-19) built the rest, with agents by area in the one tree (supply, WebAssembly, screens, docs), then two read-only reviewers by lens, a blind back-translation round, and mutation proofs.

Asked and decided this session: where the wallet picks a pool itself (a return’s tokens, acrossOf; a swap’s token pool, tokenPool; Change’s list), Claude proposed it keep avoiding a pool whose boxes can’t come back. The owner: “Treat it like any pool”, with the review saying so. Built as LovejoinTokenWay.stuck (lovejoin.ways.warn.stuck under the token’s row).

Call 34 · A mix that passes the logic is allowed. usableNow (lovejoin.ts) refuses only a box below the network’s minimum (belowMinimum) and a copy (superseded, not for mixing again); a pool whose boxes can’t come back (cantComeBack), or where the check couldn’t be made, takes new boxes from every flow, either side. LovejoinUnusable is narrowed to those two; lj.unusable.warn.cantComeBack and .unchecked are gone. The status measures cantComeBack for every token pool, the wallet’s boxes there or not, and the pool page shows the stuck callout (lovejoin.stuck.warn.lead) before Review whenever it’s set; its Bring one back only where the wallet has a box the hatch takes. The hub’s row flags every stuck pool. stuck() and acrossOf/tokenAt flag a token’s way. The due-time withdraws are unchanged: a stuck pool’s due box waits STUCK_WAIT_MS, and nothing pays for it by itself. The anyway question’s “Mix my boxes again hides it first” is its own key now (lovejoin.anyway.privacy.hides, .hidesPublic), said only where that button works.

Call 35 · No supply check at a pool’s start. Gone from the wallet (lovejoin-launch.ts’ choose(), LAUNCH_SUPPLY_BOXES, assetSupply in koios.ts and data-layer.ts, lj.launch.supply, lj.launch.unknownToken, the 30 × Q cap at build: Q’s only bound is the ledger’s, and core refuses a k × Q past a u64 in words) and from the server (assets.rs, its tests and README: byte-identical to e6b5dae, asset_info takes the one select again). A start asks only account_info. Docs: the policy, privacy.md, the listing’s per-host Koios row; this plan’s decision 14 and §5 struck through.

Call 36 · Bring one back paid from the private balance, by default. Core lovejoin::withdraw_private (one Seedelf UTxO of ADA alone beside the box, its own proof bound to a one-time key, giveme.my’s collateral, the wallet contract’s reference script; PrivateTooSmall). WebAssembly buildLovejoinWithdrawPrivate(key, { network, params, pool, boxRef?, utxos, poolRef? }) tries the UTxOs in the worker’s order, skipping a token’s, another wallet’s, one with a reference script, or one too small, and answers the transaction unsigned with the one-time key’s seed, as every Seedelf spend ({ txCbor, txHash, seed, fee, lovelace, spent, spentLovelace, boxRef, token? }); none pays: NO_PRIVATE_PAYS’s fixed words. The worker (withdrawOne, paid: true | "private"): readContract’s UTxOs (nothing locked or reserved), one a box back from Lovejoin made first, then the smallest; giveme.my’s witness, then signScriptSpend; Withdrawing names its box and keeps the history’s origin (the box’s way back merged with the paying UTxO’s class and any account ties), and lovelace is what came in, net of the UTxO that was private already; settleWithdrawing writes the same history. None pays: lj.privatePayNone. The handler passes "private" or true, nothing else. Screens: the escape hatch’s question (PaidQuestion), a held box’s (HeldQuestion) and a not-mixed box’s (AnywayQuestion) in a stuck pool each offer Pay from my private balance (primary, first) and Pay from my public account (a button), each with what it ties (lovejoin.stuck.privacy.private, .public); the callout’s link says Bring one back.

The cross-area review (two read-only reviewers by lens, MONEY/WORKER/RUST and SCREENS/I18N/DOCS, over the uncommitted diff): nothing high. Fixed, each with a test that fails without it:

Checks on the final tree (after the review’s fixes): Rust fmt and clippy -D warnings clean, 626 + 115 tests over both workspaces; WebAssembly 205 native and node --test 55 of 55; tsc clean; Vitest 2,430 passed + 4 skipped on both builds; e2e 100 of 100 on the dev build and on the store build (build:store, not package, so no release zip was written), and the data layer’s 3 of 3. Every worker fix’s test fails with that fix reverted in a copy of the extension (thirteen mutations), and the core and screens fixes’ tests failed before their fixes. The paid question and a stuck pool’s page, with and without the wallet’s boxes, looked at in the screens harness. The blind round: three rounds each language (verified-critical-*.json’s note); most fixes were the English’s own.

For the owner, from session 5:

Before session 5

Session 3 (2026-10-18/19, a new context; same branch; committed at its end as 8cc0044 and 030fdcf) did steps 1 to 3 of the first handoff, and fix round two with its two reviews (Fix round two below). Session 4 (2026-10-19) ran a last review of all of 34g and fixed what it found (The last review below), committed on top and pushed. Where it stands:

  1. Done: fix round two and its last review’s fixes; the rehearsal’s Still to see (below); npm run lovejoin-pools (preprod: the MIN pool dfa1f845… and the 5 ₳ ADA pool 18c4df77…; mainnet: none); the data layer’s decimals (byte-identical, registry a7f2aed, nothing to commit); the store listing’s Lovejoin text (the owner: “Draft it now”).
  2. Checks on the final tree (session 4, after the last review’s fixes): tsc clean; Vitest 2,400 passed + 4 skipped on both builds (npm test, VITE_ENABLE_MAINNET=false npm test); e2e 100 of 100 on the dev build and on the store build, and the data layer’s 3 of 3 (npm run e2e:data); Rust on 030fdcf, which the last round didn’t touch: 736 tests over both workspaces, fmt and clippy -D warnings clean.
  3. The rehearsal’s wallets (A, B, C on 47001–47003) run on, so B’s last boxes come back by themselves; A holds 39 Bootstrap boxes in the MIN pool for the owner’s run.

  4. The owner’s (ask, don’t do): the live db-sync tests (cd seedelf-data && cargo test --test live_lovejoin -- --ignored --test-threads=1 --nocapture; live_public’s total_supply part and the SUPPLY timing went with call 35); their own rehearsal by hand (decision 29), perhaps on Claude’s MIN pool, which holds 39 of A’s Bootstrap boxes; a look at the store listing’s new Lovejoin text (below); the calls under For the owner.
  5. Then: (committed and pushed) PR into main (gh api -X PATCH for body edits, memory gh-pr-edit-workaround), CI; after the merge, deploy the API first (34c’s token routes, DATA-3/4; PRIV-2’s asset_info route went with call 35, so the wallet asks asset_info only as 1.5.0 did), check lovejoin/pools and lovejoin/tokens answer 200 by hand (the deploy’s /health says nothing of them), then package from the merge commit, upload, and the record PR with the zip’s hash (memory web-wallet-branching).

The rehearsal (Claude’s, dev mode)

Three wallets in headless Chromium, each kept unlocked and steered through the worker’s own RPCs and the screens (the harness below). A is the funded test wallet (extension/.preprod-test-wallet.txt), B a fresh phrase, C a fresh phrase started on 1.5.0’s build. Every transaction is on preprod.

What Transaction What it showed
A starts a MIN pool from its private balance, 100 MIN + 4.5 ₳ a box (the suggested ADA) 5ef638917a4f3ad7c6300ef18153fff77dccf97a7c5a51a639e0b42e48cb5cf2, pool dfa1f845… S0c is settled: cert 0 registers mix_logic with no script witness, and giveme.my signs a launch. Locked 23.11 ₳, fee 0.48 ₳, as the review said. Discovery found it about 10 minutes after its block (the tx_info look), as designed.
A swaps 150 tADA for MIN privately out 736bc965…, swap d9490cf4…, back 6548b64d… 13,507 MIN back in about 3 minutes.
A Bootstraps 40 boxes from its private balance funding cca5bdf5…2b76dd, deposit ccf7f1d8…, back ab624108… Found the release’s worst bug (R0 below): the boxes got due times. Fixed, then held: 40, no due time; Home shows them (MONEY-4’s fix).
B (fresh) gets 1,500 tADA and 5,000 MIN from A, moves 900 tADA and 2,000 MIN in, sets collateral from the pool’s page 1b947f26…, b39ff373…, 19e6eb09…, 1c32eccf…, 03859d16…d7ea57 The pool page’s Set collateral comes back to the pool (R6 below).
B mixes 2 MIN boxes from its public account, depth 2, three wide first d20d4fb6…853880, 9 of 9  
B mixes 2 MIN boxes from its private balance, four wide funding e6028c8e…9df97f, 12 of 12 The review says “four boxes a mix” and “one of up to 16”; two in flight at once.
B swaps 5 tADA for MIN privately, Settings at four wide out 5a665d42…, swap 627d8f9a…, deposit 0204cded…, back 92dbe4e3…, 18 of 18 A swap that funds its token’s boxes, and a return holding the token, through its pool (Verification 5): 4 boxes funded (18 ₳ + 16.7 ₳), and four’s fallback to three said on the approval (“hasn’t enough boxes free to mix four at a time”), “one of up to 9” (Verification 8). 52.75 MIN, less than a box, came back directly.
B starts a 5 ₳ ADA pool from its public account 2a8029dc6469a7b9f99b0a14640b2695c2f265015ac32fd076d5d737c765b393, pool 18c4df77… The account-paid launch, and an ADA pool on the new contracts (decisions 10, 17): found by B, then by A.
C, on 1.5.0’s build (63f87b8, a worktree), moves 200 in and mixes 2 classic boxes privately; at 4 of 10 sent, the browser restarts on 1.6.0 144bb495…, 55c94e84…, d2a53410… The upgrade, live: 1.6.0 reads the 1.5.0 record mid-chain and lists the mix; the restart cut the chain, as any restart or lock does (1.5.0 the same, the gate’s case); its 2 boxes read “not mixed yet”.
C mixes them again on 1.6.0 c6210cd1…, 9 of 9 The cut mix’s entry closes as its boxes move; 2 boxes due.
A brings one Bootstrap box back by hand, on the fixed build eda62e40…71c952 It asks first (“Bring back a Bootstrap’s box?”, PRIV-5’s fix); 39 held, the entry counts 1 back.

Also: the live width test again (lovejoin_width_test -- --ignored): unchanged on both networks, four fits at 98.8–98.9% of the step limit. PR #163’s dev pool (c5852bb7…) isn’t in either wallet’s read set (Verification 7). The token list didn’t change; the DReps did (mainnet +3 named: Adalion, CryptoDossier, Endubis Hub; QuocTuan no longer registered).

Session 3’s part (2026-10-18/19), on the same three wallets and three restores of them:

What Transaction What it showed
B’s MIN boxes, and C’s 2 classic boxes, come back by themselves B’s first at 22:23:33, a minute after its due time, then 22:44, 23:34, 00:46, 01:45; C’s at 00:05:33 and 01:30:33 Verification 4, in a token pool: B’s private MIN went from 1,852.745746 to 1,952.745746, one box’s 100 MIN; C’s came back on time after the 1.5.0 → 1.6.0 upgrade.
B2: B’s phrase restored on a fresh profile none Verification 6: the hub’s look found both new pools and B’s 8 MIN boxes, each a fresh due time. Found R10 and R12 (below).
A2: A’s phrase restored on a fresh profile none Of A’s 39 held Bootstrap boxes, the 37 B’s mixes had moved got due times; the 2 still at the deposit read “not mixed yet” (R11). Home: “In Lovejoin 37 boxes … 2 not mixed yet: open Lovejoin to see what to do.” Stopped before its first due time, so A’s crowd stays for the owner’s run.
B mixes 2 MIN boxes privately, three wide funding 1654998a47…b22bf7, 10 of 10 The review: 8 mixes, “one of up to 9 boxes at 2 waves deep” (four wide said 16).
B3: B’s phrase restored again, on the fixed build none R10 and R12 fixed, live: the hub read “None”, then with no Refresh “3 boxes, 300 MIN + 13.5 ₳”; seedelf.sessions armed after that read.

What preprod can’t reach stays as it was: the floor (preprod’s is 0, R2), the escape hatch (needs a pool whose boxes can’t pay their way back), and the data layer (FEED’s fix of the mainnet stall is tested offline only).

The harness (all in /tmp/claude-1000/-home-logic-Documents-LogicalMechanism-Seedelf-Wallet/2c01f20b-bc3b-453d-8ae9-c6a3d6e0af08/scratchpad/rehearsal/, gone after a reboot): driver.mjs <name> <phrase file|new> <port> runs one wallet on a persistent profile (profile-<name>), restoring or unlocking it, keeping it unlocked, logging every request to net-<name>.log; A on 47001, B on 47002, C on 47003, running (nohup). rpc.sh <port> '<json>' asks the worker; pw.sh <port> '<js>' runs Playwright with page, ask, context; state.sh <port> prints sessions, pools and mixes in a line; unseal.mjs <port> <record> opens a sealed record with the test wallet’s own store key; NOTES.md has every transaction; wallet-B.txt, wallet-C.txt the phrases; shots/ the screens. To move a wallet to a new build: curl -X POST http://127.0.0.1:<port>/quit, then DIST_TAG=<new tag> FRESH_DIST=1 node driver.mjs …. FRESH_DIST deletes the profile’s Service Worker folder: Chrome otherwise goes on running the old worker script for an unpacked build of the same version, even from a new path (it cost an hour here). DIST_FROM=<dist> loads another build (1.5.0’s is scratchpad/wt-150/…/extension/dist, a git worktree: git worktree remove it when done).

The rehearsal’s findings

The release review and its fixes

Five independent reviewers, each a lens over git diff 63f87b8..e6b5dae (#308–#320): money, privacy, data layer, screens, state. Then five fixers in the shared tree by file ownership (FEED, RULES, DISCOVERY, SCREENS, RUST), each test first: every new test failed before its fix. The reports, with file:line, are in the scratchpad’s review/ (money.md, privacy.md, data.md, screens.md, state.md; FIXES.md the fixers’ brief; fixed-*.md what each did).

Checks at the handoff: Rust 736 tests (both workspaces), fmt and clippy -D warnings clean; WebAssembly rebuilt by RUST, node --test 54; tsc clean; Vitest 2,349 on the preprod build, 2,348 + the one load timeout on the default build; i18n guards 88. Not run: e2e (either build), a full Vitest after the merged review’s fixes.

Also done: the version is 1.6.0 (package.json); npm run tokens (no change) and npm run dreps; the privacy policy’s Changes entry (18 October 2026) and its body, privacy.md (the start and the escape hatch as known links, the pools’ reads, STATE-2/4’s kept fields), architecture.md, flows.md, development.md (npm run lovejoin-pools in the release steps; the deploy when list.json changes).

Fix round two (session 3)

The merged-fix review (review/merged.md in session 2’s scratchpad) found one medium and four lows, nothing high; MERGED-3 was done already. Two fixers in the shared tree by file ownership, WORKER and SCREENS, each test first, against a contract the lead put in rpc.ts first (LovejoinUnusable.why gains "superseded"; the look answers { grew }). Briefs and reports are in session 3’s scratchpad, fix2/ (BRIEF.md, WORKER.md, SCREENS.md, fixed-*.md). New tests: lovejoin-merged-review.test.ts (WORKER’s, and the lead’s R12 block), lovejoin-merged-screens.test.ts.

The last review (session 4)

The owner, 2026-10-19: “review chunk 34g … fix any findings and commit and push”. Six independent reviewers over git diff e6b5dae..030fdcf, read-only, each a lens: WORKER (money and state), PRIVACY (what goes where, and the docs that say so), RUST (core, WebAssembly, the data layer), SCREENS, I18N-DOCS, CROSS (scenarios across areas, and whether each fix’s test fails without it). Their reports, with file:line and their throwaway tests, are in session 4’s scratchpad, review/ (WORKER.md, PRIVACY.md, RUST.md, SCREENS.md, I18N-DOCS.md, CROSS.md). Nothing high. Every earlier fix held on the final tree; CROSS reverted R0’s, R12’s, FEED’s, MERGED-1’s and MERGED-5’s in a copy and each one’s tests failed. The findings, all fixed by the lead, each code fix with a test that fails without it:

Checks: Rust both workspaces, fmt, clippy -D warnings and tests clean on 030fdcf (736; the round touched no Rust); after the fixes, tsc clean, Vitest 2,400 + 4 skipped on both builds (the 9 new tests each failed before its fix), e2e 100 of 100 on the dev and the store build, and the data layer’s 3.

For the owner

Open for discussion

D1 · Pool spam and sync

Superseded in part by design session 1: pools are permissionless and found live, so A, i and D below no longer hold. The costs and the threat still stand.

What spam costs an attacker

What it does, with no defence

The defences, every one the same for everyone:

  Defence What it costs
A Listed tokens only: the vetted tokens/list.json decides whose pools exist by default An unlisted token’s pool stays invisible unless you ask for it, and asking shows interest
B One pool per denomination: the earliest genuine pool for each (token, Q, box_lovelace). A squat is harmless: a pool has no owner or admin Still spammable across many Qs
C Rank and cap: at most k pools per token, ranked by distinct deposits, and 75 credentials in all (one request) An attacker buys activity, at about 0.18 ₳ a deposit transaction
D A curated list each release (npm run lovejoin-pools; the owner reviews the diff, as for tokens and DReps) A new pool waits for a release
E The data layer ranks; the wallet re-verifies; on Koios, the bundled list Server work

The owner’s direction (2026-10-13): A, listing by trading volume, with the pools page as the filter.

Still open: how many pools a listed token may have. A launch needs no token in hand, so anyone can launch any number of genuine NIGHT pools, each with a different Q.

Either way: npm run lovejoin-pools writes the bundled list at release. It’s the Koios baseline, and the data layer can serve the same list faster.

D2 · Bootstrap and the crowd, for every pool

The review’s point: the floor counts boxes, not owners.

The ideas:

The owner’s direction (2026-10-13): d, as Bootstrap a pool.

Session 1’s answer (7, 16 and 18):

D3 · Four boxes a mix, as an option

The proposal (the owner, 2026-10-16): Settings → Lovejoin offers four boxes a mix beside three, with three the default. If four fails, the wallet goes back to three. It’s part of the upgrade path, decided here at the integration, not before.

What the measurements say (lovejoin-mix-width.md):

What it buys

What it needs, if taken (Claude’s list, 2026-10-16):

  1. The wallet falls back to three by itself, and the review says so. That covers a four-wide chain that doesn’t build, one whose first mix the network’s check refuses, and one whose pool is short for four. Never a direct return because of the width: today a return whose chain can’t be built or checked comes back directly, unmixed, and choosing three afterwards can’t undo that. Building again at three is cheap, since it’s all local.
  2. Fewer in flight. CHAIN_WINDOW keeps 4 mixes in the mempool on the assumption of three a block. Four four-box mixes are about 39.5 billion steps, all of what its comment says a node’s mempool holds: the limit behind chunk 16’s preprod submit timeouts. A four-wide chain wants 2.
  3. More of the pool’s others. A box takes 15 others at depth 2 against 8, never one twice in a chain, so a pool covers about half as many boxes. A pool short for four falls back to three (1), never to fewer boxes. Ties into D2’s gate.
  4. Costs by width:
    • mixCost and MIX_FEE_ESTIMATE;
    • the figures in Settings and on every review;
    • the 3^depth leaves lines, which are critical strings, in es and ja too.
  5. The width wherever three is built in: mixes_per_box, fresh_for, fan_out and the funding sums in core; mixesPerBox in the worker; the screens’ 3 ** depth. lovejoin::mix already takes four. No record assumes three (34a′): a chain’s record keeps its mixes and leaves as built.
  6. A free check before shipping. The live width test again at the integration (cargo test -p seedelf-core --test lovejoin_width_test -- --ignored --nocapture), in case the limits or the cost model moved. Then four-wide on preprod in 34g. No four-box mix has landed on mainnet; mainnet’s evaluator agrees with the wallet’s to the step.

Where it lands: 34e (the planner and the fallback), 34f (Settings, strings, privacy.md), 34g (the preprod rehearsal).

Session 1’s answer (8): offered, as a Settings option, with three the default.

On which pools: every one, the classic too (session 1, 25).

Still to decide (34e, 34f):

The steps

Each step ends with its tests green. The steps can land as parts, but they ship together as 1.6.0 (session 1, 19).

Step What Waits on
S0 Free spikes: (a) ✅ uplc 1.1.23 against the 1.1.24 artifacts, reproducing the hashes and running last-run.json’s token Mix and Owner (a failure means a coordinated Pallas/uplc bump); (b) ✅ a synthetic token Mix and Owner evaluated by mainnet’s Ogmios; (c) a preprod launch probe (a foreign inline mint, cert 0, reference outputs at the holder, giveme.my signing): its evaluation ✅, and its submit settled by the rehearsal’s MIN pool launch ✅ (The rehearsal: cert 0 registers mix_logic with no script witness, and giveme.my signs a launch); (d) ✅ the box ADA test below, measured, the figure the owner’s —
S1 Asks of PR #163: moot, PR #163 merged as it was (8131b1d) —
34a ✅ Core: Pool, BoxValue, the templates (at the merge, 8131b1d), derive, verify_pool, the generalized ScriptSpend and builders; the classic path byte-identical S0a
34a′ ✅ Records: their shapes, migrating 1.5.0’s, and reading every shown pool. Each mix’s record lasts until its boxes are counted back, and Bootstrap is a kind of its own. Gated on backward compatibility 3–5 and 8: the plan-equality test and the mid-flight 1.5.0 vault (as built) 34a; session 1
34b ✅ The launch builder and its WebAssembly (cert 0, which the rehearsal’s launch confirmed: S0c) S0c
34c ✅ Discovery and the data layer: the holder index, the shown-pool rule (standard, finished by its launch, earliest for its values), the bundled head start, the data layer’s own copy of the rules (32), the pool list and the combined box feed, and deposit counts as possible origins (as built; its live db-sync run is the owner’s) session 1 (11, 12)
34d ✅ The tile’s flows per pool (private, public, again); Bootstrap a pool, which replaces the seed; the launch from either side (an account-paid builder); the withdraw and its escape hatch; Activity (as built) 34a′, 34c
34e ✅ The planner, and returns through each token’s most used pool, with Change; D3’s four-wide option and its fallback; a swap’s token boxes funded (33) (as built) 34a′
34f ✅ Screens, strings, es and ja, and the docs (as built); the policy’s Changes entry is 34g’s, with the release PR (19) 34d, 34e
Re-pin ✅ Folded into 34a: the templates were pinned to the merge from the start the merge
34g ✅ The preprod rehearsal, dual: Claude’s in dev mode, then the owner’s by hand (session 1, 29); the cross-area release review (✅, and the release review of #308–#323 with its fix rounds, Session 12); the policy’s Changes entry; npm run tokens, dreps and lovejoin-pools (✅); deploy 34c; then package and upload; the handoff note (done) all

S0d, the box ADA test the owner asked for (✅ seedelf-core/tests/lovejoin_box_value_test.rs, results under The groundwork). A Rust test that proves the figure rather than estimating it.

The highest risks, taken first: S0a, the evaluator; then 34a′, about 9k lines of TypeScript state that live ADA users depend on.

Verification

Every step

The classic pool’s regression tests pass unedited, every step. On preprod, one vault runs a classic mix and return before the update and after it.

Rust tests

Extension tests

Preprod, for real (tADA, free):

  1. Launch a pool at the suggested box value (4.5 ₳) with a test token: one the owner mints with cardano-cli, or LJTEST. A second wallet, on Koios alone, finds it live, though the bundled list predates it.
  2. Bootstrap it.
  3. A private mix and a public one.
  4. A box coming back by itself into a Seedelf.
  5. A return holding the token.
  6. A restore finding the token boxes.
  7. PR #163’s own pool, c5852bb7…, is not shown: its scripts sit at a key address, not the holder (session 1, 22). It’s a negative test of the standard.
  8. If D3 is taken: a four-wide return and a four-wide mix, and the fallback to three, through a pool short for four.

Mainnet: only the free checks of §5. Launching on mainnet waits until every preprod step above has worked.

Still open

  1. D1: who sets each listed token’s box value: the pool’s creator sets Q (session 1, 1). Discovery has no curator (session 1, 11 and 12).
  2. D2: what replaces the 30-box floor as the gate for mixing. For now, the floor stays (session 1, 7).
  3. Seed or Bootstrap: Bootstrap replaces the seed (session 1, 18), to be tried and iterated.
  4. S1: what to ask of PR #163 before it merges: moot, it merged as it was.
  5. Cert 0 or cert 7: cert 0 (session 1, 9), which a real preprod launch confirms.
  6. How a mix is shown: one list of every mix, followed to the end (session 1, 5).
  7. D3: whether to offer four boxes a mix: a Settings option, three by default (session 1, 8). On every pool (25). Still to settle: the words for its fallback to three.
  8. The box value: the wallet suggests S0d’s least plus a margin (4.5 ₳ in practice), and the creator may change it, never below S0d’s bound (session 1, 14). Its upper limit is 9 ₳ in a token pool, none in an ADA pool (27).
  9. The Seedelf minimum’s sizing: it stays as it is (session 1, 28). It’s about 0.12 ₳ an output too high; fixing it would be a wallet-wide and CLI change of its own.