Feat/gleif elf legal form#13
Merged
Merged
Conversation
OpenAleph 5.3 shipped percolation/Screening and, alongside it, the
inverse endpoint GET /entities/{id}/mentions: given a named FtM entity,
return Document-family entities (leaks, court records, news archives)
whose indexed text contains any of the entity's name variants. Verified
live against the flagship instance (anonymous read works; response
carries total + per-document collection label/category/UI link).
The adapter gains fetch_mentions(entity_id): parses total + up to 5
documents (title, collection, category, url), degrades to None on any
failure (pre-5.3 instances 404). The lookup pipeline's OpenAleph
strategy cascade enriches the top 2 matched hits: the mentions payload
is attached to hit.raw["openaleph_mentions"] and the card summary gains
"· mentioned in N documents".
Deliberately informational: mentions are name-derived (percolator
match_phrase over name/alias/previousName — identifiers never
participate), so they are never treated as identifier corroboration,
and no risk signal fires. The per-document collection category is
captured for a possible future category breakdown (leak/court/
sanctions), to be revisited separately.
Also:
* export.py / reporting/html_report.py: replace the Python-3.11-only
datetime.UTC alias with timezone.utc (identical object) so the suite
also runs on 3.10 environments.
* test_mcp.py: guard the optional mcp SDK import with
pytest.importorskip (same pattern as libcovebods/bods-fixtures).
Tests: 5 new (mentions parsing incl. label fallback, 404 degradation,
stub mode, strategy enrichment, enrichment failure tolerance).
Suite: 2163 passed, 0 errors.
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.
No description provided.