# Maintenance follow-up exception starter

All records, names, dates and references are fictional. The method is a local teaching exercise for an authorized, non-emergency work-order export. It does not alter a property system, send a message or classify urgency. Follow your existing urgent procedure for a record already labelled critical.

## Files

- `work-orders.csv`: nine-row fictional export.
- `blank-work-orders.csv`: column template. Map your real export only in approved storage.
- `check_followups.py`: optional Python 3.11+ local checker.
- `expected-review.csv`: expected complete output for the sample.
- `expected-exceptions.csv`: expected seven flagged rows.

## Import a real export safely

Keep the original export unchanged in approved storage before making a working copy. Treat every field as untrusted text, including IDs, names, dates and source references. In a spreadsheet, use its CSV import dialog and set **every column to Text** (disable automatic formula, date and number conversion); inspect the preview before loading. Do not double-click a raw export or paste its cells into a sheet with automatic formula evaluation. Keep the original and the observation time for reconciliation. Do not send real records with this public starter or place them in a shared review ZIP.

The checker reads a local working CSV and writes `source-original.csv`, a byte-for-byte copy of the input it actually read. It never edits the input. This copy is **raw data**, so import it as text too; it cannot recover a vendor export that was already changed by a spreadsheet. Keep or delete real-data copies according to your organization's access and retention rules. The two generated review CSVs quote every field and prefix formula-like cell values with a tab for spreadsheet viewing. That tab is part of the output value; do not treat a generated review file as a clean machine export. Spreadsheet behavior varies, so import even these files with all columns as Text when your software offers that control.

## Reproduce the example

Keep the ZIP or original CSV untouched. Extract to a working folder and inspect the script before running it. Use a clean folder because the script refuses to overwrite `source-original.csv` or either review output.

```sh
python3 check_followups.py work-orders.csv 2026-11-17T09:00:00+03:30
```

Expected summary: `9 input rows; 9 review rows; 7 exception rows`. Check that `source-original.csv` exactly matches `work-orders.csv`. Compare `review-status.csv` with `expected-review.csv` and `exceptions.csv` with `expected-exceptions.csv`. `R02` through `R08` are flagged. `R01` and `R09` remain in the complete review sheet. The example observation time is fictional and includes its offset.

The code checks presence and uniqueness of identifiers, known statuses, explicit-offset timestamps, open-row owners/next checks, duplicate IDs and status conflicts, closed rows with a next check, and source-labelled critical rows. It leaves review ownership and next-review time blank for an authorized person. Output is a snapshot, not an operational instruction. A clear row only means these rules did not flag it.

If the input is empty, structurally malformed or has the wrong headers, stop and verify the export. Do not adjust a real record based only on a CSV. Store actual business records under your organization's access and retention rules; never submit them with a public review or support request.
