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
- Copy
0000-template.mdtoNNNN-short-slug.mdwith the next free number. - Fill every header field.
Statusisproposeduntil maintainers of at least two implementing engines agree, thenaccepted, with anAccepteddate line underDate.supersededandrejectedare terminal. - A
DivergenceADR must list at least one test under## Teststhat encodes the outcome. The validator checks the paths exist. - Add a row to the index below.
uv run python tools/validate.pyfails if a file and the index disagree. - Update the affected section of
spec/in the same PR.
Index
| ADR | Title | Category | Status |
|---|---|---|---|
| 0001 | Status labels and the meaning of Core | Clarification | accepted |
| 0002 | Directive, operator, action and transformation names match case-insensitively | Divergence | accepted |
| 0003 | Test formats: SecRules Test Set JSON for units, go-ftw-derived YAML for engine profiles | Clarification | accepted |
| 0004 | Canonical names and required aliases | Divergence | accepted |
| 0005 | Unknown versus unsupported directives | Divergence | accepted |
| 0006 | Core ctl: options | Divergence | accepted |
| 0007 | Persistent collections are Extended | Divergence | accepted |
| 0008 | Collection keys match case-insensitively | Divergence | accepted |
| 0009 | Strict per-phase evaluation is normative; early evaluation must be invisible | Clarification | accepted |
| 0010 | Engine-specific names are reserved | Clarification | accepted |
| 0011 | ModSecurity v2 legacy features are Deprecated | Deprecation | accepted |
| 0012 | uppercase is promoted to Core | Extension | accepted |
| 0013 | Comment lines ending in a backslash | Divergence | accepted |
| 0014 | SecDefaultAction constraints | Divergence | accepted |
| 0015 | Every rule carries an id | Divergence | accepted |
| 0016 | skipAfter scope ends with the phase | Divergence | accepted |
| 0017 | The default phase is 2 and is never inherited | Divergence | accepted |
| 0018 | Core regular-expression syntax is the RE2-compatible subset | Divergence | accepted |
| 0019 | DURATION is wall-clock microseconds since the engine created the transaction | Divergence | accepted |
| 0020 | JSON argument names are unspecified | Clarification | accepted |
| 0021 | The portable logging contract is rule ids, messages and logdata | Clarification | accepted |
| 0022 | REQUEST_BODY without a body processor | Divergence | accepted |
| 0023 | Reference adapters live in this repository | Clarification | accepted |
| 0024 | Unparsable @ipMatch entries are configuration errors | Divergence | accepted |
| 0025 | SecRequestBodyInMemoryLimit is Extended, not Core | Divergence | accepted |
| 0026 | compressWhitespace treats the byte 0xA0 as whitespace | Divergence | accepted |
| 0027 | @rx is compiled dot-all; line anchors need (?m) | Divergence | accepted |
| 0028 | skipAfter resolves to a SecMarker, never to a rule id | Divergence | accepted |
| 0029 | Tag and message rule exceptions select by exact string | Divergence | accepted |
| 0030 | A negated operator applies per value | Clarification | accepted |
| 0031 | htmlEntityDecode decodes the ASCII named entities of the WHATWG table | Divergence | accepted |
| 0032 | When a feature changes status | Clarification | accepted |
| 0033 | The sanitize* actions are Extended and mask with a fixed string | Divergence | accepted |
| 0034 | ctl:ruleEngine=Off is final for the transaction | Divergence | accepted |
| 0035 | noauditlog affects relevance only; the audit record lists every logged match | Divergence | accepted |
| 0036 | Parameterised transformations, defined by name | Extension | accepted |
| 0037 | & applies to every variable and counts a scalar as 1 | Divergence | accepted |
| 0038 | The URI variables are percent-decoded once, from phase 1 | Divergence | proposed |
| 0039 | Engine identification variables and behaviour flags | Extension | proposed |
| 0040 | A ? prefix names a variable the engine may not know | Extension | proposed |
| 0041 | Every matched target of a rule is logged with its own logdata | Divergence | proposed |
| 0042 | unicodeNormalizeNFKC applies Unicode NFKC normalisation | Extension | proposed |
| 0043 | evalDepth evaluates a chain once per match of its starter | Extension | proposed |
| 0044 | JSON and JSON_NAMES hold a JSON body, selected with JSONPath | Extension | proposed |