Expand description
Daycare incident disposition rules that preserve pet-safety review gates.
use domain::{daycare, entities, policy};
use uuid::Uuid;
let pet_id = entities::PetId(Uuid::nil());
let disposition = daycare::incident::Classifier
.classify(pet_id, daycare::incident::Severity::SuspendGroupPlay);
assert_eq!(disposition.required_gate(), Some(policy::ReviewGate::ManagerApproval));
assert_eq!(
disposition.restriction(),
daycare::incident::Restriction::SuspendedPendingManagerReview { pet_id },
);Structs§
- Classifier
- Deterministic classifier that maps incident severity to restrictions and review gates.
- Disposition
- Classified incident outcome carrying restriction and review-gate evidence.
Enums§
- Policy
- Daycare incident handling policy that determines notes, customer notice, and group-play suspension.
- Restriction
- Operational restriction created by a daycare incident disposition.
- Severity
- Severity classification supplied to the incident classifier.