The Convergent
Normalization Engine
FORGE intercepts, validates, and repairs AI-generated content before it reaches downstream systems. Diffs, JSON, prompts, compliance text, speech transcripts, video metadata â all normalized through a fixpoint convergent loop that iterates until output stabilizes or fails closed.
Install in Seconds
pip install fixpointforge
Python
from forge import normalize_content
result = normalize_content("your AI-generated content", "TEXT")
print(result.passed) # True if normalization succeeded
print(result.normalized_content) # The cleaned output
print(result.audit_trail) # Per-lane results and timing
New to FORGE? The Quick Start guide walks through installation, your first normalization call, and understanding ForgeResult in under 5 minutes.
Single Entry Point
Every interaction with FORGE starts with normalize_content(content, content_type).
This function accepts raw content (a string, dict, or structured object) and a content type identifier.
It returns a ForgeResult containing the normalized output, an audit trail of every lane that ran,
per-lane results, and a boolean passed flag.
The result also carries a ForgeStamp â an HMAC-SHA256 sealed attestation that records the actor info, which lanes executed, and the final trust level. Downstream consumers can verify the stamp to make policy decisions without re-running normalization.
Documentation
Three Core Guarantees
- Normalization â Malformed, unsafe, or policy-violating content is repaired to a valid state where possible. If repair fails, FORGE quarantines or rejects the content with a clear trust signal.
-
Attestation â Every output carries a ForgeStamp with HMAC-SHA256 signature and a trust level
(
TRUSTED,REPAIRED,QUARANTINED, orREJECTED) so consumers know exactly what happened. -
Observability â Structural failure telemetry is collected (never raw content) and optionally
uploaded to
telemetry.fixpointforge.reportto drive continuous normalizer improvements.
FORGE sits at the boundary of any AI pipeline â between an LLM and your database, between a code-generation model and your CI system, between a speech model and your audio infrastructure, or between a compliance engine and your regulatory reporting layer.
Key Concepts
| Concept | Description |
|---|---|
| Lane | A single normalizer that handles one concern (e.g., PII redaction, hunk header repair, JSON schema validation). Lanes are chained per content type. FORGE ships 20 normalizer files in forge/normalizers/. |
| Fixpoint Loop | FORGE runs lanes repeatedly until the output stops changing (converges) or a failure threshold is reached. This is the core of the "convergent normalization" model. |
| ForgeResult | The output of normalize_content() â includes normalized_content, audit_trail, lane_results, content_type, and passed. |
| ForgeStamp | Cryptographic attestation sealed with HMAC-SHA256. Contains actor info, which lanes ran, and the final trust level. Tamper-evident by design. |
| Trust Level | TRUSTED = passed clean; REPAIRED = fixed and converged; QUARANTINED = suspicious but emitted; REJECTED = failed closed. |
| ForgeConfig | Configuration loaded from environment variables (FORGE_*) or forge_config.yaml. Controls lane enablement, convergence thresholds, telemetry, and more. |
| Content Type | One of 7 types that determines which lane chain executes: DIFF, TEXT, JSON, PROMPT, COMPLIANCE, SPEECH, or VIDEO_META. |
| Telemetry | Structural failure metadata (never raw content) collected via forge/telemetry/ and optionally uploaded to the FORGE cloud for self-improvement. |
Lane Routing at a Glance
Each content type has a specific lane chain. Here's the routing overview:
DIFF
TEXT
JSON
PROMPT
COMPLIANCE
SPEECH
VIDEO_META
SP (Service Provider) lanes are outbound only â they apply when FORGE emits content to external services. See Lanes for the full reference.
Project Structure
forge/
âââ __init__.py # normalize_content() entry point
âââ config.py # ForgeConfig loader
âââ result.py # ForgeResult + ForgeStamp
âââ normalizers/ # 20 normalizer lane files
â âââ l0_syntax.py
â âââ l05_hunk.py
â âââ l07_context.py
â âââ l1_structure.py
â âââ l2_semantic.py
â âââ l3_compliance.py
â âââ l4_attestation.py
â âââ t0_encoding.py
â âââ t1_schema.py
â âââ t2_prompt_safety.py
â âââ t3_policy.py
â âââ t4_final.py
â âââ s0_speech.py
â âââ v0_video_struct.py
â âââ v1_video_meta.py
â âââ ... # 5 additional utility normalizers
âââ telemetry/
â âââ collector.py # FailureRecord creation
â âââ uploader.py # Upload to telemetry.fixpointforge.report
â âââ anonymizer.py # Content stripping
âââ loop.py # Fixpoint convergent loop engine