Lab
Policy resolver
One traveller, several policies: which one applies? Switch the setup and watch the precedence rule pick a winner.
Switch the policies on and off and watch which rule wins.
The prototype
Which policy wins?
One traveller can be covered by several policies at once. The engine applies the most specific one and ignores the rest. Set up a traveller and see which policy wins.
Order of precedence, most specific first
- User policy for Conference: Not set up
- User policy: Applies
- Group policy for Conference: Outranked
- Group policy: Outranked
- Company default: Outranked
The user policy applies. Everything below it is ignored for this trip.
How it's calculated
The most specific policy that is switched on wins. A trip-reason rule counts only when its parent policy is on.
The question it answers
A traveller can sit under a company default policy, a policy for their group, a policy written for them, and rules that change with the reason for the trip. When those overlap, the tool has to pick one, and the travel manager has to be able to predict which.
The rule: most specific wins
The engine resolves overlaps in a fixed order:
- The user policy for this trip reason
- The user policy
- The group policy for this trip reason
- The group policy
- The company default
The first match wins. A person can keep that order in their head, which matters more than it sounds. A travel manager should never need to run a test booking to find out what a traveller will see.
How it got here
The travel policy engine took four full iterations. Three complete wireframe versions were scrapped before this architecture held. The precedence order is the part that survived, because it is the part a travel manager has to trust.
What sits on top
Once the policy is picked, its rules apply: cabin class by trip duration, budget caps set as a percentage above the lowest or median fare, booking windows, refundable fares only, layover rules, and more. Each rule can be a hard or a soft violation, and out-of-policy options can be sent for approval, blocked, or hidden from results.