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.5.0.tar.gz (53.5 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.5.0-py3-none-any.whl (56.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wire_ai-0.5.0.tar.gz
  • Upload date:
  • Size: 53.5 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.5.0.tar.gz
Algorithm Hash digest
SHA256 493c3249ce075668db487424b79f3421185d2ed332fb03fe2584a670486b1568
MD5 d8104e46d6ba59e4ad4517840dcc9991
BLAKE2b-256 f9b635d2e0b25ac81b0104318977507c2c8d0d7eec12fce988d3cc80cfe4af90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wire_ai-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 56.7 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc387e9da4fa1522c33470a214e9c0981bedb527f9714530b773ccc2bea6dc7b
MD5 3c2b4d4c7697e339943ef02019b12dbd
BLAKE2b-256 54fce6349f7af7086cd615a0518fe0a787487f8bada916e3accd98a266565f9a

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