# Refine work items with AI: how refinement reports work

**Refine work item with AI** sends one work item to a separate AI reviewer. The reviewer returns a **refinement report**: a ranked list of suggested changes to the safety graph, each with a reason. Nothing changes until an engineer approves a selection. The approved selection is then committed in one transaction, in that engineer's name.

---

## Why it exists

WCGW's deterministic tools ([standard checks, completeness metrics](/knowledge-base/full-feature-list/#completeness-metrics) and [traceability queries](/knowledge-base/full-feature-list/#traceability-query-engine)) check that the required concepts, attributes and links exist. They can't judge what the text says. A safety requirement can be linked to its safety goal and still fail to achieve it. A risk control measure can be traced to its hazard and still not reduce the risk.

The refinement reviewer reads the content. It is told to spend most of its effort on what the checks can't see:

- concepts that contradict each other, for example a requirement that conflicts with a constraint
- requirements that don't achieve their safety goal or safety function
- mitigations that don't reduce the risk they claim to address
- overlooked hazards, weak assumptions and missing links

The reviewer is independent of whoever wrote the content: it runs as its own model call with its own instructions and never sees the conversation or agent session that produced the work item. That is **not** the organisational independence that ISO 26262-2 and IEC 61508-1 require for confirmation reviews, functional safety audits and functional safety assessments. A refinement report is a review aid. It is not a confirmation measure and not evidence of compliance.

---

## What the reviewer sees

When you generate a report, WCGW reads the work item in one consistent database transaction and freezes it into a **snapshot**. The snapshot is stored with the report, so you can always see what the reviewer was given. It contains:

| Input | Contents |
|---|---|
| Work item | Name, description, lifecycle phase, application context, system boundary, and ISO 14971 risk acceptability criteria where set |
| Standards and integrity level | The standards the work item is tagged with, and its ASIL, SIL or PL |
| Concepts | Every concept in the work item, with the full text of its current revision |
| Relations | The traceability links between those concepts |
| Derived values | Values WCGW computes deterministically, such as the ASIL from S/E/C, the PLr from the risk graph, the achieved PL, the ISO 14971 risk estimate and the drive SIL |
| Standard checks | Which checks pass, and for each failing check, which concepts are missing what |
| Your prompt | Optional. Leave it empty and the reviewer chooses its own focus |

It does **not** receive the completeness score or the graph metrics, and it doesn't see the content of other work items.

### What the reviewer is told

- **Standards.** It applies guidance only for the standards the work item is tagged with: ISO 26262, IEC 61508, ISO 13849, ISO 14971 or IEC 61800-5-2. With no standard tagged, it uses general functional-safety practice and assumes none.
- **No compliance claims.** It must never claim the work item is compliant or certified.
- **Integrity levels and ratings are yours.** It must not write a different ASIL, SIL or PL into a concept's text. The one exception is ISO 26262 ASIL decomposition notation, such as "ASIL B(D)".
- **Don't repeat the checks.** It may raise a failing standard check only with a concrete change that closes it.
- **One objective per report.** It stops once it has a complete set of changes for one objective. Run it again, with or without a prompt, to pursue another.

---

## Generating a report

1. Select the work item and find **Refine work item with AI**.
2. Optionally, write a prompt, for example *"Check whether the risk control measures for HAZ-03 reduce severity or only probability."* Traceability queries and AI-planned query steps have a **Copy as refinement prompt** button that turns their explanation into a prompt.
3. Click **Generate new refinement report**. If you have a revision in progress, you'll be asked to discard it first. The loading message names the model that's running.

Each report uses one AI call from your licence's limit. The provider and model come from your user settings, and each report records the provider, the model and the prompt version that produced it. Earlier reports stay available in the **Report archive**, listed with their date, prompt and state.

---

## Reading a report

The report shows when it was created, the prompt it was given and its state. It carries the EU label for AI-generated content. Suggestions are sorted by importance (**Very high**, **High**, **Medium**, **Low**), and each one shows:

- what it proposes and why (**Reason**)
- its action, with a summary of the graph change, such as "2 concept(s), 3 relation(s)"
- a thumbnail of the proposed graph change
- **Discard**, and **Report a problem**, which files the suggestion in WCGW's AI incident register

| Action | What it changes |
|---|---|
| **Create** | Adds new concepts with their first revision, plus relations to existing concepts |
| **Revise** | Adds a new revision to an existing concept. Earlier revisions stay in its history |
| **Remove** | Deletes relations or concepts. Deleting a concept also deletes its revisions, their signatures and their baseline entries. Concepts linked to other work items are refused |

Suggestions can only refer to concepts in the same work item. A suggestion that names an unknown concept is rejected whole, so a mistyped or invented key can't create stray concepts.

---

## Approving and applying

Tick the suggestions you want (all applicable ones are ticked by default), then choose one of:

- **Approve selection** records the exact set, who approved it and when. Apply it later with **Apply approved selection**.
- **Approve and apply selected** records the approval and commits straight away.

Applying is **all-or-nothing**. Just before writing, WCGW compares the concepts, revisions, relations, signatures and baselines each suggestion depends on with the snapshot. If any of them has changed, nothing is written and the report becomes **conflicted**. Edits to unconnected concepts or other work items don't block the commit. Conflicts are never merged automatically: generate a new report against the current graph instead.

Some rules keep the review meaningful:

- Two suggestions that rewrite the same concept can't be approved together.
- An approved selection can't be enlarged or replaced. Each report commits one selection; to apply a different set, generate a new report.
- Unselected suggestions stay in the report as a record of what was proposed and not taken.

Applied changes are made in your name. Each applied suggestion keeps a receipt listing exactly which concepts, revisions and relations it created or removed.

### Report states

| State | Meaning |
|---|---|
| Evaluating | The model is running. A report left here was interrupted, and generating again starts from a fresh snapshot |
| Failed | The model call failed. The record is kept for monitoring |
| Ready for review | Suggestions are waiting for your decision |
| Approved | A selection is recorded but not yet committed. A commit that fails for technical reasons leaves the report here, so you can retry |
| Committed | The approved selection has been written to the graph |
| Conflicted | The graph changed under the selection, so nothing was written |
| Superseded | A newer report for the same work item replaced this conflicted one. Its evidence is kept |

---

## From an AI agent

The same feature is available over [MCP](/knowledge-base/connect-mcp/). `evaluate_work_item` generates a report, `get_evaluation_result` and `list_evaluation_results` read reports, and `apply_evaluation_suggestions` commits a selection. The tool description tells agents never to call it without human approval. On the paid MCP endpoint it only applies a selection that was already approved separately, for example with **Approve selection** in the web UI. `act_on_suggestion` marks a suggestion as acted on or discarded without changing the graph.

A good pattern for agents is to make a batch of edits, run `evaluate_work_item`, and treat the suggestions as a reviewer's comments: verify each one, then act on it or discard it.

---

*Want to see what it finds in your project? <a class="button" href="https://wcgw-safety-ui.vercel.app" target="_blank" rel="noopener noreferrer">Public beta is open!</a>*
