Skip to main content

Coreason MACO: A Multi-Agent Collaborative Orchestrator for robust strategic reasoning and graph-based execution.

Project description

CoReason Runtime Engine ("The General")

Multi-Agent Collaborative Orchestrator (MACO)

License: Prosperity 3.0 CI/Status Ruff Documentation

Overview

coreason-maco is the runtime engine designed to transform AI from a "Chatbot" into a "Strategic Simulator." It executes pre-defined, deterministic workflows ("Recipes") where multiple specialized AI agents collaborate, debate, and verify each other's work.

As the Orchestrator, it manages a team of specialized agents to:

  • Break down complex problems into steps.
  • Execute parallel research streams.
  • Debate findings using a "Council of Models" (Architectural Triangulation).
  • Visualize the entire thought process in real-time.

Features

  • "Glass Box" Visualization: Exposes internal state in real-time. Users can see exactly which agent is working, what data they are accessing, and where they are in the process.
  • Architectural Triangulation ("The Council"): Automatically "triangulates" answers by asking three distinct models (e.g., OpenAI, Anthropic, DeepSeek) and having a fourth "Judge" agent synthesize the consensus.
  • Counterfactual Simulation ("What-If" Analysis): Allows users to "Fork" the reasoning process to explore different scenarios without losing original data.
  • GxP Compliance & Determinism: Ensures workflows are reproducible. Running the same "Recipe" with the same inputs and "Seed" yields the exact same result.
  • Secure Identity Propagation: Propagates UserContext (Identity Passport) securely to all workers and tools, ensuring "On-Behalf-Of" execution without leaking tokens in UI events.

Installation

pip install coreason_maco

Usage

Here is how to initialize and execute a workflow using coreason-maco:

import asyncio
from coreason_maco.core.controller import WorkflowController
from coreason_maco.infrastructure.server_defaults import ServerRegistry

# Optional: Import UserContext if available
try:
    from coreason_identity.models import UserContext
except ImportError:
    UserContext = None

async def main():
    # 1. Initialize Services (Dependency Injection)
    services = ServerRegistry()

    # 2. Initialize Controller
    controller = WorkflowController(services=services)

    # 3. Define a Simple Manifest (Recipe)
    manifest = {
        "name": "Simple Greeting",
        "nodes": [
            {"id": "node_1", "type": "LLM", "config": {"prompt": "Say hello!"}}
        ],
        "edges": []
    }

    # 4. Define Inputs
    inputs = {
        "user_id": "test_user",
        "trace_id": "trace_123",
        "secrets_map": {}
    }

    # 5. Execute Workflow
    print("Starting Workflow...")
    # Pass user_context (Optional)
    async for event in controller.execute_recipe(manifest, inputs, user_context=None):
        print(f"Event: {event.event_type} | Node: {event.node_id} | Payload: {event.payload}")

if __name__ == "__main__":
    asyncio.run(main())

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

coreason_maco-0.3.2.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

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

coreason_maco-0.3.2-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file coreason_maco-0.3.2.tar.gz.

File metadata

  • Download URL: coreason_maco-0.3.2.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for coreason_maco-0.3.2.tar.gz
Algorithm Hash digest
SHA256 6aaa08ee38614e306fc0f53c3e0555184f62b5a120754b07df35d7faeaccea51
MD5 fd1ef756600f20b900d124b2089d58c4
BLAKE2b-256 92adf8339559183a11bf604bb80549a29e942c35615aa604c734d6a91c061139

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_maco-0.3.2.tar.gz:

Publisher: publish.yml on CoReason-AI/coreason-maco

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

File details

Details for the file coreason_maco-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: coreason_maco-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 36.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for coreason_maco-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1c2801a954b46761571b816a5f6bf868d8eda931fee75ef260ea0b12a11a6977
MD5 892beb8f8c6ef212b4f7b440652180a4
BLAKE2b-256 b5379ffd0c19ab333d1a34ac7c83b09f936f660a74b2db70b13624dd4108c92b

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_maco-0.3.2-py3-none-any.whl:

Publisher: publish.yml on CoReason-AI/coreason-maco

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