# Apache Sourcelume

> Open-source metadata specification, reference registry, and signing library for verifiable AI training-data provenance.

Apache Sourcelume is an open-source initiative from The Apache Software Foundation for documenting the provenance of AI training data. It combines a metadata specification, a reference registry, and an attestation library so dataset curators and model producers can publish signed, independently verifiable records of where data came from and what terms it carries.

## What It Is

Sourcelume is provenance instrumentation for training datasets. The project says many training corpora carry licensing and provenance information that is missing, wrong, or unverifiable, citing a 2024 audit that found license-omission rates above 70% across popular dataset-hosting sites. It does not adjudicate whether a dataset's stated terms are accurate. Instead it gives producers a shared, neutral way to document custody and licensing so claims can be checked independently.

## How the Components Fit Together

- **Specification:** a versioned JSON-LD metadata schema covering dataset origin, custody chain, and licensing. It is built to align with OTDI, the DPI annotation taxonomy, Croissant, and the SPDX AI Profile rather than compete with them.
- **Registry:** a reference implementation of the specification that exposes a REST API for publishing and resolving provenance records. Storage is pluggable, with PostgreSQL as the default and an Apache Atlas distribution also available.
- **Attestation:** a signing and verification library, C2PA-compatible where applicable, that lets producers cryptographically sign their assertions and lets anyone check a record's provenance.

The architecture diagram shows dataset producers signing records that are published to the registry, and trainers and auditors consuming them over REST or GraphQL. It also shows a CLI ingest path and an Explorer for search and provenance cards.

## Community and Participation

The project site offers a specification page, registry page, an end-to-end training sample with full provenance, and an FAQ. Participation is through the dev mailing list and the #sourcelume channel on ASF Slack. The website source is a static Pelican site in the apache/sourcelume-site repository, licensed under Apache License 2.0.

## Features
- Versioned JSON-LD metadata schema for dataset origin, custody chain, and licensing
- Alignment with OTDI, DPI annotation taxonomy, Croissant, and SPDX AI Profile
- Reference registry with REST API for publishing and resolving provenance records
- Pluggable storage with PostgreSQL default and Apache Atlas distribution
- Signing and verification library, C2PA-compatible where applicable
- CLI ingest and Explorer for search and provenance cards
- End-to-end sample training provenance

## Integrations
MLCommons Croissant, SPDX AI Profile, OTDI, C2PA, PostgreSQL, Apache Atlas

## Platforms
API, CLI

## Pricing
Open Source

## Links
- Website: https://sourcelume.apache.org
- Documentation: https://sourcelume.apache.org/specification.html
- Repository: https://github.com/apache/sourcelume-site
- EveryDev.ai: https://www.everydev.ai/tools/apache-sourcelume
