{ "id": "withdraw-manual-chf", "title": "Fresh wallet -> real CHF withdrawal -> wire-transfer details", "status": "candidate", "why": [ "The manual (non-bank-integrated) withdrawal, which nothing in the", "harness had ever driven. Promoted from c2h-13-e00006, whose 20 newly", "covered features are ALL in ManualWithdrawDone.swift: that file had", "never executed in 1,068 episodes.", "", "It matters beyond the one file. The screen this ends on is the", "wire-transfer details screen, which carries the account chooser behind", "11987 -- two segments rendered identically -- and the ErrorView branch", "added for 11985. Both were reported by a user rather than by the", "harness, because the harness funds wallets with withdrawTestBalance", "and bank-integrated URIs and so had never visited the screen. A", "survey of captured screens cannot find a defect on a screen nothing", "visits; this scenario is what makes that screen visitable.", "", "The path also crosses the terms of service deliberately (steps 3-4),", "which is the one place the app's cached tosStatus and wallet-core's", "view are both exercised -- see 11934's 7037 note.", "", "SHRUNK 2026-11-10 from 9 steps to 7, on evidence rather than taste.", "The promoted walk ended `tap BackButton` then `tap 'Wire transfer'`,", "which was the walk leaving the screen and coming back. The first", "validation run (vm1) failed on exactly that step -- `id=BackButton", "matched nothing` -- while reporting `reached: True`: the app was", "already on Wire Transfer after step 7's Confirm Withdrawal, and the", "two extra steps were a detour the destination did not need. Both", "state oracles and both functions had already passed at that point.", "", "Step 1 of the promoted walk was also dropped, and it was the only", "fragile one: a bare coordinate tap at (0.125, 0.083). In vm1 it hit", "nothing -- the action record says `candidates: 0` and the element tree", "before and after it is identical, down to the clock. So the spec now", "has no coordinate steps at all and every target is an identifier or a", "label, which is what lets it survive a layout change.", "", "WAITS ADDED 2026-11-10 after vm3 failed where vm2 had passed. Every", "tap in this path follows a navigation or an async reload, and a `tap`", "step resolves its target once; the failure took 24 ms. The five", "`waitFor` steps are not padding -- each names the control the next tap", "needs and says which asynchronous thing it is waiting on." ], "setup": { "orientation": "portrait", "reset": "per-episode", "defaults": { "minimalistic": "NO", "developerMode": "YES" } }, "budget": { "maxSeconds": 600, "settleMs": 700, "stepTimeoutMs": 90000, "quietMs": 1500 }, "steps": [ { "verb": "waitFor", "expect": { "withinMs": 30000, "pollMs": 400, "all": [ { "exists": { "id": "button.onboarding.withdrawReal" } } ] }, "note": "The onboarding screen is not there the instant the app is: measured 2026-11-09, wallet-core finishes at 4.7 s but the scene only becomes active at 29.8 s, and XCUITest cannot see it before that." }, { "verb": "tap", "at": { "id": "button.onboarding.withdrawReal" }, "expect": { "withinMs": 8000, "pollMs": 400, "all": [ { "nav": "Withdraw Fr.", "auto": true }, { "exists": { "label": "You must first accept the payment service's terms of service before you can withdraw digital cash to your wallet.", "match": "exact", "type": "staticText" }, "auto": true } ] }, "siblings": [ { "id": "gear" }, { "label": "Actions", "match": "contains", "type": "button" }, { "label": "Swiss francs", "match": "contains", "type": "button" }, { "id": "button.onboarding.demoCash" } ], "fromStep": 4, "reorderGroup": "01b72f434736" }, { "verb": "waitFor", "expect": { "withinMs": 30000, "pollMs": 400, "all": [ { "exists": { "id": "button.withdraw.tos.open" } } ] }, "note": "WHY THIS STEP EXISTS: a `tap` resolves its target once and gives up. vm3 (2026-11-10) failed here after 24 ms -- the tap on `Withdraw CHF` had left the app on the onboarding screen, and the next step looked at that screen exactly once. vm2 had passed. A scenario whose every step follows a navigation needs the waits the spec language has, or it measures the host's timing." }, { "verb": "tap", "at": { "id": "button.withdraw.tos.open" }, "expect": { "withinMs": 8000, "pollMs": 400, "all": [ { "nav": "Terms of Service", "auto": true }, { "exists": { "label": "To unload a Taler wallet, users must transfer their funds to a Swiss bank account. International payments are not permitted. With the Taler wallet installed in the smartphone or web browser, users can make payments (within applicable limits) to natural persons and legal entities that accept this payment method and have a Swiss bank account to receive the funds (e.g., stores, web shops, apps, and other beneficiaries). When users make payments, the corresponding amount of e-money is debited directly from the Taler wallet. At least the transaction amount must be available in the Taler wallet's balance. Users consent to all payments made with the Taler wallet from their digital end device, even if these payments were made without their agreement. Anyone who redeems a token in the Taler wallet has used its represented value of the credit for payment.", "match": "exact", "type": "staticText" }, "auto": true } ] }, "fromStep": 5, "reorderGroup": "Withdraw Fr." }, { "verb": "waitFor", "expect": { "withinMs": 30000, "pollMs": 400, "all": [ { "exists": { "id": "button.withdraw.tos.accept" } } ] }, "note": "WithdrawTOSView fetches the terms with getExchangeTos before it can offer Accept." }, { "verb": "tap", "at": { "id": "button.withdraw.tos.accept" }, "expect": { "withinMs": 8000, "pollMs": 400, "all": [ { "nav": "Withdraw Fr.", "auto": true }, { "exists": { "label": "inputView", "match": "exact", "type": "other" }, "auto": true } ] }, "siblings": [ { "id": "BackButton" }, { "label": "Language:", "match": "contains", "type": "button" }, { "id": "http://www.taler-ops.ch" } ], "fromStep": 6, "reorderGroup": "Terms of Service" }, { "verb": "waitFor", "expect": { "withinMs": 30000, "pollMs": 400, "all": [ { "exists": { "label": "Shortcut CHF 50.00", "match": "contains", "type": "button" } } ] }, "note": "the amount screen reappears after the terms are accepted, and `acceptAction: reloadExchange` is async." }, { "verb": "tap", "at": { "label": "Shortcut CHF 10.00", "match": "contains", "type": "button" }, "expect": { "withinMs": 8000, "pollMs": 400, "all": [ { "hashChanged": true, "auto": true } ] }, "siblings": [ { "label": "Shortcut CHF 5.00", "match": "contains", "type": "button" }, { "label": "Shortcut CHF 25.00", "match": "contains", "type": "button" }, { "label": "Shortcut CHF 50.00", "match": "contains", "type": "button" }, { "id": "button.withdraw.confirm" }, { "label": "Return", "match": "contains", "type": "button" } ], "fromStep": 8, "reorderGroup": "Withdraw Fr." }, { "verb": "tap", "at": { "label": "Shortcut CHF 50.00", "match": "contains", "type": "button" }, "siblings": [ { "label": "Shortcut CHF 5.00", "match": "contains", "type": "button" }, { "label": "Shortcut CHF 10.00", "match": "contains", "type": "button" }, { "label": "Shortcut CHF 25.00", "match": "contains", "type": "button" }, { "id": "button.withdraw.confirm" } ], "fromStep": 9, "reorderGroup": "Withdraw Fr." }, { "verb": "waitFor", "expect": { "withinMs": 20000, "pollMs": 400, "all": [ { "exists": { "id": "button.withdraw.confirm" } } ] }, "note": "Confirm Withdrawal is gated on tosAccepted (WithdrawAcceptView.swift:120), which is set from the reloaded exchange record." }, { "verb": "tap", "at": { "id": "button.withdraw.confirm" }, "expect": { "withinMs": 8000, "pollMs": 400, "all": [ { "nav": "Wire Transfer", "auto": true }, { "exists": { "label": "QR Code", "match": "exact", "type": "other" }, "auto": true } ] }, "siblings": [ { "label": "Shortcut CHF 5.00", "match": "contains", "type": "button" }, { "label": "Shortcut CHF 10.00", "match": "contains", "type": "button" }, { "label": "Shortcut CHF 25.00", "match": "contains", "type": "button" }, { "label": "Shortcut CHF 50.00", "match": "contains", "type": "button" } ], "fromStep": 10, "reorderGroup": "Withdraw Fr." } ], "green": { "assertions": "all", "functions": [ { "name": "acceptManualWithdrawal", "file": "Model+Withdraw.swift", "line": 0 }, { "name": "getWithdrawalDetailsForAmount", "file": "Model+Withdraw.swift", "line": 0 } ], "state": [ { "kind": "oslog", "matches": "acceptManualWithdrawal\\{", "minCount": 1, "note": "the request that creates the reserve. Measured in c2h-13-e00006: the 14 wallet-core requests of this path end prepareWithdrawExchange, getWithdrawalDetailsForAmount, getExchangeTos, setExchangeTosAccepted, acceptManualWithdrawal, getTransactionById. This one is the commitment; the others also happen on paths that abandon the withdrawal." }, { "kind": "oslog", "matches": "setExchangeTosAccepted\\{", "minCount": 1, "note": "steps 3-4 are the terms, and a run that skipped them would reach the amount screen on an exchange whose ToS the app merely believes are accepted -- which is the state behind 11934's 7037." } ] }, "origin": { "run": "c2h-13-e", "episode": "c2h-13-e00006", "features": 20, "keys": [ "tapPoint|point=0.125,0.0833", "tap|id=button.onboarding.withdrawReal", "tap|id=button.withdraw.tos.open", "tap|id=button.withdraw.tos.accept", "tap|label=Shortcut CHF 10.00|match=contains|type=button", "tap|label=Shortcut CHF 50.00|match=contains|type=button", "tap|id=button.withdraw.confirm", "tap|id=BackButton", "tap|label=Wire transfer|match=contains|type=button" ] }, "reached": { "withinMs": 20000, "pollMs": 500, "all": [ { "nav": "Wire Transfer", "why": "the screen this scenario exists to reach" }, { "exists": { "label": "The payment service is waiting for your wire-transfer.", "match": "contains", "type": "staticText" }, "why": "the sentence WireTransferView draws from its `title`, so it distinguishes the arrived screen from a loading one" }, { "exists": { "label": "Wire transfer instructions", "match": "contains", "type": "button" }, "why": "the row whose destination carries the payto details; its presence means transferOptions resolved" } ], "why": [ "REPLACED 2026-11-10. Promotion generated this block from the walk's", "last screen, which was one level deeper -- the instructions", "sub-screen, with its 'Step 1:' and 'Step 3:' sentences -- and", "marked every predicate `auto`. Advisory predicates were skipped", "when the block was evaluated, so `all` ran over nothing and", "`reached` came back TRUE for vm3, a run that stopped on the", "onboarding screen after 2 of 6 steps. These three are binding and", "describe the screen the six steps actually arrive at, measured in", "vm2." ] }, "history": [ "c2h-13-e00006 the walk that found it (20 new features, all in", " ManualWithdrawDone.swift, first execution in 1,068 eps)", "vm1 FAILED step 8 `tap BackButton` matched nothing -- and `reached`", " already held, so the promoted tail was a detour. Dropped", " steps 8-9 and the leading coordinate tap, which the", " action record shows hit nothing (`candidates: 0`).", "vm2 GREEN 6 steps, all three oracles.", "vm3 FAILED step 2 after 24 ms: the tap on `Withdraw CHF` had left", " the app on the onboarding screen and a `tap` resolves", " its target once. Added the five `waitFor` steps.", " It also exposed the vacuous `reached` -- that run", " reported `reached: true` from the onboarding screen,", " because promotion's generated predicates are all `auto`", " and `auto` ones were skipped. Replaced the block with", " three binding predicates describing the screen the six", " taps actually arrive at.", "vm4 GREEN 11 steps (6 taps, 5 waits), all three oracles.", "vm5 GREEN same, consecutively -- the two greens the suite needs." ] }