Proactive autonomy
Most agent products are reactive: you ask, they answer. kube-agents is designed to also act on its own. Cron-scheduled jobs, defined in agents/platform/cron/jobs.json (how they fire), point the Platform Agent at governance SOPs on a rolling schedule. Findings become a standing report issue on your GitOps repo and, where the fix is mergeable, proposed pull requests against it.
The hands-free loop
Section titled “The hands-free loop”Cron tick ↓Governance SOP ↓Platform Agent investigates ├── fleet-audit / submit-suggestion ├── Minty mints GitHub token └── Ledger issue or pull request openedEvery step is real code shipping in the repo. The SOPs live in agents/platform/governance/; the submit-suggestion skill wraps the git flow; Minty brokers short-lived tokens.
The loop ends at the repo. A watchdog’s findings reach you as the ledger issue and the pull requests linked to it. Its scheduled report arrives in chat, usually as one line of counts ending with the ledger link (in Slack with KAGE_SLACK_UX on, and in Google Chat, as a headline), and the issue stays the full record. The harness’s other unprompted messages come from a cluster event posted to the in-pod triage endpoint, and the first-run inventory report (ChatOps → Proactive alerts).
What runs on its own
Section titled “What runs on its own”Ten fleet audits run enabled, each on its own schedule. Each maintains a single GitHub issue as its standing report where a repository is linked; the upgrade retrospective also keeps its report on the agent’s volume, which is its record without one:
- Security & RBAC posture (daily) — privileged and host-namespace containers, over-privileged RBAC bindings, namespaces with no
NetworkPolicy, Workload Identity and metadata-concealment gaps. - Workload reliability (daily) — missing resource requests, drain-blocking or absent PodDisruptionBudgets, unscalable Deployments, zone-pinned scheduling, missing probes.
- Upgrade & patch readiness (weekly) — control-plane and node versions against the cluster’s release channel, version skew,
autoUpgrade/autoRepairoff, missing maintenance windows, and whether a lagging cluster’s upgrade would go through cleanly. - Fleet waste (weekly) — over- and under-provisioned requests against a week of usage, idle workloads, orphaned PersistentVolumes and disks, idle reserved IPs, near-empty node pools, registries that never delete an image. Reported in resource units, never invented dollars: there is no billing export to price against, so monthly savings appear only when quoted from a corroborating Cloud Recommender recommendation.
- Fleet consistency drift (weekly) — clusters that diverge from the rest of the fleet on release channel, Shielded Nodes, network policy, logging config and similar settings, and clusters with no environment label at all. The baseline is derived from the fleet itself, so it needs no blueprint to compare against.
- AI workload security (daily) — inference endpoints on external load balancers, model repositories trusted to execute their own code, weights mounted writable under the serving process, unpinned model artifact sources, registry credentials in plaintext environment variables, model-server images on floating tags. It scopes itself to workloads running a known inference runtime or holding a GPU or TPU, and evaluates the deployment, never the model.
- Capacity & stockout prevention (daily) — capacity obtainability, ComputeClass resilience, and single-zone stockouts.
- GCP networking fabric (daily) — subnet IP exhaustion, Cloud NAT, PSC, MTU, Cloud Armor, firewall rules opening management ports to the internet, Standard clusters without NodeLocal DNSCache, firewall rules blocking load-balancer health checks, firewall rules left by deleted GKE clusters.
- GCE compute fleet (daily) — Compute Engine VMs and MIGs: startup-script failures, stalled MIG convergence, sole-tenant headroom, orphaned snapshots, full conntrack tables on GKE nodes.
- Upgrade retrospective (Sunday evening, and once at onboarding) — what the weekend’s GKE upgrades did: which operations ran on each cluster, and what stayed down, stuck or restarting afterwards. For each such object it names which of the twenty catalogued upgrade failures it matches and the fix before the next upgrade, and records a guard in its store for the readiness watch to read once it ships. Reported in chat as the headline (findings and clusters counted) and the most severe findings by object, with the per-cluster lines in the report on the volume; the ledger issue is the one part that needs a GitHub repository.
Alongside them, github-repo-watcher polls the target repo every 10 minutes across five sweeps (issues, pr_comments, memory_proposals, repo_memory, and memory_dream). An unaddressed open issue goes to github-issue-resolver, which triages it within tight guardrails — the machine-owned ledgers, audit ledgers carrying agent:audit, the chat-delivery ledger carrying agent:delivery-watch and the first-run inventory report carrying agent:onboarding, are excluded from the poll. A review request on one of the agent’s own pull requests goes to pr-conversation, which answers in the thread or amends the branch under review. The request is a comment that begins with /agent or with an @-mention, from someone with write access, on GitHub or on any other declared forge such as Gitea.
The memory_proposals sweep reconciles pending Decision Memory records, reports merge and close outcomes to Curator, and opens knowledge/ pull requests when DECISION_MEMORY_GITOPS_PRS=true. The repo_memory sweep indexes repository knowledge directories into Curator and backfills managed repository history. The memory_dream sweep runs a nightly Curator audit every 24 hours per managed repository and posts a chat dream diary only when findings exist.
The poll itself runs no model: a tick with nothing to do costs an API call and no tokens.
stall-watch sweeps the namespaces of every running or reconciling cluster that has a Cluster Agent every half hour for controllers that stopped reconciling without erroring. Typical cases are a Gateway waiting on a TLS Secret that will never exist and a rollout wedged behind a missing ConfigMap. When one appears, it raises an alert the way a Warning event does. The alert is posted, and that cluster’s Cluster Agent runs gke-stall-detection and answers in the alert’s thread with what each controller is waiting on and the GitOps fixes to choose from. A reply of “apply” there opens the pull request. Chat also gets one line when the stall clears.
Each audit calls the fleet-audit skill, whose helper owns every forge call, through the version-control broker, and renders every body from a validated findings file. The stream’s ledger issue is rewritten in place each run. Findings with a mergeable manifest are promoted into narrow remediation PRs that link back to it: automatically for critical ones and a few additive major fixes, on request for the rest (Declarative workflow has the mechanism).
A finding with no reproducible command is dropped, not softened. A clean run closes the ledger as completed and says nothing at all, with two exceptions. If it could not read the whole fleet, it leaves the ledger open and reports the gaps rather than passing a partial look off as an all-clear (on a scheduled run, only when the gaps are new or changed). If it resolved findings on the way there, it reports what closed rather than letting the good news be the only thing it swallows.
Those ten are the whole watchdog roster; five further watchdogs shipped disabled for a time and have since been retired. Reference → Cron jobs has the full table, generated from jobs.json, with exact cron expressions and prompts.
Why this matters
Section titled “Why this matters”The alternative for each of these is a person on a rotation, a static Terraform module, or an alert that pages someone in the middle of the night. kube-agents closes the loop:
- Audit → issue → PR — the agent doesn’t just detect drift, it keeps a standing report of it and proposes the mergeable fixes as PRs you review.
- Fleet-wide read, mutations through Git — the Platform Agent reads the fleet via the GKE MCP server and is designed to route every change through a pull request. Which parts of that are enforced rather than intended is set out in Security & IAM.
- Recovery ladder before escalation —
SOUL.md §4caps recovery attempts at 5 iterations / ~10 minutes per transient blocker before asking a human; an authorization denial skips the ladder and is reported at once.
The design goal: fleet issues stop rotting silently while the on-call queue is quiet.
Safety rails
Section titled “Safety rails”- Declarative-only for infra changes.
SOUL.md §1forbids directkubectl applyfor GKE infrastructure. Everything routes through the GitOps write path —submit-suggestionfor a one-off change,fleet-auditfor a scheduled audit run, and nothing else (SOUL.md §3.2). - Destructive operations always ask. Cluster deletion, tenant offboarding, broad IAM revocation — the persona explicitly gates these on human confirmation, no matter how many “just do it” phrases are in the user’s message.
- Bounded retries. The recovery ladder in
SOUL.md §4bounds each transient blocker at 5 attempts / 10 minutes before escalating; an authorization denial is not retried.
Where to go next
Section titled “Where to go next”- Autonomous watchdogs — how cron ticks become tool calls.
- Declarative workflow — the
submit-suggestion+ Minty PR path. - Governance SOPs — the playbooks the watchdogs execute.
- A day with kube-agents — three scenarios from trigger to pull request.