# Set exceptions and locks

You forbid two people from working together, keep someone on a timeslot or rule them out for a day, and lock part of the plan so the next solve no longer touches it. **Manual adjustments**, **locks** and **consignes** are the first three tabs of *Planning rules*: what the next solve must respect. After each entry, re-running the solve is offered on the spot: a *fix* after a consigne (it only reopens the seats removed or added), a *full solve* starting from the plan after an adjustment or a lock.

## Manual adjustments: forbid or bring together before the solve

An adjustment is a one-off exception, recorded with its reason, of three types: incompatibility between two people (never the same timeslot), pair to favour, grouped arrival (carpool, two to four people).

1. Open *Planning rules*, *Adjustments* tab.
2. Start the entry with the person; the list can also be filtered on a person.
3. Give the type, the reason and, if the type allows it, the timeslot or the stand.

**Contradictions are refused on saving**: an adjustment that cannot hold together with another already entered (the same pair both incompatible and in affinity) is refused with a message naming both, rather than a schedule declared infeasible several minutes later with nothing pointing at the cause. A validated grouped arrival ([Collect availability](collecter-disponibilites.md#traiter-les-demandes-de-covoiturage)) becomes an adjustment that only the organisation can cancel, from *Staff*, *Availability* tab, then *Carpooling*; this page neither edits nor deletes it.

## How to do without a forced assignment

The forced assignment and the forced unavailability no longer exist since 4.0. Two gestures replace them, and undo with one click:

- **Keep someone on a timeslot**: place them on the seat from the *Planning* page ("Place", with "Keep them at the next solve" ticked) or lock their seat. The next solve respects the lock, and the rest of their day stays free.
- **Rule someone out for a day**: on their fiche, click the day, then "Unavailable that day". The person is no longer proposed that day and their seats of the day are freed. The day is always whole: the fiche does not know the timeslot. For an unavailability on part of the day, remove the person from the seat and lock them elsewhere.

## Locks: freeze part of the plan

A lock keeps a person on a timeslot, a stand on a day, or a whole day: the next solve no longer touches it and optimises the rest. It keeps what a solve produced, saying nothing of what should be there, and holds only what the saved plan carries: after a reset or an import, lay it again. To lock a person's whole schedule, the button on their fiche lays one lock per timeslot.

1. Open *Planning rules*, *Locks* tab (or lock from a person's fiche, a seat's panel, or the *Fragility* section of the Diagnostic's *Risks* tab).
2. Before laying a lock, the screen counts the assignments it will freeze and leads to the day that shows them.
3. Confirm.

Adjustments and locks can be ticked in bulk ("Select all" follows the filter) and deleted or unlocked in one gesture, after a single confirmation; the report says what went through and what was refused. The third tab, *Consignes*, carries the closures imposed from outside: [Apply a consigne from the authority](appliquer-une-consigne.md).
