# Tasks Work in order. Finish a task's check before starting the next. 1. **Set up.** Add the tables in `design.md`. If there is no app yet, build the smallest one: a signed-in user who may be an administrator, and a workspace if `subject` is `workspace`. Check: migrations run from empty. 2. **The bucket (R3).** A pure function of flag key and subject id. Check: a test reproduces every row of both tables under "The bucket" in `design.md`. 3. **Evaluation (R1, R2, R5).** A pure function from a flag, its overrides, a subject and attributes to an answer and a reason. Check: the R1, R2 and R5 acceptance tests pass without a database. 4. **Loading and caching (R4).** Use the `cache_seconds` input and a clock that tests can set. Check: the R4 acceptance tests pass. 5. **History (R6).** Only if `change_history` is on. Check: the R6 acceptance tests pass. 6. **Flags for the browser (R7).** Only if `client_endpoint` is on. Check: the R7 acceptance tests pass. 7. **Pages (R8).** Check: every page can be used with a keyboard alone and at 360 pixels wide. 8. **Finish.** Write the README and run the whole test suite. Check: every item under "Definition of done" in `spec.md` is true.