Skip to content
Architecture Decision Records

Architecture Decision Records

An ADR records a decision about the SecLang specification: what was decided, which alternatives existed, and why. Write one whenever the engines disagree and the spec has to pick (Divergence), when behaviour is undocumented but agreed (Clarification), when a legacy feature is retired (Deprecation), or when an engine-specific feature is promoted into the spec (Extension).

Process

  1. Copy 0000-template.md to NNNN-short-slug.md with the next free number.
  2. Fill every header field. Status is proposed until maintainers of at least two implementing engines agree, then accepted, with an Accepted date line under Date. superseded and rejected are terminal.
  3. A Divergence ADR must list at least one test under ## Tests that encodes the outcome. The validator checks the paths exist.
  4. Add a row to the index below. uv run python tools/validate.py fails if a file and the index disagree.
  5. Update the affected section of spec/ in the same PR.

Index

ADRTitleCategoryStatus
0001Status labels and the meaning of CoreClarificationaccepted
0002Directive, operator, action and transformation names match case-insensitivelyDivergenceaccepted
0003Test formats: SecRules Test Set JSON for units, go-ftw-derived YAML for engine profilesClarificationaccepted
0004Canonical names and required aliasesDivergenceaccepted
0005Unknown versus unsupported directivesDivergenceaccepted
0006Core ctl: optionsDivergenceaccepted
0007Persistent collections are ExtendedDivergenceaccepted
0008Collection keys match case-insensitivelyDivergenceaccepted
0009Strict per-phase evaluation is normative; early evaluation must be invisibleClarificationaccepted
0010Engine-specific names are reservedClarificationaccepted
0011ModSecurity v2 legacy features are DeprecatedDeprecationaccepted
0012uppercase is promoted to CoreExtensionaccepted
0013Comment lines ending in a backslashDivergenceaccepted
0014SecDefaultAction constraintsDivergenceaccepted
0015Every rule carries an idDivergenceaccepted
0016skipAfter scope ends with the phaseDivergenceaccepted
0017The default phase is 2 and is never inheritedDivergenceaccepted
0018Core regular-expression syntax is the RE2-compatible subsetDivergenceaccepted
0019DURATION is wall-clock microseconds since the engine created the transactionDivergenceaccepted
0020JSON argument names are unspecifiedClarificationaccepted
0021The portable logging contract is rule ids, messages and logdataClarificationaccepted
0022REQUEST_BODY without a body processorDivergenceaccepted
0023Reference adapters live in this repositoryClarificationaccepted
0024Unparsable @ipMatch entries are configuration errorsDivergenceaccepted
0025SecRequestBodyInMemoryLimit is Extended, not CoreDivergenceaccepted
0026compressWhitespace treats the byte 0xA0 as whitespaceDivergenceaccepted
0027@rx is compiled dot-all; line anchors need (?m)Divergenceaccepted
0028skipAfter resolves to a SecMarker, never to a rule idDivergenceaccepted
0029Tag and message rule exceptions select by exact stringDivergenceaccepted
0030A negated operator applies per valueClarificationaccepted
0031htmlEntityDecode decodes the ASCII named entities of the WHATWG tableDivergenceaccepted
0032When a feature changes statusClarificationaccepted
0033The sanitize* actions are Extended and mask with a fixed stringDivergenceaccepted
0034ctl:ruleEngine=Off is final for the transactionDivergenceaccepted
0035noauditlog affects relevance only; the audit record lists every logged matchDivergenceaccepted
0036Parameterised transformations, defined by nameExtensionaccepted
0037& applies to every variable and counts a scalar as 1Divergenceaccepted
0038The URI variables are percent-decoded once, from phase 1Divergenceproposed
0039Engine identification variables and behaviour flagsExtensionproposed
0040A ? prefix names a variable the engine may not knowExtensionproposed
0041Every matched target of a rule is logged with its own logdataDivergenceproposed
0042unicodeNormalizeNFKC applies Unicode NFKC normalisationExtensionproposed
0043evalDepth evaluates a chain once per match of its starterExtensionproposed
0044JSON and JSON_NAMES hold a JSON body, selected with JSONPathExtensionproposed