Skip to main content

Infrastructure reliability layer for LLM-powered systems

Project description

Iron Frame

Infrastructure reliability layer for LLM-powered systems.

Reliable. Trustworthy. Accurate. Diligent.

License: Apache 2.0 Python Status

Iron Frame sits between raw LLMs and domain applications -- trading, healthcare, compliance, research -- and handles every fundamental limitation of LLMs: hallucinations, reasoning errors, context drift, bias accumulation, and incomplete process execution.

It is infrastructure, not a domain system. Your application sits on top of Iron Frame and trusts the foundation beneath it.


Why Iron Frame

Most "AI reliability" products try to fix hallucination with more AI. Iron Frame takes a different approach: deterministic enforcement outside the LLM context window. A model cannot rationalize around hooks it never sees.

  • Hooks execute outside the LLM. Deterministic gates at the platform level, not in the prompt.
  • Self-auditing from day 1. Confidence scoring, self-consistency, and cross-model verification on every output.
  • Compliance-ready audit from day 1. HIPAA, FINRA, SOC2, SEC, GDPR fields captured by the audit schema natively -- not bolted on.
  • Spend caps are mandatory. Per-request, per-session, and per-day budget ceilings prevent runaway cost.
  • Immutable audit trail. Write-before-release. If logging fails, the operation does not complete.
  • Model-agnostic. Swappable providers with capability-based routing (fast / smart / cheap / verification / long-context).

Install

pip install ironframe

Optional extras:

pip install "ironframe[openai]"   # OpenAI / Perplexity adapter
pip install "ironframe[z3]"       # Symbolic verification (Tier 4)
pip install "ironframe[all]"      # Everything

Quickstart

from ironframe import IronFrameConfig, IronFrameClient

config = IronFrameConfig.from_env()
client = IronFrameClient(config)

response = client.complete(
    prompt="Summarize the key risks in this contract.",
    preference="smart",
)

print(response.content)
print(f"Cost: ${response.cost:.4f}")
print(f"Model: {response.model}   Tokens: {response.tokens_in}/{response.tokens_out}")

response is an IronFrameResponse — a dict subclass that supports both attribute access (response.content, response.cost, response.model) and dict access (response["text"], response.get("cost_usd")). Every call is audited and budget-checked. Confidence scoring is a separate pass — run sae.verify(response) to populate response.confidence; raw MAL calls leave it as None. See examples/ for more.


Architecture

Iron Frame has 18 components organized around four pillars:

Pillar Components
Model Access Model Abstraction Layer (MAL), Budget Manager, Error Recovery
Verification Self-Audit Engine (SAE), Logic Skills, Eval & Regression, KB Grounding
Enforcement Hook Engine, State Machine, Tool Governance, Security, Agent Trust, I/O Schema
Observability Immutable Audit Log, Compliance Adapters, Conformance & Drift Engine, Context Budget

See SPEC.md for the canonical specification and docs/architecture.md for a walkthrough.


Compliance Adapters

Iron Frame ships adapters for HIPAA, FINRA, SOC2, SEC, and GDPR compliance requirements. The base classes are Apache 2.0 -- you can write your own adapters for any protocol.

The pre-built regulatory adapters in src/ironframe/compliance/adapters/ are source-available under PolyForm Noncommercial. They are free for research, education, nonprofits, and personal projects. Commercial use in a for-profit production system requires a commercial license.

See src/ironframe/compliance/adapters/LICENSE_COMMERCIAL and docs/compliance-adapters.md.


Licensing (TL;DR)

  • Core framework: Apache License 2.0 -- use it freely, including commercially. Includes an explicit patent grant.
  • Compliance adapters (compliance/adapters/): PolyForm Noncommercial. Free for noncommercial use. Commercial license available.
  • Base classes (compliance/base_v1_0.py, compliance/audit_requirements_v1_0.py): Apache 2.0. Write your own adapters.

See LICENSE, NOTICE, and the open-core ADR.


Status

Iron Frame is in beta. The API surface is stable (every module is explicitly versioned with a _v1_0 suffix), but expect refinement before v1.0.

  • 18 components implemented
  • 5 compliance adapters
  • Requirements Traceability Matrix with 22 tracked requirements
  • Unit + integration test coverage

Contributing

See CONTRIBUTING.md.


Documentation

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

ironframe-0.1.2.tar.gz (225.7 kB view details)

Uploaded Source

Built Distribution

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

ironframe-0.1.2-py3-none-any.whl (279.6 kB view details)

Uploaded Python 3

File details

Details for the file ironframe-0.1.2.tar.gz.

File metadata

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

File hashes

Hashes for ironframe-0.1.2.tar.gz
Algorithm Hash digest
SHA256 eac06fb1c7a6987a1a6c4cba679f6f66fb457f69f1b807859f22898ccb553d9c
MD5 5b6288728f1fa44d58dee35a349bcc78
BLAKE2b-256 064b69a3278c3aa0a8016e1c17a98ce23f30f958bd845a03ae3f9178aaf6aa35

See more details on using hashes here.

Provenance

The following attestation bundles were made for ironframe-0.1.2.tar.gz:

Publisher: release.yml on briancarter456546/ironframe

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

File details

Details for the file ironframe-0.1.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for ironframe-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d07675554afa1effdd2d964750cfd57ada8bc5f0efe135462f9a6992326f47ce
MD5 38f1ecfa6f65b78f9ac0830afc2d9186
BLAKE2b-256 da88271c063e53228f85dbbd85b2e863a3412b462facb89cb65d255db22accb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for ironframe-0.1.2-py3-none-any.whl:

Publisher: release.yml on briancarter456546/ironframe

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