Espen, part 2: from 6 minutes to 1 minute 11 seconds
ยท Kai Gilb

In part 1, Espen Marthiniussen counted what it cost his fly fishing app, Fluefiske, to keep his phone and his PC in step through his own vault. About 270 calls to learn that nothing had changed. About 5,600 calls to load every catch onto a new device. He set his Goals in numbers, and I promised that this series ends only when those Goals are met in production, and only measured numbers count.
Six days later, Espen measured again. These are his numbers, from his own app and his own scripts, not ours. Here is the one that matters most, in his words:
First full load of my vault (919 catches) in Chrome: about 6 min on my stopwatch before your include=body fix (the app didn't log it then). After your fix the app itself measured 1 min 11 s (16 Oct).
Espen asked. Every app got it. Nothing in this post is a fix inside Espen's app. Every improvement below is a change to GilbPlatform itself, live in production for every vault and every app. If you build on GilbPlatform, your first load and your quiet sync got faster this week too, without asking.
The first load: about 6 minutes to 1 minute 11 seconds

Opening Fluefiske on a new PC and waiting for every catch to arrive used to take about 6 minutes. Now it takes 1 minute 11 seconds, about five times faster. His Goal was under 2 minutes at 1,000 catches. He has 919, and he is under it.
The two numbers come from two different clocks: the "before" is Espen's stopwatch, because the app did not log the time then, and the "after" is the app's own timer. His script on the Mac measured both sides with the same instrument, and tells the same story: 131 seconds before, 49 seconds after.
What changed is one thing. Before, the vault's listing only said which records existed, so a device had to open them one by one. Now a device can ask for the listing with the full records in it, 100 to a page. Agent.Architect capped the page size during the Sharpen, so one large request cannot slow the server for everyone else.
The calls

A first load of every catch went from about 5,600 calls to 147. A sync when nothing changed went from about 270 calls to 2.
Every call a phone does not make is battery and mobile data that stays in the boat. That was Espen's second priority, right after "the fisher never waits".
The quiet sync
A sync when nothing changed now takes 2 calls and 0.32 seconds from Espen's Mac (the median of 5 runs, 279 to 366 ms). His Goal was under 2 seconds. On day 1 we projected 0.25 seconds; the measured number is a little slower than our projection, and it is still six times better than the Goal. I would rather show you the measurement than the projection.
The device now keeps a bookmark, a since= cursor, and asks the vault only "what changed after this?". Espen has had it in his app since 17 October.
The scoreboard

Six of the nine rows are met. Three are not, and I want to be as clear about those as about the wins:
- A retried save that never makes a copy. It is built and has passed its tests. It needs a change to the database itself, and on GilbPlatform a database change goes to production only on my direct word, on its own, never as part of a routine release. It waits for that.
- A first load at 5,000 catches. Espen has 919. Nobody has measured 5,000 yet, so it stays open, whatever the arithmetic suggests.
- The phone start sync. Espen measured 16 to 19 seconds on his phone with the new recipe. The cause is not known yet. A number with no cause is the next thing to look at, not something to argue about.
Built for Espen, there for every app
Espen's letter was the reason. The work went into the platform, so it is not his alone. This is what any app developer on GilbPlatform can use today:
| Your app needs to | Use this |
|---|---|
| Load everything onto a new device | include=body on the listing: full records, 100 to a page |
| Sync fast when little has changed | the since= cursor: 2 calls when nothing did |
| Stop an old copy deleting new work | If-Match on a delete: a stale delete is refused |
| Restore a deleted record | a write with If-Match: *: it comes back in its owner's vault |
| Keep private data off a borrowed PC | nothing: private replies are never cached |
| Describe its own data | the shared vocabulary, with 21 new changes such as notStated |
The listing with full records is already in the public Developer Guide, with examples run on production. The since= cursor is being added to it now.
That is how a platform should grow. One developer measures what hurts, writes it down in numbers, and the fix lands where everyone else can stand on it. The next app on GilbPlatform starts where Espen is today, not where he was on 14 October.
How it shipped
Kai-Zen, the team of AI agents that runs inside MyJackfruit, worked down the Value Decision Table from part 1 in order, highest value for cost first. Each step went live in production and was then read back there, signed in, by Agent.Tester. Times are Norwegian time (CEST), computed from the server's UTC clock:
| When | What went live |
|---|---|
| 14 Oct | The vocabulary for Espen's old tide readings, so his 910 old catches could be uploaded (part 1) |
| 15 Oct 00:45 | A restored catch lands in its owner's vault; private reads are never cached |
| 15 Oct 02:54 | A delete sent from an old copy is refused |
| 15 Oct 03:23 | 18 more vocabulary changes Espen asked for |
| 15 Oct 11:18 | Full records in the listing (the first load) |
| 16 Oct 16:42 | The since= cursor (the quiet sync) |
The slowest part of the work was not the code. It was the testing. The restore fix alone took seven rounds with Agent.Tester, and every round found something the round before could not see. Round six caught a new problem that the fix itself had brought in. For that one fix, 19 defects were found before a single line of it reached production. The coder's own checks said "green" every time. The tester's hostile checks decided.
Next
The work continues until every row on the scoreboard is met, and part 3 will show the numbers.
The fish are still on his list. The platform is catching up.
Kai Gilb
