Run artifact

workspace/targets/LayersTesting/evidence/block-6.md

Evidence: Block 6 · Service (block-6)

Stories built

Reusable compacts

Stacked context

Build directory changes

Pre-build acceptance observation

intent: Valid account and category files are loaded and their persisted rows are readable. return code: 0

intent: An unreadable or invalid master-data file is rejected without changing persisted data. return code: 1 stderr: --- drydock: values at failure --- d = '/tmp/tmpciy4d2d_' --- drydock: end values --- Traceback (most recent call last): File "account-category-load-rejects-without-write.py", line 17, in <module> assert cli_runner("load", "accounts", str(Path(d) / "missing.csv"))[0] == 1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: Duplicate and invalid master-data fields return the rejected-command status. return code: 1 stderr: --- drydock: values at failure --- invalid = PosixPath('/tmp/tmp0hq5x03f/invalid.csv') --- drydock: end values --- Traceback (most recent call last): File "account-category-load-validation.py", line 14, in <module> assert cli_runner("load", "categories", str(invalid))[0] == 3 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

Post-build programmatic acceptance

intent: Valid account and category files are loaded and their persisted rows are readable. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python provisioning: not required return code: 0

intent: An unreadable or invalid master-data file is rejected without changing persisted data. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python provisioning: not required return code: 0

intent: Duplicate and invalid master-data fields return the rejected-command status. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python provisioning: not required return code: 0

Build summary

<reusable-compact filename="seed_accounts.csv">
CSV contract: header account,name; account codes are uppercase alphanumeric, 1–12 characters; names are non-empty, up to 40 characters. Seed rows: DRAWER1, DRAWER2, PETTY, SAFE. </reusable-compact>

<reusable-compact filename="seed_categories.csv">
CSV contract: header category,description; category codes are uppercase alphanumeric, 1–12 characters; descriptions are non-empty, up to 40 characters. Seed categories: OPENING, PAYROLL, REFUND, RENT, SALES, SUPPLY, TRANSFER. </reusable-compact>

RESULT: SUCCESS

FILES CHANGED:

SUMMARY: Implemented strict, atomic-style prevalidated account/category CSV loading with exact headers, validation, duplicate/conflict rejection, and correct error classification. Tests pass; staged grader reports 43/43 checks passed.

BLOCKERS: