What happens when you delete 30 cron jobs and replace them with one heartbeat
Описание и применение
Удаление 30 cron‑заданий и замена их единственным «heartbeat» улучшила видимость, изолировало сбои и убрало лишние процессы, обеспечив безопасную, подписанную коммуникацию между агентами.
Задача
Managing 30 separate cron jobs on a single laptop made it impossible to know which tasks were running, failing, or silent, leading to hidden failures and difficulty troubleshooting.
Результат
The heartbeat architecture reduced 55 scheduled jobs to a single loop, improving visibility, isolating failures, and eliminating subprocess overhead, while the brokerless mesh ensured secure, verified agent communication.
Рабочий процесс
- 1. Replace per‑task cron jobs with a single heartbeat loop.
- 2. Define subsystems with specific cadences (e.g., a2a every 240m, cognition every 30m).
- 3. Implement in‑process native tools for each subsystem to avoid subprocess overhead.
- 4. Use a brokerless mesh for agent‑to‑agent communication, signing messages and verifying before handling.
- 5. Store state in durable files and maintain a ledger to prevent duplicate actions.
- 6. Monitor heartbeat output to determine which subsystems fired, are due, or have failed.
Доказательства
Most "AI agent" stacks I've seen share the same skeleton: a pile of scheduled tasks, one process per job, and a model that gets asked to be clever.
The old design was cron-per-task. Each job had its own schedule, its own process, its own failure mode, and its own silence.
The new design has one heartbeat. It dispatches a fixed set of subsystems, each with its own cadence and back‑off.
The agent's own capabilities are exposed as exactly five native tools: asi_status, asi_think, asi_learn, asi_remember, asi_trigger.
Measured on this box right now: 8,579 episodic memories, 659 world‑model edges, 28,167 evolution events.
What we landed on is brokerless and boring: Identity is a key, not a label. Every message is signed by the sender and verified by the receiver before any handler runs.
- Дата записи: 2026-10-12T23:40:53.405Z