# Audit hand-off

You are reviewing ForgetMe independently, and this page hands you what you need to test the demo and the
reference Company from the source tree or from the deployed site. It gives you:

- the tested commit, and how to run a preview;
- the public integration guide and the test commands;
- two recorded withdrawals from click to signed outcome;
- the release matrix, what is simulated, and what the demo can and cannot support.

Status: written for phase 4 on 2026-11-21 and kept as the record of that review; production is `main`
as deployed by Railway, and `GET /health` on each service names the live commit.

ForgetMe is the button and flow a person uses to make "forget this" really happen; ForgetProof is the
engine behind it. It is a third-party extension proposal targeting Poppy 1.0, the Personal Agent
Protocol, not approved, adopted or reviewed by anyone. Everything in the demo is fictional: John Reyes,
his agent Pim, the courier Bay Parcel, `example.com` addresses, 555 numbers. The
[glossary](/docs/glossary) defines the words below.

## The tested commit

| | |
|---|---|
| **Tested commit** | The head of the phase 4 pull request, named in its body under "Release matrix" and in the side-session hand-over note; the suite below was run on it before the PR was opened. A running server names its commit at `/health` (`commit`) and `/config`. |
| **Branch** | `claude/lucid-kare-dba7ed`, cut from `main` at `68ec1e1` (phase 3 merged), on top of `400a791` (the walkthrough fix). |
| **Preview** | Any checkout of the branch, started as under Runnable preview; the same image Railway builds (`Dockerfile`). |
| **Production** | `main` as deployed by Railway: `site` at https://forget.stellarminds.ai and `company` at https://company.forget.stellarminds.ai. Merging a pull request deploys it. `GET /health` on each service says which commit is live. |

The release matrix (commands, counts, exclusions, dependency versions, required optional test
dependencies) is in the PR body and summarised under Release matrix below.

## Runnable preview

Local, two origins: the reference Company first, then Pim pointed at it. Python 3.11+ and `uv`:

```sh
uv sync --all-extras
COMPANY_DEV_CLIENTS=1 COMPANY_ORIGIN=http://127.0.0.1:8090 uv run python -m company                     # http://127.0.0.1:8090
FORGETME_COMPANY_URL=http://127.0.0.1:8090 PIM_ORIGIN=http://127.0.0.1:8080 uv run python -m demo.server  # http://127.0.0.1:8080
```

Each server ends its start with `Uvicorn running on`; `curl -s http://127.0.0.1:8080/health` then
answers `{"ok": true, …, "cross_provider": true}`. Without `FORGETME_COMPANY_URL` Pim runs the local-only
level, with the courier simulated and labelled, and `cross_provider` is false. The same two processes
from the image:

```sh
docker build -t forgetproof-demo .
docker run -p 8090:8090 -e PORT=8090 -e COMPANY_DATA=/data/company -e COMPANY_ORIGIN=http://127.0.0.1:8090 -e COMPANY_DEV_CLIENTS=1 -v fp-company:/data forgetproof-demo python -m company
docker run -p 8080:8080 -e FORGETME_COMPANY_URL=http://host.docker.internal:8090 -e PIM_ORIGIN=http://host.docker.internal:8080 -v fp-data:/data forgetproof-demo
```

| URL (preview `http://127.0.0.1:8080`, production `https://forget.stellarminds.ai`) | What |
|---|---|
| `/` | The landing page: the recorded example first, "Run it fresh" builds a real scenario and puts the real button beside the stale address; `/#try` deep-links to it. |
| `/hosts/memory-list` | **Host entry point 1**: a memory list, one `<forget-me-button>` per item and nothing else from the demo's internals. |
| `/hosts/chat` | **Host entry point 2**: a chat; "Forget my old address" puts the same button in the reply. |
| `/console`, `/stories/<name>` | The eight stories; a story link selects and shows its latest or recorded result, runs nothing. |
| `/runs/<id>`, `/s/<id>` | Shareable results: a story run; a ForgetMe result its owner published. Expired links explain themselves. |
| `/docs`, `/docs/spec`, `/schemas/`, `/verify` | The public integration guide (next section). |
| `/forget-me/v1`, `/.well-known/forgetproof.json`, `/poppy/agent.json` | Pim's index and keys, the 0.2 well-known document, Pim's Poppy client metadata. |
| Company: `/.well-known/poppy.json`, `/.well-known/oauth-protected-resource`, `/.well-known/oauth-authorization-server`, `/forget-me/v1`, `/openapi.json` | The reference Company's discovery, issuer metadata and index. |

## The public integration guide

You need nothing but the demo to read and test the contract: `/docs` (index), `/docs/spec` (the wire contract,
revision 1.0-draft.4), `/docs/quickstart-client` and `/docs/quickstart-company`, `/docs/button` (the
element, the five-method host interface, the host contract, the changes since phase 1), `/docs/verifier`,
`/docs/company`, `/docs/glossary`, `/docs/embed` (the embed snippet), `/schemas/` (nine JSON Schemas with
valid and invalid fixtures, the Poppy kit's schemas vendored unmodified), `/docs/sample-receipt.json`,
`/verify` (the verifier in use), `/docs/walkthrough.mjs` (the five methods from Node),
`/docs/src/tests/test_wire.py` (a complete Poppy 1.0 client over real HTTP in about 350 lines). No
package is published yet, and every page says so.

## Test commands

From the source tree; CI runs the same (`.github/workflows/ci.yml`):

```sh
uv run pytest -q                                                   # the Python suite: engine, legacy scenarios, ForgetMe, Company, Poppy, wire, public routes
uv run --extra browser python -m playwright install chromium
uv run --extra browser pytest -q tests/test_browser.py             # the browser acceptance set (Chromium)
cd packages/forgetproof-verify && npm test                         # the verifier, Node 18+
cd packages/forgetme-button && npm test                            # the host adapter and the outcome vocabulary
uvx ruff@0.13.0 check src tests examples demo company              # lint
node packages/forgetme-button/example/walkthrough.mjs http://127.0.0.1:8080 delete   # the headless host against a preview
```

Each `pytest` run ends with a `passed` count and no `failed`; `npm test` ends with `fail 0`; ruff prints
`All checks passed!`; the walkthrough ends with a `courier` line naming the new address.

What each file covers: `tests/test_site.py` (every legacy story in-process through `run_story`, the
HTTP surface, rate limits, the shared chrome), `tests/test_forgetme.py` (the phase 1 host contract),
`tests/test_wire.py` (the phase 2 public-contract client over real HTTP, two processes),
`tests/test_poppy.py` and `tests/test_company.py` (the phase 3 conformance set),
`tests/test_cross_provider.py` (Pim's aggregate with the Company and the simulated recipients),
`tests/test_forgetme_schemas.py` (fixtures and live answers against the schemas), `tests/test_public.py`
(the docs routes, deep links, shares, retention, exported examples), `tests/test_browser.py` (the browser
acceptance set: cancel, double click, pending then resolved, keyboard only, screen-reader labels, 375 px,
the chat host over Poppy, a fresh visitor following a story link to a recorded result, a shareable link in
a fresh session, the verifier confirming an issuer, rejecting a change and saying unconfirmed without
discovery, the docs on a phone). Old receipts through the new verifier:
`packages/forgetproof-verify/test/receipt.test.js` and `evidence.test.js` (the 0.1 and 0.2 fixtures, the
portable fixtures, tamper rejection, rotation).

## Two recorded withdrawals

Both were recorded inside the build image by `python -m demo.forgetme`, with no local path and no user
name; the test `test_recorded_examples_carry_no_local_paths_or_personal_identifiers` checks every
recording. Each has two runs (keep the lease note; delete it too) and a `steps` list from the person's
sign-in to the signed outcome, with the host calls the button makes.

| Recording | Level | Where | What it shows |
|---|---|---|---|
| `withdrawal-local-only.json` | Local only (no Company configured) | `/recorded/withdrawal-local-only.json` | Session, memory listing, the stale address booked, preview (4 holders plus the ephemeral conversation window, the lease-note exception), confirm, `202`, polls, `done`, 4 portable receipts signed by Pim, every signature verifies, the next delivery goes to the new address. |
| `withdrawal-cross-provider.json` (also the landing page's `forget-me.json`) | Cross-provider, over Poppy 1.0 | `/recorded/withdrawal-cross-provider.json` | The same, plus Bay Parcel's exact terms stated at preview time (operation id, revision, expiry), the person's approval sent with the submit, Bay Parcel's three receipts re-served as received (records clear, invoice retained under a disclosed retention, legacy export clear), the simulated recipients' rows (Harbor Pharmacy: unsupported with Pim's acknowledgment receipt; Oakland Utilities: pending, then unsupported as an observation), 8 receipts in all. |

Verify them at `/verify?receipt=/recorded/withdrawal-local-only.json&issuer=none`: the signature is
valid and the issuer is unconfirmed, because the recording key is nobody's live key, which is the point.
With the pin shown in the file's `signing_key` the issuer reads `pinned`.

## Release matrix

The PR body has the full table with counts. What runs where:

| Suite | Entry point | Needs |
|---|---|---|
| Python, full | `uv run pytest -q` | the `dev` group (chromadb 1.5.9, starlette, uvicorn, httpx, jsonschema, mcp, keyring, lancedb, qdrant-client, psycopg, pgserver on < 3.13); `tests/test_postgres.py` skips without `FORGETPROOF_TEST_PG_URL` or pgserver; `tests/test_browser.py` skips without playwright |
| Browser acceptance | `uv run --extra browser pytest -q tests/test_browser.py` | the `browser` extra (playwright) and Chromium (`python -m playwright install chromium`) |
| Verifier (JS) | `cd packages/forgetproof-verify && npm test` | Node 18+ (22 in CI) |
| Button (JS) | `cd packages/forgetme-button && npm test` | Node 18+ |
| Schemas with ajv | the `verify-js` job in `ci.yml` | `ajv-cli@5`, `ajv-formats@3` through npx |
| Lint | `uvx ruff@0.13.0 check src tests examples demo company` | ruff 0.13.0 |
| Chroma versions | the `chroma-versions` job | chromadb 0.6.3, 1.0.21, 1.2.2, 1.4.1, 1.5.9 with the base package and pytest only |
| Postgres | the `postgres` job | pgvector 0.8.7 on pg16, pg17, pg18 |

## Simulated, and labelled

| Fixture | Where it is labelled | What a real deployment replaces it with |
|---|---|---|
| John's synthetic session at Pim (`POST /pim/sessions`) | every page, the index (`session`), the timeline's first line | the host's own sign-in |
| Bay Parcel's issuer, which signs nobody in (`auth.disabled: true`; `POST /fixture/accounts` creates John's account and mints the refresh token a sign-in would have produced, for Pim's `client_id`) | `poppy.json`, the Company page, the landing page | Direct or Device Sign-In at the Company |
| Harbor Pharmacy (simulated recipient, API-only: acknowledges, issues no evidence) | the preview's holder and exception text, the recipients list ("simulated inside this demo"), the result row | nothing: it stands for a recipient without ForgetMe |
| Oakland Utilities (simulated recipient: offline when first asked, then publishes no ForgetMe endpoint) | same | same |
| The courier, when no Company is configured ("Bay Parcel (simulated)") | the booking card | the reference Company, which is the courier at the cross-provider level |
| The recorded examples (`/recorded/*.json`, `stories.json`) | "Recorded example" badges and sentences on every page that shows one; the verifier reports their keys as pinned, never confirmed | a live run |

Never simulated: authorization on every read and write, the opaque references, the stores (real Chroma,
mem0, SQLite and JSONL files built fresh per scenario), the erasure, the receipts and their signatures,
the Session header and its verification, the token exchange, the negotiation headers, the approval of
exact terms, the second party on its own origin.

## Claims the demo supports

A person can see what a personal agent holds and make it erase one item or everything, with exact terms
shown first and the exceptions decided by them. Retrieval stops at accept. The bytes are erased from the
agent's own stores and inspected afterwards. One signed portable receipt per holder carries counts and
vocabulary words only. A browser verifies the signature, confirms the issuer only through the issuer's
own discovery, and shows the declared outcome apart. A recipient that speaks the contract over Poppy 1.0
is asked by an opaque reference with the person's approval of the recipient's own exact terms, and its
receipts come back as received. A recipient that cannot answer shows as pending or unverified, never as
clear. Nothing is erased twice. A restart reconciles by scanning again. Every result is reproducible
from the public commands above.

## Limits

- A real sign-in at a Company: the issuer fixture stands in.
- A Company implemented by someone else from the spec and schemas alone: the reference Company shares code with Pim only through the engine's `forgetproof.forgetme` helpers.
- The Poppy kit's Node validator was not run against production; it needs Node 22.18 and an HTTPS deployment of the test agent's documents.
- Adoption by any personal-agent provider: none has.
- Publication of the packages, and a second verifier implementation.
- Forensic claims about storage below the logical files, and anything about data that left the agent's stores before provenance tracking existed beyond exact-text inspection.

## Next steps

- [ForgetMe v1, the wire contract](/docs/spec): what the suites above test against.
- [The demo site](/docs/demo): the files, the variables and the deployment behind the preview.
- [Bay Parcel, the reference Company](/docs/company): the second party, its holders and its fixtures.
- [Changelog](/docs/changelog): what each phase changed.
