Skip to main content

Workforce Intelligence & Reasoning Engine — framework-agnostic governance layer for autonomous enterprise AI agents

Project description

WIRE — Workforce Intelligence & Reasoning Engine

Framework-agnostic governance layer for autonomous enterprise AI agents.

"Describe the work. WIRE hires the workforce."

PyPI Python 3.11+ License: MIT Tests


The Problem

Every major agent framework ships without the five things enterprises actually need:

Gap LangGraph CrewAI AutoGen
Loop protection
Tamper-proof audit
Hard cost ceilings
HITL as first-class primitive Partial Unstable
Live workforce visibility

WIRE adds all of them — without replacing your existing framework.


Install

pip install wire-ai                  # core
pip install wire-ai[langgraph]       # + LangGraph adapter
pip install wire-ai[crewai]          # + CrewAI adapter  (Sprint 5)
pip install wire-ai[autogen]         # + AutoGen adapter (Sprint 5)
pip install wire-ai[all]             # everything

Sprint 1 — 5 lines, full governance

import wire

# Your existing LangGraph graph — unchanged
from langgraph.graph import StateGraph
graph = StateGraph(...).compile()

# Wrap with WIRE
workforce = wire.deploy(
    graph,
    backend="langgraph",
    max_iterations=30,       # LoopGuard: halt before runaway
    max_cost_usd=0.50,       # Budget: hard $0.50 ceiling
    hourly_budget_usd=0.10,  # Budget: $0.10/hour rolling
    audit_path="audit.jsonl" # AuditChain: tamper-proof log
)

# Run — same API as graph.ainvoke()
result = await workforce.ainvoke({"messages": [...]})

# Verify audit integrity
wire.AuditChain.verify("audit.jsonl")
# ✓ 12 entries · chain intact

What You Get

LoopGuard

Halts runaway agent loops before they exhaust your API quota. Configurable iteration and cost limits. Raises LoopBreachError with full context.

# Fires when iterations > 30 OR cost > $0.50
workforce = wire.deploy(graph, max_iterations=30, max_cost_usd=0.50)

AuditChain

Every agent action, node execution, and tool call is recorded in a tamper-proof SHA-256 hash-linked log. Verify integrity at any time.

wire.AuditChain.verify("audit.jsonl")
# Raises AuditChainError with entry index if tampered

# Replay any past run
wire replay --run-id run_20260612_abc123

Budget

Hard cost ceilings with rolling hourly and daily windows. Never get a surprise bill.

budget = wire.Budget(hourly=0.50, daily=5.00)
# BudgetBreachError fires before the ceiling is exceeded

EventBus

Typed events for every runtime moment. Subscribe handlers for alerting, logging, or custom business logic.

@workforce.on(wire.EventKind.LOOP_BREACH)
async def alert(event):
    await slack.send(f"Loop breach in {event.run_id}!")

CLI

wire version                          # v0.1.0
wire status                           # installed adapters
wire audit audit.jsonl                # verify chain integrity
wire replay --run-id abc123           # replay a past run

Sprint Roadmap

Sprint Ships Status
S1 — MVP deploy() + LoopGuard + AuditChain + Budget v0.1.0
S2 — Governance HITLGate + IdempotencyGuard + SLATracker 🔜 v0.2.0
S3 — HIRE wire.hire("...") + 20 role templates 🔜 v0.3.0
S4 — Visibility Live dashboard + Slack HITL + time-travel replay 🔜 v0.4.0
S5 — Multi-Framework CrewAI + AutoGen + OpenAI adapters 🔜 v0.5.0
S6 — Enterprise SOC-2 presets + SSO + RBAC + web dashboard 🔜 v1.0.0

Architecture

┌──────────────────────────────────────────────────────┐
│  HIRE LAYER     intent → role matching → workforce   │
├──────────────────────────────────────────────────────┤
│  RUNTIME LAYER  LoopGuard · HITLGate · SLATracker    │
│                 IdempotencyGuard · Budget · State     │
├──────────────────────────────────────────────────────┤
│  VISIBILITY     Dashboard · AuditChain · CostLedger  │
│                 TimeTravel · DriftDetector            │
├──────────────────────────────────────────────────────┤
│  ADAPTERS       LangGraph · CrewAI · AutoGen · OpenAI│
└──────────────────────────────────────────────────────┘

Why WIRE?

Built from 95 adversarially-verified research claims across 24 sources:

  • LangGraph self-describes as "very low-level" — no governance primitives
  • AutoGen Studio is "not meant for production" — their own README
  • CrewAI has no idempotency guard — payments and emails can fire twice on retry
  • No framework ships a tamper-proof audit chain, built-in workforce visibility, or HITL routing

WIRE fills every gap. Framework-agnostic. Enterprise-ready from day 1.


Contributing

See CONTRIBUTING.md. MIT licensed.


Built by Naveen Kumar Baskaran

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

wire_ai-0.1.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

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

wire_ai-0.1.0-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file wire_ai-0.1.0.tar.gz.

File metadata

  • Download URL: wire_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for wire_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d9a8f782e377e2f155bbf1d7aff676a1acce67335d60cec5ed7256cf246c449a
MD5 cf480929d3c0933fcdb0066725241bd2
BLAKE2b-256 46f2fdbad40c7100058f2b408c748e052d82383f52964037b8eeac1bb2e3929e

See more details on using hashes here.

File details

Details for the file wire_ai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: wire_ai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for wire_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18d0eb40f0f9b7eb96c570ce0dc7c2ae731631c1bbd26d6b1bba92d7e763871a
MD5 bdbe6dd7b26b45c4c5a4906592ffab63
BLAKE2b-256 b3d5ed5fa183f0715dfedb23e2bf868f7239e94c9be77bb28794bfccda39de95

See more details on using hashes here.

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