Skip to main content

Observability and influence tracing infrastructure for multi-agent AI systems.

Project description

Inflion

Inflion

Note: This project was previously released as TraceIQ and has been renamed to Inflion. The API and behavior remain unchanged.

Inflion is a Python library for measuring cross-agent influence in multi-agent AI systems, providing reproducible metrics for semantic drift, propagation risk, and reasoning stability.

PyPI version Python versions License Downloads

InstallationQuick StartScienceDocsCite


The Problem

Modern AI systems increasingly operate through interaction: agents collaborate, critique, retrieve, plan, and self-modify through communication with other agents.

Yet we lack scientific tools to answer fundamental questions:

  • How much did one agent influence another?
  • Did incorrect reasoning propagate through the system?
  • When does collaboration become instability?
  • How can influence be measured reproducibly and rigorously?

Inflion introduces a formal measurement framework for studying influence propagation in autonomous multi-agent AI systems.


Scientific Contributions

Inflion provides three core measurement primitives:

1. Influence Quotient (IQx)

A quantitative metric measuring semantic drift in an agent's output caused by prior agent messages.

IQx = Drift_L2 / (Baseline_Median + ε)

IQx estimates how much reasoning changed due to interaction, enabling measurement of cross-agent cognitive influence.

2. Propagation Risk (PR)

A network-level metric estimating how influence spreads across an agent graph using spectral radius analysis.

PR = max(|eigenvalues(Adjacency_Matrix)|)

PR provides early detection of unstable influence propagation and cascading reasoning errors.

3. Reproducible Influence Experiments

Inflion includes CI-safe experimental pipelines evaluating:

  • ✓ Hint injection and misinformation propagation
  • ✓ Influence stability across agent chains
  • ✓ Cold-start detection behavior
  • ✓ Mitigation policy effectiveness

These experiments support ongoing research into multi-agent AI safety and Contagious Intelligence.


Where Inflion Fits in AI Research

Modern AI tooling focuses on different layers of the stack:

Tool What It Measures
TensorBoard Model training metrics
Weights & Biases Experiment tracking
LangSmith / Prompt tools Prompt execution traces
Inflion Cross-agent influence and reasoning propagation

Inflion introduces a missing instrumentation layer: measurement of cognitive influence between autonomous AI agents.

As multi-agent systems become standard in RAG, planning, robotics, and orchestration, understanding how agents influence each other becomes as critical as measuring accuracy.


Why Inflion Exists

Autonomous AI systems are evolving from isolated models into collaborative agent networks.

However, we currently lack standardized methods to measure:

Challenge Description
Cross-agent reasoning influence How does one agent's output change another's behavior?
Error propagation Do mistakes cascade through agent pipelines?
Stability Is collaborative reasoning stable or chaotic?
Safety risks What are the emergent risks in multi-agent systems?

Inflion was built as a scientific instrument for studying emergent behavior in distributed intelligence.

Inflion is not a dashboard. It is not a monitoring SaaS.

Inflion is measurement infrastructure for multi-agent cognition research.


Research Vision

Inflion is measurement infrastructure for multi-agent AI systems.

As AI shifts from isolated models to collaborative agent networks, system behavior emerges from interactions between models—not from a single model alone. While we can measure accuracy, latency, and loss, we currently lack tools to quantify how reasoning propagates across agents.

Inflion provides reproducible metrics and structured tracking for cross-agent influence, reasoning drift, and propagation dynamics. The goal is not monitoring dashboards, but scientific instrumentation for studying distributed AI cognition.

If collaborative AI becomes the dominant computing paradigm, measuring influence between agents will be as fundamental as measuring model performance.


Features

Feature Description
📊 Influence Tracking Track influence between agent interactions
🎯 Semantic Drift Measure drift using embedding similarity
🌐 Propagation Risk Estimate network-level influence spread
Anomaly Detection Quantile-calibrated alerting system
🧊 Cold-Start Handling Statistical validation during warm-up
🔬 Research Pipelines CI-safe reproducible experiments
🔌 Integration Ready Templates for RAG and multi-agent orchestration

Installation

Core library (lightweight, no heavy ML dependencies):

pip install inflion

With real embedding models:

pip install "inflion[embedding]"

With research plotting tools:

pip install "inflion[research]"

Full installation:

pip install "inflion[embedding,research]"

Real-World Use Cases

Inflion is designed for real multi-agent AI systems:

  • Evaluate RAG hallucination propagation Measure whether incorrect retrieval contaminates downstream reasoning.

  • Audit autonomous agent pipelines Track which agents influence critical decisions in planning systems.

  • Study collaborative reasoning stability Detect when agent feedback loops amplify errors.

  • AI governance and accountability Build audit trails showing how decisions evolved across agents.

  • Research on Contagious Intelligence Quantify cognitive transfer between AI systems in controlled experiments.

Inflion acts as a measurement microscope for studying distributed AI cognition.


Quick Example

from inflion import InfluenceTracker

tracker = InfluenceTracker(use_mock_embedder=True)

result = tracker.track_event(
    sender_id="agent_a",
    receiver_id="agent_b",
    sender_content="We should switch to renewable energy.",
    receiver_content="Good point. Renewables are the future."
)

print("Drift:", result["drift_l2_state"])
print("IQx:", result["IQx"])
print("Alert:", result["alert"])

tracker.close()

Output:

Drift: 0.847
IQx: 1.23
Alert: False

What Inflion Outputs

Each tracked interaction returns structured metrics you can log, visualize, or audit:

  • drift_l2_state — semantic drift magnitude
  • IQx — normalized influence score
  • alert — anomaly signal (calibrated)
  • valid — whether baseline is stabilized
  • receiver_state — receiver baseline summary

Research Applications

Inflion has been evaluated on synthetic multi-agent benchmarks and integrated into experimental LLM pipelines involving chained, retrieval-augmented, and tool-using agents.

The framework enables reproducible studies of:

  • Influence propagation across agent graphs
  • Stability of collaborative reasoning loops
  • Detection of misleading hint injection
  • Mitigation policy effectiveness
  • Cold-start behavior in autonomous agents

All experiments are reproducible through CI-safe pipelines that generate structured summary.json artifacts for verification.


Integration Patterns

Inflion works with common agent architectures:

Pattern Description
LLM-only agents Track message → response influence
RAG systems Include retrieved context in receiver input
Tool-using agents Track tool output influence
Memory agents Track before/after memory state
Multi-agent orchestrators Full conversation influence graphs

Instrumentation (preview — v0.1.6)

Inflion now ships an adapter abstraction so framework integrations can plug into the tracker without touching core. v0.1.6 includes only the contract and a no-op reference adapter; real LangGraph / LangChain / CrewAI adapters land in v0.1.7.

from inflion import InfluenceTracker, TrackerConfig, DemoAdapter, apply_temporal_decay

tracker = InfluenceTracker(
    config=TrackerConfig(storage_backend="memory"),
    use_mock_embedder=True,
)
adapter = DemoAdapter(tracker, run_id="demo-1")

adapter.emit({"from": "planner", "to": "researcher", "input": "...", "output": "..."})

decayed = apply_temporal_decay(
    list(tracker.storage.get_all_scores()),
    list(tracker.storage.get_all_events()),
    lambda_=0.1,
    unit="hours",
)

Try the bundled mock pipeline:

python -m inflion.examples_runtime.mock_pipeline_demo

Adapters are thin instrumentation layers. Inflion-Core remains framework-agnostic — adapters must not leak framework types into core metrics or storage.


What Inflion Is NOT

Limitation Explanation
Not causal inference Metrics measure correlation, not proven causation
Not intent detection Cannot determine manipulation intent
Not semantic understanding Measures embedding-level drift
Not a production security system Research measurement tool
Not plug-and-play safety Thresholds require calibration per environment

Research Context

Inflion supports research into:

  • 🔬 AI-to-AI influence modeling
  • 🧬 Contagious Intelligence hypothesis
  • ⚖️ Multi-agent reasoning stability
  • 🛡️ Autonomous system safety
  • 🧠 Distributed cognition in AI systems

Detailed metric definitions and implementation notes are available in the project documentation.


Documentation

Document Description
Metrics Metric definitions and formulas
Integration Integration patterns
CLI Reference Command-line interface
Configuration TrackerConfig options
Architecture System design
Theory Mathematical foundations
Experiments Research testbed

CLI Help: inflion --help


Reproducibility & CI

Inflion experiments are CI-safe:

  • ✅ Quick mode never hard-fails CI
  • ✅ Proof mode enforces strict statistical validation
  • ✅ Artifacts upload even on failures
  • ✅ Experiments produce structured outputs

This ensures reproducible research pipelines.


Contributing

Contributions welcome! See CONTRIBUTING.md

# 1. Fork the repository
# 2. Create a feature branch
git checkout -b feature/amazing-feature

# 3. Run tests and linter
pytest
ruff check src/ tests/

# 4. Submit a Pull Request

Citation

If you use Inflion in your research, please cite:

@software{inflion,
  title = {Inflion: Measuring AI-to-AI Influence in Multi-Agent Systems},
  author = {Vasavada, Anarv and Contributors},
  year = {2026},
  url = {https://github.com/Anarv2104/Inflion}
}

License

Inflion is open-source under the MIT License, enabling academic and commercial use with minimal restrictions.

See the full license text at: https://github.com/Anarv2104/Inflion/blob/main/LICENSE


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inflion-0.1.6.tar.gz (222.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inflion-0.1.6-py3-none-any.whl (72.5 kB view details)

Uploaded Python 3

File details

Details for the file inflion-0.1.6.tar.gz.

File metadata

  • Download URL: inflion-0.1.6.tar.gz
  • Upload date:
  • Size: 222.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for inflion-0.1.6.tar.gz
Algorithm Hash digest
SHA256 121df0baff49c2176ed86af86c1e41a3e9ce9f4efef2e52548c67b166c781630
MD5 4ea29cef0897a112fd1391cb9d419680
BLAKE2b-256 e65a840f7934792558ee78af11251962c245e3671e11615f126d7a4feea80293

See more details on using hashes here.

Provenance

The following attestation bundles were made for inflion-0.1.6.tar.gz:

Publisher: publish.yml on Anarv2104/Inflion

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file inflion-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: inflion-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 72.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for inflion-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e9d76837cb1bde2ca387c9d7ae560e13efc441496e67202252a7db5e1edeb53e
MD5 350a1aa12587c9edcb25ec9b29ef1dd4
BLAKE2b-256 3b39735a269e2a3a2cd2d3d349ae2fe7c92d27c44cd2ab5b3c089710c2d26dbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for inflion-0.1.6-py3-none-any.whl:

Publisher: publish.yml on Anarv2104/Inflion

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page