# Tasks Work in order. Finish a task's check before starting the next. 1. **Find the two hooks.** Read the app's sign-in code and note where the first step succeeds and how a session starts. If there is no app yet, build the smallest one: a `users` table and a password form. Check: a test signs a user in the existing way. 2. **Create the schema.** Add the tables in `design.md`. Check: migrations run from empty. 3. **Codes.** The TOTP function with a settable clock. Check: a test produces every code in the table in `design.md`. 4. **Turn it on (R1).** Secret, encryption, QR code and confirmation. Check: the R1 acceptance tests pass. 5. **The second step (R2).** Pending sign-ins, the attempt limit and reuse. Check: the R2 acceptance tests pass. 6. **Recovery codes (R3) and turning it off (R4).** Check: the R3 and R4 acceptance tests pass. 7. **Trusted devices (R5).** Only if `remember_device` is on. Check: the R5 acceptance tests pass. 8. **Required for all (R6).** Only if `required_for_all` is on. Check: the R6 acceptance tests pass. 9. **Ask again (R7) and pages (R8).** Use the `issuer_name` input in the QR code. Check: the R7 tests pass, and 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.