A domain-agnostic, uncertainty-aware multi-agent AI decision framework
pip install cognix-uncertainty-framework==0.1.0 Copy PIP instructions
COGNIX is a framework designed to evaluate decision-making in Multi-Agent AI systems under conditions of distributional shift and sensor degradation. It provides a modular architecture for quantifying uncertainty (Epistemic vs. Aleatoric), fusing multi-agent beliefs, and generating calibrated, risk-aware decisions.
COGNIX is not a monolithic script, but a decoupled, dependency-injected framework built around strict API contracts. The core DecisionEngine coordinates the pipeline without depending on concrete algorithmic implementations.
The framework is divided into pluggable interfaces:
The central research mechanism evaluated by COGNIX flows as follows:
epistemic uncertainty ↓ epistemic prior ↓ GAT attention ↓ collective multi-agent belief ↓ conformal calibration ↓ risk-aware decision ↓ attribution / escalation By explicitly isolating epistemic uncertainty (model ignorance or out-of-distribution shift), COGNIX provides a mechanism to reduce the prior influence of uncertain agents before the network graph routes attention. The specific sender prior evaluated in Experiment 2B showed no descriptive evidence of additional held-out benefit over StandardGAT.
COGNIX is evaluated under a rigorous benchmarking infrastructure (Phase B). In the tested synthetic conditions:
Note: The magnitude of these effects depends heavily on the training quality of the agents and the severity of the distributional shift.
Closed Experiment 2B: official held-out TEST. All 15 frozen runs (NoGraph, StandardGAT, and EpistemicGAT; five paired seeds) were evaluated on 627 scenarios and 187,473 scored timesteps per run. StandardGAT improved BCE relative to NoGraph for every seed, but reduced corruption F1 under the frozen GRAPH_VAL thresholds for every seed. Graph communication's benefit was therefore metric-dependent. EpistemicGAT was approximately neutral to slightly worse than StandardGAT. The prespecified 627-scenario macro-AUROC was undefined because all 107 normal scenarios were single-class; none were dropped. Five-seed comparisons are descriptive, with no prespecified or performed inferential significance test.
q_normal represents P(target = normal) under the TRAIN-derived constructed clean-vs-pseudo task and must not be interpreted as a probability of physical driving safety. p_corruption = 1 - q_normal. These findings concern the evaluated graph sender prior and do not extend the separate synthetic fusion findings above to official TEST. See the comprehensive research report for tables, figures, protocol details, and limitations. Experiment 2B is closed and immutable; its TEST evaluation must not be rerun or retuned.
The ongoing development of COGNIX targets the following scientific objectives:
COGNIX is an early-stage research framework. Users must be aware of the following:
# Clone the repository git clone https://github.com/AdityaR4685/Cognix_.git cd Cognix_ # Install in editable mode (with development dependencies) pip install -e ".[dev]" Dependency Injection Pipeline from cognix.engine.decision_engine import DecisionEngine from cognix.config.schema import CognixConfig from cognix.belief.fusion import EpistemicWeightedFusion from cognix.calibration.conformal import ConformalPredictor # Initialize base domain-agnostic strategies (pure Python / NumPy) config = CognixConfig() fuser = EpistemicWeightedFusion() # Inject into the DecisionEngine (uses graph="no_graph" by default on base installs) engine = DecisionEngine( config=config, belief=fuser, graph="no_graph", mode="production" # Use mode="research" for strict mathematical assertion checks ) # Agents must implement the AgentInterface (or use cognix.agents.adapters) agents = [radar_agent, camera_agent, lidar_agent] # Evaluate the pipeline result = engine.decide(agents, input_data) print(f"Fused Prediction: {result.confidence}") print(f"Total Uncertainty: {result.total_uncertainty}") print(f"Decision Outcome: {result.decision}") Conformal Calibration (Optional Plug-in) To add distribution-free uncertainty calibration, provide a fitted ConformalPredictor:
from cognix.calibration.conformal import ConformalPredictor calibrator = ConformalPredictor() # Fit on calibration split: probabilities shape (N, C), labels shape (N,) calibrator.fit(cal_outputs=val_probs, cal_labels=val_labels) engine = DecisionEngine( config=config, belief=fuser, graph="no_graph", calibrator=calibrator, mode="research" ) Graph Attention Networks (Optional Extra) To utilize relational message passing and Epistemic Graph Attention Networks:
python -m cognix.evaluation.run \ --config configs/benchmark/gat_ablation.yaml \ --output-dir results/gat_ablation/ CARLA Live Demonstration V2 COGNIX includes a real-time, closed-loop demonstration in the CARLA autonomous driving simulator (cognix/evaluation/cognix_live_demo_v2.py). It connects to a running CARLA simulator (Town10HD_Opt), deploys multi-agent epistemic belief fusion, runs inductive conformal prediction, and performs risk escalation and route recovery under interactive or automated sensor faults.
Ensure CARLA 0.9.15+ is running on the target machine:
# Launch the live demonstration runner python -m cognix.evaluation.cognix_live_demo_v2 --host 127.0.0.1 --port 2000 # Automated scenario cycling and telemetry capture python -m cognix.evaluation.cognix_live_demo_v2 --host 127.0.0.1 --port 2000 --cycle-scenarios --duration 120 --output reports/carla_runtime_v1/evaluation_runs/live_agent_uncertainty_demo_001/telemetry_route_efficiency_120s.json Interactive Controls Key Mode / Action Description N Nominal Driving Clear faults and navigate nominal route P Pedestrian Crossing Spawn crossing pedestrian hazard ahead W Adverse Weather Shift weather to heavy rain, fog, and low sun B Road Obstacle / Props Spawn dynamic obstacle ahead 0 Fault: NONE Restore nominal sensor feeds 1 Fault: Darkness Simulate optical blackout / underexposure 2 Fault: Occlusion Simulate 60% camera lens occlusion 3 Fault: Seg Corruption Corrupt semantic segmentation feed 4 Fault: IMU Disturbance Inject Gaussian accelerometer/gyroscope disturbance R Road Recovery Stabilize and align ego vehicle to safe lane waypoint Q / ESC Quit Safe shutdown and actor cleanup Verification Artifacts & Telemetry Full evaluation reports, multi-sensor telemetry traces, and efficiency audits for the live demonstration are archived in: reports/carla_runtime_v1/evaluation_runs/live_agent_uncertainty_demo_001/ See COGNIX_LIVE_DEMO_V2_ROUTE_EFFICIENCY_REPORT.md for the benchmarked route completion, speed profiles, and conformal set size dynamics.
We welcome contributions! Please see our Contributing Guidelines and Code of Conduct for details on how to get started.
This project is licensed under the MIT License - see the LICENSE file for details.
All 2 files in this release have provenance metadata.
graph vision explainability carla llm dashboard marl dev all
uncertainty multi-agent bayesian conformal epistemic
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




