Honest state: loading, failure and empty
Every piece of data in the app has a loading, a failure and an empty presentation, and data for another account or server is never shown as current.

A phone app waits on the network constantly. The fourth principle says that the app must always tell the truth about what it knows: it is loading, it failed, there is nothing, or here it is. It must never show a blank pane, and never show old data as if it were current.

The principle

DESIGN.md:

Honest state. Every resource has loading (a quiet placeholder, never a blank pane), a failure line with Retry, and an empty state that names the next step (EmptyState from exact:content).

The three states across the app

Data

Loading

Failure

Empty

Document (screen)

A spinner labelled "Loading"

StatusLine with the error and "Retry", then "Check your connection, then try again."

"This page is empty."

Discussion (DiscussSection)

A spinner labelled "Loading comments"

The error text

"No comments yet. Start the conversation." with "Add a comment"

Thread (screen)

A spinner

StatusLine with "Retry"

"No replies yet."

Directory (sheet)

A spinner

StatusLine with "Retry"

"Nothing matches “query”."

Activity (inbox)

"Loading activity…"

The error and a "Retry" row

EmptyState "Nothing yet": "Replies and mentions for your identities show up here."

Agents (list)

"Loading agents…", "Connecting…"

AgentError with "Retry"

"No agents yet": "Configure a model provider, then create an agent to start a conversation." with "Create an agent"

Conversation (session)

"Loading conversation…"

AgentError, "Retry reply"

EmptyState "New chat": "Say something to start this conversation."

Identities (Me)

No placeholder: the "Create identity" and "Import identity" rows show at once

"Couldn’t read the identities on this device." with "Retry"

"No identity yet": "Create one to comment and talk to agents, or import one you already have."

Vault (screen)

"Opening your vault…"

"Couldn’t open the vault." with "Retry"

"No identities yet": "Create an identity, import a key, or connect your remote vault."

Profile (sheet)

"Loading profile…"

The error, then "Retry" or "Import identity", and "Change server"

Not applicable

A whole-screen empty state uses EmptyState: symbol, title, one sentence, and the button that leads to the next step.
Inside a grouped list the empty state is a row (headline and sentence) followed by the action rows.

Wording conventions

These are observed across the contracts, and collected in Voice and wording.

    Loading is a short present participle ending in an ellipsis character: "Loading activity…", "Opening your vault…", "Generating…".

    A button whose action is in flight changes its label and is disabled: "Posting…", "Opening…", "Creating…", "Importing…", "Checking…", "Saving…", "Syncing…".

    Failure is a plain sentence about what could not be done, with a button labelled "Retry" ("Try again" on the vault connect sheet).

    Empty is a headline that states the fact ("No identity yet", "Nothing yet", "No agents yet") and a sentence that names the next step. The control for that step is next to it.

    Missing prerequisites are states too: with no identity, Activity says "No identity selected" with "Open Me", Agents says "Choose an identity", and the thread composer says "Create an identity to reply." (moving between tabs).

Never stale, never someone else's

Each screen checks that the data it holds answers the question the screen is asking now. When it does not, the screen shows loading instead.

Check

What it prevents

Source

activityReady: the inbox's account and server equal the current ones

Showing one identity's notifications after switching to another

line 135

agentsReady, agentsThreadReady, agentsModelsReady

Showing another server's or account's agents, or another conversation

lines 180 to 182

profileReady, and errors scoped to the visit

Editing a different identity's profile, or seeing an old save error

lines 243 to 244

loaded = page.ref == ref on a document, mine = dir.uid == uid on the directory

A covered document or another space's tree appearing under the wrong title

document, directory

An exported key is shown only on its own identity's screen

A private key appearing on another identity

lines 228 to 229

An "Open site" reply applies only to the submission that asked for it

A slow answer replacing what the person typed since

lines 82 to 85

Pull to refresh follows the same rule: the list's refreshing indicator shows only when content is already on screen (refreshing=(loading and loaded)), so the first load and a refresh never show two indicators. An address typed into "Open site" that cannot be reached opens a document screen in its failure state with "Retry". It never substitutes the default home (test "failed site loading exposes retry and never substitutes the default home" in open-site.test.contract).

Failure is local: the document is shown, and only the Discussion section says "Couldn't reach the server." The screenshot predates the large document title.

Why

Seed content comes from servers the person chose and from peers, and identities can be switched at any time. A screen that showed the previous account's inbox for a moment would be a privacy problem, not only a glitch (inferred from the account and server checks above). The three states are treated as one pattern across the tabs: Loading, failure and empty states.

Where the app does not yet live up to it

    Failure without Retry. A failed discussion under a document, and on all comments, shows the error text with no "Retry" button. Pull to refresh is the only way to ask again.

    Two failure styles. StatusLine is secondary grey. AgentError and most form errors are -exact-system-red.

    Two loading styles. Read and Discuss use a spinner (progress). Activity, Agents, Profile and Vault use a line of text.

    EmptyState is rare. It is used three times: twice on Activity and once in a new conversation. The other empties are list rows.

User stories

This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Attributes
name
Honest state: loading, failure and empty
summary
Every piece of data in the app has a loading, a failure and an empty presentation, and data for another account or server is never shown as current.