Repository navigation
fix(law): cite d.lgs. 138/2024 art. 24, and name the source that answered - #70
Merged
Merged
Conversation
…ered The NIS2 directive binds the Member States: in Italy the duty of essential and important entities to take security measures is art. 24 of d.lgs. 138/2024. A critical CVE with no patch now cites that article, downloaded from Normattiva; the scope note and the note on CVEs not yet analysed name the decree, and docs/nis2-compliance.md says when Normattiva is contacted (open item of the 2026-10-17 audit). A verified text said "verified against EUR-Lex" even though EU acts come from Cellar, with EUR-Lex only as the fallback. fetch_provisions_from returns the source that served the page, ActStatus carries it as `origin`, and the report prints it. law_checker.check takes an optional HTTP client, tested on recorded answers. law_fetcher.py is again the same as mailradar's apart from the name. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Merging this PR will not alter performance1 warning
Comparing |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What
docs/nis2-compliance.md:www.normattiva.itis now contacted byscanwhen a critical CVE has no patch;test_nis2_evidencechecks it against the mapping.Same change as maksimtech/mailradar#63;
law_fetcher.pyis again identical to mailradar's apart from the name.law_cacheand the cache format are untouched.Tests (TDD, seen failing first)
tests/test_law_italian_sources.py, no mocks: Normattiva's art. 24 page recorded byte for byte on 2026-10-23 (sha2563a2ace83…ee76), served byhttpx.MockTransportat the HTTP boundary with the GDPR page already used; Cellar, EUR-Lex fallback, Normattiva and cache.fetch_provisions_from.🤖 Generated with Claude Code