Status: ✅ done (2026-11-20). Steps 1 to 4 merged as #396 (9c9e51d5); step 5 was 1.9.3’s release review, whose record is review-1.9.3.md, and its fixes ship in 1.9.3. For 1.9.3. Written 2026-11-19 on chunk 51’s branch, so a new session can pick it up once 1.9.2 ships. The owner: “We could write these as chunks then commit push and open that pr for merge then after release we handle those chunks for the 1.9.3 since it would be much smaller of a patch then what ended up happening here.”
Chunk 51’s calls round (its record) built the box rule: how a private spend merges the boxes back from Lovejoin. It is round six’s rule, the lead’s, set on the owner’s calls. In 1.9.2, rule 1 holds by construction: nothing 1e1b0647’s selection sent as one transaction is refused or split. Rules 2 to 4 hold among the orders the search tries.
Near the input limit, beside token boxes, the search can miss a set, and architecture.md’s The box rule names those margins. The cause is that one transaction weighs each box alone, but the least a set’s tokens need back as change is shared, 20 kinds of token to an output. So a set pays more or less than its boxes’ weights add up to.
Reviews six to eight of the calls round each found a new window, with 5, 3 and 4 mediums. Rounds seven to nine closed some of them. Then round nine narrowed the claims instead, by the lead’s call. This chunk makes the rule exact where a balance holds few boxes, which is nearly every wallet.
build.rs: box_rank and Weighed’s docs, apart, fewer_built and pass d;box_rule_reference_test.rs, and mint_test.rs’s mod apart.review6.json to review8.json hold every shape, verdict and prototype, and round6.json to round9.json what each round built.web-wallet/box-rule-exact from main, in a worktree.ff9e888f, fd107595), to spare the owner’s budget (2026-11-19). Read its diff first.Kept), with a lovelace bound before any build.Built (2026-11-20): EXACT_BOXES = 12, Exact in build.rs, called from apart where box_list holds at most 12.
epsilon (the bytes an output’s address and lovelace can differ by, as the least sizes it). Only sets the bound can’t rule out are built.change_cost works the least out from token counts, and a test holds it to the ledger’s function over 400 random token sets. A change’s tokens are laid out once around a set’s (Around, Laid), so a set costs only the output where its tokens meet; a randomized test holds that to the full merge.twelve_boxes_beside_hundreds_of_payments_plan_in_a_fraction_of_a_second, release): 12 boxes beside 400 payments, 6 to 10 ms a selection, as 1.9.2; every box holding another policy’s token beside 400 kinds of the other money’s, 30 to 100 ms, as 1.9.2. Before the layout that balance took 13.6 s and 38 s (each set re-merged 400 kinds with Assets::merge’s linear lookups). 500 boxes are past N and unchanged. Debug: 22 to 35 ms, and up to 0.45 s for the token-heavy balance.Each must pick the rule’s best with the search on, and fail on 1.9.2’s build.rs:
box_rule_reference_test.rs checks rules 2 to 4 strictly for balances within N, in its default parts and in the ignored sweep.
Built (2026-11-20). l7merge#1’s A and B, l7still#1’s three, l7merge#2’s C and D, l8merge#2’s four and l8still#1’s E and H were already pinned by chunk 51 and pass on 1.9.2 too, so they can’t fail there; they pass with the search. The three 1.9.2 still missed are new pins in mint_test.rs, each failing on 1.9.2’s build.rs (run in a scratch worktree at origin/main) and passing with the search:
beside_small_payments_a_box_of_unknown_making_stays_out_where_one_pools_ways_back_pay (1.9.2 spent A, U and the 20);beside_a_third_token_box_a_box_of_unknown_making_stays_out_where_one_pools_ways_back_pay (1.9.2 spent U beside A or T3);of_as_many_boxes_a_mixed_one_goes_where_its_token_shares_the_output_another_opens (1.9.2 spent A, M, R and T).The reference’s plain choice is now the set of its level that adds the most (set_value, its own reckoning from the ledger’s least), and every check is strict for balances within N, the pair parts too (they were checked within round eight’s margin). Strict, it fails 1.9.2 in all three pair parts (31 picks) and passes with the search: default parts in 3.5 s release, the ignored sweep in 3 min 15 s (5,927 merges, 2,850 single-UTxO picks, 973 refusals).
This is l6words#1’s code option, the backlog’s The UTxOs holding a token being sent go by quantity.
holding takes a sent token’s holders by how much of it each holds, whatever made them.Built (2026-11-20).
holding_by_rule: for each token, those that are no box first, the biggest first; then as few boxes of unknown making as hold the rest, then as few boxes, of as many the most mixed, beside as few of the others as then hold enough.select_script_inputs builds both spends. Where those holders differ from holding’s, it builds the spend from each and keeps the rule’s, unless the other does better by the rule over all its boxes (box_key) or the rule’s is refused. So nothing that built is refused, and no spend is worse by the rule than 1.9.2’s.Worth by history keeps its histories, token_group takes the rule’s holders first (Worth::holder), and a part’s picks go through max_inputs_apart. Parts by worth keep today’s holders, so the planner’s fallback tries them last.token_holders_test.rs (two old pins now expect the rule’s holders; two new ones), and api_test’s a_token_sent_in_parts_comes_from_boxes_a_mix_moved_before_those_of_unknown_making. The three that pin a changed pick fail on 1.9.2.token_holders_test.rs, and the extension’s phrase-typed-translate, r5-when-it-asks (one test title too) and r6-when-it-asks tests.Done (2026-11-20): privacy.md, architecture.md (Picking inputs, Merging, The box rule, and the box of unknown making’s line), flows.md’s Send and the WebAssembly’s README; the policy’s entry is dated 20 November 2026 with its Effective line: move both to the merge day in the PR’s last commit, one entry. The three extension tests now cite the 19 November entry.
The owner, 2026-11-20: “We will do a review on this before publishing. Maybe we can update the chunk to talk about a review so its very pinpointed about what it needs to verify. Then after the review for the patch we retire that chunk and publish it.”
Review the PR’s diff against main (1.9.2). A finding is real only if a reviewer reproduces it, with a test that fails on this branch; one inside a margin the docs name is a low (chunk 51’s stopping rule). Verify each:
Exact::first_built, Exact::bound, epsilon).
min_fee_a × size plus parts the same for every choice of as many inputs. A set’s cost counts its change’s bytes as its leasts size them, and its outpoints’ index bytes.epsilon covers: the least’s dummy base address against the change’s enterprise one (28 bytes an output), the change’s lovelace past 2³², even, and settle’s fixed point.per_input: computation_fee at SPEND_BUDGET_GUESS, exact a spend input).tried key: two builds of one count, worth and number of outputs end alike.large prune, (count, outputs) after a failure other than short or too many.change_cost, Around, Laid::cost).
select_script_inputs hands them: base, then all the other money, then the boxes; or base, the boxes, then an order’s first k.Laid::cost must equal the full merge wherever it answers: a kind sent whole, or one after the set’s, falls back; bumps into whole outputs change only an amount’s head; the phase of the outputs after.a_sets_change_costed_from_its_layout_is_its_change_costed_in_full and a_changes_least_worked_out_from_its_tokens_is_the_ledgers with shapes they don’t draw: names past 64 bytes don’t exist, but quantities near u64::MAX and many policies in one output do.apart’s exact block, Exact::level).
last UTxOs and a funding’s last resorts.k_P). Check no fewer k could be one.weighed_to).holding_by_rule, select_script_inputs, box_key).
spent recorded.more_mixed_built, fewer_built and the exact search’s rule-4 phase each return their last successful build. Check every path.Histories::default) is unchanged.Worth’s histories, token_group, Worth::holder, max_inputs_apart).
by_history_first falls back to them.holder now sorts before rich. Find a balance a chain planned on 1.9.2 that this branch refuses or splits otherwise (test wallet A’s shape: the ADA with one holder, bundles at their least).max_inputs_apart falls back to holding where the rule’s holders are more than a part takes.Fixes go in this PR, each test-first (fails before, passes after). Then rerun Done means’ checks, the live flows, and a short look at the fixes alone.
Done (2026-11-20), as 1.9.3’s release review: #396 had merged by then (9c9e51d5), so the review ran on main with #397 beside it, and its fixes went on web-wallet/release-1.9.3. Its record is review-1.9.3.md.
epsilon of a short one, so one Send took 135 s in the WebAssembly (r1#2).settle’s first draft leaves a change below its least, so it’s refused as short.run.mjs all and staking).Checks (2026-11-20, on the uncommitted tree): cargo test --workspace --locked 1,104 passed (chunk 51’s 1,095 and nine new); the box rule’s ignored pair (the strict sweep, and 200 + 200 boxes in parts) and the parts suite (payment_parts_shapes_test --ignored, 163 s) pass; cargo fmt --check and CI’s clippy pass. Typecheck; Vitest 3,949 and, preprod-only, 3,935; e2e 109 on the dev build, 3 on the data layer’s, 109 on the store build.
Live preprod flows (2026-11-20, on 2af17ab2’s dev build, the test wallet): all ten confirmed.
run.mjs all, hosts preprod.koios.rest and www.giveme.my: mint (account) d06681a1, move in 25.5 ₳ 32232adc, stealth mint cbf458e2, transfer 3.3 ₳ 567e3c87, Make public 5.5 ₳ 6cecdaee, remove into the private balance bf0b6370. The last four spend from the private balance through the changed selection.run.mjs staking, host preprod.koios.rest: stake TPREP 366a8e65, vote no confidence ee2c4d94, vote abstain c7241f90, stake LOGIC 60e5eb1a.