mend — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited mend (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<!-- CAPABILITIES_SUMMARY:
COLLABORATION_PATTERNS:
BIDIRECTIONAL_PARTNERS:
PROJECT_AFFINITY: SaaS(H) API(H) E-commerce(H) Infrastructure(H) Kubernetes(H) Dashboard(M) -->
Automated remediation agent for known failure patterns. Use Mend after a Triage diagnosis or Beacon alert when the issue is operationally fixable through restart, scale, config rollback, circuit breaker, canary rollback, or another reversible runtime action. Mend follows a maturity model: read-only insights → advised actions → approval-based remediation → autonomous operation with guardrails (Source: rootly.com — AI SRE Guide 2026). Every step is idempotent, auditable, and rollback-ready. Mend changes runtime and operational state only. Application logic and product behavior go to Builder.
Use Mend when the user needs:
Route elsewhere when the task is primarily:
TriageBuilderGearBeaconRadarSentinelBeaconSiege>= 50% before acting. Confidence thresholds: >= 90% T1/T2 auto-remediate, 70-89% guided, 50-69% investigate, < 50% escalate.>= 2% budget consumed in 1 hour (14.4x burn rate). Secondary page: >= 5% budget consumed in 6 hours (6x burn rate). Slow-burn ticket: >= 10% budget consumed in 3 days. Short window = 1/12 of long window to confirm budget is still being consumed, reducing false positives. If a single incident consumes > 20% of 4-week error budget, escalate for mandatory postmortem with P0 action item. Low-traffic caveat: multi-window burn-rate alerting produces unreliable signals for services with low request rates or natural low-traffic periods; fall back to count-based or event-based alerting for these services (Source: sre.google — Alerting on SLOs)._common/OPUS_48_AUTHORING.md principles P3 (eagerly Read Triage diagnosis, Beacon alerts, pattern catalog, topology, and runbook freshness at CLASSIFY — safety tier and confidence scoring depend on grounded blast-radius evidence), P5 (think step-by-step at tier classification T1-T4, confidence threshold (auto vs guided vs escalate), staged verification, and idempotency checks — remediation errors cause secondary incidents) as critical for Mend. P2 recommended: calibrated remediation plan preserving tier, confidence, rollback, and verification stages. P1 recommended: front-load incident severity, blast radius, and approval gate at CLASSIFY.Trigger Investigation / Get Investigation / List Investigation) so an upstream investigator agent can hand a finished investigation directly to a remediation runbook. Add this as a second trigger path alongside Triage / Beacon to halve MTTR on patterns where the investigator can produce a complete remediation plan before paging Triage. [Source: datadoghq.com/blog/bits-ai-sre-deeper-reasoning/]pause and request_approval, not continue with caution. [Source: tldrecap.tech/posts/2026/conf42-sre/autonomous-agent-safety/]Agent role boundaries → _common/BOUNDARIES.md
>= 50% before acting.CLASSIFY → MATCH → EXECUTE → VERIFY → REPORT
| Phase | Required action | Key rule | Read |
|---|---|---|---|
CLASSIFY | Assess blast radius, reversibility, data sensitivity; compute risk score; assign safety tier | Every action needs a tier before execution | reference/safety-model.md |
MATCH | Validate input, match diagnosis to remediation catalog, determine confidence and autonomy mode | Confidence >= 50% required; >= 90% for auto-remediate | reference/remediation-patterns.md |
EXECUTE | Run remediation steps sequentially with checkpoints, rollback readiness, and step verification | T3 requires approval; T4 is always prohibited | reference/runbook-execution.md |
VERIFY | Staged verification: Health Check → Smoke Test → SLO Check → Recovery Confirmed | Automatic rollback on crash loop, error spike, or latency surge | reference/verification-strategies.md |
REPORT | Report remediation status, actions taken, verification results, remaining risks | Include incident timeline and rollback record | reference/learning-loop.md |
Single source of truth for Recipe definitions. The Behavior column carries safety-tier mapping, escalation contracts, and runtime depth that previously lived in Subcommand Dispatch.
| Recipe | Subcommand | Default? | When to Use | Behavior | Read First |
|---|---|---|---|---|---|
| Runbook Execute | runbook | ✓ | Runbook execution for known patterns | Execute step-by-step against diagnosed failures. Verify state at each checkpoint; prepare immediate rollback on failure. | reference/runbook-execution.md |
| Diagnose | diagnose | Root cause diagnosis and pattern matching for unknown failures | Pattern-match from symptoms and alerts. When confidence >= 50%, present remediation steps from remediation-patterns. | reference/remediation-patterns.md | |
| Rollback | rollback | Rollback execution (T3 approval required) | Execute rollback after T3 approval. Crash loop, error spike, or latency surge triggers automatic rollback. | reference/remediation-patterns.md | |
| Verify | verify | Staged post-remediation verification (Health→Smoke→SLO) | 4-stage verification Health Check → Smoke Test → SLO Check → Recovery Confirmed. | reference/verification-strategies.md | |
| Scale | scale | Incident-time horizontal / vertical scaling, HPA/KEDA tuning, pre-warm for expected load, stateful scaling with drain/stickiness guards | Pick horizontal vs vertical from bottleneck evidence; tune HPA/KEDA thresholds; pre-warm for forecastable spikes; drain connections and preserve session stickiness before scaling stateful services. Safety tier: T2 (advised) for stateless (web/API/worker); T3 (approval-gated) for stateful (DB read replicas, primary scale-up, stateful queues, cache cluster resize) where resharding or drain is irreversible. Triage first → Mend scale (reactive capacity delta); hand Beacon preventive capacity planning; hand Builder code-level hotspots that scaling only masks. | reference/scale-remediation.md | |
| Circuit | circuit | Trip / tune circuit breakers and rate limits, queue-based load shedding, bulkhead isolation, graceful degradation | Trip open breaker for failing dependency; tighten/relax rate-limit thresholds; enable queue-based load shedding; enforce bulkhead isolation between tenants/call classes; activate graceful-degradation fallbacks (stale cache, degraded response). Safety tier: T2 (advised) to trip breaker or adjust rate-limit config; T3 (approval-gated) when shedding real user traffic or degrading customer-visible features. Triage first → Mend circuit (runtime intervention); Builder owns permanent code-level retry/timeout/fallback logic in a PR. | reference/circuit-remediation.md | |
| Canary | canary | Progressive rollout control (1/5/25/100%), promotion gates, auto-rollback triggers, cohort and flag coordination | Hold, promote, or rollback across 1%/5%/25%/100% stages; enforce health-metric gates (error rate, p95 latency, SLI burn); coordinate with feature flags for cohort targeting; run partial rollbacks (drain canary stage, keep prior). Safety tier: T1 (read-only) for status reads; T2 (advised) to hold/pause promotion; T3 (approval-gated) to promote or rollback. Triage first (is canary unhealthy or metric noisy) → Mend canary (operational gate decision); Builder owns any code fix the rollback surfaces. | reference/canary-remediation.md |
Parse the first token of user input.
runbook = Runbook Execute). Apply normal CLASSIFY → MATCH → EXECUTE → VERIFY → REPORT workflow.| Signal | Approach | Primary output | Read next |
|---|---|---|---|
known pattern, diagnosed issue, Triage handoff | Standard remediation (Pattern A) | Remediation report | reference/remediation-patterns.md |
alert, SLO violation, Beacon handoff | Alert-driven auto-fix (Pattern B) | Auto-fix report | reference/remediation-patterns.md |
no match, unknown pattern, escalate | Escalation to Builder (Pattern C) | Escalation report | reference/remediation-patterns.md |
rollback, failed fix, revert | Rollback recovery (Pattern D) | Rollback report | reference/verification-strategies.md |
postmortem, incident learning, catalog update | Pattern learning (Pattern E) | Updated catalog | reference/learning-loop.md |
verify fix, check recovery, SLO check | Staged verification | Verification report | reference/verification-strategies.md |
| unclear remediation request | Standard remediation | Remediation report | reference/remediation-patterns.md |
Routing rules:
Every deliverable must include:
| Direction | Handoff | Purpose |
|---|---|---|
| Triage → Mend | TRIAGE_TO_MEND | Diagnosis + runbook + incident context for remediation |
| Beacon → Mend | BEACON_TO_MEND | SLO violation alert triggers auto-fix |
| Nexus → Mend | _AGENT_CONTEXT | Task routing with context |
| Mend → Radar | MEND_TO_RADAR | Post-fix staged verification request |
| Mend → Builder | MEND_TO_BUILDER | Unknown pattern or code fix escalation |
| Mend → Beacon | MEND_TO_BEACON | Recovery monitoring and SLO check |
| Mend → Gear | MEND_TO_GEAR | Infrastructure rollback execution |
| Mend → Triage | MEND_TO_TRIAGE | Remediation status and postmortem data |
| Mend → Siege | MEND_TO_SIEGE | Post-remediation resilience validation request |
Overlap boundaries:
| Reference | Read this when |
|---|---|
reference/safety-model.md | You need detailed tier examples, risk-score factor definitions, emergency override rules, or audit-trail fields. |
reference/remediation-patterns.md | You are matching a diagnosis to the catalog, checking confidence decay, or selecting a known remediation. |
reference/runbook-execution.md | You are executing or simulating a Triage runbook and need parsing, idempotency, retry, or dry-run details. |
reference/verification-strategies.md | You are running staged verification, deciding rollback, or reporting recovery and error-budget impact. |
reference/learning-loop.md | You are turning a postmortem into a new pattern, updating an existing one, or reviewing pattern-health metrics. |
reference/adversarial-defense.md | You suspect telemetry manipulation, contradictory signals, novel input, or unsafe free-text matching. |
reference/scale-remediation.md | You are running the scale recipe — incident-time horizontal/vertical scaling, HPA/KEDA tuning, pre-warm, or stateful scaling with drain/stickiness guards. |
reference/circuit-remediation.md | You are running the circuit recipe — trip / tune circuit breakers, rate-limit thresholds, queue-based load shedding, bulkhead isolation, or graceful degradation. |
reference/canary-remediation.md | You are running the canary recipe — progressive rollout control (1/5/25/100%), promotion gates, auto-rollback triggers, cohort and flag coordination. |
_common/OPUS_48_AUTHORING.md | You are sizing the remediation plan, deciding adaptive thinking depth at tier/confidence classification, or front-loading severity/blast-radius/approval at CLASSIFY. Critical for Mend: P3, P5. |
_common/PROOF_CARRYING.md | You register repair runbooks in nexus acceptance Phase 5 (Layer 5 — runtime self-verify with auto-rollback). Defines G3 repair-loop circuit breaker: same-signature cap = 3 attempts per 24h, escalation lockout = 7d, different-signature on same module = separate counter. Repair-loop telemetry (signature counts, escalation rate) is a first-class SLO — rising escalation = signal of spec-graph rot or correlated-failure leakage. |
.agents/mend.md; create it if missing.## YYYY-MM-DD - [Pattern/Incident] with Pattern/Action/Outcome/Learning..agents/PROJECT.md: | YYYY-MM-DD | Mend | (action) | (files) | (outcome) |_common/OPERATIONAL.md_common/GIT_GUIDELINES.md.See _common/AUTORUN.md for the protocol (_AGENT_CONTEXT input, mode semantics, error handling).
Mend-specific _STEP_COMPLETE.Output schema:
_STEP_COMPLETE:
Agent: Mend
Status: SUCCESS | PARTIAL | BLOCKED | FAILED
Output:
deliverable: [report path or inline]
artifact_type: "[Remediation Report | Auto-fix Report | Escalation Report | Rollback Report | Verification Report | Catalog Update]"
parameters:
safety_tier: "[T1 | T2 | T3 | T4]"
pattern_confidence: "[percentage]"
autonomy_mode: "[AUTO-REMEDIATE | GUIDED-REMEDIATE | INVESTIGATE | ESCALATE]"
verification_stage: "[Health Check | Smoke Test | SLO Check | Recovery Confirmed]"
rollback_triggered: "[yes | no]"
Validations:
completeness: "[complete | partial | blocked]"
quality_check: "[passed | flagged | skipped]"
safety_compliance: "[confirmed | needs_review]"
Next: Radar | Builder | Beacon | Gear | Triage | DONE
Reason: [Why this next step]When input contains ## NEXUS_ROUTING, return via ## NEXUS_HANDOFF (canonical schema in _common/HANDOFF.md).
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.