AGENTS.md@tests/reliability/workload · git:20260913.96ed09e · 2026-09-13 · sha256 0d4576236cb37d0f
AGENTS.md@tests/reliability/workload git:20260913.96ed09eA
Immutable. This exact content never changes and is served at /api/v1/blob/0d4576236cb37d0f.
# AGENTS.md — ledger workload A deliberately tiny Python package used as a frozen acceptance workload for the DWP reliability evaluation. It is a **fixture**: never depend on it at runtime. ## Project overview `src/ledger.py` is an append-only ledger in integer cents. `tests/` is plain `unittest` with no third-party dependencies, so scoped invocation is real. ## Quick Commands ```bash python3 -m unittest discover -s tests -t . -v # full suite python3 -m unittest tests.test_ledger -v # scoped: the ledger module ``` ## Rules - Amounts are **integer cents**. Never introduce floats. - Every behavior change needs a test that fails before the fix and passes after. - English only. No new dependencies — the standard library is the whole toolchain. ## Known defect (the work) `Ledger.transfer` records an overdrawing transfer instead of refusing it: a transfer larger than the source balance leaves the source negative. A transfer that would overdraw the source must raise `ValueError` and record **nothing** (no partial entry).