From 97303abc2565ee011935076435630c813fe7200b Mon Sep 17 00:00:00 2001 From: autonomic-bot Date: Sat, 13 Jun 2026 12:04:49 +0000 Subject: [PATCH] watchdog: suppress scheduled wakes once the build sequence is complete MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The unified agents.py watchdog kept firing the hourly orchestrator supervision ping even after SEQUENCE-COMPLETE (the old launch.py watchdog exited on completion, which stopped them). Gate the wake loop on the SEQUENCE-COMPLETE marker so a finished build stays fully at rest — no pings. Resumes automatically when new work is queued (that clears the marker, line 631). --- cc-ci-plan/agents.py | 850 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 850 insertions(+) create mode 100644 cc-ci-plan/agents.py diff --git a/cc-ci-plan/agents.py b/cc-ci-plan/agents.py new file mode 100644 index 0000000..42ecbed --- /dev/null +++ b/cc-ci-plan/agents.py @@ -0,0 +1,850 @@ +#!/usr/bin/env python3 +""" +cc-ci unified agent driver — one script, one config (agents.toml). + +Replaces the five bespoke launchers (launch.py / launch-orchestrator.py / launch-assistant.py +/ launch-upgrader.py / launch-report.py) and the ~15 scattered dotfiles. Every agent — loop +pair, orchestrator, assistant, one-shot tasks — is declared in agents.toml; the watchdog reads +the SAME file, so there is no env-vs-file drift. + +Usage: + agents.py up [name…] start enabled agents (or just the named ones); use-or-create + agents.py down [name…] stop agents (or all) + agents.py status one table: every agent — kind, backend, model, session, phase + agents.py watchdog the supervisor loop (reads agents.toml) + agents.py logs tail an agent's session log + agents.py phase [set N|next|show] inspect / move the loop phase + agents.py selftest backend activity-detector regression checks + agents.py migrate seed state/ from the legacy dotfiles (resume ids, phase idx) + +Options: + --config PATH config file (default: