Mobile story pipeline: operating protocol
How Ion carries a mobile user story through design, implementation, review and TestFlight, keeps every phase linked to the others, and handles design change requests without losing a story.

This is Ion's operating protocol for the Seed mobile app. A person writes a user story. Ion turns it into design, then code, then a reviewed pull request and a TestFlight build, and keeps all four phases linked so that anything in the app can be traced back to the story that asked for it. It replaces the earlier factory protocol of 2026-12-01. Eric's directions and the Ion workflow prevail over this page; this page adds the mobile specifics.

The chain

flowchart LR S[User story] --> D[Design] D --> I[Implementation docs] I --> C[Code and tests] C --> P[Pull request with evidence] P --> T[TestFlight build] T --> S

Phase

Lives at

Unit

Story

User Workflows

One page per story, grouped in epics

Design

Design

Screens, component toolkit, patterns, and one workflow design per new story

Implementation

Implementation

Module pages, and one workflow note per delivered story

Code

seed-hypermedia/seed, frontend/apps/mobile-exact

Contracts, sources, tests, linked as permalinks

Tracking

Issue Tracker

One task per story or design change

Trace

Traceability

The matrix and the coverage lists

Invariants

These must hold after every piece of work. Check them before you say a step is done.

    Every story is linked forward. A story has a Trace section that grows with its status: design pages from Designed, implementation pages, code and tests from In review, and its task and pull requests throughout. The 59 stories written on 2026-12-03 describe what was already shipped: they list the pull request that delivered them and have no task. Do not create tasks for them.

    Every page is linked back. Every Design page and every Implementation page has a User stories section naming the stories it serves. A new page gets one when it is created.

    Links agree in both directions. If a story lists a page, the page lists the story, and the reverse.

    No orphans. Every document is placed by a Card embed in its parent's In this section list. The embed is what puts a page in the navigation.

    The toolkit matches the code. A component page exists for every component in the contract files and for nothing else. A screen page lists every component it uses.

    Stories are preserved. A change made for one story or one design request must leave every other story's "What I should see" true. Only a person changes a story's meaning.

    Code links are permalinks. When code changes, move the links on the pages you touched to the new commit.

Writing a Card embed

A Card is a block of type Embed with the view Card. In the Markdown you write, it is the address alone in angle brackets on its own line, followed by the block marker. Nothing else is on the line: no title, no @, no square brackets.

<hm://z6MkuBbsB1HbSNXLvJCRCrPhimY6g7tzhr4qvcYKPuSZzhno/mobile/user-workflows/reading/see-everything-in-my-space> <!-- type:Embed attrs:{"view":"Card"} -->

A line such as [@Title](hm://...) <!-- type:Embed ... --> is a paragraph with a mention, not a Card, and it leaves the page out of the navigation. After adding a Card, read the parent back and confirm the block's type is Embed and its view is Card. Put Cards under the parent's In this section heading, one per line with a blank line between.

Story format and status

A story page has frontmatter name, summary, Story (its id, US-<EPIC>-<NN>), Epic, Status, and the sections "Situation", "What I do", "What I should see", "When something goes wrong", "Not included", "Trace", "Related stories". "What I should see" is the acceptance: every line must be true before the story is Shipped.

A person may write a story with only a title and a few sentences. Do not ask them to fill in a template. You complete the structure without changing what they asked for, and you put your additions under their text.

Status

Meaning

Set by

(none) or New

A person wrote or changed it. Not yet picked up

Person

Designing

You own it. The task exists. Design is being written

Ion

Designed

The workflow design and affected design pages are published

Ion

Building

Branch and tests in progress

Ion

In review

Pull request open with evidence

Ion

Shipped

Merged, the TestFlight status is green or the push needed no build, the trace is complete

Ion

Partial

Shipped, but an acceptance line is not met. "Not included" says which

Ion

Blocked

Waiting on something named in the task

Ion

Paused

A person asked to stop. Do nothing until they say so

Person

What wakes you

Event

Trigger

What to do

A story is created or edited by someone else, or a comment lands on a story

Mobile story events (site update under /mobile/user-workflows)

"A new or changed story" below

A comment on a Design or Implementation page, or a reply to you

Comments on Ion-authored documents

"A design change request" below

You are mentioned

Mentions of Ion

Read it. If it is about mobile, route it to one of the two procedures

A pull request event

GitHub webhook

Continue the story the pull request belongs to

The schedule

Mobile story pipeline monitor

"Reconcile" below

Activity you sign yourself does not wake you, so your own edits do not loop.

Admission, kept cheap

    Read ~/memory/state/mobile-factory/checkpoint.md.

    List the stories in one call: query the children of /mobile/user-workflows recursively with select: ["Story", "Status", "$path", "$updated", "$authors"].

    Compare with the checkpoint. Work is due only when a story is new, a story's version changed and you did not make the change, a story you own is not Shipped, a comment you have not answered exists, or a pull request of yours changed state.

    If nothing is due, write nothing and stop. Do not re-read the Design or Implementation trees on a quiet tick.

    One owner per story. Before claiming, check the task thread and your lanes as the Ion workflow requires. Never start a second lane for a story that has one.

A new or changed story

Do these in order. Each step ends with a status change and a short comment on the task, so a person can see where it is.

1. Admit

    Read the story and its comments. If it is Paused, stop.

    If the story changed only cosmetically (wording, typo) and its acceptance means the same, record the new version in the checkpoint and stop.

    Give a new story an id (the next free number in its epic) and an epic. Place it: move it under the right epic if it was created elsewhere, and add its Card to the epic page. Add the missing sections under the person's text.

    If the goal is unclear enough that two designs would differ, ask one concrete question in a comment on the story and set Blocked. Otherwise do not wait.

    Create the task tasks/mobile-<slug> with the story link, acceptance copied from "What I should see", and the accountable person (the story's author). Link the task from the story. Set Designing.

2. Design

    Find what exists. Read the screen map, the screens the story touches and the component toolkit. Reuse before you add.

    Write the workflow design at /mobile/design/workflows/<slug> following Workflow designs: the source story, structure in Mermaid, where it sits (tab, pushed or sheet), screen states including loading, failure and empty, navigation, accessibility, recovery, the components it uses, and what is new.

    Update the design pages the change affects: screen pages, a new screen page if there is a new screen, toolkit pages for new or changed components, patterns, the screen map and navigation bars. Follow the design philosophy and voice.

    Impact check. For every existing design page you changed, read its User stories list and confirm each of those stories is still satisfied. If one would break, stop and ask on the task. Do not trade one story for another.

    Add the story to the User stories section of every design page that takes part, and list those pages in the story's Trace. Add Cards for new pages.

    Set Designed. Comment on the story with a three-line summary and the design link. Then continue. Do not wait for approval: a person can redirect at any time with a comment.

3. Build

    Follow the Ion workflow for product changes: admission and resources, a dedicated worktree and branch, the workflow gate before product edits.

    Read Rules for agents working on the app, Package conventions and the module pages for the code you will touch.

    Change the contract, the sources and the tests together. Add a Contract test for each acceptance line that can be driven, and unit tests for new logic. Run the Bun suite and the affected Contract tests on the simulator.

    Record the workflow on the simulator at the reviewed head.

    Set Building when you start, In review when the pull request is open.

4. Pull request

    The pull request links the story, the design, the task and the recording, and lists the acceptance lines with how each was checked. Follow Review evidence.

    Never merge directly. Queue it once it is ready, as the Ion workflow says. A person approves the exact head.

5. Document the implementation

Do this while the pull request is open, and finish it after merge.

    Write the workflow note at /mobile/implementation/workflows/<slug> following Workflow notes.

    Update every module page whose code changed, add pages for new modules, and move code links to the merge commit. Update the design pages if the built result differs from the design, and say why.

    Add the story to the User stories section of every implementation page that takes part, and list those pages, the code and the tests in the story's Trace.

6. Ship

    After merge, confirm the TestFlight / Clipper status on the merge commit, or note that the push did not change the app directory.

    Complete the story's Trace: design, implementation, code at the merge commit, tests, task, pull request, build. Add its row to the traceability matrix.

    Check each "What I should see" line against the shipped app. All true: Shipped. Otherwise Partial, with the missing lines under "Not included" and a follow-up task.

    Run the invariant check below. Close the task. Update the checkpoint.

A design change request

A person asks for a change by commenting on a Design page, on a story, or by mentioning you. Examples: "the directory should be a pushed screen, not a sheet", "make the comment count more visible".

    Read the comment, its thread and the page. Reply at once with what you understood and what you will check, so the person is not left waiting.

    Collect the affected stories: the User stories lists of the page and of every page that uses it (for a component, its Used by screens).

    Decide which case it is:

      It fits every story. Go on.

      It conflicts with a story's acceptance. Do not change the design. Reply naming the story and the line, and offer the two ways out: change the request, or change the story. The story only changes if its author or Eric says so in writing; then edit the story first and treat it as a changed story.

      It is really a new goal. Say so, and offer to write it as a new story for them to confirm.

    Create a task tasks/mobile-design-<slug> linking the comment and the affected stories.

    Change the design pages first: the screen, the toolkit page, patterns and structure pages that describe it. Record on the page what changed and link the request.

    Then build it exactly as a story: branch, tests, simulator recording, pull request linking the request and the affected stories, with their acceptance re-checked. Update the implementation pages and code links.

    Reply in the original thread with what changed, the pull request, and after merge the build. Leave the affected stories' status as it was unless their text changed.

If the request is only about the documents (a page is wrong or unclear), fix the page and reply. No task or pull request is needed.

Reconcile

On the schedule, after admission:

    For each story you own that is not Shipped, take the next step or record why it cannot move.

    For each open pull request of yours, read its real state. A new head invalidates evidence recorded on the old one.

    If the app's code changed on main in frontend/apps/mobile-exact without a story (someone else's pull request), find the module pages it touches, update them and their code links, and either link the change to an existing story or write a short story for it with Shipped and mark it as written after the fact.

Invariant check

Run this before closing a story or a design change, and report the counts on the task.

    List every document under /mobile (one query, all descendants).

    For each document other than the three section roots, confirm its parent embeds it as a Card.

    For each Design and Implementation page, confirm it has a User stories section with at least one story link.

    For each story at Designed or later, confirm its Trace lists at least one Design page (stories in the Team epic about tooling may have none). For each story at In review or later, confirm it lists at least one Implementation page.

    For each story link on a page, confirm the story's Trace lists that page, and the reverse.

    For the pages you touched, confirm every hm:// link resolves.

Any failure is work you owe before the step is done.

Ownership, evidence and merge

The Ion workflow governs claims, lanes, resources, the workflow gate, review evidence and the merge queue. In short: one owner per story and checkout, real simulator recording on every interface change, no direct merge, approval of the exact head by a person, task closure only after the whole acceptance passes.

Checkpoint and recovery

Keep ~/memory/state/mobile-factory/checkpoint.md as a short index: the story list with id, path, version, status and owner lane; open pull requests with head and state; unanswered comments; blocked items with what they wait for and the next probe; the last invariant check result. Write it after a real transition, not on a quiet tick. After an interruption, re-read the task thread and the real state of the branch and pull request before resuming. The task thread is the public record.

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

Unsubscribe anytime

Attributes
name
Mobile story pipeline: operating protocol
summary
How Ion carries a mobile user story through design, implementation, review and TestFlight, keeps every phase linked to the others, and handles design change requests without losing a story.