Eleven merged changes made the phone usable on a slow link, but not on the worst one
Measured before and after on three simulated links.
The agenda now opens on a slow link where it never did before
On a slow, lossy link the phone's agenda, the list of things ferrets ask you, used to stay empty forever. Merged changes fixed the middle case, and the worst case still fails.
On the slow link, 5 of 5 opens failed before the fixes. After them, 5 of 5 opened, in 41 seconds typically and 127 seconds at worst. Measured, simulated distance
The tiles show the win on the slow link (profile A). The worst link (profile B) is still broken, as the last band explains.
Three simulated links stand in for a phone on a bad network
A real bad network is hard to repeat. So a test rig sits between a real browser and a real daemon and slows the link on purpose. These are the three links:
| Link | Round trip | Speed | Loss |
|---|---|---|---|
| Clean | 0 ms | Unlimited | None |
| Profile A | 800 ms | 256 kbps | 3% |
| Profile B | 2,000 ms | 64 kbps | 10% |
A program cannot truly drop TCP packets, because TCP hides drops. So the rig models a drop as what it costs: that packet and everything behind it waits at least one second. This is a model, not a real phone. Numbers compare the app with itself before and after, nothing more.
Each result is the median of 5 runs. A failed run says why. Nothing is blank.
Seven things got better on the clean and middle links
Here are the clearest rows. Each one is measured by the rig on the same code, before and after the eleven changes:
| What we measured | Link | Before | After |
|---|---|---|---|
| Agenda opens | A | Failed at 142 s | 41 s median |
| Agenda readable offline | Clean | Failed | 2.6 s |
| Agenda readable offline | A | Failed | 2.5 s |
| Answer after a 30 s blackout | Clean | Lost, applied 0 times | Applied once |
| Item raised during blackout shows | Clean | Not in 120 s | 2.4 s |
| Data sent per open | Clean | 2,383 KB | 955 KB |
| Data delivered per open | A | 2,279 KB | 486 KB |
The biggest change in kind is the answer. Before, a 30-second blackout lost the answer every time, and the phone offered no retry. Now the phone keeps each answer in an outbox, a saved queue that retries until the machine confirms.
1/5You answer. The answer is saved on the phone first, with its own request id.
The same request id is why a resend can never double the answer. That rule is the heart of the fix.
Eleven merged pull requests carry the fix: nine change the app, two measure it
The work split into small changes, each in its own pull request. Open any of them to see the code and the review:
- Answers apply once, by request id
- The proof rig: shaper, browser, sandbox daemon
- A link-quality signal and a high performance mode
- Phone speech in high performance mode
- Compressed agenda reads
- Keepalive and deadlines that fit the round trip
- Never wait for the release check on a bad link
- Conversation offline copy, heavy content on tap, outbox backoff
- A durable answer outbox, re-read on reconnect, an honest empty state
- Agenda offline copy and a text-first inbox
- The after numbers
The plan before the work had one finding worth keeping: a lead's board is over 1 MB, so on a 64 kbps link it needs about 128 seconds, past the 20 second read limit (C). That is why reads had to shrink and become patient.
The worst link still does not open, and some numbers are unclear
Other limits we report plainly:
- A cold open takes 41 seconds typically. That is better than never, but not good.
- On A, an answer sent just before a 30-second blackout never reached the daemon within 120 seconds, 5 of 5. There was no before to compare, because the agenda never opened.
- A possible double read of the inbox on A is suspected, not confirmed. The rig counts sessions by size, not routes.
- Voice could not be measured, because the rig has no running ferret.
What we did not test is just as important:
- Offline on the worst link: five attempts, no readable row, cause not established.
- A real phone on a real network: the loss is modelled.
The harness-link design attacks the worst link directly: fewer sessions, fewer handshakes and no big re-reads. That is the lever the numbers point to.