# Tasks Work in order. Finish a task's check before starting the next. 1. **Set up.** If there is no app yet, build the smallest one: signed-in users, workspaces, and `notes`. Add the index in `design.md` for the `database` and `language` inputs. Check: migrations run from empty, and the R1 acceptance test passes. 2. **Read what was typed (R2).** A pure function from text to terms. Check: a test covers every row of the table of cases in `design.md`. 3. **Build the query (R3).** A pure function from terms to the database's query text. Honour `prefix_matching`. Check: the R3 acceptance tests pass, and every case from task 2 runs against the database without an error. 4. **Order (R4) and who may see (R6).** Check: the R4 and R6 acceptance tests pass. 5. **Pieces (R5).** Only if `highlights` is on. Check: the R5 acceptance tests pass. 6. **The address (R7).** Check: the R7 acceptance tests pass, including the plan test. 7. **The search box (R8).** Check: the R8 acceptance tests pass. 8. **Finish.** Write the README and run the whole test suite. Check: every item under "Definition of done" in `spec.md` is true.