You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8096ec9
Browse filesBrowse the repository at this point in the historyBrowse files
docs(skills): teach the {current_iso_week} period key in the query filter rules
The Date Macros section of the published query skill listed the date macros
and the session tokens only. It now names the period key beside them: the
YYYY-Www value, the text-field-only rule, the INVALID_FILTER / 400 refusal on
date, datetime and time fields, and the two date-only surfaces that refuse it.
Five restatements in the same section pay first; the ratchet row moves by the
measured remainder. One eval case pins the text-field / date-field split.
Claude-Session: https://claude.ai/code/session_01L6bhgTRf6qBRCqPh4JZaZL
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: skills/objectstack-query/evals/filters-pagination-search.json
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,16 @@
90
90
"must_contain": ["timezone: 'Asia/Taipei'", "dateGranularity: 'month'", "zonedDateBucketing", "in memory", "in the database"],
91
91
"must_not_contain": ["date_trunc"]
92
92
}
93
+
},
94
+
{
95
+
"id": 10,
96
+
"prompt": "A dashboard widget over `supply_plan` must always show the current week. `plan_week` is a text field holding ISO week keys such as `2026-W47`; `ship_date` is a date field. Write the widget filter on `plan_week`, then the same week as a filter on `ship_date`.",
97
+
"expected_output": "`{ plan_week: '{current_iso_week}' }` — the period-key token resolves to today's ISO week key (`YYYY-Www`, workspace time zone, Monday-start weeks), so it matches a text field that stores those keys. It is text, not a date: on `ship_date` it is refused (`INVALID_FILTER` / 400), so the date field takes the week's boundaries, `{ ship_date: { $gte: '{current_week_start}', $lte: '{current_week_end}' } }`. No hand-computed key or date, which would freeze into the metadata.",
0 commit comments