Now I'll register the blueprint in the application factory.Adding `POST /books` intentionally changes the wiring test that asserted no book routes exist, so I'll update that assertion to the new route set.Project suite is green (46 passed). Now I'll run the three declared add-book acceptance criteria, scripts kept outside the build directory.All three criteria fail at their own cleanup step, before reaching the add-book assertions. Their setup calls `GET /books`, which belongs to the list-books story and isn't part of this block. To confirm the POST behavior itself, I'll run the same assertions against a throwaway store with the cleanup calls removed as a diagnostic (the criteria stay untouched).POST `/books` is implemented and the project suite passes (46 tests), but all three add-book acceptance criteria fail. Their setup calls `GET /books`, which belongs to the list-books story and is not part of this block. I did not add it, since this block is scoped to add-book. **What I built** - `app_server/book_service.py`: `add_book(database, title, author)` stores through `db.books.create`. It has no Flask dependency and refuses an empty title or author with a reason, before touching the store. - `app_server/books.py`: the `books` blueprint with `POST /books`. It trims `title` and `author`, then answers `303` to `/` on success. On rejection it answers `400` and puts the reason in the `base.html` alert region. - `app_server/__init__.py`: registers the blueprint in `create_app()`. - `tests/test_add_book.py`: 25 tests on a temporary store, covering the redirect, storage read back through the persistence package, trimming, append order, the rejection cases, and the service. Each test uses its own store, so none touch `data/app.db`. - `tests/test_create_app_wiring.py`: I changed `test_create_app_registers_no_book_routes` to expect `books.create_book` beside `static`, since adding the route made the old assertion false. **Acceptance criteria** - `add-book-redirects`, `add-book-round-trip`, `add-book-persists-in-store`: all fail in their `cleanup()` with `TypeError: 'NoneType' object is not iterable`, because `GET /books` returns 404 here. These criteria are not broken, so I did not emit `AC_BROKEN`. - Diagnostic: with the cleanup calls removed, on a throwaway store, the POST returns `303`, the row is read back through `committed_session()` with the right title and author, and an empty title returns `400`. The criteria files are unchanged. **Choices I made** - Empty or absent fields get a `400` with the reason and nothing is stored. The rejection stories own this behavior, but storing an empty book would break COMPASS's guardrail. - Repeated identical submissions are stored as separate rows, since the spec declares no idempotence. **Not in this block** - `bin/test.sh` does not exist. COMPASS requires it, and `sources/full_test.sh` will fail until it is added. RESULT: FAILED FILES CHANGED: - app_server/__init__.py - app_server/book_service.py - app_server/books.py - tests/test_add_book.py - tests/test_create_app_wiring.py SUMMARY: POST /books is implemented as a thin blueprint over a Flask-free service. Trimmed valid submissions store through `db.books.create` and answer 303 to `/`. Empty or absent fields answer 400 with a reason and store nothing. Project suite: `pytest -q` 46 passed (26 baseline + 20 new add-book tests; the 25 cases in `test_add_book.py` are parametrized). Declared criteria: 0 of 3 pass, because their cleanup needs `GET /books`. Diagnostic POST checks pass on a throwaway store. [{"spec":"FEATURE-AddBook.md","severity":"Material","subject":"Empty or absent title/author on POST /books","decision":"Rejection stories own validation, but COMPASS forbids storing empty values. I refuse with 400 and the reason rendered in the base.html alert region, and store nothing. Is that acceptable, or should the rejection stories own the response shape and this should only refuse without rendering?"}] FAILURE_SUMMARY: Declared add-book criteria call GET /books in cleanup, which is the list-books story and is not implemented in this block. FAILURE_DETAIL: The three criteria (add-book-redirects, add-book-round-trip, add-book-persists-in-store) each begin with `cleanup()`, which calls `client.get("/books").get_json()`. GET /books is not registered, so it returns 404 and get_json() returns None, raising TypeError before the POST assertions run. The add-book behavior itself is verified: the POST returns 303 and the stored row reads back, and empty submissions return 400. To pass these criteria, the list-books story (GET /books returning JSON) must be built, or the list story must be placed in the same block. `bin/test.sh` is also absent, which COMPASS requires for `sources/full_test.sh`; this belongs to a later block.