# AI Guideline - ngauge-indicator

## Purpose

This module ingests XML order files from FTP/SFTP and imports them as carts/cartlines.

## Conventions

- Keep flow split into two jobs: download, then process.
- Preserve idempotency where possible.
- Log import failures with enough context for troubleshooting.
- Never log raw passwords.
- Keep XML parsing defensive and tolerant to field variations.

## Validation

Run at minimum after updates:

```bash
find src -type f -name "*.php" -print0 | xargs -0 -n1 php -l
```
