What I Learned Building an Automation That Runs While I Sleep
Описание и применение
Автоматизация ежедневного агента, который читает Slack и GitHub, использует закладки, подтверждает публикации и хранит состояние, обеспечивая надёжную работу без пропусков.
Задача
Automating a daily summary agent that reliably reads Slack and GitHub, handles scheduling, and avoids missing or duplicating items.
Результат
The agent now runs on schedule, never misses or duplicates items, and provides explicit failure handling, improving reliability for autonomous work.
Рабочий процесс
- 1. Read last bookmark for each source
- 2. Fetch new items since bookmark
- 3. Re‑check each item’s status before posting
- 4. Post to Slack and wait for explicit confirmation
- 5. Record successful posts in a persistent ledger
- 6. Update bookmarks
- 7. Enforce spending cap per run
Доказательства
I hit three failure modes that kept breaking the system.
The fix was counterintuitive: give the agent a bookmark per source and have it remember where it left off.
Now it waits for Slack's explicit confirmation before recording anything.
The framework I landed on has six rules. Read from bookmarks. Report failures explicitly. Re-check items before posting. Confirm before recording. Keep preferences in a separate read-only store. And cap spending per run.
- Дата записи: 2026-10-11T00:40:53.811Z