Add AgentLoop, GDPR audit log, guardrail rule 5, full test suite, and eval benchmark #2

Merged
veraflow merged 1 commit from feature/import-full-project into main 2026-06-19 09:56:48 +00:00
Owner
  • agent_loop.py: ReAct-style iterative retrieval with 5 tools (vector_search,
    graph_expand, community_search, conflict_check, parent_article)
  • audit_log.py: GDPR-compliant query logging with SHA-256 hash, monthly JSONL
    rotation, and right-to-erasure (erase_user)
  • guardrail.py: added Rule 5 unanchored citation check and append_disclaimer
  • qa_service.py: integrated AgentLoop replacing single Researcher+Auditor round;
    added user_id parameter for audit logging
  • routes.py: wired user_id into ask_stream; added GDPR erasure endpoint
  • retriever.py: BM25 IDF refit on corpus growth, temporal filter, authority boost
  • document_manager.py: sub_label, valid_from, authority_level on Passage;
    corrections and source reputation learning system
  • tests/: 194 passing tests across 11 files including 4 new test modules
  • tests/eval/: Dutch legal Q&A benchmark (53 items) with CLI runner

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

- agent_loop.py: ReAct-style iterative retrieval with 5 tools (vector_search, graph_expand, community_search, conflict_check, parent_article) - audit_log.py: GDPR-compliant query logging with SHA-256 hash, monthly JSONL rotation, and right-to-erasure (erase_user) - guardrail.py: added Rule 5 unanchored citation check and append_disclaimer - qa_service.py: integrated AgentLoop replacing single Researcher+Auditor round; added user_id parameter for audit logging - routes.py: wired user_id into ask_stream; added GDPR erasure endpoint - retriever.py: BM25 IDF refit on corpus growth, temporal filter, authority boost - document_manager.py: sub_label, valid_from, authority_level on Passage; corrections and source reputation learning system - tests/: 194 passing tests across 11 files including 4 new test modules - tests/eval/: Dutch legal Q&A benchmark (53 items) with CLI runner Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- agent_loop.py: ReAct-style iterative retrieval with 5 tools (vector_search,
  graph_expand, community_search, conflict_check, parent_article)
- audit_log.py: GDPR-compliant query logging with SHA-256 hash, monthly JSONL
  rotation, and right-to-erasure (erase_user)
- guardrail.py: added Rule 5 unanchored citation check and append_disclaimer
- qa_service.py: integrated AgentLoop replacing single Researcher+Auditor round;
  added user_id parameter for audit logging
- routes.py: wired user_id into ask_stream; added GDPR erasure endpoint
- retriever.py: BM25 IDF refit on corpus growth, temporal filter, authority boost
- document_manager.py: sub_label, valid_from, authority_level on Passage;
  corrections and source reputation learning system
- tests/: 194 passing tests across 11 files including 4 new test modules
- tests/eval/: Dutch legal Q&A benchmark (53 items) with CLI runner

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
veraflow/agent!2
No description provided.