> 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/health-and-safety/block-obsolete-hazard-master.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Block Obsolete Hazard Master

Hazards used on risk assessments are maintained as basic data in the Hazard entity (HazardId, HazardDescription, HazardType).

| Business area     | Action type                                |
| ----------------- | ------------------------------------------ |
| Health and Safety | Updates IFS Cloud data after user approval |

## Overview

The entity uses the IFS validity pattern ActiveHiddenBlocked: Active values are offered and usable, Hidden values are valid but not offered in lists, and Blocked values cannot be used on new or changed records.

IFS Cloud OData integration.

## How it works

{% stepper %}
{% step %}
Read: Hazards.
{% endstep %}

{% step %}
Gate: RiskHazards + SafetyActions.
{% endstep %}

{% step %}
Block: Hazard\_SetBlocked.
{% endstep %}

{% step %}
Verify: Hazards read-back.
{% endstep %}

{% step %}
Return structured results and any escalation guidance.
{% endstep %}
{% endstepper %}

## Key capabilities

* Read one hazard master with description, type, validity state and ETag.
* Validate the current validity (Active or Hidden can be blocked, Blocked is a no-op).
* Find every risk assessment that uses the hazard and classify usages as open or historical.
* Report open safety actions connected to the hazard.
* Enforce a hard blocker for open assessment usage.
* Produce a preview stating exactly what changes and what history is preserved.
* Execute the validity command after explicit approval, with If-Match.
* Read back and confirm Objstate = Blocked.

{% hint style="info" %}
This skill keeps a human in the loop. It previews every change and updates IFS Cloud only after a user approves it.
{% endhint %}

## Requirements

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

| Component | Projection                    |
| --------- | ----------------------------- |
| OSHA      | RiskAssessmentHazardsHandling |

## Version compatibility

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

## Known limitations

* Write paths require explicit user confirmation or authorization where configured.
