How the
trail works.
A plain description of the proposed protocol and of the rules the field lab already runs. Draft v0.1: details will change before anything goes onchain.
Overview
Cairnback is a proposed ownership layer for knowledge that AI agents use. It has four steps:
- Contribute. Someone brings a finding, correction, dataset, or method that agents can retrieve.
- Register. The contribution gets a sign: an owner, a content fingerprint, and metadata.
- Retrieve. When an agent uses it, the visit is logged as a receipt and checked against a published policy.
- Reward. Eligible receipts can be settled as royalties, split between the contributor and a protocol fee.
Cairnback is built on Robinhood Chain, an EVM-compatible network. The official token is $CBACK.
Knowledge assets
A knowledge asset (shown as a sign on the site) has these fields:
| Field | Meaning |
|---|---|
id | Sequential number, shown as #0412. |
title | Short human label, 3 to 60 characters. |
owner | EVM address that receives royalties (42 characters, starts with 0x). |
hash | SHA-256 fingerprint of the normalized content. |
share | Contributor share of each eligible payment, 50% to 95%. The rest is the protocol fee. |
ts | Registration time. |
The content itself is meant to stay offchain, with access controls. Only the fingerprint, owner, and metadata would be recorded onchain, for example as an ERC-721 or an equivalent record.
First registration wins
If the same normalized content is registered twice, the second attempt is refused and points to the existing asset and its owner.
Fingerprints
Before hashing, content is normalized so that trivial differences do not create a new asset:
- Trim leading and trailing whitespace.
- Collapse every run of whitespace into a single space.
- Convert to lower case.
- Hash the UTF-8 bytes with SHA-256 and write the result as 64 hex characters.
fingerprint = sha256( lower( collapse_spaces( trim(content) ) ) )
On the site, the first eight hex characters also give a sign its grid reference (for example CL D2DE · 1DDC) and its position on the trail map. That is decoration, not part of the protocol.
Visit receipts
Each time an agent's question matches a registered asset, a receipt is written. A question can match up to three assets, and each match gets its own receipt.
| Field | Meaning |
|---|---|
agent | Which agent made the request. |
q | The normalized question. |
assetId | The asset that was reached. |
score | Relevance between 0 and 1. |
status | eligible, duplicate, artificial, or mismatch. |
amount | Price paid for an eligible visit, 0 otherwise. |
hash | Short receipt id derived from the receipt fields. |
Any receipt in the lab can be shared as a read-only link. The link carries only that receipt and is clearly marked as simulated.
Attribution policy
The policy decides which receipts earn. It is checked in this order, and the first rule that matches sets the status:
| Order | Status | Rule | Default |
|---|---|---|---|
| 1 | artificial | The same agent already made at least the burst limit of visits inside the window. | 6 visits in 60 s |
| 2 | duplicate | The same agent asked the same question about the same asset inside the window. | 60 s |
| 3 | mismatch | Relevance is below the threshold. | 34% |
| 4 | eligible | None of the above. The visit earns the price. | $0.05 per visit |
Relevance
Relevance is the share of meaningful words in the question that also appear in the asset's title or text. Common words (the, how, what, please and so on) are ignored, and words of four or more letters match on a shared prefix. Assets below 20% relevance are not considered at all, so no receipt is written for them.
In the lab you can change the threshold, window, burst limit, and price under Checkpoint policy. Receipts already written keep their status.
Settlement
Settling groups every unsettled eligible receipt by owner. For each owner:
contributor = Σ amount × share
fee = Σ amount − contributor
In the lab, settlement produces a fake transaction hash and moves the amount from "unclaimed" to "settled". A real version would pay through a verified settlement design (x402-style payments are being considered) and only after end-to-end checks.
Layers
| Layer | Where | Job |
|---|---|---|
| Knowledge source | Contributor | The original text, data, or insight. |
| Memory registry | Onchain · Robinhood Chain | Ties a fingerprint to an owner and metadata. |
| Knowledge storage | Offchain | Holds the content with access controls. |
| Agent retrieval | Interface | Serves knowledge to agents and writes receipts. |
| Attribution evidence | Policy | Decides which receipts qualify. |
| Royalty settlement | Onchain · Robinhood Chain | Pays eligible amounts to contributor wallets. |
Proposed SDK
Illustrative only. No package is published, and any package that claims to be the Cairnback SDK today is not ours.
import { Cairnback } from "@cairnback/sdk"; // not published yet
const cl = new Cairnback({ chain: "evm", signer });
const sign = await cl.register({ title: "Q3 churn correction", content: file, share: 0.9 });
const visits = await cl.retrieve("why did churn drop?", { agent });
for (const v of visits) console.log(v.sign.id, v.receipt.status);
Limits
- A receipt is evidence of access. It does not prove what a model learned or how it used the content.
- Word-overlap relevance is simple and can be gamed. A production policy would need stronger signals.
- Payments are not live. Settlement stays planned until it is verified end to end.
- The $CBACK token is separate from the field lab, which is a browser simulation and pays nothing. See the roadmap for what exists and what is planned.