Model independent room-state inputs
Synthetic guesthouse releases a room for assignment only when vacant, cleaning-confirmed and no open maintenance hold. R1 is vacant and clean but has a hold; R2 satisfies all three; R3 is clean and maintenance-clear but occupied. These are invented operating states, not a property safety approval.
| Constraint | Required record | Example decision rule |
|---|---|---|
| Vacancy | Current occupancy state | Occupied R3 not assignable |
| Cleaning | Completed and confirmed housekeeping | Cleaning alone insufficient |
| Maintenance hold | Open/cleared state with reference | R1 remains held |
Test each independent readiness failure
| Case | Input | Expected decision |
|---|---|---|
| R1 | Vacant / clean / hold open | Not ready |
| R2 | Vacant / clean / hold cleared | Ready under local rule |
| R3 | Occupied / clean / hold cleared | Not ready |
- Read occupancy
- Read cleaning confirmation
- Read maintenance disposition
- Combine all required states
Unknown maintenance state keeps readiness unresolved; it cannot be treated as cleared.
How many shown rooms are ready for assignment?
Show the worked answer
One, R2. R1 has an open hold and R3 remains occupied.
Require separate room flags in the demo and export so completing one work order cannot overwrite the other readiness conditions.