This commit is contained in:
ZacharyZhang-NY committed 2026-04-17 14:03:56 -04:00
1 parent 806200b3d1
commit 5547c29491
216 files changed
+5043 -3352

No files matched your search

+3 -9
View File
@@ -2,14 +2,8 @@
* Heartbeat task title conventions.
*
* Heartbeat tasks are synthesized by the orchestrator when an agent wakes with
* no actionable work; they carry the `[Heartbeat]` title prefix so the rest of
* the system can detect them without a dedicated `kind` column.
*
* Centralizing the prefix here prevents drift between the writer (heartbeat
* dispatch) and readers (automation, escalation, route filters).
* no actionable work. The `tasks.is_heartbeat` column is the authoritative
* flag; the `[Heartbeat]` title prefix remains only for human-readable display
* so existing runs, logs, and UI affordances stay stable.
*/
export const HEARTBEAT_TASK_TITLE_PREFIX = "[Heartbeat]";
export function isHeartbeatTaskTitle(title: string | null | undefined): boolean {
return !!title && title.startsWith(HEARTBEAT_TASK_TITLE_PREFIX);
}