As a reader, I want the app to open at once and never freeze, so that I can scroll, type and go back at any moment, even while it is working.
Situation
I open the app many times a day. Some of what I have is large: a vault with dozens of identities, an agent conversation that has run for hours.
What I do
Tap the app's icon.
Scroll, tap and switch tabs while a page is still loading.
Create or import an identity, or connect a vault with many identities.
Open a long agent conversation.
What I should see
The first screen is drawn straight away with its title and tab bar, then the content arrives.
While a page loads I can still scroll, go back and switch tabs. Nothing blocks the screen.
A loaded page stays on screen while it refreshes.
Creating or importing an identity does not freeze the phone. Its button reads "Importing…" until it is done.
Connecting or syncing a vault with dozens of identities finishes, and I can keep using the app while it runs.
A long agent conversation opens and scrolls like a short one.
My own message appears in the conversation the moment I send it.
Activity and Agents only fetch while their tab is showing, and the vault only syncs while the app is on screen.
A request that gets no answer gives up with a message instead of waiting for ever: reading a page stops after 15 seconds.
An answer that arrives after I have moved on is discarded. It never replaces what I am looking at now.
When something goes wrong
A server is slow: the spinner or the loading line stays for up to the time limit, then I see the failure line with "Retry". I tap it, or pull down.
A piece of work would take the phone too long in one go: the app refuses it and the screen shows a failure, never a frozen screen. I retry. The team treats this as a defect, see Trust that a change is safe.
Not included
The limit on one piece of work exists only on iOS. Browser and command line tests cannot see it, so a change must be tried at real size on iOS. See The 100 ms turn budget.
Requests to the agent server have no time limit of their own. See Current limits and known gaps.
The inbox loads at most 400 notifications and query lists 50 results, with no paging.
No start-up or scrolling measurements are recorded.
Trace
Story US-APP-08, status Shipped. These links are kept in step with the traceability matrix and with the "User stories" section of every page listed here.
Design
Page | Part it plays |
|---|---|
Pure screens and the limits of the framework that the design absorbed | |
Never stale, never someone else's | |
Old content stays during refresh; the optimistic message | |
A running request never blocks the screen | |
Activity and Agents load only when shown | |
The native list behind the reading column and the transcript | |
The spinner shown on a first load | |
The optimistic bubble and the streaming reply | |
The long transcript | |
The connection that must finish at real size |
Implementation
Page | Part it plays |
|---|---|
The rule that refuses a turn over 100 ms on device, and guidance for new code | |
Every place the app yields, and the vault connect failure | |
Where the data module runs and how the code adapts | |
Constant data baked into the plan so the first frame needs no JavaScript | |
Build time, run time and the life of one request | |
The answer dispatcher every request goes through | |
Stale replies discarded, clocks kept out of sources, visibility-gated polling | |
Key derivation that yields every 64 rounds | |
Account ids derived one per turn and cached | |
Connect split into phases, each its own turn | |
Sync split into the same phases | |
One yield per account while publishing keys | |
Linear joining of tool calls to results | |
A yield between reading history and signing | |
Caches and the 15 second deadline | |
The race harness on real platform time | |
Real-time checks on a simulator | |
The turn budget, the missing agents deadline and list caps |
Code
File | What |
|---|---|
keyPairFromMnemonicAsync and yieldCryptoTurn | |
warmAccountIds and the reason for it | |
connect phases, each its own turn | |
sync phases with yields | |
15 second deadline and the failure sentence | |
readSiteReplyCurrent: a late reply is ignored | |
Activity asks only while its tab is active | |
agentsVisibleOptimistic: the optimistic bubble | |
vault polling and sync gated on visibility | |
the minute clock for relative dates | |
resources that keep the previous answer while asking again |
Tests
File | What it checks |
|---|---|
"joining tool results stays linear for long sessions (Hermes 100 ms turn budget)" | |
"crypto vectors run inside the host runtime" | |
"a submitted revision cannot apply to an edited or reopened form with identical text" | |
"activity: a minute on the inbox signs one request" | |
"read clocks advance on an idle session without reopening any stream" | |
"discuss: comment times are relative and follow the clock" | |
refresh discards late results | |
request deadlines and concurrent imports | |
the built app completes a real approval on real platform time |
Delivery
Delivered by #1470.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime