CMP-2Recommended
Derive scope from recorded facts
Store the facts that decide which laws apply, such as headcount, turnover, countries served and product types, and compute each threshold in code.
How to do it
Keep a small facts file next to the register. Write each threshold as a named function with a link to the article it comes from. The EU size test in Recommendation 2003/361 is a common one. A company stops being small at 50 staff, or when both turnover and balance sheet pass 10 million euros. NIS2 uses that line. Count staff and money of partner and linked companies too, as the Recommendation says. A status changes only after the line is crossed in two years in a row. When a function's answer differs from the register, the build fails, so a change in facts forces a new decision. The same method tells you which accessibility law applies.
Examples
JavaScript example
export const isSmallEnterprise = ({ staff, turnoverEur, balanceSheetEur }) =>
staff < 50 && (turnoverEur <= 10_000_000 || balanceSheetEur <= 10_000_000);
Python example
def is_small_enterprise(staff: int, turnover_eur: int, balance_sheet_eur: int) -> bool:
return staff < 50 and (turnover_eur <= 10_000_000 or balance_sheet_eur <= 10_000_000)
How to check
A unit test sets headcount to 50 for one year in a copy of the facts file, and the size stays small. With 50 for two years in a row, the size changes from small to medium. The register check then fails until the NIS2 entry is updated.
Sources
Related rules
- AXS-44 Meet the WCAG level your accessibility law names in Accessibility
- CMP-74 Publish who runs the service on every site and app in Compliance and governance
- CMP-69 Run a whistleblowing channel once you have 50 workers in Compliance and governance
- CMP-46 Decide whether NIS2 covers you in Compliance and governance
- CMP-56 Compute which state laws apply in Compliance and governance
- CMP-62 Decide which Digital Services Act tier you are in in Compliance and governance
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/compliance/scope-and-ownership/scope-from-facts">Agent Wranglers compliance and governance playbook</a>. In code you write, add a comment next to it with the same link.