From 5d63a903ce4affa34d83851d69d160bebbeca06d Mon Sep 17 00:00:00 2001 From: Chaim Date: Tue, 2 Jun 2026 11:48:58 +0000 Subject: [PATCH] =?UTF-8?q?fix(appraiser-facts):=20valid=20Paperclip=20pri?= =?UTF-8?q?ority=20enum=20(normal=E2=86=92medium)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 'חלץ עובדות שמאיות עכשיו' button returned HTTP 500. Root cause: wake_analyst_for_appraiser_facts POSTs a child issue to Paperclip with priority='normal', but Paperclip's ISSUE_PRIORITIES enum is only critical|high|medium|low. createChildIssueSchema (Zod) rejects 'normal' with 400 Bad Request; pc_request raise_for_status() turns it into a 500 surfaced to the chair. Fixed to 'medium' (the sole non-normal occurrence in the repo). Co-Authored-By: Claude Opus 4.8 (1M context) --- web/paperclip_client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/paperclip_client.py b/web/paperclip_client.py index b5b7779..7eb19c8 100644 --- a/web/paperclip_client.py +++ b/web/paperclip_client.py @@ -1083,7 +1083,10 @@ async def wake_analyst_for_appraiser_facts( "title": f"[ערר {case_number}] חילוץ עובדות שמאיות", "description": description, "status": "in_progress", - "priority": "normal", + # Paperclip ISSUE_PRIORITIES = critical|high|medium|low — "normal" + # is NOT a valid enum value and the createChildIssueSchema (Zod) + # rejects it with 400, which surfaces to the chair as a 500. + "priority": "medium", "assigneeAgentId": analyst_id, }, raise_on_error=True,