Run artifact

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

Evidence: Block 4 · Service (block-4)

Stories built

Reusable compacts

Stacked context

Build directory changes

Pre-build acceptance observation

intent: The primary reading-list route is reachable and returns a successful page response. return code: 0

intent: The reading-list route presents persisted books in insertion order. return code: 1 stderr: --- drydock: values at failure --- first_title = 'Reading List First' body = '<!doctype html>\n<html lang="en">\n<head>\n <meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">\n <title>Reading List</title>\n <link rel="stylesheet" href="/static/reading-list.css">\n</head>\n<body><main class="page-shell">\n <header class="page-header"><p class="eyebrow">ReadingList</p><h1>Books to read</h1><p class="intro">Keep track of the books you… (+1274 chars) --- drydock: end values --- Traceback (most recent call last): File "reading-list-order.py", line 26, in <module> first_position = body.index(first_title) ^^^^^^^^^^^^^^^^^^^^^^^
ValueError: substring not found

intent: The reading-list route successfully renders when no matching books are present. return code: 0

intent: The book-creation route accepts a valid title and author submission. return code: 1 stderr: Traceback (most recent call last): File "add-book-route.py", line 11, in <module> assert response.status_code == 302 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: A valid submission is persisted and readable through the public list workflow. return code: 1 stderr: Traceback (most recent call last): File "add-book-persistence.py", line 11, in <module> assert created_response.status_code == 302 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: The removal route deletes the selected book and returns to the reading-list workflow. return code: 1 stderr: Traceback (most recent call last): File "remove-book-route.py", line 17, in <module> assert response.status_code == 302 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: Removing a book changes subsequent persisted reads so the selected identifier is absent. return code: 0

intent: The book submission route rejects an empty title with a client-error response and does not persist the invalid submission. return code: 1 stderr: Traceback (most recent call last): File "validate-book-route.py", line 10, in <module> assert response.status_code == 400 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: The book submission route rejects an empty author with a client-error response and does not persist the invalid submission. return code: 1 stderr: Traceback (most recent call last): File "validate-book-author.py", line 10, in <module> assert response.status_code == 400 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: A reader can correct an invalid submission and successfully add the corrected book. return code: 1 stderr: Traceback (most recent call last): File "validate-book-correction.py", line 13, in <module> assert invalid_response.status_code == 400 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

Post-build programmatic acceptance

intent: The primary reading-list route is reachable and returns a successful page response. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python provisioning: not required return code: 0

intent: The reading-list route presents persisted books in insertion order. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python provisioning: not required return code: 0

intent: The reading-list route successfully renders when no matching books are present. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python provisioning: not required return code: 0

intent: The book-creation route accepts a valid title and author submission. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python provisioning: not required return code: 0

intent: A valid submission is persisted and readable through the public list workflow. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python provisioning: not required return code: 0

intent: The removal route deletes the selected book and returns to the reading-list workflow. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python provisioning: not required return code: 0

intent: Removing a book changes subsequent persisted reads so the selected identifier is absent. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python provisioning: not required return code: 0

intent: The book submission route rejects an empty title with a client-error response and does not persist the invalid submission. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python provisioning: not required return code: 0

intent: The book submission route rejects an empty author with a client-error response and does not persist the invalid submission. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python provisioning: not required return code: 0

intent: A reader can correct an invalid submission and successfully add the corrected book. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python provisioning: not required return code: 0

Repair attempts

Build summary

<reusable-compact filename="DATABASE.md"> Persistence provides persistence.books with:

Books require non-empty title/author, retain insertion order, and use generated persistence only. Schema: books(id, title, author, insertion_order UNIQUE). </reusable-compact>

RESULT: SUCCESS

FILES CHANGED:

SUMMARY: Implemented centralized ordered book reads for the list and validation workflows. Database regressions and all declared acceptance probes pass. sh sources/full_test.sh: 9 passed.

BLOCKERS: