Understand how the app is built
A contributor wants to learn how the app is put together, from the whole system down to one module, before changing it.

As a contributor, I want to learn how the app is put together before I change it, so that my change lands in the right place and follows the rules the rest of the code keeps.

Situation

I am new to the mobile app. I know Seed, but not the framework the app is built on. I have the Implementation and Design documents and the code.

What I do

    Read the overview and the architecture page.

    Look up unfamiliar words in the glossary.

    Read the tech stack pages for the parts I will touch.

    Read how the app is assembled, then the page of the module I will change.

    Check the limits page before promising anything.

What I should see

    One page shows the whole system: screens written in one language, data code in another, joined at one seam, with no local Seed software and no backend of its own.

    Every technology has its pinned version and where the pin lives: Bun 1.4.2 and the Exact commit in exact.rev.

    The root file is explained section by section: all 25 routes, every piece of state, every data request and every action live there.

    Nine packages are listed with what each owns. Eight of them share the root files through marked blocks, and the steps to add a route or a data source are written down.

    Each data request and each timer the root declares is listed in one line per package.

    The rule that work on a phone must pause every 100 milliseconds is explained with every place the code does so.

    The app's permissions are listed with why each exists.

    Every dependency is listed with its version and its use.

    A glossary defines the terms, and a history page says how the app replaced the React Native one.

    A limits page says what the app does not do and where the code is stale.

    The design toolkit names every component and maps it to its source.

When something goes wrong

    A page and the code disagree: the pages describe one commit, and the app's older design note still carries an outdated route map. I trust the code, check the limits page, and correct the page in the same piece of work.

Not included

    The pages describe the app at one commit and are kept current by hand. Nothing checks them against the code.

    The framework's own source is in another repository.

    Unused or duplicated code is listed, not removed. See Current limits and known gaps.

Trace

Story US-TEAM-04, 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

Component toolkit

The toolkit index: every component mapped to its source and page

Screens

Every route with its screen page, screen component and presentation

Every screen

The 25 routes in one table and how they connect

How the framework shaped the design

How the framework's rules explain design decisions

What changed from the React Native app and why

What the previous app was and what replaced it

Primitive elements

The Contract tags the screens are written with

Implementation

Page

Part it plays

Overview

Section parent: what the app is, what it does and a reading order

Architecture at a glance

The layers, build time, run time and the life of one request

Glossary

Definitions of the terms used across the docs

History and the React Native archive

From React Native and Expo to Seed Exact, with dates and pull requests

Current limits and known gaps

What the app does not do and the stale spots in the code

Tech stack

Section parent: every technology, its pinned version and what is left out

The Exact framework

What Exact is, its crates and hosts, and how the app consumes it

The Contract language

Every Contract construct with a real example, purity and root-only rules

Contract views and built-in calls

View elements, attributes and built-in calls

Tamber design tokens

The design tokens file line by line

The data module runtime (Hermes)

Where the data module runs and which web APIs are missing

The 100 ms turn budget

The 100 ms rule and guidance for new code

Where the app yields for the turn budget

Every place the app yields

Grants and capabilities

The grants the app declares and why

Dependencies

Every dependency with version and use

App structure

Section parent: one root contract, one data module, shared UI and conventions

The root contract (app.contract)

The anatomy of app.contract section by section

Root declarations: Read and Discuss

Root declarations for Read and Discuss, one line each

Root declarations: Activity and Agents

Root declarations for Activity and Agents

Root declarations: Me, Profile, Crypto and Vault

Root declarations for Me, Profile, Crypto and Vault

The data module (app.ts)

app.ts line by line and an index of every source

Navigation and routes

The route table and the actions that move between routes

Deep links and URL handling

How links reach the document route

Package conventions and ownership blocks

Ownership blocks, naming and how to add a route, resource or source

State, refresh and stale-reply patterns

The recurring refresh, clock and stale-reply patterns

Shared components and visual design

Shared components, tokens and conventions

Feature modules

Section parent: the nine packages and how they depend on each other

Services the app talks to

Section parent: the five remote services the app talks to

Repository layout

Where everything lives in the app directory

Code

File

What

app.contract L1-9

ownership rules and the package imports

app.contract L26-65

the route table

app.contract L74-78

component App and the shared state

app.contract L79-273

every package's declarations in marked blocks

app.contract L275-733

every action

app.contract L743-942

the view: route switch and tab list

app.ts L1-45

the data module: merged sources, grants and the answer dispatcher

ui.contract L1-31

the two shared components

app.tamber L1-15

the design tokens

package.json L9-25

dependencies and the pinned Bun

exact.rev

the pinned Exact commit

DESIGN.md L1-40

the job, the principles and the older navigation map

Tests

File

What it checks

app.test.contract

the root: tabs and two cross-package paths

src/agents/__tests__/review.test.ts

"agents runtime code uses the vendored crypto codec, not a patched cborg" (an architecture rule kept by a test)

Delivery

Delivered by #1470, #1471.

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

Unsubscribe anytime

Comments