agentleFS
guerrilla2799guerrilla2799/ops-and-scale-os/skills/agent-observability/SKILL.md

agent-observability

Skill1 starsChanged 3 months agoMITView on GitHub

Use when instrumenting anything before scaling it, or when the user says "how is the agent performing", "we have no visibility", "instrument this", "logging", "telemetry", "cost per run", "is it getting worse", "correction rate". Defines what to log, what to alert on, and the weekly review that catches degradation before a user does. Writes workspace/evals/telemetry-spec.md.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before any agent goes from one user to several

    line 12
  2. Distinctive:

    Before a scale-up decision

    line 15
  3. Distinctive:

    Every run writes one line.

    line 25
  4. Distinctive:

    When quality drops, check in this sequence.

    line 65
  5. Distinctive:

    Instrument before scaling: Not after the first complaint

    line 103
  6. Distinctive:

    Alert on shape and on silence,: not only on errors

    line 106

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Agent Observability

Instrument before scaling, not after. A system with no telemetry has no maintenance, and a system with no maintenance degrades on a predictable schedule.

When to use

  • Before any agent goes from one user to several
  • Nobody can answer how something is performing
  • Quality complaints arrive with no data behind them
  • Before a scale-up decision

Inputs

  • Reads: workspace/agents/<name>/brief.md for the success threshold, workspace/evals/log/eval-log.jsonl
  • Needs from user: where logs can be written, and who reads the weekly review

Workflow

1. Log the run, not just the output

Every run writes one line. Append-only.

{"ts":"<iso>", "agent":"<name>", "version":"<semver>", "user":"<id>",
 "input_summary":"<short>", "tools_called":[...], "tool_spend":n,
 "duration_s":n, "guardrail_trips":[...], "eval_verdict":"<if judged>",
 "outcome":"kept|edited|discarded"}

outcome is the field that matters and the one that requires a human to supply it. Everything else is automatic and less informative. Whether the user kept the output, edited it, or threw it away is the only direct measure of usefulness, and it has to be captured at the moment of use.

Make it a single keystroke. A three-field feedback form gets filled in for a week and then never again.

2. Track the six numbers

MetricSourceHealthyWhat a bad reading means
Weekly active usersRun logOver 60% of intendedRollout failure. See agent-rollout
Runs per active userRun logOver 5 per weekIt is a novelty, not a tool
Correction rateoutcome fieldUnder 30%It is a draft generator. Price it as one
Cost per runtool_spend plus inferenceTrack the trendA climbing trend usually means context bloat
Guardrail trip rateguardrail_trips2 to 10%0% means they are decorative. Over 20% means wrong scope
Eval pass rateEval log40 to 65% first passOver 85% and the rubric is soft. See eval-calibration

3. Alert on shape, not just on failure

The dangerous failures do not throw errors.

Alert onBecause
Correction rate rising over 3 weeksUsually a stale context portfolio, not a worse model
Cost per run rising with flat usageContext bloat or a retry loop
Guardrail trip rate falling to zeroEither nobody is using it or a check silently broke
Output field distribution shifting over 20%Something upstream changed. This is the silent-sync failure
Log volume droppingThe logging broke, and you are now blind

The last one is the one people forget. A monitoring system that stops reporting looks exactly like a healthy quiet week.

4. Diagnose degradation in the right order

When quality drops, check in this sequence. It runs cheapest first and catches the common cases early.

1. Did the inputs change?          data freshness, source changes, a broken sync
2. Did the context go stale?       positioning, proof points, plays out of date
3. Did the spec drift?             run eval-calibration
4. Did usage change?               people using it for something it was not scoped for
5. Did the model or tooling change? last, because it is the least likely and the least fixable

Teams reliably start at step 5 and skip steps 1 and 2, which are the actual cause most of the time.

5. Run the weekly review

Fifteen minutes, one page, a named reader.

AGENT TELEMETRY: week of <date>

<agent>   WAU n/n   runs n   correction n%   cost/run n   trips n%
<agent>   ...

Alerts:            <anything tripped>
Corrections made:  <written to the context portfolio, not to chat>
Decision:          <continue | fix <specific thing> | retire>

Corrections get written to the context portfolio. A correction made in a review meeting and not written to a file is lost, and the same correction will be made again next month.

6. Retire on the kill criterion

The brief named a kill criterion. At the review date, apply it. An unused agent is not neutral, because its description competes for selection with the ones that work.

Output

  • Writes: workspace/evals/telemetry-spec.md, workspace/evals/log/runs.jsonl, the weekly review
  • Prints: the six numbers, any alerts, and the decision

Rules & quality bar

  • Instrument before scaling. Not after the first complaint
  • The outcome field is captured from the human, in one keystroke
  • Append-only logs, including failures
  • Alert on shape and on silence, not only on errors
  • Diagnose inputs and context before blaming the model. In that order
  • Corrections write to the context portfolio
  • A named reader for the weekly review, or it stops happening
  • Apply the kill criterion on schedule

Related skills

  • Requires: agent-rollout for the intended-user denominator
  • Pairs with: eval-loop, eval-calibration, credit-and-cost-control
  • See also: docs/metrics.md, docs/field-notes.md story 11

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.