The Lineage Protocol · Volume I

Every output is owed to someone upstream.

Lineage is the provenance & royalty protocol for AI agents on 0G. Every dataset, model, and skill is an iNFT. Every inference produces a signed attribution receipt. Royalties stream — automatically — to every contributor in the lineage.

Mainnet iNFTs
iNFTs

scanning registry…

Testnet iNFTs
iNFTs

scanning registry…

Connected
wallet

connect to mint

On-chain claim
0.000027OG

settled to a contributor, verifiable on explorer

§01 · The problem

AI in 2026 sits on top of a stack with no provenance. Contributors don't get paid. Models are trained on uncompensated data, fine-tuned with uncredited labels, and executed inside agents that compose tools and memories from many authors. Every dollar of agent revenue is built on uncredited work.

Agent memory is under attack: $45M+ was lost in 2026 to memory-poisoning and tool-injection. iNFTs trade as opaque blobs — the moment one is used, attribution evaporates. These are three faces of the same gap. AI has no audit trail.

§02 · The receipt

Lineage gives AI an audit trail.

Every inference produces a signed attribution receipt — a JSON object listing every iNFT touched and its weight, signed by the TEE that ran the compute and the agent host that called it. Receipts are written to 0G Storage. A periodic settler reads them, computes the weighted payout, and posts a Merkle root on-chain.

Contributors withdraw with a Merkle proof. Pulls, not pushes. The receipt is the record.

attribution receiptlineage/v1
receiptId0xa3f1…f2c1
agentIdagent:0xb919…59ab
timestamp2026-05-15T18:42:07Z
inputDigest0x4a82…00d3
outputDigest0xc618…77ee
lineage
model #36weight 0.250
skill #37weight 0.250
data #33weight 0.250
data #34weight 0.250
signatures
tee0x83df…08cf ✓
host0xbc74…a0c3 ✓
stamped to 0G storagerootHash 0x9f2c…
§03 · Attribution math

How 0.001 OG becomes four payouts.

One inference uses Skill #37 (a web-search skill). It composes Model #36 (a news summariser), which was trained on Alice's DataINFT #33 (70%) and Bob's DataINFT #34 (30%). Revenue: 0.001 OG. Royalties cascade upstream:

§04 · The stack

The full 0G stack, used end-to-end.

layer 010G Chain

iNFTs, registry, splitter.

ERC-7857 with a lineage layer on top. Sub-second finality. The graph of who-trained-on-what lives on-chain, immutable and append-only.

layer 020G Storage

Encrypted artifacts.

Datasets, model weights, tool source, memory checkpoints. Content-addressed roots; the iNFT carries the storage root, not the bytes.

layer 030G DA

Attribution receipts.

Per-inference receipts persisted to 0G DA. Cheap, infinitely scalable, verifiable. The settler reads from here to compute payouts.

layer 040G Compute

Verifiable TEE inference.

The TEE is the trust root for 'this inference really used these iNFTs.' Every receipt is dual-signed: TEE + host operator.

layer 05ERC-7857

The underlying NFT standard.

Lineage adds the graph layer — what each iNFT was built from and how royalties cascade. The standard for agentic provenance.

layer 06RoyaltySplitter

Pulls, not pushes.

Merkle root posted on-chain. Contributors withdraw with a proof. Gas-efficient, audit-friendly, and recoverable across batches.

§05 · Live on 0G

Two chains. Same protocol.

§06 · Use the protocol

The three-minute flow.

§01

Mint a contribution

Upload an artifact — dataset, model weights, a skill manifest. Declare upstream parents. Set your royalty %. Your iNFT is now an on-chain contributor.

Open the mint
§02

Run an inference

Pick a model, type a prompt. Your wallet sends 0.001 OG as the inference fee. The agent host returns a TEE-signed receipt and a Merkle batch posts on-chain.

Run the demo
§03

Claim what's owed

If your iNFT was in the lineage, a proof is waiting under your address. Claim it. OG lands in your wallet.

View earnings