# Rules for the fictional device records

Required columns: device_id, room, asset_tag, backup_state.
Extra columns are ignored. Trim surrounding whitespace for evaluation;
do not rewrite the input. Evaluate the following rules in order:

1. A missing required column makes the whole file INVALID.
2. A blank required value makes that record INVALID. Name the field.
3. room must be A or B; any other value is INVALID.
4. backup_state must be current, stale, or missing. Other values are INVALID.
5. A valid record whose backup_state is stale or missing is FAIL.
6. A valid record whose backup_state is current is PASS.

FAIL and INVALID are different: one fails the stated condition; the
other does not provide a valid record to evaluate. These rules neither
inspect a real backup nor certify a device's condition.
