# Tasks Work in order. Finish a task's check before starting the next. 1. **Set up.** Add the tables in `design.md`, the adapter interface and the stand-in provider. If there is no app yet, build the smallest one: a signed-in user, and a workspace if `payer` is `workspace`. Check: migrations run from empty and the stand-in passes its own tests. 2. **Plans (R1).** Check: the R1 test passes. 3. **States (R4).** A pure function from a state and an event to the next state. Check: a test covers every arrow in the table in `design.md`. 4. **What an account may use (R5).** Use `grace_days` and `free_plan`. Check: the R5 acceptance tests pass with a clock the tests set. 5. **Check out (R2) and trials (R6).** Use `trial_days`. Check: the R2 and R6 acceptance tests pass. 6. **Webhooks (R3).** Check: the R3 acceptance tests pass. 7. **The real adapter.** For the `provider` input. Skip if it is `other`. Check: the adapter passes the same tests as the stand-in, against the provider's test mode or its recorded answers. 8. **Manage (R7) and the daily job (R8).** Check: the R7 and R8 acceptance tests pass. 9. **Pages (R9).** Use the `app_name` input. Check: every page can be used with a keyboard alone and at 360 pixels wide. 10. **Finish.** Write the README and run the whole test suite. Check: every item under "Definition of done" in `spec.md` is true.