From fd5ae0ecb3f5372324d2a6dfac644b8edbed0a1c Mon Sep 17 00:00:00 2001
From: Primetra <fixes@primetra.ai>
Date: Mon, 19 Oct 2026 07:00:00 +0000
Subject: [PATCH] Primetra fix #1: Fix get_delivery_status for older messages (instructions)

SAMPLE: this is an illustration from a fictional company. It will not apply to your repository.

Adds PRIMETRA_FIXES.md: the exact text and the steps for a fix that are not a single file change.

  - Fix #1: Fix get_delivery_status for older messages (re-check on 2026-10-26)
---
 PRIMETRA_FIXES.md |  32 ++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+), 0 deletions(-)

diff --git a/PRIMETRA_FIXES.md b/PRIMETRA_FIXES.md
new file mode 100644
--- /dev/null
+++ b/PRIMETRA_FIXES.md
@@ -0,0 +1,32 @@
+# Primetra fixes to apply by hand
+
+> SAMPLE: this is an illustration from a fictional company. It will not apply to your repository.
+
+Relaykit: 1 fix that are not a single file change. Each has the exact text to use and where it goes.
+
+## Fix 1: Fix get_delivery_status for older messages
+
+_SAMPLE: this is an illustration from a fictional company. It will not apply to your repository._
+
+Three agents asked for the status of a message and got an empty result. They rarely retry.
+
+Steps:
+
+1. Replace the tool description with the drafted one so agents know older ids are supported.
+2. Return a status for message ids older than 24 hours instead of an empty list.
+3. Return a not_found error with the closest ids when an id is truly unknown.
+
+Change (`get_delivery_status`):
+
+```text
+Get the delivery status of a sent email by message id. Returns one of queued, sent, delivered, bounced or complained, with a timestamp and the provider response. Works for any message id, including messages older than 24 hours (status history is kept for 30 days). If the id is unknown it returns a not_found error with the closest matching ids, never an empty list. Use after send_email.
+```
+
+Pair this with the code change: return a status for message ids older than 24 hours instead of an empty list.
+
+Evidence:
+
+- Agents that got an empty result: 3
+- Calls with an empty result: 14% of calls to this tool
+
+Primetra re-checks this on 2026-10-26 (UTC).
-- 
primetra-patch-bundle 1

