agentleFS
MicrosoftKnown publishermicrosoft/agent-governance-toolkit/agent-governance-python/agent-sre/AGENTS.md

agent-governance-toolkit / agent-sre

AGENTS.md6.4k starsChanged 2 months agoMITView on GitHub

Agent-SRE is an SRE toolkit for AI agent reliability — providing SLO management, error budgets, chaos engineering, progressive delivery, cost guardrails, incident management, and observability for autonomous AI agents. Key engines: Use conventional commits: feat:, fix:, docs:, test:, refactor:, chore:

  • Installs packages

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 7 mentionsMay 2026: 19 mentionsJun 2026: 4 mentionsJul 2026: 5 mentionsAug 2026: 14 mentionsSep 2026: 0 mentionsOct 2026: 3 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/agent-governance-toolkit repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/agent-governance-toolkit

The biggest 5 of 53 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 53

Talked about on GitHub, Bluesky and Hacker News (53 times).

On GitHub · 43

38 more on GitHub

On Bluesky · 8

3 more on Bluesky

On Hacker News · 2

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    All metrics follow Prometheus naming conventions

    line 68
  2. Very specific:

    Use dataclass or Pydantic BaseModel for structured data

    line 69
  3. Distinctive:

    Keep backward compatibility with existing metric names and OTEL attributes

    line 76
  4. Distinctive:

    All new features must include tests

    line 80
  5. Very specific:

    Run pytest tests/ before committing

    line 81
  6. Very specific:

    Use pytest-asyncio for async tests (asyncio_mode = "auto")

    line 82
  7. Very specific:

    Use conventional commits: feat:, fix:, docs:, test:, refactor:, chore:

    line 86

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “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
AGENTS.md

Agent-SRE — Coding Agent Instructions

Project Overview

Agent-SRE is an SRE toolkit for AI agent reliability — providing SLO management, error budgets, chaos engineering, progressive delivery, cost guardrails, incident management, and observability for autonomous AI agents.

Key engines:

  • SLO Engine: Define and track Service Level Objectives for agent operations
  • Error Budget Engine: SRE-style reliability tracking with burn rate alerts
  • Chaos Engine: Fault injection and resilience testing for agents
  • Cost Guard: Token/API cost tracking and budget enforcement
  • Progressive Delivery: Canary deployments, A/B testing for agent versions
  • Incident Manager: Automated incident detection, classification, and response
  • Replay Engine: Capture and replay agent execution traces
  • Tracing: OpenTelemetry semantic conventions for AI agents

Build & Test Commands

# Install dependencies (development mode)
pip install -e ".[dev]"

# Run all tests
pytest tests/

# Run tests with coverage
pytest tests/ --cov=src/agent_sre --cov-report=html

# Type checking
mypy src/

# Lint and format
ruff check .
ruff format .

Code Style

  • Linter: Ruff (line-length: 100, rules: E, F, W, I, N, UP, B, SIM, TCH)
  • Type checker: MyPy strict mode (Python 3.10)
  • Python: >=3.10
  • Docstrings: Google-style

Key Files

FilePurpose
src/agent_sre/slo/SLO definitions, tracking, burn rate calculation
src/agent_sre/cost/Cost guardrails, token budget tracking
src/agent_sre/chaos/Chaos experiments, fault injection
src/agent_sre/delivery/Canary/progressive delivery
src/agent_sre/incidents/Incident detection and response
src/agent_sre/replay/Trace capture and replay
src/agent_sre/tracing/OpenTelemetry agent conventions
src/agent_sre/alerts/Alert rules and notifications
src/agent_sre/fleet/Fleet-wide agent management
src/agent_sre/certification/Agent certification framework
deployments/Helm charts, Kubernetes manifests
operator/Kubernetes operator for agent-sre

Coding Conventions

  • Error budgets: pure SRE math — availability windows, burn rates, exhaustion forecasting
  • SLOs: YAML/TOML definitions, version-controlled
  • OTEL conventions: custom attributes like agent.did, agent.trust_score, agent.task.success
  • Span kinds: AGENT_TASK, TOOL_CALL, LLM_INFERENCE, DELEGATION, POLICY_CHECK
  • All metrics follow Prometheus naming conventions
  • Use dataclass or Pydantic BaseModel for structured data

Boundaries

  • Never commit secrets, API keys, or cloud credentials
  • Never modify deployment configs without testing locally first
  • Never lower SLO targets — only raise them
  • Keep backward compatibility with existing metric names and OTEL attributes

Testing Requirements

  • All new features must include tests
  • Run pytest tests/ before committing
  • Use pytest-asyncio for async tests (asyncio_mode = "auto")

Commit Style

Use conventional commits: feat:, fix:, docs:, test:, refactor:, chore:

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.