Skip to content

Autonomous watchdogs

agents/platform/cron/jobs.json defines the governance watchdogs. Each one carries a pre-authored prompt that runs on the Platform Agent on a cron schedule. The prompts typically point at a governance SOP; the agent reads the SOP, executes the procedure, and publishes what it found to your GitOps repo: an audit ledger issue via fleet-audit, plus a proposed PR via submit-suggestion where the fix is mergeable. The ledger issue is the record, and it is where a scheduled run is meant to be read. Chat usually gets a one-line report linking to it, which in Slack with KAGE_SLACK_UX on arrives as a headline (ChatOps → Proactive alerts).

On an install with no GitOps repository configured, an audit still runs. It keeps its findings in the report store on the agent’s volume, and its chat report is the summary itself: the most severe findings, one short line each, the rest counted by severity, and a line saying that no GitOps repository is connected.

Watchdog runs execute autonomously: the agent config sets approvals.cron_mode: approve (see deploy/shared/defaults/config.yaml), so commands that would otherwise require human approval run without prompting when triggered by a scheduled job.

That waives the prompt, not the checks. Two gates still stand between an unattended run and a dangerous command, in the order a cron command meets them, and a third covers the work a run hands on:

  1. The cron risk gate’s content check. It refuses two evasions: pure-ASCII lookalike TLDs mimicking trusted infrastructure apexes (such as kubernetes.io.evil-cdn.co) and raw terminal escape or C0/C1 control sequence injection (_ESC).
  2. The risk tier’s read-only policy. Jobs declare an explicit risk tier. For agentic jobs, high applies a fail-closed read-only command policy (cron_command_policy_block): every command segment must be an allowlisted inspection command, and mutating, unknown or unanalyzable commands are refused. An unannotated run defaults fail-closed to high. low keeps the configured cron_mode, a denylist-only floor: a low job’s command that pipes a download into a shell, or names a host with look-alike Unicode letters, runs unprompted.
  3. The interactive worker fallback. A job that files a kanban card hands the work on to a worker, and a worker is not a cron session, so neither gate above reads its commands as cron commands. It is spawned as a hermes chat -q subprocess, which marks itself interactive, so its commands meet the dangerous-command patterns on the interactive branch of the same gate. With no terminal attached, the approval prompt a matched pattern raises defaults to a refusal, which makes a worker stricter than the cron run that filed its card.

The risk gate also refuses execute_code in cron runs unconditionally, in the guard for that tool rather than in the command gate above.

The execute_code block, the terminal escape injection check, the lookalike domain rejection and the read-only policy are unconditional: no setting turns them off. Regardless of settings, the hardline floor (rm -rf /, mkfs, fork bombs, and nine more), the sudo-stdin guard, and any approvals.deny globs still apply.

Both rosters are annotated on Reference → Cron jobs, which also covers the plumbing jobs on the Planning Agent’s: the named-profile cron ticker described in What fires the schedule, Cluster Agent reconciliation, and oobe, which runs first-run onboarding and four of the audits below and then the upgrade retrospective once, one after another, as soon as the first inventory scan settles, instead of leaving them to their schedules. The Platform Agent’s roster carries non-governance entries of its own; The helper jobs lists them.

The schedule sits on the profile that does the work, but what advances it lives elsewhere, and that is worth knowing before reading the roster.

Cron ticking is a property of a running gateway, and gateways are per profile. Only the default (Planning Agent) profile has one — the Platform Agent is reached through the kanban dispatcher, which spawns a worker per card and exits — so the gateway’s own ticker never opens a schedule sitting in the Platform Agent’s roster. What does open it is profile-cron-tick, a job on the one store that is ticked, which runs hermes cron tick against every named profile with work due, once a minute. (Which profile has the gateway is what the experimental platformFrontDoor flag changes, and the ticked roster moves with it; that page carries the consequences.)

The result is an ordinary cron run in a hermes cron tick process of its own — one per tick, shared by any jobs due in the same minute — homed at the Platform Agent’s profile, taking that profile’s persona and toolsets (unless the entry’s enabled_toolsets replaces them) and the entry’s own skills, model and max_turns, and travelling the same execute → save → deliver → mark path a hand-run hermes cron tick takes. Four consequences worth knowing:

  • It is not a kanban card, and there is nothing to complete. The run has no card, no worker and no board history. Its outcome lands in the Platform Agent’s own execution ledger — cronjob(action='runs'), or cronjob(action='history') for one job — and its report is delivered per the entry’s deliver.

  • The entry’s own settings apply. skills are force-loaded ahead of the first turn, and a per-job model and max_turns are honoured: the ten audits carry max_turns: 250, and a job without one runs under the profile’s agent.max_turns, 150 for the Platform Agent, the budget its kanban workers run with. None of the shipped jobs pins a model.

  • A job will not run concurrently with itself. A tick takes cron/.job-<id>.lock for the length of a run, so a schedule that fires while its last run is still going is skipped rather than doubled. The skip is recorded: the ledger carries a skipped status alongside completed, failed and unknown, with a reason naming which of the seven causes applied. A missed_window row’s error text also names how many occurrences went by, where that is computable. See Overlap and backlog.

    The eight causes: the job was already running here, already running in another process, the interpreter was shutting down, the dispatch claim was refused, the execution record could not be written before dispatch, the fire claim could not be taken at execution time, the window was missed outright while the agent was down, or the dispatcher skipped a stale catch-up after a pause (below).

  • One roster, not two. No governance id may also appear on the Planning Agent’s roster. Both would fire on their own schedules against the same audit, each writing the same ledger issue.

The rosters, with exact cron expressions, enabled state, and prompts, are generated from the two jobs.json files on Reference → Cron jobs. Ten governance jobs ship, all enabled on the Platform Agent’s roster: the fleet audits below. Further entries share that roster without being watchdogs; The helper jobs lists them.

Each audit reads its SOP, executes read-only checks against the fleet, writes a validated findings file, and hands it to the fleet-audit skill’s audit_report.py helper. The helper owns every forge call, through the version-control broker, and renders every body itself — the model never writes one.

Job SOP Audits
compliance-audit compliance_audit_sop.md Security and RBAC posture across the fleet
obtainability-audit obtainability_audit_sop.md Workload reliability: requests, PDBs, HPAs, probes, scheduling rigidity
security-patch-orchestrator security_patch_orchestrator_sop.md Version currency, upgrade-policy hygiene, regional GCE surge-quota headroom, upgrade blockers on lagging clusters, and GKE 1.35+ system-CRD webhooks
fleet-wide-cost-analysis fleet_wide_cost_analysis_sop.md Observable waste, in resource units — no billing export required
fleet-consistency-drift fleet_consistency_drift_sop.md Clusters diverging from a baseline derived from the fleet itself
ai-security-audit ai_security_audit_sop.md AI inference and training workloads: exposure, model provenance, weights
stockout-prevention stockout_prevention_sop.md Capacity obtainability, ComputeClass resilience, and single-zone stockouts
gcp-networking-fabric-audit gcp_networking_fabric_sop.md GCP networking fabric: subnet IP exhaustion, Cloud NAT, PSC, MTU, Cloud Armor, open firewalls, NodeLocal DNSCache, blocked health checks, orphaned rules
gce-compute-fleet-audit gce_compute_fleet_sop.md GCE startup-script failures, stalled MIG convergence, sole-tenant headroom, orphaned snapshots, full conntrack tables on GKE nodes
upgrade-retrospective upgrade_retrospective_sop.md What the weekend’s GKE upgrades broke, classified against the upgrade failure catalogue

upgrade-retrospective differs from the streams beside it in two ways: it runs on Sunday evening over the clusters new to it or upgraded since its last run (its first run is a baseline of every cluster), writing its report to the shell sandbox’s volume (/opt/data/upgrade-retrospective/reports/upgrade-retro-report.md, the latest link) and posting what finish renders, a headline with the fleet’s finding and cluster counts and the most severe findings by object (the per-cluster lines are in the report), and it never opens a remediation pull request, since every finding it files is a manual recommendation a user can turn into one by asking. The same report answers “how did our upgrades go” when asked.

Three properties matter more than the check lists.

One ledger issue per audit per install, plus fixes on demand. The helper finds the audit’s open issue by its audit:<id> and audit-scope:<slug> labels and rewrites it in place, commenting only on what changed since the last run. The scope label names the install’s host cluster (spec.harness, which the chart requires), as does the issue title. Two installs that audit different fleets into one GitOps repository therefore keep separate ledgers, and a clean run on one never closes the other’s. An install from before the scope label adopts its open ledger on its first run instead of opening a second one. A daily audit therefore produces one issue that stays current, not thirty near-identical PRs a month.

A finding whose fix is a manifest is promoted into its own narrow pull request — automatically when it is critical or one of a few additive major fixes, otherwise when a repo writer asks for it on the ledger. See Declarative workflow.

Silence is a real outcome, but it has to be earned. A scheduled clean run that resolved nothing closes the audit’s ledger issue and returns [SILENT], so a quiet fleet sends no chat traffic. finish decides this, not the agent. silent_ok is true only when nothing is new, resolved or retired unread, no remediation pull request opened or closed, no coverage gap changed, and the run publishes the same findings as the last scheduled run.

A scheduled audit also speaks once when the set of objects it could read but not see changes — for example, a VM whose serial console rotated past its last boot. An unchanged set stays silent. After the upgrade to the release that stores this set, the audit speaks once more when such an object exists.

When the stored record shows no scheduled baseline, the next scheduled run reports once, also when nothing changed: no record then shows what the last scheduled run published. This occurs once after the upgrade to the first release that stores a scheduled baseline, after the report store is rebuilt from the ledger, and after a change of the finding id scheme. Later upgrades keep the baseline. To see whether a stream already has one, open a latest.json under /opt/data/fleet-audit/reports/<audit-id>/ and look at the scheduled_published_ids key: a list is a baseline, and null is no baseline. The file is in the gateway pod’s platform-agent container, which holds the report store the credential broker serves.

A run that could not read part of the fleet speaks the first time it sees a gap and each time the gaps change: it leaves the ledger open and names the gaps, because “I found nothing” and “I could not look” must not arrive as the same silence. Later scheduled runs with the same gaps stay silent, unless a finding is no longer reported that the last run listed, or that the last scheduled run published and an on-demand run dropped under a gap. Then the run says how many, links the ledger, and does not call them resolved.

A run that came back clean after carrying findings reports what closed, because a fleet that just got fixed is the one piece of good news these watchdogs produce.

§7.4 of the ledger design says how gaps are compared and where their sentences come from, §7.5 has the full rule, and ChatOps shows what the channel gets.

A run a person asks for in a session cancels the silence. silent_ok answers “would a channel want this?”, and only a scheduled run can get true. The cron prompt tells finish that the run is scheduled. A run that a person asks for does not, so its silent_ok is always false, and it always reports its outcome and its ledger issue URL. A scheduled run compares its coverage gaps and its findings with the last scheduled run, so a gap or a finding that an on-demand run saw first still reaches the channel.

The Platform Agent does not re-enact the audit in the session that took the request: several audits crammed into one turn share one turn budget and produce findings no kubectl backed. It marks the job due instead, with HERMES_HOME=/opt/data/profiles/platform hermes cron run <job-id>, and the next profile-cron-tick picks it up within the minute and runs it through the identical path the schedule uses.

cronjob(action='run') is the trap to avoid. Where the session cannot take a detached result (a one-shot hermes -z, a stateless HTTP turn, a Kanban worker, a nested cron run), or where the dispatch pool is full, it executes the job synchronously inside the calling session, which is the re-enactment this exists to prevent. Everywhere else it hands the run to the background delegation executor and returns a handle instead; that is closer to the tick’s behaviour, but only hermes cron run behaves the same way on every runtime and in a fresh process, so it stays the instruction.

What the agent cannot currently do is issue it: hermes and the profile tree are on the gateway pod, every command the agent runs executes in the shell sandbox, and nothing bridges the two. So an on-demand run is unavailable until the deferral in docs/designs/agent-shell-sandboxing.md is settled. Ask for one and the agent says so; the schedule is unaffected. An operator with cluster access can still issue it directly against the gateway pod:

Terminal window
kubectl exec -n kubeagents-system deploy/platform-agent-gateway -c platform-agent -- env HERMES_HOME=/opt/data/profiles/platform hermes cron run <job-id>

A run started this way uses the cron prompt, so it counts as a scheduled run and can be silent. Then the ledger issue is the only record of its result. The one run that does happen in a session is a card that delegates a single named stream per its SOP: that worker runs the stream itself, audit_report.py start to finish, and start refuses while another run of the same stream is in flight, so two such workers cannot scrub each other’s documents. Several streams asked for at once still queue.

The entries that share the Platform Agent’s roster without being audits. The table is generated from the roster, and its Type column tells a no_agent script, which runs no model, from a prompt job; the notes below it, in the same order, say what each one does.

Job Type Cadence Name
findings-morning-nudge script, findings_nudge.py Hourly Findings Queue Nudge
github-repo-watcher script, github_scan_gate.py Every 10 minutes GitHub Repo Watcher
kanban-workspace-gc script, kanban_workspace_gc.py Daily 05:40 Kanban Workspace GC
session-retention script, session_retention.py Daily 05:50 Session Retention
kanban-board-health script, kanban_board_health.py Daily 12:35 Kanban Board Health
kanban-block-recheck script, kanban_block_recheck.py Four times an hour (:07, :22, :37, :52) Kanban Block Re-check
feedback-prompt script, feedback_prompt.py Daily 13:00 Feedback Prompt
eod-event-watcher-daily-report script, eod_report_generator.py Weekdays 21:00 Event Watcher Daily Activity Recap
stall-watch script, stall_watch.py Every 30 minutes Controller Stall Watch
post-merge-check script, post_merge_check.py Every 5 minutes Post-Merge Check
upgrade-readiness-watch script, upgrade_readiness_watch.py Daily 10:10 Upgrade Readiness Watch
upgrade-readiness-weekly-review script, upgrade_readiness_review.py Weekly, Saturday 06:00 Upgrade Readiness Weekly Review
upgrade-readiness-weekly-brief prompt, after upgrade_readiness_brief_queue.py Weekly, Saturday 07:00 Upgrade Readiness Weekly Brief
sa-role-watch script, sa_role_watch.py Hourly at :25 Service Account Role Watch
leeway-watch script, leeway_watch.py Daily 08:30 Topology Skew & Leeway Watch
chat-delivery-watch script, chat_delivery_watch.py Every 30 minutes Chat Delivery Watch
  • findings-morning-nudge: an hourly script that adds findings from the findings queue to chat at a daily pace, holds new ones back while a non-critical finding it named is undecided, and once a day repeats up to FINDINGS_DAILY_CRITICALS (2 by default) undecided criticals and names any non-critical finding holding new ones back. Reference → Cron jobs has the pace and the settings that change it.

  • github-repo-watcher: a poller, described under Pollers file cards.

  • kanban-workspace-gc: collects finished workers’ workspaces, removes a sandbox cluster profile home the agent pod no longer has a profile for, and logs any unexpected top-level entries in the sandbox’s profile homes.

  • session-retention: runs Hermes’ own session prune daily for the machine home and every profile. It deletes ended sessions inactive for spec.harness.retention.sessionDays (default 90), and rotated log backups older than that. Hermes otherwise prunes a store only when a CLI or the gateway starts, which the gateway’s own store and an idle profile’s never do. Before each prune it pins every session another session still names as its parent, so that link survives.

  • kanban-board-health: names any kanban card blocked for more than a day in plain words, newest first, by its title and how long it has waited (cards with the same title that wait on a person, or do not, share a row; in Slack, on Google Chat and on Microsoft Teams, each row has Retry and Drop buttons, which unblock or archive its cards). It speaks when a card first gets stuck and then once a week while any stays stuck, because a block that waits on a person is sticky by design and a card nobody was told about would otherwise wait forever.

    When the agent’s data volume is 90% full or more, a report with other findings leads with a line saying so, in the home-channel warning’s words. When the board cannot be read because the disk is full, it says that instead of a bare error. Another read error keeps the bare error, followed by the volume line while the volume is 90% full or more.

  • kanban-block-recheck: four times an hour, re-checks the condition behind a blocked card and retries the card when it has cleared, with the same unblock Retry makes. A card the harness blocked itself (a circuit-breaker trip, or a transient block) retries on a timer, once per card. A card an operator points at a pod or a deployment (kanban_block_recheck.py --watch on the pod) retries when the pod is Ready or the deployment Available, and stops after its expiry (a week by default). A block that waits on a person’s answer is left alone. A retry posts one line; a card that stays blocked gets the re-check’s result in its board-health row (“Re-checked 2 hours ago, still blocked.”).

  • feedback-prompt: posts one feedback request in the home channel a week after its first tick, at most once per install, with FEEDBACK_PROMPT_ENABLED and FEEDBACK_PROMPT_DELAY in the chart value platformAgent.deployment.env as its per-install switch and delay. Reference → Cron jobs describes the message, the two markers behind “once”, and how to set the two variables so that a chart apply keeps them.

  • eod-event-watcher-daily-report: a weekday script that renders the k8s-event-watcher recap from the session ledger.

  • stall-watch: every half hour runs the Cluster Agent’s stall_report.py over the non-system namespaces of every running or reconciling cluster that has a Cluster Agent, each kind read once per cluster, four clusters at a time, and keeps a ledger. Its tick_timing and cluster_timings entries record what the last tick and each cluster cost. On a new stall it sends the Session KV server a controller-stall inject per namespace, at most three a tick: the alert is posted, the cluster’s Cluster Agent runs gke-stall-detection and reports in the alert’s thread with fixes a reply of “apply” can authorize, and the watch adds one chat line when a stall clears. spec.harness.stallWatch can exclude namespaces, hold young stalls and change the kinds scanned.

    • It reads every cluster in the resolved scope that isn’t excluded, with or without a Cluster Agent. A stall on a cluster with no Cluster Agent raises no alert: the watch says it once in chat, by cluster name, while it stays stalled.
  • upgrade-readiness-watch: once a day reads the version each cluster’s release channel offers and, when a cluster is below a version the watch has not reported or reported more than a week ago, runs the fleet-upgrade-verification readiness report, saves it on the gateway pod and posts one short message a tick: for each version it reports, how many clusters are not ready yet (or how many are ready) and, for up to five of them, the first thing that blocks each and, where that kind of blocker has one, a short fix.

  • upgrade-readiness-weekly-review and upgrade-readiness-weekly-brief: the Saturday pair for upgrade readiness. The review is one more no_agent script, which grades every cluster in scope and registers each blocker and risk on the findings queue. The brief is the exception: a prompt job an hour later that composes the week’s brief from that review and the queue under its own SOP, a model turn that is not an audit and is not counted among the audits above.

  • sa-role-watch: every hour reads the IAM policy of the management project and of each project in spec.scope and names any role bound to the agent’s Google service account (the one the agent’s ServiceAccount names for Workload Identity, and the credential broker’s own when federation is armed) that the read-only permission set does not carry: when it appears, once a day while it is held, and when it goes, since a role granted after install would otherwise go unnoticed.

  • leeway-watch: runs leeway report --topology-tier-c-signals --parallelism 2 daily and saves Markdown and JSON reports under <profile home>/leeway/reports/. Its chat message opens with a bold headline, such as “2 pod placement problems on 2 clusters (all new)”, then names up to three by workload, cluster and cause in plain words. Where leeway would suggest patching a workload the cluster’s addon manager reconciles, such as kube-dns, the item adds that the addon manager can undo edits to it. Problems that have cleared get their own headline in the same post. unknown-cause topology findings at their pigeonhole floor are dropped by default so balanced odd-replica workloads do not page.

    It reads each project in calls of at most 12 clusters, so a slow call costs only its own clusters. Each cluster gets a share of its call’s 15-minute limit: at least two minutes and at most five, rather than leeway’s one-minute default. A run has 45 minutes. When too little is left to give the next clusters two minutes each, they wait. They go first on their project’s next turn. A project gets one turn per run, and its turn ends at its first call that runs out of time.

    The watch posts one line when a project’s read fails, and again only when another project starts failing. The line names up to six projects, then counts the rest, while the per-project detail goes to logs/leeway_watch.log. Clusters a run did not reach are not failures, and their findings are kept until they are read. When a run fails, the watch posts one plain line once, saying what failed and whether it retries at its next scheduled run or needs an admin to fix it, and logs the detail. When no read in a run returns, it says whether the reads timed out, failed, or both, and names no project, so the rotation does not change it.

    The watch remembers which clusters failed in each project. It also marks a project that failed as a whole: its cluster list could not be read, or an error named none of its clusters. It says so once when every remembered cluster has read cleanly since or left its project, and each marked project has since had a read with nothing failing for it. A project that leaves the sweep is dropped without a line. A finding is resolved when its cluster reads clean, or when its project no longer lists the cluster.

    After an upgrade from a version that did not track projects, the first run takes a failure of a kind that version announced as already announced. It then drops the old record without a line.

    When the A2A bus is configured, the watch also writes the JSON report to the topology-skew blackboard topic (a2a.topics.agent.platform.topology-skew). If that write fails — as when an upgraded install’s TOPICS-STATE stream lacks the subject and PlatformAgent records TopicsStateSubjectMissing — it logs the error and nats stream edit TOPICS-STATE to logs/leeway_watch.log and retries silently on a later clean run. A report over the bus’s 1 MiB limit is capped to its most severe findings, with a truncated block that counts the rest and names the full report’s path on disk. If even the bare clusters do not fit, clusters is emptied and truncated.clusters_omitted counts them. A capped copy’s summary text names the cap.

    A run with a finding due writes its report to latest.json and the topic, even when it read only part of the fleet. Any other refresh waits for a run that reads every project in full without a failure. On a fleet too big for one run, the report and the topic change only when a finding comes due. Otherwise they keep the previous report.

  • chat-delivery-watch: keeps a per-job count of scheduled reports that failed to reach chat and, past a threshold, opens a GitHub ledger issue and writes an ALERT line that fluent-bit ships to Cloud Logging, the two channels that still work when chat does not. The relay design explains why it uses neither chat nor a PlatformAgent condition yet.

Pollers file cards; watchdogs deliver reports

Section titled “Pollers file cards; watchdogs deliver reports”

github-repo-watcher shares the Platform Agent’s roster, yet it acts as a poller. It runs github_scan_gate.py as a no_agent subprocess every ten minutes across every declared VCS provider. The script runs five sweeps: open issues (issues), pull-request comments (pr_comments), memory proposals (memory_proposals), repository memory (repo_memory), and nightly memory dreams (memory_dream). Almost every tick finds nothing to wake the model, prints nothing, and costs zero tokens. When an issue or pull-request sweep finds work, it files a kanban card for the Platform Agent. One poll covers every sweep so separate jobs do not multiply credential API traffic.

That inversion is the point: a prompt job spends model turns — persona, skill, and a deterministic API call — to be told “nothing to do” almost every time. The trade-off is that a card is not a cron run: the roster’s skills, model and deliver do not reach the work the card produces. The worker fallback described above does reach it. That is acceptable for a poller, whose product goes to GitHub rather than to a chat channel, and unacceptable for a watchdog, whose product is the delivery — which is why the audit watchdogs are prompt jobs and stay that way. agents/platform/cron/README.md holds the full argument.

deliver: "chat" still matters for the gate itself. When a sweep cannot reach a VCS provider, it prints one audible ⚠️ line. Set GITHUB_WATCHER_SWEEPS to a comma-separated list to run a subset of sweeps; leave it unset to run every sweep. DECISION_MEMORY_REPO_SCAN defaults to true so repo_memory scans attached repositories and backfills recent history. DECISION_MEMORY_DREAM defaults to true so memory_dream reconciles one due managed repository every 24 hours (DECISION_MEMORY_DREAM_INTERVAL_HOURS). Clean dream runs stay silent; findings post a deduplicated dream diary to chat. DECISION_MEMORY_GITOPS_PRS defaults to false to hold automatic knowledge/ pull requests while Hindsight outcome reconciliation runs; set true to opt in.

The pull-request sweep carries three further bounds of its own — a per-tick cap, a total refusal budget per pull request, and a bot allowlist — because its input arrives from a thread anyone can write in, where the issues sweep’s does not. All three are PR_AGENT_-prefixed environment variables, and docs/designs/pr-comment-conversation.md gives their defaults and the reasoning for each.

github-issue-resolver was a prompt job on this roster until github-repo-watcher replaced it. Its skill is unchanged and still does the triage — only the trigger moved.

Five watchdogs — blueprint-sync, policy-propagation, global-capacity-orchestrator, standardization-validator, and lifecycle-deprecation-manager — shipped disabled for several releases and are now gone from the roster entirely. As written none could produce a finding on a stock install: two compared clusters against a “master blueprint” document no install provides, one read policy templates from an unshipped /opt/defaults/templates/, one ran hourly with no defined output artifact, and one overlapped security-patch-orchestrator.

Their SOPs are gone from agents/platform/governance/ too; git history has them. Reviving one means writing a SOP against something a stock install actually has and then adding the job — see Adding a watchdog. Re-adding the entry alone will not help; the SOP is why they were retired. How a retirement is sequenced across releases is in agents/platform/cron/README.md.

Deleting the entries is not the whole of the second step either. The same silence that makes the merge safe makes it forgetful: an entry the volume holds and the image no longer mentions can never again be re-enabled, disabled, or removed, and cronjob(action='list') reports it forever. So a deletion has to be paired with retire_cron_jobs — profile_scaffold.py, exposed as the entrypoint’s --cron-retire, which runs after the merge and deletes the named ids from the store outright.

The Platform Agent’s force-sync names these five and github-issue-resolver; the Planning Agent’s names the seven governance ids that once ran on its roster and github-issue-resolver, which had to stop firing there the moment they resumed firing on the Platform Agent’s roster, plus first-run-quick-value-audit, whose work oobe does; the two GCP audits added later never lived there and are on neither list. Both lists are hand-maintained and load-bearing: for as long as an id is on one it cannot be scheduled on that profile at all, because the deletion outranks anything the image ships, and taking a name off strands whatever copies remain.

Hermes’ cron ticker is a thread inside hermes gateway run, and everything it touches — the job store, the execution ledger, the tick lock — resolves from that process’s HERMES_HOME. It never enumerates profiles. This image runs a single gateway, homed at /opt/data, so the only roster that thread ticks is the Planning Agent’s. The Platform Agent’s lives at /opt/data/profiles/platform/cron/jobs.json, which the thread never opens.

profile-cron-tick is what ticks it. It is a no_agent script job on the Planning Agent’s roster — the one store that does tick — and each minute it runs hermes cron tick as a subprocess against every named profile with work due. Every governance watchdog fires through it, as does anything an operator schedules on a named profile’s own store:

gateway ticker → profile-cron-tick → hermes cron tick
(HERMES_HOME=/opt/data) (every 1m) (HERMES_HOME=<profile>)

A watchdog therefore fires through the same execute → deliver → record path a manual hermes cron tick takes, with its own profile’s persona and toolsets and the entry’s max_turns. Three consequences worth knowing:

  • A minute is the floor, not the guarantee. A named profile’s schedule is only ever inspected as often as the dispatcher runs, so a cadence finer than * * * * * cannot be honoured there. The dispatcher is itself scheduled as * * * * * rather than as a one-minute interval, and deliberately: Hermes re-anchors an interval job to the moment the last run finished, while the gateway ticker sleeps a fixed sixty seconds after each tick returns — so the next due time always lands just past the next wake and a one-minute interval job quietly fires every two. A cron expression is immune, because the completion time is snapped up to the next wall-clock minute.

    What is left is narrower: a dispatch that actually ran a watchdog blocks for up to 45 seconds waiting on the subprocess, and that usually costs the minute after it, so roughly one dispatch in twenty is collapsed and it is almost always the minute following a watchdog run. Quiet minutes are on time. Treat every schedule below as accurate to about a minute, which is well inside the sweet spot in Adding a watchdog and does not constrain the shipping roster. Nothing here is latency-critical; if something ever is, it needs its own timer, not a finer cron expression.

  • Overlap and backlog are tick()’s problem, not the dispatcher’s. A tick takes an exclusive lock on the profile’s store (cron/.tick.lock) while it decides what is due and advances every due job’s next_run_at, then releases it once every due job has been dispatched rather than holding it until they finish — so an agent down for two days has one catch-up per job to consider on return, not one per missed day; Catch-ups after a pause is how the dispatcher decides which of those run, and when.

    Overlap is held per job rather than per profile: a job takes cron/.job-<id>.lock for as long as it runs, so a second dispatch will not start the same job twice, but it will start a different one. That distinction matters here because each platform tick is a separate hermes cron tick process. Holding the profile lock across execution — the upstream default — would make a fleet audit block every other dispatch for its whole run.

  • A broken ticker is loud. Dispatches are silent on a quiet minute, unless one of the two policies below held, skipped, deferred or released a job, but a tick that fails is recorded as a failed profile-cron-tick run with the subprocess output in <profile-home>/cron/tick.log — the one failure mode this job must not have is the silence it exists to end. Individual watchdog runs stay where every other run is: the profile’s own execution ledger, and cronjob(action='history').

    That ledger is pruned per job rather than per board — 1000 rows each (MAX_TERMINAL_EXECUTIONS_PER_JOB), then a 5000-row sweep across the board that may never take a job’s newest 50, so the floor outranks the ceiling and the real bound is 5000 plus 50 per job id. The distinction is the difference between a usable history and none: pruning to the newest 1000 rows across all jobs let the minute-ly ticker evict a daily watchdog’s only row inside seventeen hours, so the history of the job you would actually go looking at was always empty.

An install nobody talks to keeps its schedule only for a week. Before it looks for due work, the dispatcher reads when a person last messaged the install: status.usage.lastHumanActiveTime on the PlatformAgent, or the resource’s creation time while the install counts no chat message. It then holds the model-run jobs on every named profile’s store back in two stages. It runs inside profile-cron-tick, so under the experimental platformFrontDoor flag, where that job never fires, nothing is held:

Idle for Model-run jobs no_agent jobs
under 7 days run on schedule run on schedule
7 days (throttle) run at most once every 7 days, counted from each job’s last run run on schedule
14 days (hibernate) do not run run on schedule

A hold is a rewrite of the job’s next_run_at in the profile’s store, under the same lock Hermes takes. The new value is the job’s own next slot at or after the hold ends, so a held audit still fires at its usual hour. A job marked due by hand with hermes cron run is not held: that command stamps the same timestamp into the job’s manual_run_at, the mark Hermes itself reads as a request, and the dispatcher reads it too. The dispatcher’s run output names each hold and each change of stage; <profile-home>/cron/cron_idle_policy.json records the stage, the last reading and the held jobs.

The value is written in the profile’s time zone (HERMES_TIMEZONE, else the profile’s config.yaml timezone, else UTC), as Hermes writes its own. Hermes reads a due value in another offset, with a later wall clock, as a time zone migration: it moves the job to its next slot without a run.

A chat message ends the hold within about ten minutes: the operator reads the counter every five, and the dispatcher caches the field for five. Each held job then moves to its next natural occurrence rather than to now, so a returning operator gets the roster back on its schedule rather than every audit at once. A held slot that has already arrived stays and fires on that tick, since it is the job’s own occurrence. A job someone ran by hand meanwhile is left where Hermes put it.

Two environment variables on the agent container tune it: CRON_IDLE_THROTTLE_DAYS (default 7) and CRON_IDLE_HIBERNATE_DAYS (default 14). 0 disables that stage, 0 on the throttle disables both, and an unparsable value means the default. The two are independent: raising the throttle alone leaves hibernation at its own threshold. Turning the policy off releases whatever it held.

Set the two through the chart value platformAgent.deployment.env. On an install.sh install, that is a TF_VAR_extra_helm_values line in install.env. Breaking changes in recent releases shows the line for KAGE_SLACK_UX, names the run that applies the line, and shows how to merge the entry into a line that is already there. On a hand-driven Terraform apply, it is extra_helm_values in terraform.tfvars. A hand edit of the CR’s spec.deployment.env can be lost at the next chart apply.

The field counts every chat message the gateway accepts, the agent API’s included. Turns through the A2A inject door do not count, so an install driven only through that door, an evaluation install for instance, idles like one nobody uses; set CRON_IDLE_THROTTLE_DAYS=0 there.

While the field is absent but status.usage.chatMessagesInboundTotal counts messages, the signal is unknown: an operator upgraded, or rolled back and returned, since the last message, or a served CRD predates the field. That reading replaces the cached one, so within about ten minutes of the message nothing new is held. A job already held runs at the slot it was pushed to, since no reading says when the person wrote. A served CRD that predates the counter too leaves the install idling from its creation time; the supported upgrade path refreshes the CRDs, a hand helm upgrade may not.

When the field cannot be read (the sandbox is off, or the agent’s Role no longer reaches the resource) the last reading stands for a day and then nothing new is held; the dispatcher says so once in its output. A held occurrence leaves no row in the job’s history: the hold moves the slot rather than skipping it.

An install that was stopped, by spec.deployment.scaleToZero or an outage, comes back with every job on the roster past due at the same instant. Hermes collapses each job’s backlog into one catch-up run. That is right for one job and wrong for a roster: every whole-estate audit would start in the first tick and contend for the same slots and budget. Before Hermes scans the store, the dispatcher decides each model-run catch-up:

  • A job a whole period or more late is skipped to its next slot. A daily audit two days late has nothing to catch up on that tomorrow’s slot does not do. If its newest slot came inside Hermes’ grace, that slot stays and fires on this tick, since that run is on time rather than a catch-up; only the older slots are skipped. The skip is a skipped row with reason stale_catch_up in the job’s history (cronjob(action='history')), written by the dispatcher, since Hermes never sees the occurrence.
  • The catch-ups inside their period are spaced out. The oldest fires on that tick. Each later one is released 30 minutes after the one before, about the spacing the governance audits keep between their slots, and fires then as Hermes’ own catch-up, with its own missed_window row. A catch-up whose turn would come after the job’s next slot is skipped instead: that slot is its catch-up.

A job is a catch-up when it is later than Hermes’ grace: half its period, between two minutes and two hours. A job late but inside that window runs at once, as before. no_agent jobs are not touched, nor is a job marked due by hand with hermes cron run.

A deferred job is held at its next slot until its turn, because Hermes re-anchors a due instant that is not one of the expression’s own without firing it. The skip and the deferral write the slot in the profile’s time zone, as the idle hold does. <profile-home>/cron/cron_catch_up_policy.json records the slot the job missed and when it is given back.

At its turn the job is decided afresh. If the ticker stopped again while it waited and its missed slot is now a whole period old, it is skipped like any other stale catch-up. Two turns that fall on one tick are spaced again. A record the store no longer matches, because someone ran the job or Hermes moved it, is dropped; a record that is lost leaves the job to run at the slot it is held at. The dispatcher’s run output names each skip, deferral and release.

CRON_CATCH_UP_STAGGER_MINUTES on the agent container sets the step (default 30); set it through the chart value platformAgent.deployment.env, the same way as the two idle variables above. 0 turns the policy off and releases whatever it holds; an unparsable or negative value means the default. The policy runs after the idle hold above, so a job that hold has moved is not a catch-up.

Each job in jobs.json follows this schema:

{
"id": "compliance-audit",
"name": "Security & RBAC Posture Audit",
"schedule": {
"kind": "cron",
"expr": "20 6 * * *",
"display": "20 6 * * *"
},
"prompt": "Run the daily fleet security and RBAC posture audit. Read the SOP at '/opt/data/profiles/platform/governance/compliance_audit_sop.md' — all 551 lines of it, before you run anything. Its twenty-two checks are section 2, lines 90-479, so a read that stops early skips almost the entire audit and reports a clean fleet it never looked at. Section 2 opens by running the collector (`/opt/data/profiles/platform/skills/fleet-audit/scripts/collect.py compliance-audit`) in the foreground with the terminal tool's timeout: 600 (the foreground maximum), --workspace set to the workspace start returned and --out /opt/data/scratch/manifest_compliance-audit.json: run it before evaluating any check by hand, run precheck on it, read the manifest the way section 2 says, and pass the same file to precheck and then to finish as --manifest-file (if the collector wrote none, section 2 says what to pass instead). This is a scheduled run, so pass --scheduled to precheck and finish (and to no other command): only a scheduled run can get silent_ok true, and only a scheduled run is closed by precheck when the collector finds the fleet unchanged since the last one. Then execute it exactly, using the fleet-audit skill to open and close the audit run.",
"skills": [
"fleet-audit"
],
"max_turns": 250,
"risk": "low",
"enabled": true,
"deliver": "chat"
}
  • id — stable identifier, referenced in observability and disable/enable ops. It outlives renames: obtainability-audit is now the Workload Reliability Audit, but the id stays put.

  • risk — declared risk tier ("low" or "high"). For agentic (prompt-driven) jobs, "high" applies a fail-closed read-only command policy requiring every command segment to be an allowlisted inspection command (kubectl get/describe/logs/top, gcloud … list/describe, read-only text utilities, --dry-run validations) and refusing mutations while the run continues. "low" retains the profile’s configured cron_mode (typically approve). Runtime-created jobs default to "low", legacy volume entries backfill to "low", and unannotated in-flight dispatches default fail-closed to "high".

    For no_agent: true jobs like github-repo-watcher, there is no agent loop and therefore no tool-approval surface to gate; "high" is an input-threat classification of untrusted input: repository events for github-repo-watcher, cluster event text for stall-watch, the budget and workload names upgrade-readiness-watch saves and the blocking object names it posts, the budget, pool, exclusion and webhook names upgrade-readiness-weekly-review registers, and the workload names leeway-watch prints; today the tier is metadata only for those jobs, and nothing isolates the subprocess at runtime.

  • schedule.expr — standard 5-field cron in the pod’s local time zone (UTC unless the pod’s TZ is overridden).

  • prompt — what the run is asked to do, copied verbatim into the turn. Governance jobs point at an SOP by its absolute path in the profile home (/opt/data/profiles/platform/governance/<sop>.md), since a cron run starts in a directory of its own under cron/runs/. The profile home’s governance/ is where profile_scaffold.py overlays the baked /opt/platform-template/governance/ directory. An absolute /opt/defaults/governance/... path does not resolve — nothing is mounted there.

    The ten audit prompts and the weekly brief’s also state how long their SOP is and which section holds the checks (the composing rules, for the brief), because a read that stops early lands in the preamble and the run reports a clean fleet it never inspected. What the prompts deliberately do not restate is the [SILENT] rule — each SOP’s closing section states it in full, qualifiers included, and a shorter version in the prompt would both lose the qualifiers and tell the run what its answer looks like before it decides what to check.

  • skills — the skills the work needs. The scheduler prepends each one’s content to the prompt, force-loading it ahead of the first turn rather than leaving the load to the model’s discretion. The audit watchdogs use fleet-audit.

  • max_turns — the run’s own tool-calling iteration budget, required on every model-run entry. The ten audits carry 250; the profile’s agent.max_turns (150 for the Platform Agent) is what a job without one, and every kanban worker, runs under: an audit asked for in chat runs as a kanban worker, so it gets the profile’s value, not its entry’s. A no_agent job must not carry it.

  • no_agent and script — a subprocess instead of an LLM turn, used by every job on the Planning Agent’s roster and by every script row of The helper jobs on the Platform Agent’s (script resolves in that profile’s scripts/, which for the Platform Agent is a link to the shared directory). The governance watchdogs omit both: they are model runs. On a prompt job script is a pre-run script instead: it runs before the turn and its output goes above the prompt. upgrade-readiness-weekly-brief is the only such job, and its enabled_toolsets replaces the profile’s toolsets (Reference → Cron jobs).

  • enabled — set to false to disable a job without deleting its entry.

  • deliver — where the run’s outcome goes: "all" sends it to every configured target, "chat" posts it as the job wrote it (for an audit watchdog, the report its finish step rendered for each repository, or a line saying the run, or one of its repositories, did not finish; for any job whose run failed, one plain line saying it didn’t run, why, and when it tries again or that an admin needs to fix it, posted once until the job runs again or fails for another reason) into a thread whose replies reach the Chat Agent with the report attached (see the relay design), and "local" resolves to no target at all and drops it.

    "chat" is one target among them, not an override, so "all" reaches it too. No governance job uses "local", so a watchdog that has stopped working is visible rather than indistinguishable from a quiet fleet; the one "local" entry is chat-delivery-watch, whose product is not a chat message. Which value each one carries is in agents/platform/cron/jobs.json.

Set platformAgent.schedules in the chart values. No new image is needed.

platformAgent:
schedules:
suspendAll: true
overrides:
- name: session-retention
suspend: false
- name: kanban-workspace-gc
suspend: false
- name: kanban-block-recheck
suspend: false

On an install.sh install, put the block in the TF_VAR_extra_helm_values line in install.env, as Idle installs describes for another chart value. The chart writes the block to spec.schedules on the PlatformAgent. A hand edit of spec.schedules can be lost at the next chart apply.

suspendAll: true turns off every job that the image ships in the Platform Agent’s roster. An entry in overrides wins over it: suspend: false turns one job back on, and suspend: true with no suspendAll turns one job off. The name is the job’s id in the roster. A name that matches no job is ignored, and the BuiltinSchedules condition on the PlatformAgent reports it as OverrideUnknown.

The setting does not reach a job that you or the agent added to the roster. Pause or remove that job with hermes cron.

The operator restarts the agent pod when the setting changes for a roster job, and the jobs change state at that start. A suspended job keeps its run history. When you turn jobs back on, the catch-up spacing applies, so the audits do not all start at once.

You can still run a suspended job on demand, with hermes cron run or when you ask the agent in chat to run the job now. Hermes turns the job on for that run. The dispatcher turns the job off again on its first pass after the run completes, so the job does not go back on its schedule. If the requested run never completes, the job stays on until a later run of that job completes. The dispatcher also turns off a suspended job that you turn on with hermes cron resume; use an override to run one job on its schedule.

The dispatcher runs inside profile-cron-tick. Under the experimental platformFrontDoor flag that job never fires, so a job that is run on demand stays on until the next pod restart.

suspendAll also turns off the helper jobs, which do work that chat requests depend on:

  • session-retention and kanban-workspace-gc clean up. The data volume grows while they are off.
  • kanban-block-recheck retries a blocked card when its block clears. While it is off, a blocked card waits for a person.
  • github-repo-watcher and post-merge-check follow the GitOps repository. While they are off, the agent does not pick up new issues or check merged changes.

Keep the first three on, as the example does, and turn the others back on when you want that work.

The setting cannot start a job that the image ships disabled. A rollback to a release that does not have the setting turns every suspended job back on. It does not reach the Planning Agent’s own jobs, which run the Platform Agent’s roster and first-run onboarding. While an audit is suspended, onboarding does not start it.

Flip enabled to false in agents/platform/cron/jobs.json. The scheduler honours the flag directly: the job stops being due, and nothing runs.

Flip the flag; do not delete the entry. An id can be dropped from the roster only once no live cluster still needs the image to hold the job off, which is the path the five retired watchdogs took. Deleting is never the whole step: the same release must also name the id in the platform force-sync’s --cron-retire (deploy/shared/docker-entrypoint.sh), or the volume keeps a disabled entry no later image can reach.

The Platform Agent’s roster travels. That profile is scaffolded by profile_scaffold.py on every start-up, and its merge_cron_store merges the image’s roster over the volume’s unfiltered — the image wins every key it ships, the volume keeps every key it does not. The one exception is the install’s own suspend setting, which can hold a shipped job off. So redeploying an entry with enabled: false switches it off on every existing cluster at the next pod restart, and a stale enabled copy cannot outlive the release that retired it. A job an operator added by hand survives, because the merge never prunes — unless its id is on the force-sync’s --cron-retire list, which is applied after the merge and deletes outright.

The Planning Agent’s roster travels too, by a different road. The Planning Agent is the default profile, which is not scaffolded: it lives at $HERMES_HOME directly, and the entrypoint reconciles the volume’s cron/jobs.json against the shipped roster by job id, per key, under the same rule — the image wins every key it ships, enabled among them, and a key it ships nothing for stays as the volume had it.

A ledger of every id the entrypoint has ever installed keeps a job that was removed on purpose — the two onboarding jobs, once the first-run report has landed — from being reinstalled as though it were new. An install that finished onboarding before oobe shipped never gets that job either, so an upgrade does not start its first-run audits. agents/platform/cron/README.md has the entrypoint steps behind this.

Three consequences worth stating plainly:

  • A hand-added job still survives every upgrade. Neither step deletes an entry the image does not declare, and neither touches a key the image does not ship, so an operator’s own job and the scheduler’s own state both come through untouched.
  • A hand-edit on a live pod does not survive one. Editing enabled in $HERMES_HOME/cron/jobs.json on the PVC holds only until the next restart, which is precisely when the reconcile takes the image’s value back — silently, since reconciling a key to the image is the expected path and logs nothing job-specific. The image is the declaration of record; edit agents/chat/defaults/cron/jobs.json and roll. If you must stop a job before the next roll can ship, treat the PVC edit as a stopgap and land the image change behind it.
  • deliver is the one shipped key the runtime keeps. Onboarding rewrites it to origin on the delivery job, so taking the image’s value back would send the first-run report nowhere.

The cronjob tool reaches neither roster. The Planning Agent is denied it (agents/chat/config.yaml), and the Platform Agent’s copy addresses that profile’s own store, not this one.

  1. Write a governance SOP in agents/platform/governance/<your-sop>.md.
  2. Add a job entry to agents/platform/cron/jobs.json pointing at it as governance/<your-sop>.md. That is the Platform Agent’s own roster, fired by profile-cron-tick, so the run gets that profile’s persona and toolsets, and the entry’s skills and max_turns, which a model-run entry must carry. Do not also add the id to the Planning Agent’s roster, or the job runs twice.
  3. If the job files findings, add its id to the AUDITS map in agents/platform/skills/fleet-audit/scripts/audit_report.py, which is the allowlist of streams and gives the ledger title, and set "skills": ["fleet-audit"]. Put the --scheduled sentence in the job’s prompt, as the shipped audit jobs do. It reads “pass –scheduled to precheck and finish” when the SOP runs audit_report.py precheck after its collector, and “pass –scheduled to finish” otherwise. Without it, silent_ok is never true and the job reports on every run, and a repository test fails. The --scheduled sentence in audit prompts gives the full sentence and says why it is in the prompt and not in the SOP.
  4. Redeploy the agent image at the revision carrying the change (./upgrade.sh --upgrade-mode=harness --image-tag=<ref>). The entry lands on the next pod restart, on new and existing clusters alike — the Platform Agent’s roster is merged in full, so no PVC edit is needed. A job on the Planning Agent’s roster lands the same way; that roster is reconciled in full too.

The repository-side steps — regenerating the cron reference table and the fast rebuild path for a dev workspace — are in agents/platform/cron/README.md.

Keep the schedule realistic — LLM inference on every tick has cost. Hourly or daily is the sweet spot for most SOPs; sub-15-minute cadences should have a clear justification. Stagger start minutes so two audits never contend for the same session.

Budget the run as well as the schedule. Each model-run entry declares its own per-turn tool-calling budget, max_turns, which the image’s scheduler reads ahead of the profile’s agent.max_turns (the patch). The ten audits carry 250, the number three runs at 90 motivated; the profile’s own value is 150 and is what the kanban workers run under, so an audit’s headroom never reaches a delegated chat request.

A run that exhausts its budget is stopped mid-flight and recorded as a timed_out event, which reads misleadingly: no clock expired; the agent took more steps than it was allotted, and raising any of the HERMES_*_TIMEOUT values will not help. The ten shipping audits finish well inside 250, but an SOP that gains checks and a fleet that gains clusters both spend against it; raise the entry’s number, not the profile’s.