Run artifact

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

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

Stories built

Acceptance tooling authorization

Stacked context

Build directory changes

Pre-build acceptance observation

intent: The validation pytest module exists and every test in it passes against the built application. return code: 1 stderr: --- drydock: values at failure --- module = PosixPath('tests/test_validation.py') --- drydock: end values --- Traceback (most recent call last): File "validation-tests-module-passes.py", line 8, in <module> assert module.is_file() ^^^^^^^^^^^^^^^^ AssertionError

intent: An empty title is rejected with 400, a non-empty reason, the title field named, and nothing stored. return code: 0

intent: A whitespace-only title is rejected with 400 and a non-empty reason, and nothing is stored. return code: 0

intent: A submission with no title field is rejected with 400 and a non-empty reason. return code: 0

intent: An empty author is rejected with 400, a non-empty reason, the author field named, and nothing stored. return code: 0

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

intent: A submission with no author field is rejected with 400 and a non-empty reason. return code: 0

intent: A rejected browser submission answers 400 with a non-empty page that reports the rejection. return code: 0

Post-build programmatic acceptance

intent: The validation pytest module exists and every test in it passes against the built application. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/ReadingList/runs/20261023.144538/build/ReadingList/.venv/bin/python provisioning: not required return code: 0 stdout: ................................................ [100%] 48 passed in 1.11s

intent: An empty title is rejected with 400, a non-empty reason, the title field named, and nothing 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 whitespace-only title is rejected with 400 and a non-empty reason, 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 submission with no title field is rejected with 400 and a non-empty reason. 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: An empty author is rejected with 400, a non-empty reason, the author field named, and nothing 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 whitespace-only author is rejected with 400 and a non-empty reason, 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 submission with no author field is rejected with 400 and a non-empty reason. 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 rejected browser submission answers 400 with a non-empty page that reports the rejection. 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

I'll start by inspecting the build directory and the staged sources.The build directory already has the application. Next I'll read the existing tests, the app code, and the test runner so the new module follows their conventions.The sibling test_reject_empty_author.py isolates each test in its own SQLite store and applies schema.sql. Before I decide between that and the spec's web_client fixture, I'll check how settings resolve the store and whether the schema is auto-applied.The spec's web_client fixture reads DATABASE_URL when it creates the app, so I can keep the sibling isolation pattern and still use that fixture. Each test gets its own provisioned SQLite file, so rejections never touch data/app.db. I'll write the module now.Now I'll run the new module through the project's venv, then the full project suite to confirm nothing else broke.All 48 new tests pass, and the full suite passes at 185. Next I'll run each declared acceptance criterion from the spec as a standalone script, the way the harness does, with the module-level script copies kept in a scratch directory outside the build tree.All eight criteria exit 0. Last, I'll confirm which files changed in the build tree.RESULT: SUCCESS

FILES CHANGED:

SUMMARY: Added tests/test_validation.py, which covers the FEATURE-ValidationTests spec. It runs eight rejected submissions (empty, whitespace-only, and missing title; empty, whitespace-only, and missing author) through POST /books. Each test reads its outcome back through the public interface (the HTTP status, the parsed JSON body, and GET /books). The tests check the status code, a non-empty error, the named field, that the stored list is unchanged after a rejection, and that a browser-style rejection returns 400 with a non-empty page.

Choices I made:

Verification:

BLOCKERS: