CtrlK
BlogDocsLog inGet started
Tessl Logo

coding-agent-helpers/compact-handoff

Use when work needs to be handed off to another agent or another human. Produce a continuation-ready brief with the objective, completed work, assumptions, unresolved issues, and next action instead of a generic summary. Good triggers include "prepare a handoff", "make this resumable", and "summarize this for another agent".

92

1.41x
Quality

100%

Does it follow best practices?

Impact

89%

1.41x

Average score across 8 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-6/

Third-Party API Integration — Work-in-Progress Brief

A developer has been building an integration between an internal notification service and a third-party SMS provider (Twilio). They've completed the core sending logic but have to hand over to a colleague before finishing the retry logic and error handling. Produce a document that lets the colleague continue.

What exists so far

The integration lives in src/notifications/sms/:

  • client.py — wraps the Twilio REST client; send_sms() function works and has been tested against the Twilio sandbox
  • models.pySmsMessage dataclass defined; includes to, body, idempotency_key, and status fields
  • tests/test_client.py — 8 unit tests using unittest.mock to stub the Twilio API; all passing

Still to build

  • retry.py — exponential backoff on 429 (rate-limit) and 503 responses; not started
  • dead_letter.py — messages that fail after max retries should be written to a dead-letter queue (SQS queue sms-dlq-prod); not started
  • Webhook handler for delivery status callbacks — Twilio will POST to /webhooks/sms/status; route not registered yet

Decisions that haven't been finalised

  • Maximum retry attempts: the architect mentioned 3 or 5 retries but didn't commit; this needs a decision before retry.py is written
  • Whether the webhook handler should update SmsMessage.status synchronously or fire a background task

What the colleague should know

  • Twilio credentials are in environment variables TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN — do NOT hardcode them or commit them to the repo
  • The idempotency key must be passed as the X-Twilio-Idempotency-Token header; omitting it causes duplicate messages on retry — this burned an hour of debugging time

Write the handoff document.

evals

tile.json