> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 2.6 Quality Requirements

> Quality Requirements for ReportGeneratorTool.

Refer to the architecture quality goals in Section 1.2.3.

### 2.6.1 Verified mechanisms

The mechanisms below show ordering and checks in the implementation. They do not establish that all activity failures propagate to a failed orchestration status; see [Risks and technical debt](https://docs.khanhng.com/architecture/11-risks-and-technical-debt.md).

| Quality Goal | Quality concern | Verified implementation |
| - | - | - |
| QG-1 Accuracy | Input validation | The report service checks for client credentials, a portal URL, at least one device, a date range, and at least one email recipient. |
| QG-1 Accuracy | Report content | The service processes a downloaded CSV, calculates temperature and alarm summary values, captures a portal chart, and renders them in a PDF. |
| QG-2 Real-time & Durable | Workflow order | The Durable Functions orchestrator calls report generation before email sending. |
| QG-2 Real-time & Durable | PDF handoff | Report generation uploads the PDF to the `report-files` Blob container. The email activity checks that the blob exists and downloads it. |
| QG-2 Real-time & Durable | Email attachment | The email activity requires a successful report result and a PDF filename before Nodemailer sends the PDF as an attachment. |
| QG-2 Real-time & Durable | Progress information | The orchestrator sets custom statuses for initialization, report completion, and email completion. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.