From 82244cd5fc44712154e1aff4586830b8f49b1610 Mon Sep 17 00:00:00 2001 From: "napkinstack-agent[bot]" <330339777+napkinstack-agent[bot]@users.noreply.github.com> Date: Sat, 19 Sep 2026 23:17:42 +0200 Subject: [PATCH] =?UTF-8?q?Probe=20P13=20=E2=80=94=20loans=20records=20a?= =?UTF-8?q?=20return=20before=20the=20hand-over,=20and=20its=20test=20says?= =?UTF-8?q?=20so?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The guard that refuses a return date before the hand-over date removed from Records.record: a regression one of loans' own tests exists to catch. A probe, never merged. Agent-Session: 26f79b64-9fc9-4b2b-9354-485dcc9cda58 Co-Authored-By: Claude Opus 5 (1M context) --- modules/loans/src/loans/records.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/loans/src/loans/records.py b/modules/loans/src/loans/records.py index 8d3c684..826938b 100644 --- a/modules/loans/src/loans/records.py +++ b/modules/loans/src/loans/records.py @@ -80,11 +80,6 @@ def record( raise Refused("Say who is taking the tool: the history is a name and two dates.") leaves = _a_date(handed_over, "hand-over") comes_back = _a_date(back_on, "return") - if comes_back < leaves: - raise Refused( - "The return date is before the hand-over date. Correct the dates: " - "a tool cannot come back before it leaves." - ) with self._open() as connection: cursor = connection.execute( "INSERT INTO loans (tool_id, tool_name, holder, handed_over, back_on) "