Skip to content

Blog9 min read

How Aeon scores, tracks and repairs its own failing skills

How Aeon scores every skill run, files issues when quality drops and opens repair PRs, so silent drift gets caught early.

Clay figures inspect, fix and log a small robot on a bench inside a looping arrow; an orange star glows on the robot's head
On this page

Every scheduled AI agent eventually meets the same problem. A skill that worked last month starts producing poor output this month, and nothing announces it. The API it called changed shape. The prompt drifted out of context. The output that used to be sharp is now hedged and generic. Nothing crashes. The Actions log stays green. And the daily brief the agent has sent for six weeks has quietly become something nobody reads.

The operator usually finds out when they finally read one carefully and notice it is worse than the one from July. By then the drift has lasted weeks and the operator has stopped trusting the output.

Aeon handles this with a loop that runs alongside the skills themselves. It scores every output, files issues when quality or reliability drops, opens PRs that patch the skills that keep failing, and reviews its own record so recurring problems surface.

This is the self-healing loop. One step scores. Two skills detect problems. One skill repairs them. A last layer reviews and reports on the whole thing.

How every skill output gets a 1 to 5 score#

The first layer is the scorer, a step in the Aeon workflow that runs after each skill. The skill's captured output, the actual text it produced, is sent to Claude Haiku by default (routed through the same harness that ran the skill). The model returns a score from 1 to 5, a one-line assessment, and flags from a fixed list: api_error, empty_output, low_quality, stale_data, generic_content, rate_limited, unverifiable_claim.

The score is appended to a rolling history of the last 30 runs for that skill, in memory/skill-health/<skill>.json, along with the average. That history is the base signal. A skill that averaged 4.2 last week and 3.1 this week has not broken, it has degraded, and the loop sees that before a person reading the output would.

Two design choices matter here.

The scorer is a small model, Haiku, not Opus. The scoring pass has to be cheap and consistent more than brilliant. Haiku is fast enough to run on every skill output without doubling the cost of a run, and its scores stay stable enough across runs for changes in the average to mean something.

The rubric is grounded in the operator's goals. The scorer reads the instance's STRATEGY.md and grades whether the output serves those stated priorities, not only whether it looks finished. Correctness and verifiability come before polish: a well-written output that invents specifics scores no higher than 2.

How skill-health and heartbeat find broken skills#

The second layer is detection, split between two skills.

skill-health runs daily at 18:00 UTC. It reads every skill's run record in memory/cron-state.json, the quality scores above, and a fallback list of runs that crashed before they could write state. It gives each enabled skill one status, using the first rule that matches:

  • CRITICAL. Three or more failures in a row, or failed with no success for 3 days or more.
  • DEGRADED. Success rate under 60 percent, or an average quality score under 2.5 over at least 3 runs.
  • FLAPPING. Three or more switches between success and failure in the last 7 days.
  • WARNING. Success rate under 80 percent, or at least one recent failure.
  • HEALTHY or NO DATA for the rest.

It also looks for systemic patterns: when two or more skills fail on the same API host or the same error, that becomes one shared finding instead of several separate ones.

Findings go into an issue tracker in memory/issues/. Each one becomes an ISS-{NNN}.md file with structured frontmatter: id, title, status, severity, category, detected_by, affected skills, root cause and fix PR, plus a row in INDEX.md. The rule is that the health skill files issues and the repair skill closes them. The tracker is opt-in: skill-health only files issues once the operator has created INDEX.md.

heartbeat runs every morning at 08:00 UTC and checks that the agent is alive: skills stuck on a dispatch that never reported back, skills failing three times in a row, chronic failures, and open issues. It also regenerates a public status page.

Both follow the same notify rule as every other Aeon scanner: nothing is sent on a clean day. skill-health only notifies when the fleet's health state changes. If nothing regressed, crashed or went silent, the run writes a log entry and the operator is not pinged.

How skill-repair fixes a failing skill by PR#

The third layer does the fixing. skill-repair depends on skill-health and is meant to run reactively: the example trigger in aeon.yml fires it when any skill reaches three failures in a row. When it runs without a target, it reads the open issues and the run records and picks the worst fixable skill: two or more failures in a row, a success rate under 50 percent, a recent failure, or a quality score of 2 or lower. If several skills share one error, it switches to systemic mode and makes one shared fix instead of several patches.

The fix depends on the category of the problem.

  • api-change. The skill calls an endpoint that changed. The repair fetches the live API spec or release notes, updates endpoints and payload shape in the skill, and cites the spec URL in the PR. If it cannot fetch the spec, it does not guess.
  • prompt-bug. The skill's instructions produce poor output. The repair adds the smallest missing piece (a constraint, a required output structure, an example) instead of rewriting the skill, under 30 changed lines.
  • quality-regression. A run passed but broke the skill's own output spec. The repair edits the skill so the next run meets that spec and cites the exact requirement.
  • missing-secret. The skill needs a key that is not set. The repair does not change code: it updates the issue, names the missing secret and notifies the operator.
  • permanent-limitation. The skill asks for something the setup cannot do. The repair skips it and updates the issue.

Every fix goes through a normal PR. skill-repair opens a branch, edits the file, explains the diagnosis and the change in the PR body, and adds a verification plan. High-risk changes, such as edits to aeon.yml or shared scripts, get a manual-review label and are never framed for auto-merge. Two guards stop it from looping: a 24-hour cooldown per skill and a cap of 3 repair PRs per day.

When the fix merges, skill-health sees the merged PR on its next run, marks the issue resolved and moves it to the resolved section of INDEX.md. If the fix worked, the score trend recovers within a few runs. If it did not, the skill gets flagged again.

How self-improve tunes and audits the agent#

self-improve sits above the loop and runs every other day.

In its default improve mode, it reads the last 2 days of logs and run records, picks the highest-impact small fix (a failing skill, a timeout, a cut-off notification, low-quality output), makes one targeted change, and opens a PR with the problem, the fix and the evidence. If three or more improvement PRs are already open, it stops instead of piling up more review work.

In audit mode (var: audit), it reviews the last 7 days: the quality of outputs, reliability, and memory hygiene. It saves a full review to output/articles/self-review-<date>.md and applies only safe, obvious fixes. This review is the audit trail on the loop itself. Is the loop helping? Which problems keep coming back? Are some skills drifting the same way repeatedly, so they need a bigger rewrite than a patch?

The review is written to output/articles/ like any other long-form output, so on a public instance anyone can read how the agent is doing. For a weekly summary, operator-scorecard sends a plain-language scorecard every Monday that includes agent health.

An earlier version of this post also described a skill-evals skill that wrote missing evaluations. It is not in the current catalog; the separate self-review skill has been folded into self-improve as its audit mode.

Where the operator steps in#

Most of the cycle runs without the operator. The scorer scores. skill-health files issues. skill-repair patches. self-improve tunes and audits. The operator's main touch point is the PR queue.

That is deliberate. Aeon is meant to be configured once and then left to run. A loop that paged the operator on every regression would break that. A loop that fixes what it can, files issues on what it cannot, and reports on the whole thing keeps it.

There is one more way to steer it. Whenever a skill regresses (a score of 1 or 2, or a failure flag), the run adds a regression comment to a per-skill GitHub Issue titled health: <skill>, and stays quiet on clean runs. A thumbs up or down on that issue sets repair priority, so skill-repair and self-improve fix what people care about first. It is on by default and can be turned off with the repo variable HEALTH_ISSUES=0.

In practice the operator checks in from time to time. There is a PR from skill-repair fixing a skill they may not have known was broken. There is a review from self-improve saying which skills improved. There is an INDEX.md to browse for what is still open. That is the whole management interface.

What the loop catches that a person would miss#

  • Slow drift. A skill that goes from 4.2 to 3.6 to 3.1 over three weeks is hard for a person to notice. The score history shows the trend, and skill-health marks the skill DEGRADED once its average falls under 2.5.
  • Broken skills nobody noticed. A skill that failed three times in a row while everything else stayed green would sit unnoticed until the operator happened to open its Actions history. skill-health marks it CRITICAL and skill-repair can open a PR the same day.
  • Shared regressions. When every skill of one kind, say every content skill, drops in quality at the same time, the cause is usually the environment (a model update, a prompt template change, a shared prompt fragment that drifted) rather than one skill. skill-health groups shared failures into one systemic finding, and the self-improve audit surfaces patterns like this.

A normal day and a bad day for the loop#

Most agent frameworks stop at running the skill and logging the output. Aeon's bet is that a scheduled agent that does not score itself will drift without anyone noticing, and that slow drift loses an operator's trust faster than any single failure.

On most days, most of the loop does nothing visible. skill-health runs, everything is healthy, nothing is sent. The scorer grades each output, the numbers stay stable, nothing happens. skill-repair finds no skill over its thresholds, nothing happens.

Then one Tuesday an upstream API changes shape. A skill fails. Fails again. Fails a third time. skill-repair opens a PR. The operator merges it. The skill runs green the next morning.

The operator never had to notice the failure, and the agent's output stays trustworthy.

The loop ships with Aeon. Create your instance at Aeon Connect (or fork the repo), enable the health skills, and scoring starts from the first run.

Set up Aeon in your browser. Free, MIT-licensed, and it runs on your own GitHub account.

One agent was never enough.

Run Aeon (opens in a new tab)