← Back to site

Documentation · draft v0.1

How Kithlore is meant to work.

Read this first. Kithlore is a proposed protocol. There is no deployed contract, no published SDK, no API, and no real payment. Everything below describes a design and the browser simulation on this site.

Overview

AI agents retrieve knowledge written by people. Today the source of that value is rarely recorded and almost never rewarded. Kithlore proposes a way to give each contribution an owner and a fingerprint, record each agent retrieval as a receipt, and let a published policy decide which receipts qualify for a royalty.

The live lab implements the policy in your browser so you can see how it behaves. It stores everything locally and sends nothing to a server.

Concepts

Memory asset
A registered contribution: a title, the knowledge itself, an owner, and a fingerprint. In the design, only the fingerprint, the owner, and metadata go on a ledger. The content stays in external storage.
Owner
The address that registered the asset and receives its royalties. In the lab this is a test address you type or generate.
Fingerprint
A SHA-256 hash of the normalized content (trimmed, whitespace collapsed, lower-cased). Identical content produces an identical fingerprint, so the first registration wins.
Retrieval
An agent asking for knowledge and being given one or more matching assets.
Receipt
A log entry for each (agent, asset) match: who asked, which asset, how relevant, what the policy decided, and the amount at stake.
Attribution policy
The published rules that turn receipts into a status: eligible, duplicate, artificial, or mismatch.
Settlement
Grouping eligible receipts by owner and paying out. Payments are a planned integration. In the lab, settlement is simulated and the transaction hash is a random string.
Protocol fee
The share of each eligible payment that does not go to the contributor. The contributor share is set per asset.

Lifecycle

  1. Contribute. A person submits knowledge: a finding, a correction, a dataset, a method.
  2. Register. The system computes the fingerprint and records owner, fingerprint, metadata, and the contributor share. Exact duplicates of an existing fingerprint are rejected.
  3. Retrieve. An agent asks a question. Candidate assets are scored for relevance. Each match produces a receipt.
  4. Reward. The policy marks each receipt. Eligible receipts are grouped by owner and settled, minus the protocol fee.

Attribution policy

These are the exact rules the lab runs. They are a starting proposal, not a final standard.

Matching

  • The question and each asset (title plus content) are lower-cased, split into words, and filtered: words shorter than two characters and common stop words are dropped.
  • A question word matches an asset word if they are equal, or if both have at least four characters and one starts with the other.
  • Relevance is the share of question words that match. Assets scoring below 20% are not returned. At most three assets are returned per question.

Status, checked in this order

OrderStatusConditionPaid
1artificialThe same agent already has 6 or more receipts in the last 60 seconds.No
2duplicateThe same agent, asset, and question appeared in the last 60 seconds.No
3mismatchRelevance is below 34%.No
4eligibleNone of the above.Yes

Amounts (simulated)

  • Each eligible receipt is worth $0.05.
  • The contributor receives the asset's share (50 to 95 percent in steps of 5, default 90). The remainder is the protocol fee.
  • Receipts that are not eligible carry an amount of $0 but stay in the log.
Receipts that are not paid are still logged. That keeps the record honest and lets anyone audit why a retrieval did not earn.

Receipt format

This is the shape the lab stores and exports (Export JSON in the ledger). Field names may change before any real implementation.

receipt.json · example
{
  "id": 417,
  "ts": 1764057727000,
  "agent": "Coding agent",
  "q": "why did churn drop in q3?",
  "assetId": 412,
  "score": 1,
  "status": "eligible",
  "amount": 0.05,
  "settled": false,
  "hash": "8f2a41…a2de"
}
  • score is the relevance from 0 to 1.
  • hash is a shortened SHA-256 over the id, timestamp, agent, asset, and status.
  • An asset record holds title, text, owner, share, and the SHA-256 hash of the normalized text.

Architecture

The design separates the ownership record, the knowledge storage, the retrieval layer, and the settlement mechanism.

LayerWhereRole
Knowledge sourceContributorThe original text, data, or insight.
Memory registryOnchainLinks a fingerprint to an owner and metadata.
Knowledge storageOffchainHolds the content, with access controls.
Agent retrievalOffchainMatches questions to assets and issues receipts.
Attribution evidenceOffchainApplies the policy to receipts.
SettlementOnchainPays eligible receipts to owner addresses.

The target is an EVM-compatible chain. An ERC-721 or equivalent record is one way to represent ownership. The chain, and the payment rail, are not chosen yet.

Proposed SDK

Not published. This is an illustration of how an integration might look. The package does not exist.
illustrative only
import { Kithlore } from "@kithlore/sdk";   // not published yet

const kithlore = new Kithlore({ chain: "evm", signer });

// 1. register
const asset = await kithlore.register({
  title: "Q3 churn correction",
  content: file,            // stays offchain
  share: 0.9,               // contributor share
});

// 2. an agent retrieves
const hits = await kithlore.retrieve("why did churn drop?", { agent });

// 3. eligible hits produce receipts and royalty events
for (const h of hits) console.log(h.asset.id, h.receipt.status);

Using the lab

  1. Open the live lab. Three sample assets are preloaded.
  2. Register your own note. Title needs 3 characters or more, the text 30 or more, and the owner must look like an address (0x plus 40 hex characters). Use Generate for a test one.
  3. Pick an agent, ask a question, and press Run retrieval. Try the same question twice, or use Simulate spam bot, to see the policy react.
  4. Press Settle royalties to group eligible receipts by owner. The transaction hash shown is random.

Everything is saved in your browser under the key kithlore.lab.v1. Reset lab clears it, and clearing site data does too.

Limits and open problems

  • Retrieval is not learning. A logged retrieval does not prove what a model internally used.
  • Copying. The first registration of identical content wins. Slightly edited copies produce a different fingerprint and are not detected.
  • Gaming. The duplicate and burst rules are simple. Determined actors can spread requests across agents. Stronger identity and rate limits would be needed.
  • Relevance. Word overlap is crude. A real system would use better ranking and independent verification.
  • Privacy. A fingerprint of short or guessable text can be reversed by guessing. Sensitive content needs extra care.
  • Payments. No settlement is live. Real money flows would need a verified facilitator, a chosen network and token, and legal review.

Status

PartState
Concept and policy draftwritten
Browser prototype (live lab)live
Testnet registry contractplanned
Retrieval SDK and signed receiptsplanned
Settlement integrationplanned

Kithlore has not announced a token. Nothing here is financial, legal, or tax advice. Questions or corrections: @kithlore on X.