Add Resolver Agent – 6th agent for conflict resolution and system resilience#60
Draft
Add Resolver Agent – 6th agent for conflict resolution and system resilience#60
Conversation
…ilience Co-authored-by: Stacey77 <54900383+Stacey77@users.noreply.github.com>
Co-authored-by: Stacey77 <54900383+Stacey77@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Resolver Agent for conflict resolution and system resilience
Add Resolver Agent – 6th agent for conflict resolution and system resilience
Feb 20, 2026
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.
Adds a comprehensive Resolver Agent as the 6th intelligent agent in the Agentic AGI robotics system, acting as the system mediator and health guardian across all other agents.
Core Agent
agents/base_agent.py– Abstract base with state management, typed message passing, and lifecycle hooks shared by all agentsagents/resolver_agent.py– Priority-6 (highest) orchestrator integrating all subsystems; exposesintegrate_with_agents(),resolve_conflict(),recover_from_error(),arbitrate_resources(),detect_deadlock(), andgenerate_health_report()Resolver Subsystems (
resolver/)conflict_resolution.py– Detects 4 conflict types (perception/planning, control, task, resource); resolves via 6 strategies: priority, voting, expertise, cost, time-based, MLerror_recovery.py– Classifies 6 error types across 5 severity levels (INFO→FATAL); auto-recovers with per-type strategies and escalates afterMAX_RECOVERY_ATTEMPTSarbitrator.py– Priority queue, round-robin, weighted-fair, and emergency-override arbitrationhealth_monitor.py– Per-agent CPU/memory/response-time/error-rate tracking with threshold alerts and trend-based failure predictiondeadlock_detector.py– DFS cycle detection on wait graph; breaks deadlocks by preempting the lowest-priority participantfallback_planner.py– Depth-ordered fallback hierarchies (0=retry → 3=safe shutdown) for 5 subsystemspredictor.py– PyTorch feed-forward network for ML conflict prediction; falls back to heuristics when PyTorch is unavailableIntegration & Infrastructure
ros2_interface/resolver_node.py– ROS2 node subscribing to all 5 agent status topics +/system/errors//system/conflicts; publishes resolutions, health, alerts, and recovery actions; includes no-op stubs so the module imports cleanly without ROS2config/– YAML configs for resolver behaviour, agent priorities, and per-error-type recovery strategiesdashboard/– Flask dashboard with Server-Sent Events for real-time agent health; degrades gracefully to console polling without FlaskUsage
Tests
87 tests across 6 files covering unit, integration (all 5 agents), and edge cases (max retry escalation, deadlock cycle breaking, fallback depth).
Original prompt
Add Resolver Agent - The 6th Agent for Conflict Resolution and System Resilience
Objective
Add a comprehensive Resolver Agent as the 6th intelligent agent in the Agentic AGI robotics system. This agent will handle conflict resolution, error recovery, agent arbitration, deadlock breaking, and system health monitoring to ensure robust and reliable robot operations.
Role of the Resolver Agent
The Resolver Agent acts as the "System Mediator and Health Guardian" - it monitors all other agents, resolves conflicts, handles errors gracefully, and ensures the system continues operating even when problems arise.
Technology Stack
Core Components to Implement
1. Resolver Agent Module (
agents/resolver_agent.py)2. Conflict Resolution Algorithms (
resolver/conflict_resolution.py)Types of Conflicts to Handle:
a) Agent Disagreements
b) Conflict Resolution Strategies
c) Conflict Prediction
3. Error Recovery System (
resolver/error_recovery.py)