From 36c718ae5166227ae384dd0d957d135eee5aa231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 5 Aug 2026 01:25:10 +0300 Subject: [PATCH] =?UTF-8?q?docs:=20=F0=9F=8D=BD=EF=B8=8F=20correct=20what?= =?UTF-8?q?=20an=20orphaned=20mark=20could=20be=20read=20through?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Said reading one was impossible because every path went through the menu. Only the writes do: the student's own attendance list filters on the student and a date window, never on the menu still existing, so such a mark would have come back there. Nothing can create one now, and the sweep is what clears them. --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index faa6499..2644a62 100644 --- a/README.md +++ b/README.md @@ -1866,8 +1866,12 @@ write *writes* rather than something it reads and then trusts: a delete racing it touches the very row it bumps, and the store refuses to commit both. That matters more here than tidiness, because a menu's id is deterministic on day+slot — a mark that outlived its menu would come back as a mark on the next -menu published for that meal, and reading it or clearing it is impossible in -the meantime, since every path to it goes through the menu. +menu published for that meal. Only the *write* paths ever check the menu: +`GET /meals/attendance/{user}` filters on the student, never on the menu still +existing, so such a mark would be read back there (a `?from=/?to=` bounded read +drops it, since a link to a deleted menu has no date to compare) while no write +could touch it. Nothing can create one any more, and the menu delete's own +sweep is what clears the marks a menu leaves behind. **Attendance has zero billing effect.** Booking is the sole charge trigger, so a student who booked and did not eat still pays — the kitchen bought the food.