Paliadin SKILL.md improvements: don't confidently claim 'no deadlines' on a single failed query #62
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Trigger
m 2026-05-19 16:33-16:34 (recovered from chat history 2026-05-20):
m's note 2026-05-20 14:17:
What went wrong
First-pass SQL returned 0 rows. Paliadin concluded 'no upcoming deadlines exist' and answered with full confidence. The second pass (after m pushed back) ran 6 queries and found them — i.e. they existed all along; the first query had a wrong filter / wrong join / wrong RLS-context.
Most likely culprits (audit the SKILL.md SQL recipes):
status = 'pending'filter whereapproval_status = 'approved'was the intended gate (or vice versa).approval_status IN ('approved','legacy')filter that excludes pending-approval rows from the user-visible view.paliad.deadlineswithout joining throughpaliad.projects+can_see_project(caller, project_id)returns rows the user can technically see but the SQL skipped them.due_date >= todayvsdue_date > todayvsdue_date >= now()::date AND completed_at IS NULL. One of those got the boundary wrong.LIMIT 1withoutORDER BY due_date ASCreturns an arbitrary row.What to do (SKILL improvements)
Where the SKILL lives
Source of truth (per project CLAUDE.md note):
m/mAi/skills/aichat/paliadin/SKILL.md. Legacy copy:~/.claude/skills/paliadin/SKILL.mdon the host runningLocalPaliadinService/RemotePaliadinService. Update both during the transition, eventually retire the legacy copy.Out of scope
Role
coder direct (or m + me in conversation) — SKILL.md is a documentation artifact; the fix is a careful rewrite of the relevant query recipes + the 'don't claim no-rows' guardrail. Test by replaying m's 'next deadline' question. Group with other paliadin-skill items.
Implementation shipped to m/mAi at commit 2a53541 on branch
mai/feynman/paliadin-skill-fix(the SKILL.md source of truth lives in m/mAi post-#207). Awaiting m/mAi merge before the deployed Paliadin SKILL reflects it. Legacy mirror on the local + remote hosts updated in sync.