SpanForge Learning Curriculum · April 2026
The SpanForge Book
A complete, structured curriculum built from the SpanForge‑Core codebase. Every chapter maps directly to real implementation code — cryptographic audit chains, PII compliance, enterprise SDK patterns, and production observability for AI systems.
About this curriculum
Built from a real codebase
SpanForge‑Core is a compliance-grade AI observability SDK that covers an unusually broad range of computer science and engineering concepts: cryptographic audit chains, distributed tracing, privacy regulation, compliance engineering, SDK architecture patterns, enterprise security, and production testing.
Built in 2 months with AI-assisted development, it represents a condensed reference implementation across all of these domains. This curriculum organises every concept in the codebase into 8 parts and 47 chapters, structured to build understanding progressively — from the core event model through to enterprise deployment and supply chain security.
Each chapter includes specific learning points grounded in the actual SpanForge implementation. Parts 1 and 2 are prerequisites for all tracks — the event model and security primitives underpin every other module in the codebase.
Six concept tracks
Complete Table of Contents
47 chapters · 8 parts
Chapters are published progressively. Upcoming chapters are listed so you can see exactly what's coming.
Foundations — how SpanForge works
Everything in SpanForge rests on a small number of carefully designed primitives: the event envelope, the ULID, the tracer, and the batch exporter. Understanding these well means understanding every module that builds on them.
Security primitives — cryptography you can trust
This part covers the cryptographic foundations of SpanForge — HMAC chains, key management, JWT authentication, TOTP, and secrets scanning. Every concept here is implemented in pure stdlib with no external cryptographic dependencies.
Privacy & PII — compliance-by-design
PII protection in production AI systems is not just about regex patterns. This part covers the full stack from detection through redaction, the five-level sensitivity model, multi-regulation compliance, and the consent boundary enforcement that ties it all together.
Observability — making AI systems legible
Observability for LLM systems requires more than standard APM. This part covers OpenTelemetry alignment, the full export backend stack, cost tracking, drift detection, and the alert routing system that makes all of it actionable.
Compliance engineering — from evidence to attestation
This part bridges the gap between code and regulatory compliance. It covers the five major frameworks SpanForge maps to, the Compliance Evidence Chain that packages evidence for auditors, and the T.R.U.S.T. scorecard that makes compliance visible to non-technical stakeholders.
SDK architecture — building services the right way
This is the engineering education core of the curriculum. The patterns SpanForge uses — circuit breaker, sliding window rate limiter, zero-dependency design, namespace schemas, plugin discovery, auto-instrumentation — all transfer directly to any SDK or platform library.
Enterprise patterns — production at scale
Enterprise deployments have requirements that don't appear in development environments: tenant isolation, data residency, encryption key management, air-gap deployment, and formal security review processes. This part covers all of them with concrete implementation patterns.
Testing, DX, and shipping production SDKs
The test suite and developer experience layer of SpanForge are as carefully designed as the production code. This part covers the testing patterns, toolchain configuration, and DX investments that make the SDK usable and verifiable by teams other than the one that built it.