ADR-0032: When a feature changes status
- Status: accepted
- Date: 2026-11-09
- Accepted: 2026-11-09
- Deciders: @fzipi, @xanadu, @M4tteoP, @airween
- Category: Clarification
Context
ADR-0001 defines the four statuses and the rule for the initial Core set: the intersection of
the three surveyed engines, restricted to what OWASP CRS v4 or the engines’ recommended
configurations use. It says moving a feature into or out of Core needs an ADR, but not when a
feature should move at all, and nothing says when an Engine-specific name becomes
Extended. Engines keep adding features: libmodsecurity v3.0.17 added
MULTIPART_DUPLICATE_PART_HEADER, MULTIPART_FILENAME_CHARSET and
MULTIPART_FILENAME_LANGUAGE, which Coraza already had, leaving three Engine-specific
variables with two implementations.
The current split in compat/matrix.json (2026-11-09) shows the practice the statuses grew
from: every Extended feature has two or three implementations (57 and 77), every Core
feature three (one with a known gap), and Engine-specific names one, apart from the three
variables above.
Decision
Status transitions are defined in spec/00-conventions.md#status-transitions:
Engine-specifictoExtendedwhen at least two engines implement the feature compatibly, its entry has full Syntax and Semantics, and a test exercises it. This is a MINOR change with no ADR, unless the engines disagree on what would be specified, which needs a Divergence ADR first.ExtendedtoCorewhen all three surveyed engines implement it and OWASP CRS v4 or an engine’s recommended configuration uses it, through an ADR (MAJOR). An engine that fails its tests gets acompat/known-gaps.mdrow.- Demotions from Core, and moves to
Deprecated, need an ADR (precedents ADR-0025 and ADR-0011). A feature left with fewer than two implementations returns toEngine-specific. Deprecatedback toExtendedthrough an ADR that gives the entry full Syntax and Semantics and tests withrequires:; the two-engine rule does not apply, since the tests are skipped until engines implement the feature (ADR-0033).
Options considered
Extendedonly when all three engines implement it: 57Extendedfeatures have two implementations, so they would have to be grandfathered or demoted, and “SHOULD, declared per engine” already covers an engine that lacks one; rejected.- At least two engines for
Extended(chosen): matches current practice and the two-engine rule for accepting an ADR. Coreon CRS use alone: would make an engine non-conforming as soon as CRS adopts a feature it lacks; rejected in favour of the ADR-0001 rule, all three engines and CRS use.
Consequences
- For engines: adding a feature a second engine already has is the step that makes it
portable (
Extended). - For this repository: the three multipart variables above meet the
Extendedrule once their entries are fully specified and tested. - For rule authors:
Coreremains what a portable ruleset may rely on;Extendedmeans two or more engines, declared per engine.
Tests
None; this records process. tools/validate.py already enforces that requires: names only
Extended features and that every Core feature has a test.