Know the app only reaches what it must
An identity holder wants to know that keys stay on the phone, that every write is signed there, and that the app can only reach what it has declared.

As an identity holder, I want to know my keys stay on my phone and that the app can only reach what it has declared, so that I can trust it with my identity.

Situation

My identity is a key. Whoever holds it can write as me. I keep it on my phone.

What I do

    Create or import an identity.

    Comment, save my profile, open Activity and chat with an agent.

    Open a document from a site I have never visited.

    Add a model provider key, and ask the app to show my private key.

What I should see

    Me says "Keys stay on this device, in the Keychain."

    Commenting, saving my profile, reading my notifications and talking to agents all work with no other Seed software running. The phone signs each one itself.

    What leaves the phone is a signature, a signed comment or profile change, or my vault in encrypted form. My private key is never sent.

    Reading a document sends no identity, and opening one from another site does not change my server or my identity.

    My private key is shown only after I confirm an alert titled "Reveal the private key?", and only on that identity's screen.

    A model provider key is sent only to my agent server, and only over a secure connection. On a plain connection to a remote server the form says "This server uses remote HTTP. Use HTTPS before sending an API key."

    Besides my settings, the app stores two items in the Keychain, my keys and the vault's lock, and one encrypted vault file.

    The compose sheet tells me "Comments are signed with an identity kept on this device."

When something goes wrong

    The stored keys cannot be read: the app says "Identity storage is unreadable. Restore it from a backup before making changes." It never treats the phone as empty or overwrites anything. I restore from a backup, or import my identities again.

    A notification request is redirected to another address: it is refused before it is sent on, and I see a failure with "Retry".

Not included

    The app is allowed to contact any web server, secure or plain, because I can type any site, vault or agent server. It is not limited to a fixed list. See Grants and capabilities.

    Key files protected with a password cannot be imported, and there is no master password. See Current limits and known gaps.

    Agent requests are signed only as the account itself, not through a delegated key.

    No screen lists what was sent where.

Trace

Story US-APP-09, 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

Reading another site in place

Opening a URL is navigation, not a change to the account or the configured server

Share, copy and open

Everything that copies, shares or leaves the app, and when

Confirmations and alerts

The alert before a private key is revealed and before logout

dialog

Ask before something that reveals a secret

link

Where links inside text go: in the app or outside

Voice and wording

Security wording is direct

Representative strings

The hints and warnings about keys

Me

Keys stay on this device, in the Keychain.

Identity detail

Reveal, copy and share the key after asking

Providers sheet

The key safety rule for provider keys

Compose comment sheet

Comments are signed with an identity kept on this device.

Vault

What the vault keeps here and remotely

Provider and model rows

Provider rows never show the key

Recovery phrase grid

The recovery phrase shown once

How the framework shaped the design

Nothing is reachable by default in the framework

Implementation

Page

Part it plays

Grants and capabilities

The grants the app declares, where each host enforces them and what a refusal looks like

The data module (app.ts)

The literal grants list and the store and storage the module receives

Architecture at a glance

No local daemon; capabilities sit between the data module and the phone

Services the app talks to

Section parent: the five services, what each receives and how each request is authenticated

Seed site read API

Public reads with no identity

Publishing signed blobs

Signed blobs published without transport credentials

Notify service

A signed envelope per request, no redirects

Vault server

Encrypted state and a bearer credential

Agents server

A signed envelope per request; the one secret that is sent

Identity: key storage

One Keychain secret, fail-closed reads, export only after asking

Crypto: keys, blobs and codecs

Keys, signing and codecs on the device

Crypto: signed envelopes

Signed envelopes

Crypto: changes, refs, comments and profiles

Comments and profile changes signed on the device

Vault: the store and on-device format

The Keychain item and the one encrypted file

Agents: signed action envelope and endpoints

Signed actions and the provider key safety check

Agents: providers, models and tool summaries

Provider submission refuses remote plain HTTP

Activity: notify client and signed requests

Signed requests that refuse redirects

Discuss: posting a comment

A comment is signed here and published as a blob

Dependencies

Every runtime dependency; codecs vendored, nothing phones home

The data module runtime (Hermes)

The sandboxed runtime the data module runs in

The local test server

The test server refuses hosted notify paths

Current limits and known gaps

Password-protected key files, delegation and the stale grant

Code

File

What

app.ts L16-28

grants: every network, secret and file permission, literal

app.ts L43-45

answer: the only way into the data module, with store and storage

src/identity/index.ts L1-8

one Keychain secret; never log a mnemonic or a key

src/identity/index.ts L22-32

seed-keys and the unreadable storage error

src/identity/index.ts L108-114

signerFor: signing with a key held on this device

src/vault/store.ts L29-32

the only file written and the vault's Keychain item

src/agents/envelope.ts L46-54

the signed agents action envelope

src/agents/envelope.ts L85-92

safeAgentSecretTarget: HTTPS or loopback only

agents.contract L813-813

the remote HTTP warning

app.contract L631-644

export asks first; copy and share only on that identity's screen

read.contract L440-440

Opening a URL is navigation, not a change to the account or the configured server

me.contract L100-100

Keys stay on this device, in the Keychain.

src/crypto/blob.ts

Content ids and blob verification, computed on the device

src/crypto/signing.ts

Signs objects with the zero-signature convention

src/crypto/signer.ts

The signer types every package signs through

src/crypto/cbor.ts

The CBOR encode and decode entry points

src/crypto/types.ts

Blob and signer types

src/crypto/index.ts

The crypto package surface

src/crypto/vendor/codecs.js

Vendored codecs with Node paths and implicit clocks removed

src/crypto/vendor/codecs.d.ts

Types of the vendored codecs

Tests

File

What it checks

src/agents/__tests__/agents.test.ts

"keeps provider secrets off remote plain HTTP"

src/activity/__tests__/activity.test.ts

"signed requests refuse redirects before contacting the destination"

src/identity/__tests__/storage.test.ts

"saving never silently overwrites an unreadable secret bundle"

src/identity/__tests__/storage.test.ts

"malformed stored seeds are refused without echoing key material"

src/identity/__tests__/storage.test.ts

"export never returns another account key from a mismatched record"

src/vault/__tests__/vault.test.ts

"local ciphertext uses a Keychain KEK, survives reopen, and never contains a private seed"

me.test.contract

"me: an exported key shows only on its own identity's screen"

me.test.contract

"me: identity detail exports the key file after asking, and removes"

tools/test-server/routes.test.ts

"the read proxy refuses hosted notify paths for every method"

crypto.test.contract

"crypto vectors run inside the host runtime"

Delivery

Delivered by #1470.

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

Unsubscribe anytime

Attributes
Epic
Experience
name
Know the app only reaches what it must
Story
US-APP-09
Status
Shipped
summary
An identity holder wants to know that keys stay on the phone, that every write is signed there, and that the app can only reach what it has declared.