From be0de0b2a71153e837301621ad3d9c95f633dff3 Mon Sep 17 00:00:00 2001 From: os-project-manager Date: Sun, 13 Sep 2026 07:19:48 +0000 Subject: [PATCH] fix(skills): state the ADR-0053 upper-bound rule in filters.md by reference `skills/objectstack-query/rules/filters.md` taught the pre-ADR-0053 rule: that `<= {current_year_end}` on a `datetime` column stops at midnight on the 31st and that an author should hand-write `< {next_year_start}`. `packages/spec/src/data/calendar-day.ts` (ADR-0053 D-D) states the opposite: `$lte`, a `$between` max and a `dateRange` end mean the WHOLE day and the platform compiles them to the next calendar day, so the detour is unnecessary. Replace the three lines with the rule stated by reference, mirroring the wording PR #17651 landed in `date-macros.zod.ts`, at net +0 lines (251 -> 251) and +9 bytes under the file's token ceiling. Claude-Session: https://claude.ai/code/session_01DAcomhvR9kKizeYgg89Vo8 Co-authored-by: Claude --- skills/objectstack-query/rules/filters.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skills/objectstack-query/rules/filters.md b/skills/objectstack-query/rules/filters.md index c47dd98597e..af50457826a 100644 --- a/skills/objectstack-query/rules/filters.md +++ b/skills/objectstack-query/rules/filters.md @@ -246,6 +246,6 @@ untouched — `'user-{current_user_id}'` is a literal. Check a spelling with `isDateMacroToken(tok)` / `isContextToken(tok)` from `@objectstack/spec/data`, WITHOUT braces. -**`*_end` is a calendar DAY.** `{current_year_end}` is `2026-12-31`, so on a -`datetime` column `<= {current_year_end}` stops at midnight on the 31st. Use -the half-open `< {next_year_start}` for timestamps. +**`*_end` is a calendar DAY; an upper bound means the WHOLE day.** +`<= {current_year_end}` already reaches the final instant of Dec 31 +(`calendar-day.ts`, ADR-0053 D-D): ⛔ Do NOT hand-write `< {next_year_start}`.