Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

AI Test Agents Need a Mailbox Lease

Описание и применение

Модель аренды почтового ящика позволяет автоматизированным тестовым агентам изолировать состояние, избегать ложных положительных результатов и обеспечивать воспроизводимость.

Задача

AI test agents struggle with shared mailbox state, leading to false positives, token leakage, and cleanup failures.

Результат

Implementing mailbox leases eliminates shared state issues, reduces false passes, and provides clear evidence for debugging.

Рабочий процесс

  • Allocate a mailbox and create an active lease before starting the test
  • Stamp the run_id in the test user’s email address or metadata
  • Trigger the signup or notification action
  • Poll for messages newer than the lease creation time using a cursor
  • Validate sender, recipient, subject, event type, and token destination
  • Record a compact receipt with message ID, timestamps, and assertion result
  • Release or expire the mailbox in a finally‑style cleanup step

Доказательства

An agent that uses one shared inbox quickly inherits hidden state: old messages, another job's verification link, rate limits, and a cleanup rule nobody wrote down.

Источник

I like to model each test mailbox as a lease. The agent receives a mailbox for one run, knows what it is allowed to do, and must return or expire it when the run ends.

Источник

The workflow can be implemented with ordinary API calls. The important part is the order: Allocate, Stamp, Trigger, Poll, Validate, Record, Release.

Источник

  • Дата записи: 2026-10-08T00:41:10.013Z