# Changelog

## Unreleased

- **A receipt is read by the user it was issued for.** The 0.2 provider surface served `GET /receipts` and
  `GET /receipts/{id}` to anyone; only the forget resolved the signed-in user. Both reads now resolve the user
  the same way, answer 401 with no session and 404 for another user's receipt. Receipts hold counts and hashes,
  not values, so the SDK binds each one to its owner with a keyed hash of the subject under the provider's key,
  written beside the receipt (`<id>.owner`), never inside it; queued erasures get the same binding when they
  finish (`forget.run_queued_with_subjects`). A receipt from before this change has no owner file and is served
  to no session. Discovery and status stay public. A two-account test proves the isolation, and the hosted
  story checks it live.
- **The homepage says what the result screen shows.** It promised deletion at every company the agent shared
  with; a company may keep a record under a disclosed retention, acknowledge without evidence, or still be
  pending, and the page now says you see each of those. The reference Company's retained invoice reads
  "scheduled for erasure on" a date, not "erased on".

## 0.2.0 — 2026-11-28

For personal agents: the agent you run yourself, and the hosted ones. See `docs/GOAL.md` for the scope
this release was built against.

- **Release plumbing.** `server.json` describes the MCP server for the MCP Registry and the README carries the
  `mcp-name` marker the registry checks; the two npm packages are publishable (`forgetme-button` was marked
  private); the release workflow tests and packs them beside the Python distributions and publishes them once
  npm trusted publishing is set up; the project URLs point at forget.stellarminds.ai; `docs/RELEASE.md` walks
  through a release and lists the pages to update once the packages are live.
- **A verified delete for mem0.** `forgetproof.integrations.mem0` wraps a mem0 `Memory`: `forget_memory` reads
  a memory's text and its earlier versions, lets `memory.delete` run, closes the `Memory`'s connection to
  `history.db` and its Qdrant local client, erases the DELETE, ADD and UPDATE rows that still carry the text,
  rewrites both files, rescans for the text, reopens the handles and returns one signed receipt per store;
  `forget_user` does it around `delete_all`; `VerifiedMemory` makes `delete` and `delete_all` return mem0's
  result and the receipts. A Chroma persist directory is queued through the new `forget.queue()` instead,
  since chromadb keeps the store in process memory; a remote vector store is named as not covered. Tested
  against the real mem0ai 2.2.1 offline, with `infer=False` and a stub embedder, and the texts are shown to be
  in no receipt and no output. Extra `mem0`; page at `docs/mem0.md`, served at `/docs/mem0`.
- **The SQLite check is structural, not pattern-based.** `sqlite.slack` used to report free space only when
  an email, phone, SSN, card or API-key pattern matched there, so a deleted row holding a name and a street
  address read as clean. `forgetproof.sqlite_pages` now parses the file as SQLite does: the b-trees from their
  roots, the freelist from the header, overflow chains, and the write-ahead log with its newest committed
  frame of each page on top. Every text fragment in free blocks, unallocated page space, freelist pages,
  superseded or stale log frames and the journal is residue unless every 16-byte window of it occurs in a
  live cell, which keeps the byte-for-byte copies that a compacted or split page holds of live rows out of
  the count; the schema of dropped or altered tables is not counted either. The finding counts text
  fragments; pattern matches annotate it. A fresh 4,500-record Chroma store scans in about a second. The same check runs on Chroma's `chroma.sqlite3`,
  mem0's `history.db` and Qdrant local's `storage.sqlite`. Elsewhere the wording says what the patterns
  are: the CLI, the MCP server (`patterns`, formerly `personal_data`) and the desktop app label the column
  *Patterns*, and the Postgres, LanceDB and Chroma index-memory findings say *known-pattern values*. The
  ForgetMe wire contract is frozen at revision 1.0-draft.4 until a provider asks for a change.
- **Two CI jobs made reliable.** `fix` on a Chroma store read the source collection in batches while it wrote
  the copy. chromadb 1.x writes a collection's vector index to disk every 1000 writes and fills the gap from
  the write log once per process, into a bounded in-memory pool of indexes, about 100 on Windows; when the
  copy's index evicted the source's (one run in 64), the source came back from disk with the gap unfilled and
  the rebuild failed with `Error finding id`, leaving the store untouched. The rebuild now reads every live
  record before the copy exists. A regression test forces the eviction, on every OS. The browser test counted
  elements the moment a page was requested; the chat host's card appears only after three fetches, so a slow
  runner saw 0. The test now waits for each element.
- **The rest of the served documentation, rewritten to the style guide, and a glossary.** The wire
  contract keeps its numbered sections and every anchor; its preface now says what it is in two sentences,
  its status in one line, and it ends with Next steps. The two quickstarts, the verifier, the reference
  Company, the schemas, the 0.2 provider surface, the audit hand-off, the goal and the demo page follow:
  headings that are nouns or tasks, the expected output after every command, a Limits section where there
  was one, Next steps at the end. `docs/GLOSSARY.md` (`/docs/glossary`, in the Build menu) defines Poppy,
  Company, host, holder, reference, receipt, outcome and its six words, exception and approval; each page
  links to it where a term first appears. Fixes found by reading the pages cold, as someone who has only the
  site: the client quickstart told you to download `walkthrough.mjs` alone, which cannot run without the
  host adapter beside it; nothing said that the demo's host answers only its own origin, that the three
  button files must sit in one folder, or where a reference to try comes from; the served example page
  imported the package's own path; the raw Markdown route kept repository-relative links, which it now
  rewrites to the routes here; the Company quickstart named no port variable, no expected look for the
  chat page, no button labels, nothing to watch in the Company's terminal and no way to get a receipt to
  verify, and its file column named a method that does not exist; the verifier's install check printed a
  promise; the provider surface linked a spec anchor that did not exist; the schemas page described two
  schemas where there are eleven.
- **A style guide, and the first pages rewritten to it.** `docs/STYLE.md` says how every page is written:
  what it is and what the page covers in two sentences, status as one line, headings that are nouns or
  tasks, one idea per sentence, a term defined where it first appears, one name per thing, a Next steps
  section on every page. The button package README, the three audience pages and the landing lede
  follow it; the button README's phase history moves to a History section above the change tables.
- **The demo site, by audience.** One header and one footer on every public page (`demo/chrome.py`,
  `static/chrome.css`): the three audiences and the docs as primary links, a burger menu under 900 px
  that works without JavaScript, a footer in four groups. Three audience pages, `/for/personal-agents`,
  `/for/small-businesses` and `/for/enterprises`, say what each reader gets and where it stops; the
  landing page opens with that split and loses its nine-anchor nav, the "your agent" cards and the
  resources grid, whose content moved there and into the footer. Links into the private repository
  on the public pages now point at the served docs.
- **ForgetMe, phase 4: verification, public docs, release matrix, audit hand-off.** No change to the wire
  contract. `forgetproof-verify` gains `verifyEvidence`, which reports three verdicts apart (the signature;
  the issuer, confirmed only through the expected issuer's discovery fetched from its own origin, `pinned`
  with an out-of-band key, `unconfirmed` when there is nothing to check against, since an embedded key
  confirms nobody; the declared outcome and coverage) and `fetchIndex` for a ForgetMe index; old formats,
  offline verification, tamper rejection and key rotation unchanged. The demo serves its own documentation
  for a logged-out developer (`/docs`: the spec, the schemas and fixtures under `/schemas/`, a sample receipt,
  the verifier and a `/verify` page, the embed snippet, two quickstarts), labels every package unreleased
  and every link into the private repository as such. Every story has a deep link that selects it without
  running anything (`/stories/<name>`, `/console?story=<name>`, `/#story-<name>`); public synthetic runs
  are shareable (`/runs/<id>`, persisted as public artifacts) and so is a ForgetMe result the owner
  publishes (`POST /pim/share`, `/s/<id>`); recorded examples and live runs are labelled apart, a first
  visit after an empty restart shows a recorded run of every story, expired links explain themselves, and
  a retention job (`demo/retention.py`, in the server's lifespan and as `python -m demo.retention`) removes
  aged public artifacts, orphaned run directories and expired scenarios. An accessibility and mobile pass
  over the button, both sample hosts, the console and the stories (skip links, landmarks, distinct
  accessible names, live status, 375 px). `docs/AUDIT.md` is the audit hand-off; `/health` carries the
  commit. Recorded inside the build image, with no local paths or user names: a local-only and a
  cross-provider withdrawal from click to signed outcome, and one run of each story.

- **Stores personal agents use.** mem0 (`history.db` keeps every deleted memory's text as live rows: new
  checks `mem0.history_deleted` and `mem0.history_versions`; `fix` removes the rows and vacuums), Qdrant
  local (pickled points in SQLite; slack), LanceDB (deleted and replaced rows stay in fragment files and
  old versions until `optimize`: `lancedb.deleted_rows`, `lancedb.fragments`, `lancedb.old_versions`;
  `[lancedb]` extra to fix), and text files (markdown, JSONL: Claude Code memory and transcripts, the
  memory MCP server's graph, Obsidian vaults; no hidden layer, so a value found is reported as still live).
- **Subjects.** `forget --subject` is repeatable (plus `--subject-file`): an entity is a set of exact values.
  Phone numbers are matched in their common spellings. Receipts carry the count, never the values.
- **Owner mode.** `scan --show` and `remembered --show` return unredacted samples and context for a store
  the person owns. `forgetproof remembered` answers "does this store still hold X" per value: live,
  residue, or absent.
- **Live deletion, explicitly.** `forget --also-live` deletes the live records that contain a value (a
  line, a row, a record, a point) before erasing residue. Off by default; never offered for Postgres.
- **Copies.** `forgetproof copies` and the `copies` field of every receipt: sync folders (OneDrive,
  iCloud Drive, Dropbox, Google Drive), git (tracked, with commit count), sibling backups and WAL files,
  Time Machine and File History hints.
- **Discovery for the agents on this machine.** `init --home` finds Claude Code projects, mem0, Letta, the
  memory MCP server (from MCP client configs), Obsidian vaults and project folders, tags each with its
  agent, and pins them for the user (`stores.json` under `FORGETPROOF_HOME`); names resolve from anywhere.
  `forgetproof sweep` fixes every pinned store that isn't open, one receipt each.
- **Receipt format 0.2.** `issuer`, `subject_values`, `copies`, and a third verdict, `UNVERIFIABLE`, for a
  store that could only be deleted through an API. 0.1 receipts still verify. JSON Schemas in `schemas/`.
- **MCP server, owner mode.** `forgetproof mcp --home --owner --allow-fix`: `what_is_remembered(values)`,
  `forget_value(values, also_live)`, `copies_of`, `sweep`, and `list_stores` with kind, agent and whether
  the store is open. Value-naming tools exist only with `--owner`; context comes back only with `--show`;
  a Postgres store is never searched by value. The 0.1 application mode is unchanged.
- **Memory Hygiene, the desktop app** (`forgetproof desktop`, `[desktop]` extra; Apple-silicon macOS and Windows
  bundles from `packaging/desktop.spec`): overview of every agent store on the machine, what it still
  remembers about a value, forget everywhere with per-store receipts, receipts and verification, sweep
  now or daily (launchd / Task Scheduler), pin and unpin. A loopback API with a per-launch token behind
  a system webview; nothing leaves the machine. The same bundle is the CLI when given arguments.
- **The forget-me extension and SDK for hosted personal agents** (`forgetproof.agent.Provider`,
  `docs/extension.md`): `/.well-known/forgetproof.json`, `POST /forgetproof/forget` for the signed-in
  user only (the subject comes from the provider's session, never the request), `status`, `receipts`.
  Receipts signed with the provider's own key; API-only stores get `UNVERIFIABLE`. Pure ASGI, mountable
  anywhere.
- **forgetproof-verify** (`packages/forgetproof-verify`): a dependency-free JavaScript verifier for
  browsers and Node — canonical JSON, Ed25519 (WebCrypto or bundled pure JS), file hashes, and the
  well-known key check.
- **The live demo** (`demo/`, Dockerfile, Railway): John, his agent Pim, eight stories on real stores, a
  console with the parties' own log, receipts verified in the browser, and Pim Cloud, a fictional hosted
  provider built on the SDK.
- **ForgetMe, phase 2: the wire contract and the reference Company** (`docs/extension.md`,
  `schemas/forget-me/v1/`, `company/`, `forgetproof.forgetme`). The versioned ForgetMe v1 spec: discovery
  through a composable `extensions["stellarminds.ai/forget-me"]` fragment in `/.well-known/poppy.json`,
  every route derived from the advertised endpoint, issuer keys in the index at `GET {endpoint}`, headers,
  size bounds, authorization rules, status codes, retry and polling semantics, and the portable receipt
  `forget-me-receipt/1` (counts, timestamps and vocabulary words; no path, filename, value, cross-service
  id or value hash; signed as such; `forgetproof verify` and `forgetproof-verify` accept it, old receipts
  still verify). Nine JSON Schemas with valid and invalid fixtures. Bay Parcel, the reference Company:
  a separate ASGI app on its own origin with its own Ed25519 key and SQLite files, the full lifecycle
  (references at write time, preview, at-most-once submit, retrieval stopped at accept, deletion by id,
  derived items rebuilt from provenance, residue erased and inspected, one restore attempt refused, a
  queued step that re-checks its authority, reconciliation after a restart), without the Python
  `Provider` class. Pim's "I moved" gains the Company as a second party and two labelled simulated
  recipients: one row per holder with action, evidence, unresolved item and time; pending and unverified
  rows; resuming with the operation id shows the new outcome. Sample host 2, a chat, at `/hosts/chat`.
  A second Railway service (`company`) in `.railway/railway.ts`. The 0.2 provider surface moved to
  `docs/provider-surface.md`, unchanged.
- **ForgetMe, phase 1: the button, local only** (`packages/forgetme-button`, `demo/forgetme.py`).
  ForgetMe is the button and flow a person and their personal agent use to make "forget this" really
  happen and show what happened; ForgetProof is the engine behind it. One framework-neutral
  `<forget-me-button>` element (plain ESM, no build, no key, no account, no telemetry) over a five-method
  `ForgetMeHost` interface (reference, preview, submit, status, evidence) and the `/forget-me/v1/` host
  contract: opaque per-item references issued at write time, an explicit separate `account` scope, exact
  terms with per-exception choices, idempotent at-most-once operations durable across restarts, and the
  outcome vocabulary `inspected-and-clear`, `bytes-still-found`, `intentionally-retained`, `queued`,
  `unsupported`, `error`. The landing page shows a recorded run first and puts the real button beside
  John's stale address on request; sample host 1 is a memory list at `/hosts/memory-list`. The extension
  namespace becomes `stellarminds.ai/forget-me` (`"1"`, provisional); ForgetMe is a third-party proposal
  targeting Poppy 1.0, not approved or adopted by anyone, and this phase does not speak Poppy.

## 0.1.0 — unreleased

Initial release.

- `scan`: Chroma 0.6/1.x, Postgres/pgvector, SQLite. Text, JSON and Markdown output.
- `fix`: Chroma collection rebuild with journaled swap, orphaned index removal, zeroing of unused index
  memory, `VACUUM` with `secure_delete`; Postgres `VACUUM FULL` and WAL switch. `--dry-run`.
- Ed25519-signed receipts; `verify`, `key`.
- MCP server (`forgetproof mcp`, `[mcp]` extra): scan, plan, fix (opt-in) and verify for named stores.
  Subject-scoped `check_if_forgotten` / `forget_me`, gated on `--subject-file`, so the agent itself can
  never name a value to look up or erase. No tool exposes a value-matching parameter to the agent. The
  subject file is only read if it, and its directory, are owned by root or the server's own user, aren't
  symlinks and aren't writable by anyone else (POSIX; on Windows only the symlink check applies).
- `forget()` / `forgetproof forget` / `forgetproof run-queued`: erase one subject's data immediately,
  or queue it (encrypted at rest) when the store can't be rewritten yet, to finish at the
  application's next start before it reopens the store. A queued entry is kept and retried, not
  dropped, if a drain comes back showing residue; after a few attempts it's parked, and purged
  automatically after 30 days (`forgetproof purge-stale` sooner) rather than kept indefinitely.
- `forgetproof init`: finds likely Chroma, SQLite and Postgres stores under a directory, asks once,
  and pins them by name to `.forgetproof.json`. Every command that takes a store accepts a pinned
  name in place of a path or URL, found by walking up from the current directory. A Postgres entry
  records only an environment variable's name, never its URL. Resolving a pinned entry refuses it
  if what's there no longer matches what was pinned, points outside the config's own directory, or
  (Postgres) names an unrecognized environment variable. The upward search for a config file only
  trusts one this user owns and alone can write, and stops at the first ancestor directory this
  user doesn't own — so one planted in a shared directory above the current one is never used.
- `fix --correlation` / `forget --correlation`: an opaque caller-supplied id (a case or ticket id, say)
  carried into the receipt's `correlation_id` field, including through a `forget()` that queues and only
  drains later, in a different process, via `run_queued`.
- The Ed25519 signing key and the queue's encryption key can be kept in the OS keychain instead of a
  file, with `pip install 'forgetproof[keyring]'` and `FORGETPROOF_USE_KEYRING=1` (opt-in; an
  existing file key is never migrated automatically).
- Composite GitHub Action.
