---
title: "SLA Monitor Module"
module_id: "sla"
version: "1.1.0"
category: "insights"
autonomy: "agent-capable"
generated: true
generated_at: "2026-05-04"
---

# SLA Monitor

> Service level agreement monitoring for order fulfillment, ticket response, lead handling, chat reply times, and booking confirmations. Auto-detects violations, auto-resolves when entities are handled.

Ships with **3 agent skills**.

## Quick Facts

| Property | Value |
|----------|-------|
| **Module ID** | `sla` |
| **Version** | 1.1.0 |
| **Category** | insights |
| **Autonomy** | agent-capable |
| **Core** | No |
| **Capabilities** | `data:read`, `data:write` |
| **MCP-exposed skills** | 3 |
| **Owns tables** | — |

## Skills

These skills are seeded into `agent_skills` when the module is enabled and exposed via MCP.
External operators (FlowPilot, OpenClaw, Claude Desktop, custom MCP clients) can call them directly.

| Skill | Scope | Description |
|-------|-------|-------------|
| `sla_check` | internal | Check all SLA policies against current data — finds overdue tickets, orders, leads, chats, and bookings. Auto-creates violations and auto-resolves when entities are handled. Use when: monitoring se… |
| `manage_sla_policy` | internal | CRUD for SLA policies — define thresholds (in minutes) per entity_type + metric. Use when: setting up monitoring for a new entity, tightening/loosening response targets. NOT for: running checks (us… |
| `list_sla_violations` | internal | List SLA violations — open (unresolved) by default, with optional filters by entity_type and time window. Use when: building a dashboard, asked about overdue work, investigating SLA health. |

## Module API Contract

**Actions:** `check`, `list_policies`, `list_violations`

**Input fields:** `action`, `entity_type`, `period_days`

**Output fields:** `success`, `message`

## Used in Processes

This module participates in the following end-to-end business processes:

- [support-to-resolution](../processes/support-to-resolution.md)

## File Map

| Purpose | Path |
|---------|------|
| Module definition | `src/lib/modules/sla-module.ts` |
| Hook | `src/hooks/useSla.ts` |

## Contributing

To enhance this module, see [Contributing Guide](../contributing/contributing.md).

Key rules:
- Follow `ModuleDefinition<I, O>` contract pattern
- All schema changes require idempotent migrations
- Skills must be self-describing ([Law 2](../concepts/openclaw-law.md))
- Blocks are interfaces, not pipelines ([Law 3](../concepts/openclaw-law.md))
- New skills must pass the [Agent Contract Integrity](../architecture/agent-contract-integrity.md) checklist (`bun run lint:skills`)

---

*This file is auto-generated by `scripts/generate-module-docs.ts`. Do not edit manually — re-run the script after changing the module definition.*