Run artifact

workspace/targets/ReadingList/evidence/block-8.md

Evidence: Block 8 ยท Service (block-8)

Stories built

Acceptance tooling authorization

Stacked context

Build directory changes

Pre-build acceptance observation

intent: An empty author on POST /books answers 400 with a non-empty reason naming the author field and stores nothing. return code: 0

intent: A whitespace-only author is treated as empty, rejected with 400, and nothing is stored. return code: 0

intent: A POST /books with no author field at all is rejected with 400 and nothing is stored. return code: 0

intent: A browser submission with an empty author is answered 400 with a re-rendered page and nothing is stored. return code: 0

Post-build programmatic acceptance

intent: An empty author on POST /books answers 400 with a non-empty reason naming the author field and stores nothing. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/build/ReadingList/.venv/bin/python provisioning: not required return code: 0

intent: A whitespace-only author is treated as empty, rejected with 400, and nothing is stored. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/build/ReadingList/.venv/bin/python provisioning: not required return code: 0

intent: A POST /books with no author field at all is rejected with 400 and nothing is stored. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/build/ReadingList/.venv/bin/python provisioning: not required return code: 0

intent: A browser submission with an empty author is answered 400 with a re-rendered page and nothing is stored. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/build/ReadingList/.venv/bin/python provisioning: not required return code: 0

Build summary

The author rejection already appears in add_book and the route. Next I'll check the existing tests, whether bin/test.sh exists, and what the previous commits changed.The rejection behavior is already in place from earlier blocks. What's missing for this block is a test file that proves the reject-empty-author assertions. Before writing it, I'll get a baseline of the existing suite.Baseline is 94 passing. I'll add a test file for this block that follows the same fixture and style as test_reject_empty_title.py.All 117 tests pass. Next I'll run the four declared acceptance criteria as written. They run against the configured store (data/app.db) through the criteria's own purge and cleanup, so I'll execute them from the project root with the venv interpreter and keep the runner script outside the build tree.Block 8 (reject-empty-author) is done. The author rejection was already in the code from earlier blocks, so this step only added the tests that prove it.

Not done: bin/test.sh does not exist. COMPASS requires it, and sources/full_test.sh dispatches to it, so the full scoring gate currently fails. That file isn't part of this block's spec, so I didn't create it. It needs its own step or a foundation fix.

<blueprint-decisions> [] </blueprint-decisions>

RESULT: SUCCESS

FILES CHANGED:

SUMMARY: Block 8 (reject-empty-author) builds on behaviour already present from earlier blocks: add_book in app_server/book_service.py and the POST /books route in app_server/books.py refuse an empty or whitespace-only author with status 400, a non-empty reason, and field: author, and store nothing. This step adds tests/test_reject_empty_author.py (23 tests) covering JSON and HTML paths, missing and whitespace authors, title-first ordering, earlier books left intact, and the service-level refusal.

Verification:

BLOCKERS: