sre-agent / zava-learning
AGENTS.md170 starsChanged 7 months agoMITView on GitHub
Guidance for humans and agents extending this lab. The overriding principle: Alerts describe what a student or operator observes, never the cause. The whole point of the lab is that the SRE Agent diagnoses root cause from telemetry and live configuration. The same symptom (Zava-quiz-launch-failing) is reachable from multiple causes (NSG priority inversion, App Gateway probe, an API at zero replicas). Routing is by symptom, not cause. Likewise, the NSG fault rule is named plausibly (legacy-cross-subnet-deny), not the-bug — the…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository28 other files it gives its agents.
- labs/onboardinglab/AGENTS.mdAGENTS.md
- labs/zava-aks-postgres/AGENTS.mdAGENTS.md
- deployment-compliance-checkSkill
- onboarding-labSkill
- azure-monitor-rcaSkill
- email-incident-followupSkill
- github-issue-followupSkill
- proactive-health-checkSkill
- ticketing-pr-validationSkill
- compliance-drift-detectionSkill
- vm-performance-diagnosticsSkill
- deploying-demoSkill
- managing-sre-agentSkill
- running-demoSkill
- connectivity-triageSkill
- cost-analysisSkill
- evidence-before-afterSkill
- nsg-auditSkill
- pagerduty-incident-updateSkill
- performance-investigationSkill
- pr-deliverySkill
- rbac-auditSkill
- rca-analysisSkill
- recommendations-next-stepsSkill
- redaction-guardSkill
- servicenow-change-managementSkill
- zava-audit-reportSkill
- zava-reportingSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 57
Add chaos/break-<x>.ps1 + chaos/fix-<x>.ps1 (idempotent.
- Very specific: line 58
Add an entry to SCENARIOS in simulator/demo.py (symptom title, break/fix scripts, symptom alert, probe path, agent).
- Very specific: line 60
If a new symptom alert is needed, add it to infra/modules/alerts.bicep with a symptom-only name.
≈ “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.
Files
AGENTS.md — conventions for the Zava Learning lab
Guidance for humans and agents extending this lab. The overriding principle:
1. Symptom-only alerts — never spoon-feed the diagnosis
Alerts describe what a student or operator observes, never the cause. The whole point of the lab is that the SRE Agent diagnoses root cause from telemetry and live configuration.
- ✅
Zava-quiz-launch-failing,Zava-portal-5xx-elevated,Zava-quiz-responses-slow - ❌
nsg-deny-rule-blocking-traffic,appgw-probe-misconfigured,assessment-api-scaled-to-zero
The same symptom (Zava-quiz-launch-failing) is reachable from multiple causes (NSG priority
inversion, App Gateway probe, an API at zero replicas). Routing is by symptom, not cause.
Likewise, the NSG fault rule is named plausibly (legacy-cross-subnet-deny), not
the-bug — the agent must recognise the priority inversion, not string-match a label.
2. Skill descriptions are the discovery key
Incident filters route to the default agent, which picks a skill by description match. Keep skill descriptions concrete about the symptom surface they own (e.g. "students cannot reach the platform / actions fail at the network/edge layer") — but do not enumerate alert names as the cause.
3. Diagnose from telemetry, hop by hop
The request path is App Gateway → NSG → Container Apps ingress/LB → APIs. Any hop can produce the
same symptom. A runbook should trace the path and use the built-in network skills
(network_connectivity_troubleshoot, application_gateway_troubleshoot, load_balancer_troubleshoot,
network_topology_mapper) to go deep — never assume the cause.
4. No committed secrets
PagerDuty and ServiceNow credentials are parameters or environment variables. Custom tools read
SERVICENOW_URL/USER/PASS from the environment. Never hardcode a key, URL, or password in Bicep,
YAML, or Python. simulator/config.json is generated locally and must not be committed with tokens.
5. Remediation boundary
Permitted autonomous actions: delete an NSG rule that blocks the apps subnet; correct an App Gateway probe; restart/scale a Container App; roll back a revision. Out of scope (human approval): VNet/IAM changes, SKU/tier changes, destructive data operations.
6. Code & change management
IaC or application root causes → the pr-delivery skill opens the GitHub PR (via
ExecutePythonCode + GitHub API; there is no native GitHub-PR tool) and the
servicenow-change-management skill raises a ServiceNow Change Request referencing the PR
with the RCA attached. Post-incident, the reporting skills (rca-analysis,
evidence-before-after, recommendations-next-steps, zava-reporting) produce the branded
deliverables. The custom agent selects and sequences whichever skills the situation needs — skills
declare their scope; they do not call each other. Incident lifecycle (ack/notes/resolve) happens in
PagerDuty.
Adding a new scenario
- Add
chaos/break-<x>.ps1+chaos/fix-<x>.ps1(idempotent; discover the resource by name/tag). - Add an entry to
SCENARIOSinsimulator/demo.py(symptom title, break/fix scripts, symptom alert, probe path, agent). - If a new symptom alert is needed, add it to
infra/modules/alerts.bicepwith a symptom-only name. - Extend the relevant skill runbook in
sre-config/agent-config/skills/<name>/SKILL.mdif the new surface needs guidance — add tools to itstools:frontmatter list. Skills are applied (with their tools) byscripts/configure-agent.mjsviasrectl skill apply.
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
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.

