Legal rules, breaks and meals
You know why the break, the meal break and their deductions are written as they are, what they cost, what the solver deliberately does not do, and which legal framework applies. Weekly rest, consecutive days and rest after a late closing are in Rest and consecutive days; the organiser-side framework in the Labour Code and schedules and minor staff members.
Break length
A single break duration applies to the edition: dureePauseMinutes, set in Settings, Legal tab (ADR 0048 (external site)). It is read by travailContinuMax, PauseSurPoste, the eligibility filter, all the hour counters and the break analysis, hence by the Diagnostic Problems and by the “Break 18:20 to 18:40” card of the animateur PDF. It is a floor, unlike the two weekly durations which are ceilings: 20 minutes (art. L3121-16 (external site)), refused below by the service, free above; the default is 30 minutes. Giving more than the Code is an organisational choice; the only direction an application must not allow is the other. An assistant sets it with the same floor (modifier_parametres_legaux).
The application demands an adult’s break only beyond six hours of continuous work, whereas art. L3121-16 (external site) makes it due “as soon as daily working time reaches six hours”: a deliberate departure, which travailContinuMax reads as an overrun. A timeslot of exactly six hours (14h-20h) would otherwise become a hard breach impossible to cover, the break falling at its end, where nobody has anything left to relay. The minor’s floor is not stored, it is applied at reading: the 30 minutes of art. L3162-3 (external site) are public order, but an edition granting 25 minutes gives 25 to its adults and 30 to its minors (dureePauseMinutes(true) returns max(value, 30) instead of refusing the setting).
What the break deducts, what the opening span counts
The break is rest, not effective work (art. L3121-1): it is deducted, paid or not, with nothing to declare; in a plan without hard breaches, every deducted break was actually taken (travailContinuMax). The deduction holds everywhere:
| Where | What is measured |
|---|---|
dureeQuotidienneMax, dureeHebdomadaireMax, dureeHebdomadaireMaxDeuxSemaines |
effective work: opening span minus due breaks, summed over the ISO week |
Diagnostic Load, “Hours for payroll” CSV (PlanningHoursService), consulter_charge, fairness (EquiteService), KPIs (PlanningKpiService) |
same (except old snapshots) |
volumetry (ProblemScaleService) |
same for seats held; an empty seat counts its span |
EffectiveWork is the only place this computation lives. A break is due per day and per animateur (a sequence does not cross midnight): every weekly reader groups by day before summing (LegalConstraints.joursAvecParametres). A real gap between two shifts deducts nothing: no sequence there exceeds six hours, the gap is the break. The daily opening span is shown, not bounded: from first start to last end, gaps and breaks included, it is displayed (maximum, days beyond 12 h) in Load, the CSV, consulter_charge and the record timeline; the threshold is a constant (PlanningHoursService.SEUIL_AMPLITUDE_MINUTES) no rule reads, bounding the span awaiting a lawyer’s opinion.
The opening span remains the measure in three cases: the three payroll premium counters (Sunday, public holiday, “Night (payroll)” after 22:00), since a premium is paid on presence and a break cannot be placed on one side of midnight without inventing when it was taken, hence columns that do not add up to the total (the evening is not a premium: a single adjustable hour, ADR 0055 (external site)); an empty seat in the volumetry (hoursToFill), whose break cost is unknown; and the KPIs of an old snapshot, whose seats carry no hours. The Needs screen’s “hourly load” bound likewise raises the two ceilings by the break taken under them (maxDailyAmplitude): dividing a span by an effective-work ceiling would demand people the plan does not need, the only error that matters for a bound announced as a proof.
The legal break: a gap or a relay
A due break is taken in two ways, and the tool knows no third: a gap of at least dureePauseMinutes in the grid (it breaks the sequence, nothing is due on either side) or a relay, a colleague of the same stand holding a seat throughout the break. With neither, it is a hard breach, one point per break that nobody can relay, carried by travailContinuMax, plus the eligibility-exclusion flat penalty for a minor (the exclusions). Due breaks come from PauseSurPoste, which the break report, the animateur PDF and the ICS feed also read: none diverges on what is due or when.
Why hard and not dosed. A relay that does not exist is not a lost comfort: with nobody to hold the stand, the person cannot leave it, their “break” remains effective work (art. L3121-1 and L3121-2; paying it does not change its qualification, Cass. soc. 22 May 2019, no. 17-26.914), and the twenty minutes of art. L3121-16 are not given. This is also what allows the deduction above: the two decisions hold only together. The rule bites on a single-seat stand held more than six hours in a row: no assignment reaches zero hard; recut the grid or open one more seat, there is no weight to lower.
The meal break
coupureRepasObligatoire (hard) and coupureRepasPlacementPrefere (soft) carry the meal break. It is not the Labour Code: the only break it imposes is that of art. L3121-16, which travailContinuMax already carries. It is the event’s organisational rule, for which the source workbook’s grid cuts its midday shifts, held hard by choice under the protected category “Organisation (meals)”.
The rule, exactly
For each (staff member, date) pair and each declared meal window:
- it is due if the person works on both sides: a seat starts before the window opens and a seat ends after it closes (whoever starts at 19:00 ate before, whoever ends at 14:00 will eat after);
- it is satisfied if a free gap of at least the set duration fits entirely in the window (12-13, 13-14 or anything between on 12:00-14:00 at 60 minutes): a 13:45-14:45 break counts only for its first fifteen minutes, the window being the catering service;
- the penalty is the number of missing minutes, never all-or-nothing: a day a quarter hour short and a day that never stops are not the same problem, and a step would leave no slope to descend;
- there is one break per window crossed: a 10:00-23:00 day owes two.
The break is one hour by default (coupureRepasMinutes): a two-hour window splits into two whole timeslots (12-13 or 13-14 at midday, 19-20 or 20-21 in the evening), the event’s real organisation. A window shorter than the break it demands is set aside outright (FenetreRepas.depuis): penalising an entry is not the score’s role. A meal break is a break within the meaning of art. L3121-16: it breaks the continuous sequence, the six-hour counter restarts from zero (PauseSurPoste.sequences breaks on any gap of at least the legal break; RepasConstraintsTest locks it, nothing in the code writes it).
The rotation and what it costs
Offering the choice between 12-13 and 13-14 assumes two distinct timeslots at midday and someone holding the stand while the others eat: the stand’s midday opening window names its own headcount, otherwise a rotation demands two full crews. A grid of contiguous blocks (11:00-12:00 then 12:00-13:00) needs no adjustment. The 11 h daily rest is still due between the end of the evening and the next morning: the Needs screen’s floor does not see it and may announce a comfortable margin while part of the headcount is unusable.
coupureRepasPlacementPrefere then separates 12-13 from 13-14 by penalising the distance to the end of the window it leans toward: at midday the latest (stands have just opened), in the evening the earliest (to reopen afterwards). It reads what the person could choose: a day leaving the whole midday free costs nothing. Stand coverage being hard, its trade-off with this preference spreads the rotation. The direction is the placementRepas setting (Settings › Organisation): FIN_MIDI_DEBUT_SOIR by default; DEBUT or FIN impose the same direction on both windows; AUCUN switches the preference off without touching the break, still due. The screen has a single line, “Meal break”, whose level can be set; the placement term stays soft, weight 1 (ADR 0123 (external site)).
Two independences
Independent of the legal break: a relay says the twenty minutes of art. L3121-16 take place, it says nothing about lunch; satisfying one never exempts from the other (a one-hour gap breaks the six-hour sequence, the only thing in common). Independent of modeGrille: meal windows travel as problem facts (FenetreRepas, projected from ParametresLegaux) on any grid. On a grid where a single timeslot covers the whole window (a 10:00-20:00 shift in one block), the holder cannot step away: no assignment reaches zero hard; recut the grid or switch the rule off.
Where the other screens read it
The break report lists the due break, the largest free gap and what is missing, through the same CoupureRepas as the rule. The Needs screen counts the break in its floor (fifth bound of StaffingAnalyzer), but StaffingResource passes it the windows only if the rule is active: a rule the solver need not honour must not raise the number of staff members to recruit. A seat covering the whole window leaves its holder no gap to eat; a seat overflowing on both sides raises nothing: that is the infeasible grid above.
The Animation collective agreement (ÉCLAT, IDCC 1518)
It does not apply: the organisation confirmed it does not fall under it; everything the code cites is the Labour Code alone. This is a declared fact, not a legal verification. If it applied, art. 5.3 would impose a 45-minute break on every day (the 30 minutes kept are under that floor) and cap the span at 12 h, and art. 5.2 would give two consecutive rest days to every employee, which would forbid twelve days in a row. One reservation remains to be lifted: a Légifrance page rendered these articles “not in force” whereas the 2024 consolidated texts carry them “in force, extended”.
Deliberately out of scope
Average weekly duration of 44 h over 12 weeks (L3121-22 (external site)). An event covers a few ISO weeks at most: the solver knows neither the previous weeks nor the following ones. This is a structural limit. The check belongs to the HR department, from the weekly total that Planning by person exposes.
Night work of adults (L3122-1 (external site) and following). chevaucheNuit() is consulted only by the minors' rules, although the shipped scenarios include a nightly timeslot every day. Qualifying as a “night worker” depends on a threshold and a regularity, but also on the contract, a collective agreement or an authorisation from the labour inspectorate, facts the application does not hold. The exact numbering of the articles remains unverified: manual check until then, with a lawyer.
| Other subject | Why out of scope |
|---|---|
| Overtime, annual quota (L3121-30 (external site)) | The schedule produced is the basis of the count, not the count |
| Nature of unavailabilities | joursIndisponibles is an untyped Set<LocalDate>: it is impossible to tell a statutory rest, paid leave and a convenience apart |
| Inspectorate authorisation for under-16s (L4153-3 (external site), D4153-2 (external site)) | Administrative data absent from the model, to be checked manually |
| Sector derogation for public holidays (R3164-2 (external site)) | Not investigated; the most protective default applies |
| Sunday rest of minors (L3132-3 (external site), L3164-3 (external site) to L3164-5 (external site), R3164-1 (external site)) | The derogations of L3132-4 and L3132-8 do not apply to under-18s, and only apprentices in twelve listed sectors may work on Sunday. The organiser’s sector and each staff member’s status are facts the repository does not contain: a minor placed on a Sunday is accepted, to be checked manually |
A mistake, an omission? Fix this page on GitHub. (external site)