Planning Équipes

Search Français Let’s talk

The solver’s rules and their catalogue

You know where to read the list of the 39 rules, how they are ranked by level, why the screen and the code do not use the same word for a breach, and what two record fields do not drive. The table at the end of the page is the full list, kept up to date by a test.

A planning is valid when no hard rule is violated, and good when quality rules are little penalised. Rules are ranked on the three levels of Timefold’s HardMediumSoftScore: hard (blocking), medium (heavily penalised, flagged to the organiser) and soft (a preference that separates two valid schedules). Each rule is written twice: in Timefold’s constraint streams, which define it, and in the direct engine (solver/handsearch), which must score it identically (how the planning is computed, adding a rule).

Never reclassify a hard rule as medium or soft without explicit sign-off, in particular anything touching the legal framework for minors.

Each rule is written twice: in Timefold’s constraint streams, which define it, and in the direct engine (solver/handsearch), which must score it identically. How the schedule is calculated describes the two engines and Adding a rule the procedure to follow.

Where the list is

Each rule’s level, category, business description and article of law live in ConstraintCatalog (external site), served by GET /api/constraints and shown by the Planning rules screen (/regles). The following pages carry the mechanisms and trade-offs a one-line description cannot hold: legal rules and breaks, coverage and comfort, weighting and disabling, ad hoc exceptions.

The screen’s Legal tab carries the hard rules, the Quality tab the medium and soft ones. A line names the rule by its short label (libelleCourt), never its technical name (ConstraintCatalogShortLabelTest). A rule’s name is its address: /regles?regle=coupureRepasObligatoire opens its panel, and renaming a rule breaks shared links. Descriptions stay plain text server-side (the same string goes to MCP and into a swap request); the frontend links article numbers to Légifrance at display (core/legifrance.ts): writing art. L3162-1 in a description is enough.

“Breach” on screen, violation in the code

A case where a rule is not satisfied is called a breach wherever the organiser reads it (the word fits all three levels: “offence” would accuse a comfort preference of a crime). The code keeps violation (identifiers, JSON keys violations, violationsParContrainte, violationsIntroduites, ViolationFormatter): renaming it would break the JSON contract and every MCP client. The gap is deliberate: do not “fix” a label to violation nor an identifier to écart.

The effective window: who reads it, who ignores it

A seat from a partial segment carries an effective time window narrower than the timeslot (details). A day under a consigne is read through the same windows: no rule needs to know the consigne. pasDeChevauchementHoraire and the hour and rest totals read them (a reduced seat counts only the covered time, and the following rest starts at the end of that time); travailDeNuitInterditPourMineur stays on the whole timeslot: a minors' safety rule must never become more permissive as a side effect of a stand feature.

Eligibility exclusions weigh more than anything

Six rules say who can never hold a seat: animateurDisponible, standReserveAuxMajeurs, travailDeNuitInterditPourMineur, travailInterditJourFerieMineur, dureeQuotidienneMax and travailContinuMax (for a minor; an adult is only penalised per minute), the reasons of EligibleAnimateurMoveFilter. A seventh carries the same flat penalty because it depends on who else holds the stand: mineurNecessiteEncadrementMajeur (otherwise a lone minor cost exactly one empty seat, ADR 0035 (external site)), off by default (ADR 0041 (external site)). Each breach costs a flat 10,000 hard points (ExclusionEligibilite.FORFAIT), plus the overrun minutes for the two ceilings counted per minute: an empty seat reads on the Problems page and is dealt with, an illegal seat must not leave a solve when an alternative exists. An edition weight multiplies the flat penalty instead of replacing it; rejected options: ADR 0034 (external site).

One rule per cap, the cap read on the age

The ceiling of a working day and that of an uninterrupted period are one rule each (dureeQuotidienneMax, travailContinuMax), the ceiling being read on the age at the timeslot’s date (never a stored flag) in PlafondsLegauxMajeurs and PlafondsLegauxMineurs, the only places where these figures are written:

Rule Adult Minor, 16 to under 18 Minor under 16
dureeQuotidienneMax 10 h (art. L3121-18) 8 h (art. L3162-1) 7 h (art. D4153-3)
travailContinuMax 6 h, break of at least 20 min (art. L3121-16) 4 h 30, break of at least 30 min (art. L3162-3) 4 h 30, break of at least 30 min (art. L3162-3)

A setting covers both ages at once (the adults' ceiling cannot be switched off while keeping the minors'; an edition that had set them differently is migrated to the more protective reading, ADR 0114 (external site)). The weekly ceiling and weekly rest follow the same pattern (ADR 0116 (external site)): dureeHebdomadaireMax (48 h for an adult, 35 h for a minor, Settings › Legal) and reposHebdomadaireMinimal (35 consecutive hours for all, and for a minor two consecutive rest days per calendar week, art. L3164-2). A week straddling an eighteenth birthday is judged age by age.

The constraints, as the catalogue declares them

This table is the rendering of ConstraintCatalog. When the catalogue changes, DocumentationStructuralTest fails and prints the table to paste between the two markers.

<!-- catalogue:debut -->

Constraint Level Category What it says
posteDoitEtrePourvu HARD Assignment Every open seat on a stand must be filled by a staff member.
animateurDisponible HARD Assignment A staff member cannot be assigned on a day they have declared unavailable.
pasDeChevauchementHoraire HARD Assignment A staff member cannot hold two seats whose timeslots overlap in time (including two distinct timeslots that overlap, not only two seats on the same timeslot).
plafondCreneauxParTypologie HARD Assignment On a game category that carries a cap, a staff member holds no more than that number of timeslots across the whole edition. A seat counts for every game category its stand offers. A game category with no cap imposes nothing.
standReserveAuxMajeurs HARD Legal (minors) Stands restricted to adults cannot host any minor.
mineurNecessiteEncadrementMajeur HARD Safety (minors) Off by default. A minor must always be accompanied by at least one adult on the same stand and the same timeslot. A safety rule set by the organiser, not an obligation of the Labour Code: the event’s organiser fills it with its managers, who are not scheduled, and therefore does not ask the solver for it. An organisation with no supervisor outside the schedule switches it on from the Planning rules screen.
travailDeNuitInterditPourMineur HARD Legal (minors) A minor cannot be assigned to a timeslot that encroaches on their legal night: 20:00-06:00 under 16, 22:00-06:00 from 16 to 18 (Labour Code art. L3163-1).
dureeQuotidienneMax HARD Legal (working time) An animateur cannot exceed the daily cap on effective work, read on their age at the timeslot’s date: 10 hours for an adult (Labour Code art. L3121-18), 8 hours for a minor (art. L3162-1), reduced to 7 hours under 16 (art. D4153-3). Breaks due are deducted: a break, relayed or taken as a gap, is rest, not effective work (art. L3121-1).
travailInterditJourFerieMineur HARD Legal (minors) A minor cannot work on a legal public holiday (Labour Code art. L3164-6, list in art. L3133-1). No sectoral derogation is applied: the one in art. R3164-2 remains to be examined.
dureeHebdomadaireMax HARD Legal (working time) A staff member cannot exceed the weekly duration of effective work, read on their age at the timeslot’s date: 48 hours by default for an adult, all paid, manager or not (Labour Code art. L3121-20, public policy), 35 hours by default for a minor (art. L3162-1; art. D4153-3 for ages 14 to under 16 employed during school holidays). Both ceilings are the maximum weekly duration settings, adults' and minors'. Due breaks are deducted, as in the daily ceiling.
dureeHebdomadaireMaxDeuxSemaines HARD Legal (working time) An adult staff member cannot reach the maximum weekly duration in two consecutive ISO weeks: 48 h one week then 48 h the next is refused, 47 h then 48 h remains allowed. A short, operational form of the 44 h average over twelve weeks (Labour Code art. L3121-22) — the only one that makes sense for a fortnight-long event. The threshold is that of the maximum weekly duration setting, never a second constant. A week is judged full in effective work: breaks due are deducted from it.
reposQuotidienMinimal HARD Legal (working time) Between two worked days, every staff member is entitled to a minimum daily rest: 11 h for an adult (art. L3131-1), 12 h for a minor and 14 h under 16 (art. L3164-1).
maxJoursTravaillesParSemaine HARD Legal (working time) No staff member can work more than six days in the same week (Labour Code art. L3132-1).
reposHebdomadaireMinimal HARD Legal (working time) Each staff member is entitled, in each week, to a weekly rest of 35 consecutive hours: 24 hours (art. L3132-2) to which the 11 hours of daily rest (art. L3131-1) are added. A rest straddling the Monday counts in full for the week it falls in. A minor is entitled, on top, to two consecutive rest days within each calendar week, from Monday 00:00 to Sunday 24:00 (art. L3164-2 and L3121-35): a Sunday and the Monday after it are each a rest day of their own week, but form the pair of neither. Conventional derogations assume an extended agreement or a labour-inspectorate authorisation: they are not presumed.
travailContinuMax HARD Legal (working time) No uninterrupted work period beyond the cap for the animateur’s age at the timeslot’s date: 6 hours for an adult (art. L3121-16), 4 h 30 for a minor (art. L3162-3). The application only asks for an adult’s break beyond six hours of continuous work, a knowing departure from “reaches six hours” (art. L3121-16), without which a six-hour timeslot (14:00-20:00, for instance) would be a hard breach nobody can cover, the break falling at its end. Beyond that, every break due must be taken, either as a gap in the grid of at least the configured duration, or relayed by a colleague at the same stand holding a seat for the whole break. A break nobody can take is a hard breach. The duration is the configured one, at least 20 minutes for an adult and raised to 30 minutes for a minor: that floor is a matter of public policy. It is also what allows the break to be deducted from the daily and weekly caps: in a plan with no hard breach, every break deducted was indeed taken.
coupureRepasObligatoire HARD Organisation (meals) Anyone working on both sides of a meal window must have, entirely within that window, a free break of the configured duration (60 min by default, lunch 12:00-14:00 and evening 19:00-21:00). Starting one’s day at the opening of the window, or ending it at its closing, owes nothing: one ate before, or will eat after. A day straddling both windows owes two breaks. This is not an obligation of the Labour Code — the only break it imposes is the 20 minutes at the sixth hour (art. L3121-16), carried by travailContinuMax — but the event’s organisation rule, held hard by choice. The legal break and the meal break remain two distinct things: the one-hour break does not stand in for a relay, and a relay does not stand in for a meal — even if a one-hour gap does cut the six-hour sequence in passing. Between two possible breaks, a soft placement term (weight 1, no level) prefers the one set by the “meal break placement” setting: end of midday and start of evening by default, the start or the end of each window, or no preference.
coupureRepasPlacementPrefere SOFT Preferences Term of the meal break rule: between two possible breaks in the same window, prefer the one set by the placement setting. By default, the one the window leans towards: at lunch the later one — 13:00-14:00 rather than 12:00-13:00, the stands have just opened — and in the evening the earlier one, to reopen afterwards; “start” or “end” impose the same direction on both windows, “none” switches the preference off. Stand coverage, for its part, is hard: it is its trade-off with this preference that spreads the rotation.
incompatibiliteAdHoc HARD Ad hoc constraints Two staff members declared incompatible must never work on the same timeslot.
affiniteAdHoc SOFT Ad hoc constraints Pair of staff members to favour: every timeslot where both are assigned to the same stand is rewarded. A soft constraint: it favours co-assignment when possible, without ever forcing it.
arriveeGroupee SOFT Ad hoc constraints Arrival group (carpooling, 2 to 4 staff members): the members work the same days, arrive and leave together, within the tolerance (30 min by default, adjustable in Settings › Organisation). Each day and each pair of the group costs the minutes of gap beyond the tolerance, at arrival as at departure, and a flat two hours when one works and the other does not. No stand constraint: members may hold different stands. A soft constraint: it yields to the legal rules and to load balance.
animateurVerrouilleCreneauFige HARD Schedule lock A staff member locked on a timeslot (for example after a validated swap) keeps what they hold there: the solver can neither take it from them nor give them another one, without freezing the rest of their schedule.
standComplexeAvecReferent MEDIUM Organisation quality Every stand should have at least one lead on each timeslot.
equilibrerCharge MEDIUM Organisation quality The workload should be spread fairly among staff members.
stabiliteDuPlanPublie MEDIUM Organisation quality Once a schedule is published, each person moved off a seat they held in the published plan costs: the solver disturbs people already notified only if the gain is worth the disturbance. Silent as long as nothing has been published; a shift the published plan did not have — another day, other hours or another stand — remains free.
repartitionMineursParCreneau MEDIUM Organisation quality On a timeslot, a stand should not have more minors than adults.
experienceRequisePourStandsPremium MEDIUM Organisation quality A premium stand should not be held by a beginner in its game category.
eviterRoulementStandsPremium MEDIUM Organisation quality On a premium stand, limit the number of different staff members who take turns there beyond one crew: continuity is favoured.
eviterChangementEmplacementEloigne MEDIUM Organisation quality Between two consecutive timeslots, avoid switching a staff member to a stand whose location is far (> 300 m as the crow flies) from that of the previous timeslot.
trajetInsuffisantEntrePostes MEDIUM Organisation quality Between two seats of the same staff member on the same day, separated by a gap, at two different locations: the gap must leave time to walk from one to the other (crow-fly distance × detour factor ÷ walking speed). Each missing minute beyond the tolerance is penalised. Two seats that touch remain the business of eviterChangementEmplacementEloigne: a pair is never judged by both rules.
limiterEmplacementsParJour MEDIUM Organisation quality On a single day, limit the number of distinct locations visited by a staff member (adjustable ceiling, 3 by default): beyond it, the day is scattered whatever the distances.
eviterEnchainementStandsEpuisants MEDIUM Organisation quality Between two consecutive timeslots, avoid chaining a staff member onto two physically exhausting stands with no rest or easier stand in between.
eviterFermeturePuisOuverture MEDIUM Organisation quality After a shift that ends late (22:00 by default), avoid an early start the next day (10:00 by default): 12 h of rest is then wanted rather than the legal minimum. An organisation preference, not an obligation of the Labour Code: only the minutes above the legal daily rest are counted here, those below remain the business of reposQuotidienMinimal, which holds them hard. The rule is therefore silent when the law already demands as much (a minor, 12 h; under 16, 14 h).
appreciationIncompatible MEDIUM Organisation quality The administrator’s appraisal covers no game category offered by the stand.
souhaitsIncompatibles MEDIUM Organisation quality None of the game categories offered by the stand appears in the staff member’s declared wishes.
limiterTypologiesDistinctesParAnimateur MEDIUM Organisation quality A staff member should work on a small number of game categories (adjustable ceiling, 2 by default) across the whole edition, and not only on one day: two categories the same afternoon and two a week apart count the same.
maxJoursConsecutifsTravailles MEDIUM Organisation quality A staff member should not work more consecutive days than the ceiling set in Settings › Organisation (eight by default) without at least one rest day: fewer is possible, more should not be. A preference by default; an edition that wants a blocking ceiling makes it mandatory, and a plan that exceeds it can then no longer be delivered. An organisation rule, never a legal one: no article of the Labour Code requires a rolling count (L3132-1 is read over the calendar week, Cass. soc. 13 Nov. 2025, no. 24-10.733).
favoriserMixiteDesNiveaux SOFT Preferences When a lead is present on a timeslot, pair a beginner with them to encourage skill growth.
equilibrerCreneauxPenibles SOFT Preferences Spread demanding timeslots (exhausting or premium stands) fairly among staff members.
preserverBufferPolyvalents SOFT Preferences Keep at least one all-rounder staff member (all-rounder game category) free on each timeslot, so the schedule can be repaired in case of a last-minute absence.

<!-- catalogue:fin -->

A mistake, an omission? Fix this page on GitHub. (external site)

A question no guide answers?

Let’s talk See hosting