FAQ
Frequently Asked Questions
What is Span Chain?
Span Chain is an auditable harness for production AI agents. Every LLM call, tool use, and decision is captured in a tamper-evident, append-only hash chain — SHA-256 verified, and deterministically replayable without LLM API calls.
How is Span Chain different from LangSmith or Langfuse?
Standard observability tools like LangSmith or Langfuse show you what your agent did via mutable traces. Span Chain proves it cryptographically. Traces in Span Chain are append-only, hash-chained, and self-hosted, ensuring the audit trail cannot be silently altered.
What does tamper-evident mean for AI agents?
Every Span Chain event is SHA-256 hashed and mathematically linked to the previous span. A single changed byte anywhere in the historical ledger breaks the hash chain. Span Chain does not prevent tampering; instead, the verify_ledger function makes any tampering instantly detectable.
Can I replay an AI agent run without LLM calls?
Yes. Span Chain records a VCR-style cassette of every agent run. Debug replay is deterministic and costs $0 — zero live LLM calls and zero API credits. Engineers can compare the replayed span tree against a baseline to identify the exact point of deviation during model upgrades.
Does Span Chain support OpenTelemetry?
Yes. Span Chain accepts OpenTelemetry (OTLP/HTTP) — partial standard subset. Engineers can connect any OTel-compatible client, including the official Span Chain Python and TypeScript SDKs, without proprietary vendor lock-in.
How do I self-host Span Chain?
Span Chain is self-hosted with Docker Compose: clone the GitHub repository (ghostfactory-art/spanchain), copy .env.example to .env, and run docker compose up. The core is MIT licensed. There are no usage limits, no external vendor dependencies, and no trace data leaves the user's infrastructure.
Is Span Chain relevant for EU AI Act compliance?
Yes. EU AI Act Article 12 requires strict audit trail documentation for high-risk AI systems (Annex III applies from 2. 12. 2027). Span Chain's append-only, cryptographically verifiable ledger is designed to support EU AI Act Article 12 traceability requirements.
What is the performance baseline for Span Chain?
Span Chain is built on Elixir/OTP, isolating every agent session into its own BEAM process. The system is benchmarked at 571 spans/second with 1,000 concurrent agents, achieving 0 corrupted chains and perfect integrity during the 10,000-span stress tests.
What programming languages does the Span Chain SDK support?
Span Chain provides official SDKs for Python (3.11+) and TypeScript/Node.js (18+). Because the ingestion layer is built on the OTLP/HTTP JSON standard, any language with an OpenTelemetry exporter can write to the ledger.