Run artifact

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

Evidence: Block 1 ยท Foundational (block-1)

Stories built

Reusable compacts

Stacked context

Build directory changes

Pre-build acceptance observation

intent: The project root carries the dependency manifest, lock, pytest conftest, and a test launcher that runs pytest. return code: 1 stderr: --- drydock: values at failure --- name = 'uv.lock' --- drydock: end values --- Traceback (most recent call last): File "arch-project-files.py", line 4, in <module> assert Path(name).is_file(), name ^^^^^^^^^^^^^^^^^^^^
AssertionError: uv.lock

intent: The ledger_core package and its foundation modules import. return code: 1 stderr: Traceback (most recent call last): File "arch-packages-import.py", line 1, in <module> import ledger_core
ModuleNotFoundError: No module named 'ledger_core'

intent: DATABASE_URL wins over DATABASE_PATH, an empty URL falls through, and with both unset the default path is used. return code: 1 stderr: Traceback (most recent call last): File "arch-config-precedence.py", line 2, in <module> from ledger_core.config import database_path
ModuleNotFoundError: No module named 'ledger_core'

intent: The three domain error classes derive from LedgerError and carry the exit codes 3, 4, and 1. return code: 1 stderr: Traceback (most recent call last): File "arch-error-exit-codes.py", line 1, in <module> from ledger_core.errors import LedgerError, Rejected, NotFound, Operational
ModuleNotFoundError: No module named 'ledger_core'

intent: No application module outside the generated persistence package imports a database driver. return code: 1 stderr: Traceback (most recent call last): File "arch-driver-boundary.py", line 6, in <module> assert Path("ledger_core").is_dir() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: Domain code contains no float call and no float literal, so money never uses floating point. return code: 1 stdout: 0 files scanned stderr: --- drydock: values at failure --- checked = 0 --- drydock: end values --- Traceback (most recent call last): File "arch-no-float.py", line 14, in <module> assert checked >= 1 ^^^^^^^^^^^^ AssertionError

Post-build programmatic acceptance

intent: The project root carries the dependency manifest, lock, pytest conftest, and a test launcher that runs pytest. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/LayersTesting/runs/20261027.135355/build/LayersTesting/.venv/bin/python provisioning: not required return code: 0

intent: The ledger_core package and its foundation modules import. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/LayersTesting/runs/20261027.135355/build/LayersTesting/.venv/bin/python provisioning: not required return code: 0

intent: DATABASE_URL wins over DATABASE_PATH, an empty URL falls through, and with both unset the default path is used. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/LayersTesting/runs/20261027.135355/build/LayersTesting/.venv/bin/python provisioning: not required return code: 0

intent: The three domain error classes derive from LedgerError and carry the exit codes 3, 4, and 1. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/LayersTesting/runs/20261027.135355/build/LayersTesting/.venv/bin/python provisioning: not required return code: 0

intent: No application module outside the generated persistence package imports a database driver. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/LayersTesting/runs/20261027.135355/build/LayersTesting/.venv/bin/python provisioning: not required return code: 0 stdout: 3 files scanned

intent: Domain code contains no float call and no float literal, so money never uses floating point. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/LayersTesting/runs/20261027.135355/build/LayersTesting/.venv/bin/python provisioning: not required return code: 0 stdout: 3 files scanned

Build summary

The project already has a pyproject.toml with no dependencies. I'll add the pytest dependency through uv, then create the rest of the foundation tree.pytest resolved and locked through uv. Next I'll write the package, config, errors, launcher, conftest, and tests.Now the test suite, the pytest config, .gitignore, and .env.example.Two of the tests I just wrote are brittle or pin an odd edge. The module-list check would break as later stories add modules, and the sqlite:// empty-path case encodes questionable behavior. I'll remove both.Now I'll run the suite through the launcher, which is the verification command for this story.The suite passes (30 tests). The launcher prints a noisy OSTYPE warning because set -u is active when the venv activate script runs. I'll scope set +u to the activation and then confirm a failing test makes the launcher exit nonzero.The foundation-python story is built, and sh bin/test.sh passes: 30 tests, exit 0. A deliberately failing probe test made the launcher exit 1, so the exit status propagates. I removed the probe afterward.

I did not run sh sources/run.sh or the Drydock acceptance criteria. This story is not the terminal one, and the arch-config-precedence criterion imports drydock_acceptance, which is not on disk. The same behavior is covered by tests/test_config.py.

What's in place

Choices I made

Nothing is committed, per the build rules.

<reusable-compact filename="ARCHITECTURE.md"> Foundation contract (foundation-python):

</reusable-compact>

RESULT: SUCCESS

FILES CHANGED:

SUMMARY: Built the Python project foundation for LayersTesting. sh bin/test.sh runs 30 pytest tests and exits 0. A failing probe test made the launcher exit 1, confirming the exit status propagates; the probe was removed afterward. Not run: sh sources/run.sh (terminal story, not this block) and the Drydock acceptance criteria, since drydock_acceptance is not on disk. The config precedence behavior is covered by tests/test_config.py instead.

<blueprint-decisions> [{"spec":"ARCHITECTURE.md","severity":"Low","subject":"conftest.py db_session and cli_runner fixtures","decision":"The persistence.testing.db_session and cli.testing.cli_runner signatures are not in the spec, so the fixtures delegate by calling the helper and returning its result, with imports deferred until those packages exist. Acceptable, or should the fixtures wrap them as context managers once they land?"}] </blueprint-decisions>

BLOCKERS: