Documentation · draft v0.1
How Kithlore is meant to work.
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
- Contribute. A person submits knowledge: a finding, a correction, a dataset, a method.
- Register. The system computes the fingerprint and records owner, fingerprint, metadata, and the contributor share. Exact duplicates of an existing fingerprint are rejected.
- Retrieve. An agent asks a question. Candidate assets are scored for relevance. Each match produces a receipt.
- 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
| Order | Status | Condition | Paid |
|---|---|---|---|
| 1 | artificial | The same agent already has 6 or more receipts in the last 60 seconds. | No |
| 2 | duplicate | The same agent, asset, and question appeared in the last 60 seconds. | No |
| 3 | mismatch | Relevance is below 34%. | No |
| 4 | eligible | None 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.
Receipt format
This is the shape the lab stores and exports (Export JSON in the ledger). Field names may change before any real implementation.
{
"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"
}scoreis the relevance from 0 to 1.hashis a shortened SHA-256 over the id, timestamp, agent, asset, and status.- An asset record holds
title,text,owner,share, and the SHA-256hashof the normalized text.
Architecture
The design separates the ownership record, the knowledge storage, the retrieval layer, and the settlement mechanism.
| Layer | Where | Role |
|---|---|---|
| Knowledge source | Contributor | The original text, data, or insight. |
| Memory registry | Onchain | Links a fingerprint to an owner and metadata. |
| Knowledge storage | Offchain | Holds the content, with access controls. |
| Agent retrieval | Offchain | Matches questions to assets and issues receipts. |
| Attribution evidence | Offchain | Applies the policy to receipts. |
| Settlement | Onchain | Pays 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
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
- Open the live lab. Three sample assets are preloaded.
- Register your own note. Title needs 3 characters or more, the text 30 or more, and the owner must look like an address (
0xplus 40 hex characters). Use Generate for a test one. - 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.
- 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
| Part | State |
|---|---|
| Concept and policy draft | written |
| Browser prototype (live lab) | live |
| Testnet registry contract | planned |
| Retrieval SDK and signed receipts | planned |
| Settlement integration | planned |
Kithlore has not announced a token. Nothing here is financial, legal, or tax advice. Questions or corrections: @kithlore on X.