Conversation
…otations **Added:** - Implemented evidence validation against recent query results, including provenance tracking, IOC extraction, and confidence adjustment - `src/ares/core/evidence_validation.py` - Introduced automatic posting of investigation started, completed, timeout, and failed annotations to Grafana for investigation lifecycle observability - Added `get_suggested_evidence` tool to suggest IOCs extracted from queries for improved evidence recording accuracy - Provided `execute_parallel_queries` and `combine_query_patterns` tools for efficient and parallelized log querying in investigations - Enhanced `Evidence` model with `source_query_id` and `validated` fields for traceability **Changed:** - Updated blue agent investigation orchestrator to post Grafana annotations at start, completion, timeout, and failure of investigations - Refactored query tracking to count only successful (result-producing) queries against adaptive query limits and not penalize failed/empty queries - Made query limits adaptive: increased limits with investigation progress, bonus queries for finding evidence or reaching higher Pyramid of Pain levels, and a hard cap - Updated evidence recording to validate values, adjust confidence if unvalidated, and log provenance - Improved system instructions to document parallel and combined query strategies and explain new evidence validation and IOC suggestion capabilities - Updated default query limit variable names in `Taskfile.yaml` for blue and red agents **Removed:** - Removed old badge section in `README.md` in favor of up-to-date project badges - Deprecated redundant agent thread import in factories for blue and red agents
CAP-831 Implement Adaptive Query Limits for Blue Agent
Description: Objective: Enable the Blue Agent to dynamically adjust its query limits, improving investigation efficiency by granting bonus queries for productive actions and aligning query allowances to investigation phases, while preventing excessive querying. Scope of Work:
Acceptance Criteria:
Additional Notes:
|
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.
Key Changes:
Added:
execute_parallel_queriestool, enablingefficient batch querying for independent investigations
combine_query_patternsto merge multiple regex patterns into a singleLogQL query for better efficiency
failure events, including summary details
Changed:
queries for finding evidence and reaching higher Pyramid of Pain levels
validated/unvalidated
record_evidencenow returns validation status and logs validation metricsget_suggested_evidenceexposes auto-extracted IOCs from queriesqueries for efficiency, with concrete examples
Removed:
favor of new parallel and combined query tools