> 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/maintenance-and-asset-management/prioritize-equipment-by-criticality.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Prioritize Equipment by Criticality

Ranks a bounded set of equipment objects (max 100) by criticality tier, safety-critical flag and active-work exposure from open tasks, late tasks and overdue PM plan lines. Read-only.

| Business area                    | Action type |
| -------------------------------- | ----------- |
| Maintenance and Asset Management | Read-only   |

## Overview

Planners must decide which assets need attention first. IFS Cloud stores a criticality code per object (Criticality, reference EquipmentCriticality), a safety-critical flag (SafetyCriticalElement), and links work tasks and PM plans to objects.

IFS Cloud reads equipment criticality, open work tasks and PM plans to rank maintenance focus.

## How it works

{% stepper %}
{% step %}
Resolve Ranked Scope (default OperationalStatusDb IN\_OPERATION).
{% endstep %}

{% step %}
Get Criticality Scale. Use user criticality order, else configured order, else ask. Null Criticality ranks last.
{% endstep %}

{% step %}
Parent scope: one Get Active Work Exposure call. Site mode: per object (batch concurrency 5).
{% endstep %}

{% step %}
Per object Get Overdue PM Exposure (CompletionDate null, Overdue > 0).
{% endstep %}

{% step %}
Score: exposure = open + 2×late + 3×overdue\_pm. Sort by tier, SafetyCriticalElement true first, exposure desc, MchCode.
{% endstep %}

{% step %}
Get Work Summary Counts only if task lists fail or to cross-check.
{% endstep %}
{% endstepper %}

## Key capabilities

* Resolve a bounded object set by site/filters or by parent structure.
* Read the criticality code list and accept a user- or configuration-defined criticality order.
* Read open work tasks for the whole structure in one call and attribute them to objects.
* Detect late tasks (LatestFinish or PlannedFinish before now).
* Read PM plan lines and count overdue lines.
* Read work summary counts as a cross-check.
* Compute a transparent exposure score and rank by criticality tier, safety flag and exposure.
* Return evidence (task and work order numbers, PM numbers) for top-ranked objects, no writes.

## Requirements

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

| Component | Projection                                 |
| --------- | ------------------------------------------ |
| EQUIP     | EquipmentObjectStructureNavigationHandling |
| WO        | EquipmentObjectNavigatorHandling           |

## Version compatibility

| Projection                                 | Supported IFS Cloud releases |
| ------------------------------------------ | ---------------------------- |
| EquipmentObjectStructureNavigationHandling | 24R2, 25R1, 25R2, 26R1, 26R2 |
| EquipmentObjectNavigatorHandling           | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Requires projection-level security. Permission errors halt the run.
