Run artifact

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

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

Stories built

Stacked context

Build directory changes

Pre-build acceptance observation

intent: GET / answers 200 and shows an added book's title and author, and GET /books agrees with it on the same book. return code: 1 stderr: Traceback (most recent call last): File "screen-index-renders.py", line 13, in <module> assert page.status_code == 200 ^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: POST /add with a title and author redirects 303 and the book then appears on GET / and in GET /books. return code: 1 stderr: Traceback (most recent call last): File "screen-add-form.py", line 12, in <module> assert response.status_code == 303 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: POST /add with an empty title, an empty author, or whitespace-only values answers 400 and stores nothing. return code: 1 stderr: Traceback (most recent call last): File "screen-add-rejects-empty.py", line 19, in <module> assert response.status_code == 400 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: POST /remove/{book_id} redirects 303 and the book is gone from GET / and GET /books; an unknown id also redirects 303. return code: 1 stderr: Traceback (most recent call last): File "screen-remove-form.py", line 11, in <module> assert response.status_code == 303 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: GET / presents books in the order they were added. return code: 1 stderr: --- drydock: values at failure --- title = 'ac-screen-order-6a944ab73f9a4f36a0630d7bbafcab52-2' titles = ['ac-screen-order-6a944ab73f9a4f36a0630d7bbafcab52-0', 'ac-screen-order-6a944ab73f9a4f36a0630d7bbafcab52-1', 'ac-screen-order-6a944ab73f9a4f36a0630d7bbafcab52-2'] html = '<!doctype html>\n<html lang=en>\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n' --- drydock: end values --- Traceback (most recent call last): File "screen-order-added.py", line 14, in <module> positions = [html.index(title) for title in titles] ^^^^^^^^^^^^^^^^^
ValueError: substring not found

Post-build programmatic acceptance

intent: GET / answers 200 and shows an added book's title and author, and GET /books agrees with it on the same book. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.174350/build/ReadingList/.venv/bin/python provisioning: not required return code: 0

intent: POST /add with a title and author redirects 303 and the book then appears on GET / and in GET /books. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.174350/build/ReadingList/.venv/bin/python provisioning: not required return code: 0

intent: POST /add with an empty title, an empty author, or whitespace-only values answers 400 and stores nothing. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.174350/build/ReadingList/.venv/bin/python provisioning: not required return code: 0

intent: POST /remove/{book_id} redirects 303 and the book is gone from GET / and GET /books; an unknown id also redirects 303. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.174350/build/ReadingList/.venv/bin/python provisioning: not required return code: 0

intent: GET / presents books in the order they were added. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.174350/build/ReadingList/.venv/bin/python provisioning: not required return code: 0

Build summary

The baseline is green (75 passed), the book service already validates input and keeps list order, and the routes for /books exist. I'll add the three page routes to the pages blueprint, a template, and tests.Now I'll update the route-registry test, since this block legitimately adds three routes to the app.Next, the page test module. It reads the rendered HTML through a small structural parser (list items, error region, input values, form actions) rather than substring checks on the page.One test I just wrote is muddled (it checks the plain load and the rejection in one body). I'll make it check only the rejection response.All 110 tests pass (75 existing plus 35 new, and the updated route test). Now I'll run the five declared scoped acceptance checks from the SCREEN spec myself, since they are not on disk and the runner will grade them.All five declared checks pass. Last, I'll confirm which files changed in the build directory.RESULT: SUCCESS

FILES CHANGED:

SUMMARY:

Verification:

Choices I made:

No blockers.