# Process 1: Monthly application report

SYNTHETIC EXAMPLE. The Example Community Pantry Network and its Program Coordinator are fictional. The records are invented.

## Role and human owner

- Role: Program Coordinator, Example Community Pantry Network (fictional).
- Human owner: Program Coordinator. Backup owner: Operations Lead.

## Inputs

- `examples/monthly-report.json`, one row per application record with `application_id`, `application_date`, and `status`. Approved by the Program Coordinator.
- Reporting period and snapshot date, named in the file.

## Output

A count summary for the period: raw rows, duplicates, exclusions, cohort size, and cohort status counts. Goes to the Program Coordinator.

## Steps

1. Run `python3 scripts/check_monthly_report.py examples/monthly-report.json`.
2. Compare the result with `examples/monthly-report.expected.json` when using the fixture.
3. This checker accepts synthetic fixtures only. Before adapting the process for real work, agree data handling and definitions with the owner and validate a separate implementation. Do not relabel real records as synthetic.
4. Write the summary and list the unknowns.

## Definitions

- Grain: one application per `application_id`.
- Cohort: applications dated inside the period.
- Duplicate: the same ID with an identical record. Counted once.
- Excluded: an application dated outside the period.
- Missing status: kept as unknown. Never filled in.
- Completed: undefined for this report, so reported as null.

## Missing-input exception

If a record has no application date, or the same ID appears with a different date or status, stop. Do not merge or guess. Send the record IDs to the Program Coordinator for a decision.

## Deadline policy

Due on the third business day after the snapshot date. If a conflict is open at that point, give the owner an exception notice; do not present a blocked count as a finished report.

## Acceptance

The Program Coordinator confirms the counts match the source system and every exception is listed. Fixture check: 6 raw, 1 duplicate, 1 excluded, cohort 4 (1 approved, 1 pending, 1 withdrawn, 1 unknown).
