forgetproof Try the button

Rendered from docs/provider-surface.md; raw Markdown.

The 0.2 provider surface#

The 0.2 provider surface is the older, button-less HTTP surface a hosted personal agent can serve: one discovery document and three routes that erase the signed-in user's data from the provider's stores and hand back signed receipts. This page shows you how to serve the discovery document and the routes, what the receipts and their verdicts mean, how queueing works, and how to embed the surface in a Python server.

Status: served by forgetproof.agent.Provider in the unreleased forgetproof 0.2.0 package; not required by ForgetMe v1, which a host may serve beside it.

A provider is the company that hosts a personal agent and owns its stores. A receipt is the provider's signed statement of what a scan found before and after erasing, and a verdict is the one word it ends with. The glossary defines the ForgetMe words this page borrows.

The problem#

A person tells their personal agent to forget something: a contact, a conversation, a thing they pasted by mistake. The agent deletes it. Deletes in the stores agents use are logical: the bytes stay in write logs, index tombstones, page free space and version history until something rewrites them, and nothing does on its own. The person has no way to tell, and the provider has no way to show, that the deletion was real.

For an agent a person runs on their own machine, the forgetproof command, MCP server and desktop app answer that directly. For a hosted agent the person cannot reach the provider's disks. This surface is what a provider adopts so the answer exists anyway: the provider erases what its stores still hold, signs a receipt that says what it found before and after, and publishes the key. The person, their agent on another host, or a page in their browser can then check the receipt without trusting the server that served it.

The parties#

PartyRole
UserThe person whose data it is. Signed in to the provider in the provider's own way.
ProviderThe hosted personal agent. Owns the stores, embeds forgetproof, signs receipts.
VerifierAnyone holding a receipt and the provider's published key: the user, another agent, a browser page, an auditor.

No third party sees data. Receipts carry counts and hashes only.

Discovery#

A provider that implements the surface serves, at its origin, GET /.well-known/forgetproof.json:

{
  "forgetproof": "0.2",
  "issuer": "Pim Cloud",
  "public_key": "H5HcybllX8T0JfSfNJ5AJ2jhFfqSnRj0ibEjf6_AcwM",
  "key_fingerprint": "6c0f0d4c1e3f7a0b9d8e2f1a4b5c6d7e",
  "keys": [{"public_key": "…", "key_fingerprint": "…"}],
  "stores": [{"name": "memory", "kind": "chroma"}, {"name": "notes", "kind": "sqlite"}, {"name": "search", "kind": "api"}],
  "endpoints": {"forget": "/forgetproof/forget", "status": "/forgetproof/status", "receipts": "/forgetproof/receipts/{id}"},
  "capabilities": {"erase": true, "verify_on_disk": true, "queue": true, "live_delete": false},
  "statement": "Pim erases what you ask it to forget from every store it keeps, and signs a receipt you can check."
}

public_key is the raw Ed25519 public key, base64url without padding. key_fingerprint is the first 32 hex characters of SHA-256 over the raw key. keys lists every key receipts may currently be signed with, for rotation. stores names what the provider covers; kind is one of the engine's store kinds, or api for a store the provider can only delete through its API (see Verdicts). The schema is schemas/well-known.schema.json.

A ForgetMe v1 host may point at this document from its index (well_known.forgetproof); the keys here and the keys in the ForgetMe index should be the same set.

Routes#

All routes answer JSON. Authentication is the provider's own: the same session the agent or the user already has. The surface adds no credential. Discovery and status are public; the forget and the receipt reads belong to the signed-in user.

POST {forget}#

Erase the signed-in user's data from every store the provider covers.

{"correlation_id": "case-4471", "also_live": false}

Both fields are optional. correlation_id is an opaque label carried into every receipt, so the user's own record of the request, such as a support ticket or a chat message id, and the receipts match up later; keep it non-sensitive, since it is stored in plaintext. also_live asks the provider to also delete live records that still contain one of the user's values; a provider that does not offer this (capabilities.live_delete false) answers 400.

The subject is the signed-in user, always. The request body cannot name who to forget. The provider resolves the user from its session to that user's exact values, such as the email, phone number and handle it knows them by, and passes those to the engine. A request with no signed-in user is refused with 401. This is the rule that keeps a forget endpoint from becoming a lookup endpoint.

The response:

{
  "status": "clean",
  "subject_values": 2,
  "correlation_id": "case-4471",
  "stores": [
    {"store": "memory", "status": "clean", "receipt_id": "memory.20261119T203012123456Z", "actions": ["rebuilt memory: 1204 records", "…"]},
    {"store": "notes", "status": "clean", "receipt_id": "notes.20261119T203013004321Z", "actions": ["vacuumed notes.db (secure_delete on)"]},
    {"store": "search", "status": "unverifiable", "receipt_id": "search.20261119T203013100000Z", "actions": ["deleted 3 vectors by id through the search API"]}
  ]
}

Per-store status is one of clean, residue_remains, unverifiable, queued, error. The overall status is the worst of them. A queued store is one the agent had open at the time; the provider finishes it at the agent's next start and the receipt appears then, with the same correlation_id.

GET {status}#

Which stores the provider covers, whether each is open right now, how many erasures are queued or parked for it, and how many receipts exist. Public; no per-user information.

GET {receipts}/{id} and GET {receipts}#

One receipt, or the list of the signed-in user's receipt ids with verdicts, newest first. Both resolve the user the same way POST {forget} does and answer 401 when nobody is signed in. A receipt is served to the user it was issued for; anyone else's answers 404, so an id reveals nothing. Receipts hold counts and hashes, not values, so the SDK binds each receipt to its owner with a keyed hash of the subject under the provider's key, written beside the receipt file (<id>.owner), never inside it. A receipt issued by a version before 0.2.1 has no owner file: the provider's own code still reads it from disk, and no session reads it over HTTP.

Receipts#

A receipt is the engine's receipt format 0.2 (schemas/receipt.schema.json), signed by the provider's key:

These receipts carry the provider's own file paths and file names (target, files, copies, canaries[].found_in). They are for the provider and the people it hands them to directly. What a ForgetMe host puts on the wire is the portable projection, forget-me-receipt/1, which carries none of that; see the wire contract, section 9.

Verdicts#

VerdictMeaning
CLEANAfter erasing, a scan of the store's files found no deleted-but-recoverable data and none of the subject's values anywhere in them.
RESIDUE_REMAINSSomething was still found. Most often a value that is also part of a live record the user did not ask to delete. The receipt says where.
UNVERIFIABLEThe store is one the provider can only delete through an API. The deletion was requested and acknowledged; the bytes cannot be checked from here. Never read this as clean.

Verify a receipt#

import { verifyReceipt, fetchWellKnown, verifyAgainstWellKnown } from "./index.js";   // forgetproof-verify, three files
const wk = await fetchWellKnown("https://pim.example");
const r = await verifyAgainstWellKnown(receipt, wk);
console.log(r);   // { ok: true, fingerprint: "…", format: "forgetproof-receipt/0.2", verdict: "CLEAN" }

It runs in a browser or Node with no dependencies (forgetproof-verify). A receipt that was altered prints { ok: false, why: "the signature doesn't match this receipt" }. The call checks that the receipt's key is one the provider publishes and that the signature matches exactly this receipt. A valid signature proves which key signed this receipt and that it has not changed since; it does not prove the provider ran the engine honestly. A provider that wants more can have a third party timestamp or countersign its receipts; that is outside this document.

Queueing#

Some stores cannot be rewritten while the agent has them open, such as Chroma and LanceDB. The provider's forget queues the request, encrypted at rest, and answers queued for that store. At the agent's next start, before it opens its stores, the provider calls run_queued(); the receipt is issued then. A request that still does not come back clean after a few attempts is parked for an operator to look at, and purged after 30 days so the queue never becomes a record of who asked.

Embed it in Python#

from forgetproof.agent import Provider

provider = Provider(
    issuer="Pim Cloud",
    stores={"memory": "/srv/pim/chroma", "notes": "/srv/pim/notes.db"},
    api_only={"search": lambda store, subject: search.delete_by_values(subject.values)},
    receipts_dir="/srv/pim/forgetproof/receipts",
    key_path="/srv/pim/forgetproof/signing_key.pem",
)

async def subject_of(scope):           # the signed-in user's exact values, from YOUR session
    user = await session_user(scope)
    return [user.email, user.phone] if user else None

app.mount("/forgetproof", provider.asgi(subject_of))     # Starlette / FastAPI
# and serve provider.well_known() at /.well-known/forgetproof.json

Once the app runs, curl -s http://localhost:8000/.well-known/forgetproof.json answers the document above with your issuer and key, and POST /forgetproof/forget or GET /forgetproof/receipts without a session answers 401. At the agent's start, call provider.run_queued(). In the agent's own "forget me" flow, call provider.forget([user.email, user.phone], correlation_id=request.id) directly and show the user the receipt ids; the endpoint exists for agents and pages that are not the provider's own code.

Limits#

Next steps#