> 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/engineering-product-lifecycle-and-quality/agree-ready-audit-corrective-actions.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Agree Ready Audit Corrective Actions

Reads audit context, validates agree-CA gates, and after approval runs AgreeCa with optional DateCaAgreed PATCH and read-back verification.

| Business area                               | Action type                                |
| ------------------------------------------- | ------------------------------------------ |
| Engineering, Product Lifecycle, and Quality | Updates IFS Cloud data after user approval |

## Overview

After an audit is performed, findings are raised as NCRs connected to the audit (NonConformanceReport.AuditId) and each NCR carries correction actions (NcrCorrectionAction). When the auditee and auditor have agreed those actions, the audit moves from Completed to CA Agreed (state event AgreeCa on AudAudit).

The IFS Cloud integration agrees audit corrective actions after validation.

## How it works

{% stepper %}
{% step %}
Get Audit CA Context (keep etag).
{% endstep %}

{% step %}
List Audit Focus Areas.
{% endstep %}

{% step %}
List Audit Correction Actions.
{% endstep %}

{% step %}
Validate Agree CA Gate.
{% endstep %}

{% step %}
After approval, Agree Audit Corrective Actions.
{% endstep %}

{% step %}
Verify Audit CA Agreed.
{% endstep %}
{% endstepper %}

## Key capabilities

* Read one audit with status, authority type (internal/external), auditor, key dates and CA/NCR/CAPA counters.
* List focus areas and their completion and NCR counts.
* List NCRs connected to the audit and their correction actions with responsible person and target dates.
* Check the client gate (Objstate = Completed and CaCount > 0) and the server gates (scheduled date, completed date, CA agreed date, auditor for internal authorities).
* Warn (not block) when focus areas are not completed (IFS raises only an info message).
* Optionally set DateCaAgreed (only while the audit is still Completed, IFS forbids changing it in CA Agreed/CA Completed).
* Execute the AgreeCa state event for one audit after explicit approval, with ETag concurrency.
* Read back and confirm Objstate = CAAgreed.

{% 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             |
| ---------------------------------------- | ---------------------- |
| QUAAUD (AUDITS)                          | AuditHandling          |
| QUANCR (NCRS AND NCR CORRECTION ACTIONS) | NonConformanceHandling |

## Version compatibility

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

## Known limitations

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