> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/skills-library/service-management-and-contracts/predict-request-sla-breach.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Predict Request SLA Breach

Predict whether one service request task will miss an SLA commitment. Reads the task, its SLA commitments, work assignments and parent request, then returns a per-commitment risk verdict (ON\_TRACK, AT\_RISK, LIKELY\_BREACH, BREACHED, NOT\_APPLICABLE), evidence and one next action.

| Business area                    | Action type |
| -------------------------------- | ----------- |
| Service Management and Contracts | Read-only   |

## Overview

A service request task (RequestTask, an extension of WorkTask) carries one or more SLA commitments (SlaCommitment) that are either attached directly to the task or inherited from its request scope and request. The skill reads the task, all connected SLA commitments, the current work assignments and the parent request, and then predicts whether each open commitment is likely to be breached given the remaining time, the task status, the assignment state and the planned or appointed finish.

The IFS Cloud integration reads the request task, its SLA commitments, work assignments and the parent service request (read-only) to predict SLA breaches.

## How it works

{% stepper %}
{% step %}
Resolve the task. If only a request id is given, call Get Request Task SLA Context with `ReqId` only (lookup mode) and ask the user to pick one `TaskSeq` if more than one task is returned. Never guess a `TaskSeq`.
{% endstep %}

{% step %}
Call Get Request Task SLA Context with `TaskSeq`. If not found, say so and stop. If isTerminalState = true (`Objstate` Finished or Cancelled, in any letter case), return `NOT_APPLICABLE` with the state as evidence.
{% endstep %}

{% step %}
Call List Task SLA Commitments with `TaskSeq`. If none are returned, return `NOT_APPLICABLE` ("no SLA commitments").
{% endstep %}

{% step %}
Call Get Task Assignments with `TaskSeq` to get allocated/assignment finish times and assignment states.
{% endstep %}

{% step %}
Optionally call Get Parent Request Priority with `ReqId` = Srv`ReqId` of the task for priority/urgency context. If it is skipped for permission reasons, continue and mention it.
{% endstep %}

{% step %}
For each commitment with scoreable = true (Status Active or Planned, SlaProgress not FULFILLED/CANCELLED): forecast\_finish = latest of: forecastFinishFromAssignments (open assignments only), PlannedFinish, AppointmentCompletion. If none exists, forecast\_finish = unknown. minutes\_left = SlaDate - evaluation\_time. SLA timestamps are in the server time zone. Convert before comparing with task dates. Rules:….
{% endstep %}
{% endstepper %}

## Key capabilities

* Read one request task with status, priority, dates, hold flag, appointment and SLA summary status.
* Read all SLA commitments relevant to the task (task, scope and request level) with due date, progress and type.
* Read active work assignments (allocated and actual start/finish, assignment state).
* Read the parent request's priority, urgency and customer for context.
* Compute time-to-due and forecast finish versus SLA date per commitment.
* Classify each commitment and roll up an overall verdict with explicit evidence.
* Recognize terminal states (Finished, Cancelled, commitment Closed/Cancelled/FULFILLED) and paused SLAs.
* Return blocking conditions (missing assignment, task on hold, no planned dates) and next permissible action.

## Requirements

The following IFS Cloud components and projections must be available, with permission sets that grant access to each projection.

| Component | Projection          |
| --------- | ------------------- |
| REQMGT    | RequestTaskHandling |
| SLA       | RequestHandling     |

## Version compatibility

| Projection          | Supported IFS Cloud releases |
| ------------------- | ---------------------------- |
| RequestTaskHandling | 25R2, 26R1, 26R2             |
| RequestHandling     | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Read-only: does not create, update, or delete IFS Cloud data.
* Requires projection-level security. Permission errors halt the run.
