claude-skills/scripts/evals/fixtures/dora
Alireza Rezvani e9932ea017
feat(ra-qm): nis2-readiness and dora-readiness plugins (#1148)
* feat(ra-qm): nis2-readiness and dora-readiness plugins

Two EU cyber laws already in force had no coverage: NIS2 (Germany's
NIS2UmsuCG since 6 December 2025, BSI registration within three months)
and DORA (since 17 January 2025, register of information and major-incident
reports).

nis2-readiness, four deterministic stdlib scripts:
- nis2_scope_classifier.py: Annex I/II sector, Rec 2003/361 size,
  essential/important (Art 3), jurisdiction (Art 26), registration
  (Art 27, BSIG §33), DORA overlap
- nis2_incident_clock.py: significance (Art 23(3), 2024/2690), 24h/72h/
  one-month reports, content, recipients
- art21_gap_check.py: 30 ids across Arts 20, 21, 23, 27 with the
  2024/2690 Annex mapping
- eu_cyber_regime_router.py: NIS2/DORA/CRA/GDPR clocks for one event

dora-readiness, three deterministic stdlib scripts:
- dora_scope_check.py: Art 2 types and exclusions, Art 16, CTPP
- dora_incident_classifier.py: RTS 2024/1772 Arts 6-9 incl. recurring
  incidents, RTS 2025/301 Art 5 clock with the weekend rule
- register_of_information_check.py: Art 30(2)/(3) terms, Art 28(8)
  exit plans, Art 29 concentration

Agents cs-nis2-officer and cs-dora-officer, five commands, six cited
references, two runbooks, trigger and behaviour eval cases. Bundled in
ra-qm-skills (2.14.14); counters, mirrors and listing baseline updated.

Evals: fresh held-out trigger 8/8 (nis2) and 6/8 (dora), 0/16 near-miss
fires; behaviour 10/10 vs 9/10 and 10/10 vs 8/10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L8KYFLdjkQZTLgKqKNigV8

* fix(ra-qm): valid YAML in nis2/dora descriptions; nis2 gate case uses an incident prompt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L8KYFLdjkQZTLgKqKNigV8

* fix(ra-qm): review fixes for the nis2/dora incident clocks

- dora: blank malicious_access no longer yields 'not major'; it leaves the
  incident unclassified (Art 8(1)(a) alone makes it major)
- dora: recurring-major result says the aggregation is approximate and
  to confirm the method with the competent authority
- dora: note when --holidays is missing; docstring says critical_services
  covers every Art 6 condition; exit-code docs match the code
- nis2: epilog matches the documented exit codes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L8KYFLdjkQZTLgKqKNigV8

* fix(ra-qm): bundle description without a skill count, rules-verified date and not-legal-advice footer in nis2/dora

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L8KYFLdjkQZTLgKqKNigV8

* fix(ra-qm): sliding recurring-incident window, strict yes/no parsing, RULES_VERIFIED constant, ra-qm CLAUDE.md lists the readiness plugins

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L8KYFLdjkQZTLgKqKNigV8

* fix(ra-qm): reject report timestamps before the clock start or out of order; document recurring flag and LATE exit code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L8KYFLdjkQZTLgKqKNigV8

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-17 08:15:13 +01:00
..
bank.md feat(ra-qm): nis2-readiness and dora-readiness plugins (#1148) 2026-11-17 08:15:13 +01:00