> ## 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.5 Architecture Decisions

> Architecture Decisions for ReportGeneratorTool.

This section records the accepted choices that shape the report automation service. The decision dates, reasons, and options considered were confirmed during the documentation review. Implementation evidence links refer to repository commit `27045ec413f88cd2227ab08e18ec76db3e8e3d34`.

| ID | Decision | Status | Decision date |
| - | - | - | - |
| [AD-001](https://docs.khanhng.com/architecture/09-architecture-decisions/ad-001-durable-functions.md) | Use Azure Durable Functions for report orchestration | Accepted | 2025-08-01 |
| [AD-002](https://docs.khanhng.com/architecture/09-architecture-decisions/ad-002-puppeteer-core.md) | Automate the source portal with Puppeteer Core | Accepted | 2025-08-01 |
| AD-003 | Pass PDFs through Blob Storage | Consolidated into AD-001 | 2025-08-01 |
| [AD-004](https://docs.khanhng.com/architecture/09-architecture-decisions/ad-004-html-to-pdf.md) | Render reports from HTML to PDF | Accepted | 2025-08-01 |
| [AD-005](https://docs.khanhng.com/architecture/09-architecture-decisions/ad-005-nodemailer.md) | Send report emails with Nodemailer | Accepted | 2025-08-01 |

## AD-003: Pass the report between activities through Blob Storage

Blob Storage is the PDF artifact handoff within [AD-001](https://docs.khanhng.com/architecture/09-architecture-decisions/ad-001-durable-functions.md), rather than a separate architecture decision. The identifier remains here so existing references can still find the decision. The `report-files` container, its consequences, and implementation evidence are documented in AD-001.

## Scope of this decision set

The repository also contains a container setup and a package deployment workflow, but it does not establish one authoritative deployment decision. The current report implementation uses only the first supplied device, but that behavior was not confirmed as a deliberate architecture decision. These topics remain in [Risks and Technical Debt](https://docs.khanhng.com/architecture/11-risks-and-technical-debt.md) until their intended behavior is decided.


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