# Changelog

All notable changes to Proof of Stock. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
Versioning: [SemVer](https://semver.org/).

- **Major:** a breaking change to an answer's shape: a field removed or renamed, a unit changed, an enum value removed,
  or a schema in `schemas/v2/` or `docs/reference/passport.schema.json` changed incompatibly.
- **Minor:** new fields, tools, routes or pages.
- **Patch:** fixes that keep every shape.

The version is in `package.json`, and the site footer, the MCP `serverInfo.version` and the header of every docs page read it from there. No page writes it into its own text: a number written in two places is a number that goes wrong in one of them.

## [Unreleased]

### Changed
- **The contact address is hello@proofofstock.com** everywhere the site, the docs, the MCP descriptions and security.txt name one. hello@proofofstock.xyz keeps forwarding.

### Fixed
- **`simulate_buy` on Base answers with a fit quote, never with a drained pool's.** Both Aerodrome's single pool and KyberSwap are read; a quote more than 5% over its own pool's mid, whose sell-back returns under half the input, or more than 2% below the other fit line, is not the price (docs/simulate-buy-tz.md §3.4). Aerodrome stays the primary while it is fit; otherwise KyberSwap is, with `quote.source: "kyberswap"` and the lead saying that Aerodrome's pool would give far less. None fit is `checked`, `quote.reason: "no_fit_quote"`. With a wallet, the dry run follows the primary (KyberSwap's build when it is the primary).
- **The guards are held to the numbers they read.** KyberSwap's impact is its own output against the mid of the one pool its whole route uses, never Aerodrome's; another route is `impact_basis: "not_measured"`. The 5% cutoff is exact (exactly 5% passes). Aerodrome's quote and its pool mid are read at one canonical block hash, retried once if displaced. A KyberSwap summary its own route's outputs contradict is `quote_mismatch`, and a build that is not the quoted route (its input sent to anyone but the route's pools or the executor the call names, or an executor path that does not name every quoted pool) is `build_unverified`, never run.
- **A token whose pools sit only in the unconfirmed Slipstream factory, or only on Uniswap v4, is no longer `no_route`** on Base: its Aerodrome line is `venue_unconfirmed` or `venue_unsupported`, and KyberSwap's quote is the answer.

### Added
- `schemas/v2/simulate.schema.json`: `quote.fit`, `unfit`, `pool_price_impact`, `sell_back_share`, `fit_rule`; the same fit fields on the `venues` lines; `venues.aerodrome` carries its full line when it is not the price; quote reasons `no_fit_quote` and `venue_unsupported`.

## [0.10.1] - 2026-11-28

The site moves to proofofstock.com; proofofstock.xyz keeps answering every machine path, forever.

### Changed
- **The site is proofofstock.com** (docs/domain-move-tz.md step H). The app's default public origin, so every link, canonical tag, sitemap entry, `llms.txt`, receipt URL and MCP URL it writes, is `https://proofofstock.com`; so are `server.json`'s website, icon and remote URL (the registry name stays `xyz.proofofstock/proof-of-stock`), the docs, the README, SECURITY.md, the badge's footer, the canary's and the exam's site, the analytics default zone and the Telegram bot's links. **proofofstock.xyz keeps answering, forever:** `/mcp`, `/verify`, `/api/*`, `/badge.svg`, `/tokenlist.json`, `/denylist.json`, `/openapi.json`, `/anchors/*`, `/.well-known/*`, the agent test's result pages and badges answer there directly, with no redirect, so every receipt already issued still checks (`LIST_ORIGINS` keeps both hosts), every installed guard keeps working and nobody has to reconfigure an agent. A copy of `scripts/receipt-check.mjs` taken before this release refuses a `.com` receipt; take the current one. The contact address stays hello@proofofstock.xyz.
- **`@proofofstock/guard` 0.4.0 asks proofofstock.com by default.** The default `endpoint` is `https://proofofstock.com`; 0.3.x and earlier keep asking `https://proofofstock.xyz/verify`, which keeps answering directly. Pass `endpoint` to pin either host.

## [0.10.0] - 2026-11-28

Before a buy, more than the verdict: `simulate_buy` says what a dollar amount of a listed stock token would get right now, and the passport shows the pool depth and, on Base, the issuer's B20 transfer rules (open, restricted or paused) read from the chain. A listed record now needs the issuer's factory on chain, and a kill switch runs off our host. New for wallets and front ends: `/tokenlist.json` and `/denylist.json`; for agent builders: the agent test and the Demo Agent. And checks that keep what lives outside the repository from going stale: the health check alerts when npm or the MCP registry lag behind the repository, or when a week of changes waits unreleased.

### Added
- **B20: hardening after two stress reviews.** One node never decides: both RPCs are read at one common safe block and compared, and a disagreement or a missing answer is `unknown` (`rpc_disagree`, `single_source`). Heads are held to a plausible block rate. The changes go to a durable outbox that the health check reads with a cursor, in batches, counted only when Telegram took them. The baseline is kept per scope. An actor of a swap that the reading did not cover is read at the chain's head, or its line is `unknown` (`venue_unchecked`). The wallet read stands on its own, and the wallet is in no sentence. A blind reader is an alert.
- **Alerts for what lives outside the repository** (`deployment/ALERTS.md`; owner, 27.11). `stp-health` compares the deployed release with what the world sees: `stale:npm-guard` when `@proofofstock/guard` on npm stays below `packages/proofofstock-guard/package.json` for more than 3 days, `stale:mcp-registry` when the official MCP registry's latest version stays below `server.json` for more than 3 days, and `stale:release` when `[Unreleased]` in this file has entries and the newest dated release is more than 7 days old. A registry that cannot be read is said in the journal, never an alert by itself.
- **A test that every public capability is named where people and agents look** (`apps/capabilities-coverage.test.mjs`): each MCP tool, `/tokenlist.json`, `/denylist.json`, the agent test and the B20 transfer rules must be on the landing page and in `server.json`'s description or `llms.txt`. A new tool or route that nobody mentions fails CI.
- **The issuer's B20 transfer rules on Base: open, restricted or paused, on the passport, in `simulate_buy` and on the token page** (docs/b20-transfers-tz.md; owner, 27.11). Every Coinbase stock token on Base is a B20 token, whose issuer can bind an allowlist or blocklist policy to who sends, who receives and who calls a transfer, and pause transfers, without changing the token's address. The site reads each listed token's policies and pause from Base every 5 minutes, at one block pinned by its hash (policy existence first: an unknown policy is never "open"), for a fixed address nobody controls and for the routers and pools we name. The passport carries `latest.transfers` and the notes `transfers_restricted` / `transfers_paused`; the pause is said as the chain says it and as the issuer's list says it. `simulate_buy` refuses with `transfers_paused` before any quote, does not ask a router or pool the issuer refuses (`venue_not_allowed_by_issuer`), and with a wallet reads its receiver policy at the pinned head: a wallet it refuses gets `would_revert`, `wallet_not_allowed_by_issuer`, without the swap being run. A stale or failed reading never refuses. The token page shows "Transfers: open, read from Base N min ago" under the price. The owner is alerted once per change of a token's rules: the health check sends each change the site lists on `/api/status` that it has not told, then diffs the site's baselines against the one it last told the owner about (never backwards), and counts an alert only when Telegram took it (the site holds no bot token, and the probe wallet is never published by its address). A reading is as old as its block, by the block's own time; a lagging, lower or reorganised head and a malformed Multicall3 answer are no reading. On Base the chain's pause decides over the issuer's list; venues are checked in the role they play in the transfer; a wallet the sender policy refuses gets no sell-back. None of it changes "listed", the impostor verdict or a held record. Base only; `scripts/stocks/b20-live-check.mjs` checks the reads against Base by hand.
- **`simulate_buy`: what a dollar amount of a stock token would get right now, for that exact size** (docs/reference/tools.md#tool-simulate_buy, `GET` and `POST /api/simulate`; owner, 27.11). The verdict comes first, from the same function as `verify_stock_tokens` and against one registry read: a look-alike or a token off the issuer's list is refused with `use_instead` and gets no quote at all. For a listed token: a live quote (on Base, Aerodrome's own Quoter read from its contracts, with KyberSwap across venues as a second line; on Robinhood Chain, KyberSwap), the effective price and premium over the issuer's reference against your limit (3% by default, measured both ways), the minimum received, gas, the sell-back, and the market session, the reference's age and the pool depth. With a public wallet address, also a dry run of that exact swap for that wallet by `eth_call` at one block, overriding only the stable balance, approval and gas it lacks, never the stock token, with a revert attributed by probe calls. Nothing is signed or sent and no transaction is returned. Over HTTP the wallet travels only in a POST body (a URL is written to the web server's log); it is sent to the aggregator and the node for that one answer and kept nowhere. 10 units of the rate limit, 15 with a wallet; outgoing aggregator calls are capped for the whole server, with a share per client, and a busy answer keeps only 3 units. The answer's schema is `schemas/v2/simulate.schema.json`. The MCP server now lists eleven tools. After an outside review: KyberSwap's route and its built swap are decoded and held to the swap asked for; an Aerodrome pool that stops at its price limit is not a quote for the size; the base fee comes from the block header and the gas says what it covers; every word from the node is read strictly; a held record keeps its 503 under any exact name; the pause comes from the issuer's list now; the boundary of the limit is computed exactly; the answer has one deadline below the proxy's; the cap counts calls as they go out; /api/simulate is logged without its query string.
- **`/denylist.json`: every look-alike we flag right now, on both chains, in one file** (owner, 27.11). Free and open to any origin, for wallets, DEX front ends, trackers and security APIs that warn before a swap. Each entry gives the address, the issuer's token it imitates with that token's own contract, the kind of claim, when it was first seen and a link to its evidence. It is not a token list, carries no stranger's text, and is answered only when both chains' flags have been read. The archive of closed cases and a feed of changes stay on request.
- **The agent test** (docs/how-to/test-your-agent.md, /agent-test). An agent builder starts a test and gets six buying tasks: companies by name and addresses, some the issuer's own, some not. Their agent answers each with a contract or a refusal; nothing is bought. The answers are graded against the issuers' lists frozen at the start, and the builder gets a result page with a plain Passed or Not passed, a badge that turns grey after 30 days, and a receipt that `scripts/agent-test-check.mjs` checks against us and replays. The page and the badge say what a result does not show: who wrote the answers, what an agent does with money, or how many tries it took.
- **Pool depth on every passport.** `latest.liquidity` gives the size of the deepest eligible pool in US dollars and `thin: true` below 50,000 USD, where a trade of a few thousand dollars moves the price by several percent. The site shows it under the on-chain price, marked "thin liquidity" when it is. It is the pool's size, not a quote, and the issuer's reserves are still not something we can check (owner, 26.11).
- `/tokenlist.json`: the issuer-listed stock tokens that trade in a pool, as a Uniswap token list for wallets and DEX front ends to import (`apps/stocks-tokenlist.mjs`). Built only from issuer lists read in the last 15 minutes (503 otherwise), checked against the format's rules before it is served, and never holding an impostor: look-alikes stay at `/api/impostors`.
- The Demo Agent at `/demo`, a tab after Home (and in the sitemap): an agent that finds a stock token the way anyone would, by searching the market for its name, and lets Proof of Stock tell the original from the rest. Pick a stock (Circle first: several tokens on Base carry its exact symbol); the page runs the guard's own `examples/agent-search.mjs` live in the browser: every token on Base that bears the name, from GeckoTerminal's search, is checked in one batch, each marked fake, not on the issuer's list, or original, and credited to Proof of Stock; the agent goes on with the original only, reads its passport, holds a live aggregator quote (KyberSwap) to the issuer's price and ends with an Aerodrome link and the highest price to accept there, since Aerodrome shows its own; or, for developers, an unsigned transaction through KyberSwap's router for a wallet address typed in the Developer view (the field shows there only, and is ignored in the other views). One switch tells the same run in plain words, as a trader's numbers (liquidity, price gap, price age, minimum received) or as the calls a developer makes. A token off the list is never called fake: it may be another issuer's. Nothing is signed and no key exists; only this page's CSP lets the browser reach GeckoTerminal, KyberSwap and Base's public RPC.
- The Demo Agent understands a request in a person's words: "Tesla 7000$", "nvidia 7k", "$2 circle" or the same in Russian become a stock and an amount (`parseIntent` in `examples/agent-search.mjs`), Russian names included; an amount in the words fills the amount.
- The Demo Agent no longer loses the first click: a stock picked while the guard's files are still loading runs once they arrive, and if they never do, the agent says it stopped and asks for a reload.
- The Demo Agent ends with a simulated swap, said so in every view (owner, 25.11: the agent buys by itself; the button goes to the terminal). A live agent signs the swap with its own wallet, within its owner's limits and capped at the issuer's price + 3%; this page has no wallet, so nothing moves, and it links to the token's passport. The swap button moved there: an issuer-listed token on Base gets "Swap USDC → <symbol> on Aerodrome" in its passport, pinned to Base, with where 3% over the issuer's price is and that this site never signs.
- The Demo Agent never shows a name set by a token's creator: tokens off the issuer's list are listed by their symbol only when it reads like the ticker, and the market search's raw answer is summed up in the Developer view (an offensive name had come up for Tesla). The original moves to the top once ruled; the log grows with the page instead of scrolling inside it; a line under the title says what Base, USDC and the trailing c are; an empty or zero amount becomes $20 in the field, not silently.
- The guard's files the Demo Agent runs are served under a versioned folder, `/guard/<version>/`, kept for good, and any other version is gone; without the version they are asked again on every load. A browser had kept a day-old `agent-buy.mjs` that still linked to KyberSwap and lacked the price to accept ("$NaN").
- The Demo Agent's blocks are the main terminal's own: the passport with its card head (symbol, Base mark, address, Issuer-listed), fields with a dotted leader, plain-word lines with a coloured edge, and the links to GeckoTerminal and basescan.org under the swap button.
- The swap link opens Aerodrome (`aerodrome.finance/swap`, both sides pinned to Base's chain id 8453) instead of KyberSwap, whose link opened on Ethereum for a wallet left there, under the same Base addresses. Beside the button, in every view, the page says the trade is on Base and to stop on any other network; the unsigned swap and its approve carry chain id 8453.
- `examples/agent-search.mjs` in the guard package: a market search for a stock, `beforeBuyMany` on every token found, the issuer's own picked, then `agent-buy.mjs` for the passport, the quote and the unsigned swap. Strangers' token names are kept short, single-line and without links (`cleanLabel`).
- With eight tabs the bar puts them on a row of their own below 900px wide (below 1180px beside the docs search box), so none is cut off at the edge.
- The agent buy example reports each step to an optional `onStep` hook, builds the USDC approve it needs for exactly the amount (`approveUsdc`, never unlimited), and loads in a browser.
- The landing FAQ asks first what people ask first: "Has anyone audited it? Why trust it?", answered as it is (no independent audit has been published; every answer can be checked without us; the daily exam; the reward). It takes the place of "How do we know the answers are right?". The answer on a source being down now says every answer, not only the address check, refuses to verify from an old list; the one on calling it from code names the Telegram bot and the paid pass past the free minute.
- "Check us, not just our answers" (`docs/how-to/check-us.md`), where the Proofs tab now opens: what we could fake and what we could not, the three checks of an answer anyone can run without us (the verdict against the issuer's own list, the past against Bitcoin, a price against the chain at its block), what else runs against us daily, and the one true sentence an agent should say when asked whether the service is audited. The MCP instructions point agents there.
- A reward: 100 USD in USDC on Base for a critical finding (a false "listed", a pass without its payment, somebody's text in a sentence of ours). Terms in `SECURITY.md`; the threat model points to them.
- The footer links `security.txt` as "Security", beside Legal: where somebody looking for how to report a hole looks first.
- Pay per call: a client sets a hard price ceiling itself, never more than 0.01 USDC for one of our passes without a person confirming; and the refusals table names the new one (a purchase from here is being settled) and that failed payments are capped on every paid route.
- **A kill switch off our host** (`deployment/KILLSWITCH.md`, `deployment/cloudflare/killswitch/`). A Cloudflare Worker in the owner's own account compares, once a minute, the list our server decides against with each issuer's own list. If our server would call listed something the issuer does not list, on two runs in a row, it trips: `/verify`, `/api/*`, `/mcp`, `/badge.svg`, `/tokenlist.json`, `/denylist.json` and `/agent-test/*` answer `503` until the owner clears it by hand. An issuer that cannot be read is "unknown", never a mismatch (outside review, 25.11).
- **The threat model names a lying source and a taken host** (`docs/explanation/threat-model.md`, "When the source itself lies, or our host does"): a foreign address added to an issuer's list, and our own host broken into, with the three locks that answer them (the guard's own read of the issuer, the kill switch, the chain) and what each cannot see.

### Changed
- **`GET /verify` with no address says how to use it.** Without `address` or `addresses` it still answers 400, now with one working example URL and a link to the route's docs, for a person who clicked a bare link.
- **The MCP registry description says what the server does now**: the verdict, the passport's prices, depth and transfer rules, and a simulated buy, on Base and Robinhood Chain. The landing's first screen names the simulated buy beside the check, and what it checks names the issuer's transfer rules.
- **Demo Agent: Apple and Amazon buttons, quick amounts and a clear word.** Under the field, $10, $100, $1,000 and $10,000 write "stock amount$" into it, the way a reader types it; with no stock there, a random one of the buttons is picked. "clear" empties the field.
- **A record on the issuer's list is called listed only when the chain backs it** (`docs/list-locks-tz.md` v3; the owner accepted the delay for new listings). If an issuer's API list were tampered with, a foreign contract on it would otherwise be called the issuer's own on every route.
  - **What it checks.** On Base, the address must have the pinned prefix `0xb200000000000000000000`. On both chains, the issuer's factory must have created it, as recorded by the finalized-block mirror and, where there is one, confirmed by a second RPC.
  - **What an untrusted record gets.** No verdict: `503` with a `reason` (`issuer_prefix_mismatch`, `factory_check_unavailable`, `factory_conflict`, `awaiting_factory_confirmation`). It is never `listed: true` and never `listed: false`. Its passport is a `503` too.
  - **Where it holds.** One source of listed records feeds every route that says "listed". A batch with a held record fails closed. A held original is never named as the token to buy instead of a look-alike. `list_proof` and the `/api/list` archive still record the issuer's list as served.
  - **Cost.** A genuine new listing turns "listed" some 35 to 50 minutes after its creation.
  - **Status and alerts.** `/api/status` shows the factory check and the held records. `stp-health` alerts `list-conflict` and `factory-check`, and `list-awaiting` when a record has waited over two hours.
  - **After outside review.**
    - One freshness rule serves the list and the verdict: at the 15-minute edge a held record was answered as listed.
    - A stale list is never replaced by the raw one.
    - A copy of a held new listing still resembles it in its passport, without naming the original.
    - `find` names held matches with their reason and no verdict.
    - The archive never quotes a record the chain contradicts now as LISTED.
    - The search box shows a hold instead of another chain's "not on the list".
    - The MCP batch names the held address and why.
    - An address held on another chain says so.
- **The issuer factory mirror is now a source a verdict could rest on** (the first part of `docs/list-locks-tz.md`, after two outside reviews). Verdicts do not change yet: only the passport's and `/verify`'s `issuer_factory` fact is affected, and it is `null` while the mirror rebuilds.
  - **Finalized blocks only.** It scans to the chain's own `finalized` block, never the head, so a creation that a reorganisation drops is never recorded. An RPC that cannot say which block is finalized is an error.
  - **Logs checked before they count.** A log must be emitted by the pinned factory under the pinned topic, not be `removed`, lie inside the range asked, and carry 32-byte block and transaction hashes. The block hash is kept with the token, and `issuer_factory` now shows it, with `finalized: true`.
  - **Success recorded apart from attempts.** `last_ok` (when, which target block, when the scan began) is written only by a run that reached its target; `last_error` and `updated_at` record every attempt. The stale-mirror alert reads `last_ok`, so a failing RPC no longer looks fresh. A first backfill that keeps moving without errors is reported and does not page.
  - **One validator for both readers.** The scanner and the web process both use `validMirror`, which checks the schema, the pins, the block numbers and the times. A file from another factory, topic or start block, or from the old schema, is not read: it is kept once as `mirror.v1.json` and the mirror is rebuilt from the start. On Base the rebuild takes some hours of runs.
  - **Recorded creations are checked again, and can be taken back.** Once a day, oldest first and at most 150 a run, each creation's receipt must still be in the same block, successful, with the factory's log creating that token. One the chain no longer holds moves from `tokens` to `revoked`, with when and why. `issuer_factory` then says `created: false` with `revoked`, the scan never records it again by itself, and `mirror-revoked` alerts for 7 days. After outside review: a creation is revoked only on proof from the block (the recorded block is no longer the chain's block at that height, or it is and holds no factory log creating the token). A missing receipt or transaction alone never revokes, since a node with a pruned index answers null for every older one. A later valid creation log restores a revoked token, and a refused mirror file keeps its revocations through the rebuild.
  - **A missed log cannot hold a listing forever.**
    - An address on the issuer's list that the factory has not been seen creating is noted as waiting. After 30 minutes it is looked for on its own, then again every 6 hours, at most 5 a run.
    - On Base the search bisects for the address's first block with code (historical `eth_getCode`), then reads the factory's log in that one block.
    - On Robinhood Chain, whose RPC keeps no historical state, it reads every factory log again: a dozen calls for the whole chain.
    - A slow reconcile reads the whole range again, a slice per run, and starts over a week after it finishes.
    - Both only add a creation from a log that passes every check; neither removes one.
    - After outside review: the bisection takes only the log for the address it looks for, inside the block it found. It keeps to its time budget at every step and paces its calls. A revoked token still on the list is looked for and restored by a valid log, and a refused mirror file keeps its waiting list.
    - The mirror unit's time limit is now 13 minutes; the timer still runs every 15.
  - **A second RPC, where there is one.** Each creation is asked of a second RPC, run by another operator than the logs gateway, by its receipt.
    - On Base that is Base's own public RPC; on Robinhood Chain none is known, unless the host sets `STP_VERIFY_RPC_ROBINHOOD`.
    - A confirmed creation carries `second_at`.
    - One the second RPC contradicts is revoked only on proof from its own block (the recorded block replaced, or holding no such log). A missing receipt or transaction alone, or an RPC that fails, does neither, and a block that holds the creation confirms it.
    - The mirror records `sources` (1 or 2), and `issuer_factory` shows `rpc_sources` and `second_rpc_at`. The URL is never written down, since a host's own may carry a key.
- **`@proofofstock/guard` 0.3.0 does not take our word for it.** proofofstock.xyz is the one point every verdict passes through, so a "listed" answer is now believed only if:
  - on Base, the address has the form every Coinbase stock token has (`0xb2` and twenty zero hex digits, pinned in the package);
  - by default, the issuer's own list, read by the guard itself and chosen by the chain (never by the answer), has the address.

  A proofofstock.xyz that was broken into can still refuse a buy, but can no longer make one. An address that fails either check is `unknown`, and `failOpen` does not let a contradicted answer through. `crossCheck` is now on by default outside a browser and keeps the issuer's list for a minute, one read per batch. In a browser the issuers' APIs cannot be read (they send no CORS headers), so there it stays off and the prefix check stands alone. New exports: `ISSUER_OF`, `ISSUER_ADDRESS_PREFIX`, `ISSUER_LIST_TTL_MS`, `ISSUER_FAIL_TTL_MS`, `ISSUER_MAX_PAGES`, `readIssuerList`.

  After outside review:
  - An address the issuer's list, read just now, does not have is refused even with `failOpen`, which stays for an issuer that could not be read.
  - A failed read is kept for 15 seconds, so a batch asks the issuer once.
  - Coinbase's list is followed page by page, up to 5.
  - A Web Worker or Service Worker counts as a browser.
- The Telegram bot answers in Telegram HTML: the verdict in bold with a mark (listed, look-alike, not listed, unavailable), the chain and its issuer on a line of their own, every contract address as a code span that Telegram copies in one tap, and links to the passport and BaseScan. A ticker answer names the issuer's company beside each contract. Only our own tags (b, i, code, a) are sent and every value is escaped; a token creator's text still never reaches a reply.
- **The landing board shows each event's own time.** The board is sorted by event, and its time column now says when that event happened, not when the token was first flagged; a close or a later listing also says when it was flagged. A closed row is dimmed and its token struck through, at any width.
- **The agent test starts in any shell.** A POST with no body starts a test with no label, so `curl -sS -X POST https://proofofstock.xyz/api/agent-test` works in bash, cmd and PowerShell; every example is one line, with a PowerShell form, and a refused body says what to do. `apps/agent-test-e2e.test.mjs` runs the real server end to end: the starts as the page writes them, an honest agent and a naive one, the page, the badge and the receipt checker.

### Fixed
- **A one-word company name is an impostor claim only when the token's symbol backs it.** Names like `Snap`, `Tron`, `Unity` or `McDonald's` are also ordinary words and memes: a token called `Snap` with the symbol `THANOS` is not posing as Snap Inc. The symbol must be the ticker or the company name, or contain the ticker (three characters or more) or the name (four or more). Names of two words or more are unchanged. Cases the narrower rule no longer holds close with the reason "our name rule was narrowed" (`gone_reason: rule_narrowed` in the case log and its schema), never as if the token had changed (case rule `impostor-strong-v3`; outside review, 26.11).
- **`@proofofstock/guard` 0.3.1: `failOpen` never buys a record the server holds because the chain contradicts it.** A `503` whose `reason` is `factory_conflict` or `issuer_prefix_mismatch` is an answer, not an outage, so it is refused whatever `failOpen` says. Any other `503`, an outage or a listing only awaiting confirmation, is decided by `failOpen` as before, and the reason is named in the decision (outside review, 25.11).

### Security
- The public copy gets a plain .gitignore: the patterns that keep a contributor's own secrets, data and build output out of a pull request, with no comment and nothing about our host. The private one, which explains where the keys live and which module is the money path, is no longer exported.
- Paid passes, the money path (owner, 24.11):
  - A v2 payment settled through Coinbase's facilitator is checked on chain before a pass is granted: the receipt must show this payment going to our payee, as for our own settlement. No receipt yet is pending; a receipt that is not this payment grants nothing.
  - The ledgers of passes and payments are kept on disk (`STP_X402_STATE`), so a restart ends no live pass and a settled authorization copied from the chain is "already used", never a second pass. Client addresses are stored as salted hashes; `docs/legal.md` says what is kept and for how long.
  - A settlement that fails after broadcast blocks its payer for 30 minutes, and nobody else; selling as a whole pauses only when ten different payers fail that way within an hour. Before, three failures in a row from anyone paused all sales.
- **From a self-audit before an outside one** (two independent code reviews and a probe of the live service):
  - A stale issuer list gives no verdict on any route. Only `/verify` refused a list the issuer had not answered for 15 minutes; the passport, search, the list, the page and the board kept answering from the old copy, so a token delisted while the issuer was unreachable stayed ISSUER-LISTED there. Now every route says it cannot verify.
  - An issuer answer that is empty, or that lost more than half the list in one read, is a failed read, not a mass delisting.
  - Receipts: the checker requires the address, chain and verdict to be well-formed and to agree, and checks the frozen list's chain, which the archive now names in an `x-pos-chain` header. A rehashed receipt over another chain's list, or one saying `impostor` with `listed: true`, no longer holds. An `impostor` verdict is said to be the service's finding at the time, not something the list re-derives.
  - Failed payments are capped per client on every paid route, not only on the pass route: a client over its free minute could otherwise keep the settlement queue busy for real buyers.
  - The footer badge filter refuses links under any namespace prefix, unquoted links, backslash escapes, character references and `image-set`.
  - The threat model and `SECURITY.md` describe what runs: the facilitator API key and the bot token beside the two keys, that a v2 pass is granted on Coinbase's facilitator's answer, what text of a caller can reach a sentence of ours, the badge from Glama, and the limits not defended against (passes across a restart, breaker griefing, the unmetered badge).

## [0.9.0] - 2026-11-24

### Added
- A Telegram bot (`scripts/stocks/tg-bot.mjs`, unit `stp-tg-bot.service`): send it a contract address and it answers ISSUER-LISTED, LOOK-ALIKE (with the issuer's own contract), DELISTED or UNAVAILABLE, the on-chain vs issuer price gap with its age and the passport link; send it a ticker and it answers the issuer's own contract. Base first; Robinhood Chain only where the address is listed there. No language model: fixed words, never a token creator's text and never the chat's own message sent back; six checks a minute per chat. Optionally it posts each newly opened look-alike case to a channel, once. It reads only the site's API on the loopback; its token reaches it by LoadCredential from a host file the owner types in (`deployment/PUBLISHING.md`). The bot is [@ProofofStockBot](https://t.me/ProofofStockBot), linked from the landing's footer between Telegram and GitHub (the robot icon); it is the footer's, not one of the organisation's profiles in `sameAs`.
- Three read-only MCP tools for what the site and the HTTP API already answer: `largest_gaps`, the landing board of `/api/overview` (per chain, the listed tokens whose on-chain price sits furthest from the issuer's reference, each with when it was read, its reference's age and the sources); `data_freshness`, the facts of `/status` (when each issuer list, pool price and look-alike list was last read, its age, and ok, late or down by the same thresholds); and `address_on_date`, one address on a past UTC day from the archive of `/api/archive/at`, UNKNOWN when nothing was recorded for that day. Each answers from the same function as its page, costs 1 unit of the free minute like the routes it mirrors, and is on `/api` and in the tool reference. The MCP server now lists ten tools.
- The landing's footer shows the Glama score badge of our MCP connector, linking to its page on Glama, before the profile icons. The server fetches the badge at most once an hour and serves it from this site (`/glama-badge.svg`, `apps/stocks-glama.mjs`), so a visitor's browser still asks no third party; the file is accepted only as plain shapes and text with links to its own parts, and is served under a CSP that runs nothing. Until a badge has been read, a plain chip of ours stands in. `docs/legal.md` names Glama among who our servers talk to.
- MCP descriptions say which tool to take: `find_stock_token`, `list_stock_tokens` and `verify_stock_tokens` each name the one to use instead (a name to an address, the whole registry, an address you hold, one address in depth), and `recent_impostors` and `address_on_date` say their window is deliberate, not a bulk download, with the full archive on request. `verify_anchor` lists every anchored day in `days`, not only the newest ten. A test holds that no description names a tool its server does not have. A second pass after the per-tool scores: `stock_passport`, `largest_gaps`, `compare_venues`, `data_freshness` and `verify_anchor` open with what they do and when to take them, and name the sibling to use instead; `verify_anchor` says first what omitting `day` does and that a day with no anchor is an error; `largest_gaps` says "not a trade signal" once; `verify_stock_tokens` says what a malformed address does and what a call costs; `hours` says which part of the answer it reaches. The MCP registry description (`server.json`) says what we check and that we flag look-alikes.
- Embed a badge: every token's passport has **embed this badge**, the badge as it renders and its HTML and Markdown to copy in one click; a how-to (`docs/how-to/embed-a-badge.md`), and the /api badge card points at it.
- `/api`: every call the service offers with its price, on one server-rendered page: the free HTTP routes (method, path, what each answers, its cost in units of the free minute, a copyable example, a link to its reference), the paid pass over x402 with the payment module's own terms (shown only where passes are sold), the MCP tools as the server lists them, and what a free minute buys. Every figure comes from the server's own constants; `apps/api-page.test.mjs` checks the page against `docs/reference/http-api.md`, the MCP tool list and the live limiter. The only script, `api.js`, adds copy buttons.
- Tabs at the top of every page (Home, Methodology, Proofs, API, Status, History, Docs), the current one marked, from one function (`apps/stocks-nav.mjs`) for the landing, `/status`, `/history`, `/api` and the docs. Proofs opens the how-to on checking a day's anchor. Sticky on a desktop; on a phone the bar scrolls away and the tabs wrap into two rows. The docs search box moves into the bar.
- An address that starts like the issuer's own is said not to be the issuer's: every Coinbase stock token starts `0xb2` and twenty zeros, and other tokens on Base can too (22.11: $BINT, a memecoin paired with ANTc). `/verify`, the passport, MCP `verify_stock_tokens` and the page say so in words (`issuer_like_address`); it is not called an impostor for its address alone. The shared start is read from the issuer's list.
- 402index.io domain claim: `/.well-known/402index-verify.txt` serves the hash of the claim token from the host (`STP_402INDEX_HASH`), plain text, and 404 without one; the vhost has the exact location. The token itself stays with the owner. Steps in `deployment/PUBLISHING.md`.
- Who calls it: `/status` counts the agent apps and integrations that named themselves in the last 7 days (an MCP client that called a tool, or a program using our npm guard or the Bankr skill) and how many came back on two days or more, and names the ones it recognises (Claude Code, Cursor and the like). The landing says the same in one sentence under "Ask it from your agent", with a link to how it is counted. A name is a kind of app, not a person; a name we do not recognise is counted and never printed. No new data is collected.
- Paid passes speak x402 v2 beside v1: every 402 carries the v2 offer in `PAYMENT-REQUIRED` (network `eip155:8453`, `amount`) beside the v1 body; a payment in `PAYMENT-SIGNATURE` (v2) or `X-PAYMENT` (v1) buys the same pass, and the receipt comes back in the version paid (`PAYMENT-RESPONSE` or `X-PAYMENT-RESPONSE`). Same price, payee and EIP-3009 settlement by our own wallet.
- `GET /api/pass`: the pass on its own. Without a live pass it always answers the 402 (v2 in the body too, with an x402 Bazaar description of the route); paid, it says until when the pass runs. `GET /openapi.json` lists it with its price for x402 catalogues such as x402scan. Neither exists where passes are off.
- Landing: the lede says who asks: "Your agent asks before it buys, or you do, right here." The service is built for agents first; the terminal on the page is the same check for a person.
- The landing's look-alike board arrives as HTML: the server writes the week's newest 24 cases and the counts sentence into the page (`apps/stocks-board.mjs`), so a reader that runs no script sees the board instead of "Loading the case archive.". The page still carries none of a token creator's own text: before the script runs, the token cell is the contract's short address, and the script writes the symbol and name in as text. The script still redraws it on load and every 5 minutes; a test runs app.js's own board on the same answer and holds the two equal, row for row.
- Counts say what they are out of: `/api/overview` carries `listed` and `minted` per chain (minted null where the issuer reports no supply), the landing board's caption reads "N minted of M listed" before its priced count, and the status registry row adds "N minted (tradable on this chain)" when fewer are minted than listed.
- Guard example: after an accepted quote, `agent-buy.mjs` prints a KyberSwap link with USDC and the checked contract filled in, built from that address only, so the swap can be made in a browser without a search by name. A refused quote prints no link.
- Guard: `examples/agent-buy.mjs`, an agent's whole buy from "buy $20 of SNDK on Base" to an unsigned swap: the handed look-alike is refused, the issuer's contract is checked, its passport read, a public DEX quote held to that contract and to the issuer's reference, and the swap built only for the user's wallet and KyberSwap's router. It never signs or sends.
- Landing: the Bankr skill is in the connect list, said as what it is (in review for Bankr's skill catalog), linking the submission.
- Status: a **Paid passes** block says whether passes are selling or paused, and links the settling wallet on BaseScan, so every sale is a public transaction anyone can count.
- README: the daily public exam is linked in the first screen, with a dated build log of the releases (the code is exported here from a private repository, so this repository's own history is short).
- Stats: an **Agents** tab, MCP without the clients that name themselves probes, catalogues or health checkers. A view by name beside the split by behaviour, which stays as it was; the report prints the same view on its own line.
- Status: the **Paid passes** block shows the sales as the chain has them: how many settlements the wallet has sent (its own transaction count on Base) and the latest one linked on BaseScan, with its day and who paid. A purchase from our own test wallet says so, and while it is the only one the block says no one else has bought a pass yet. `/api/status/payments` carries the same under `sales`. Read from a Base node every 10 minutes at most, never while a request waits.

### Security
- The typefaces (Onest, Martian Mono) are served from the site, not from Google Fonts: a page view no longer hands the reader's address to a third party. The CSP now allows fonts and styles from the site only; the OFL licence is served beside the fonts at `/fonts/OFL.txt`.
- `GET /api/status/payments` costs no unit of the free minute: a monitor reading it past the minute gets the payment state, not a 402. nginx's per-client limit still stands in front of it.
- `/mcp` no longer lists `authorization` among its CORS allowed headers; the server takes no credentials and nginx clears the header anyway.
- Tests hold every MCP error to at most 64 characters of the caller's own tool, method or argument name, on the HTTP and the stdio server. The cut was already there; nothing held it.

### Fixed
- `/api`: texts held to the API reference after a review: the case log is the last 7 days (up to 50 events), impostors are "first seen", the archive answers today as partial, the pass card says its 402 is v2 in the body too, `/openapi.json` describes `/api/pass`, the overview is as of the latest reading, the matrix gap is not a price to trade on, and the free tier says a client is an IP address. The list and big-batch examples now run as written.
- x402scan listing: `/openapi.json` names our contact (`info.contact.email`), which x402scan reads to verify ownership; the page description has no apostrophe, which catalogues that do not decode HTML showed as `&#39;`, and now says the service is built for AI agents.
- Bankr skill: the catalog demo named the look-alike 0x35b7…f703 as Coinbase's own SNDKc; it now names the listed contract 0xb200…10c5, and a test holds that the demo never calls a known look-alike "own". A 402 (the free minute used up where passes are sold) now reads as the rate limit, like a 429, instead of a failed check.
- Stats: an empty **Who called a tool** says why: only checkers called a tool that day (with how many, hidden here), or no tool call at all, instead of a bare "none". A day written before the Agents view keeps "none".
- Bankr skill, after two outside audits: a contract the issuer removed from its list answers DELISTED (exit 1), never ISSUER-LISTED; a listing on one chain while the other could not be read is exit 3, not a clean yes; no redirect is followed; the ticker query is never printed back; symbols, names and ISINs from an answer print only in their own shape; a ticker search on one chain ignores the other; duplicate or unknown options are refused.
- The Telegram link points to the project channel, `t.me/proofofstockchannel`, in the footer and in the organisation's `sameAs`.
- Landing: the price example names its token ("NVDAc, for example"), and the two seal mosaics say which is the seal of that day and which is the record as shown.
- README opens with the threat (a token called "NVIDIA" takes a minute to deploy) before what the service does.
- Status: "90 tokens tracked" beside 415 listed read as 22% coverage. The row now says the recorder reads only minted tokens, and how many of the listed ones have supply (Base; Robinhood reports no supply, so nothing is said there).
- History: the page listed the newest 8 registry snapshots under a count of 33 with no word about the rest. The heading now says "the newest 8 of 33" and links every snapshot.
- Landing: "It can only read" sat beside "two keys that send transactions". It now says what holds: the service never touches your wallet, and its own two keys hold only gas. The free rate says what a minute buys (about 20 passports) before the units.
- Landing: the look-alike board's empty-state sentence ("No new look-alikes flagged in the last 7 days") sat hidden in the page, so a reader that runs no script (a search engine, an agent, a judge's crawler) read it as a claim while the board was full. The script now writes it, and only when the week's window is empty.
- **No more 502s during a deploy.** The server reads both issuer registries before it listens, a few seconds in which every restart left the port closed and nginx answered 502. A new unit, `deployment/systemd/stp-web.socket`, keeps the port open across restarts: a request in that gap waits and is answered by the new process. The server takes the socket by the systemd protocol and still binds the port itself without it. Installed once per host (`deployment/CUTOVER.md`, "Restarts without a gap").
- Payments: after five refused payments on the big-batch route the 429 said "try again in a few minutes". It now names the wait ("try again in 7 minutes") and carries `retry_after_s`, the same seconds as `Retry-After`.
- Landing: the free tier read "50 addresses a call, 60 calls a minute", two limits that are each true but not reachable together (a batch of 50 costs 5 of the 60 units). It now says what a minute really buys: up to 600 addresses, 50 per call. The pass is "ten times the free limit", not "600 calls a minute".

- **The Status dot was red with everything green.** `/api/status` had gained a `payments` key beside the chains, and its readers (the Status dot and the status line on the site, the outside canary) take every key as a chain. `/api/status` is per chain again; the payment state moved to `GET /api/status/payments`, which stp-health reads. The site and the canary now count only chain entries.

### Added
- `docs/legal.md` names every service our servers talk to (the issuers, market data, the chains, the anchor witnesses, Bitcoin sources, GitHub, Telegram), so a reader can check what leaves our host.

### Added

- **The passport says when an announced multiplier change takes effect** (`issuer.multiplier_pending_at`). Robinhood added the time to its assets on 20.11 (first seen on SNDK, x8); Coinbase gives none, so it is null there. The canonical issuer list does not carry it, so its hash does not move.
- **The landing says agents can pay for themselves.** A block before the questions: over the free limit the API answers 402, the agent pays 0.01 USDC on Base over x402 and gets 10 minutes at ten times the rate; the free tier stays as it was. It links to the how-to and to the first settled payment, and the server leaves it out where paid passes are off.

### Changed
- The FAQ says calls, not units: 60 calls in any 60 seconds, a passport counts as 3. The README shows the public exam beside its title, read live from `/api/exam/badge.json` (a shields.io endpoint), so no score is written into the repository.
- Out of beta: the landing footer and the docs page header no longer carry a beta tag.
- The landing footer no longer repeats the tabs: Docs, Methodology, API and History are in the bar at the top of every page. It keeps MCP tools, llms.txt, the Status dot and the exam.
- x402 v2 payments are settled by Coinbase's x402 facilitator (CDP) where the host has its key; v1 payments keep our settlement wallet.
- Landing: the "on-chain vs issuer" ticker moves from the top of the page to under the terminal, as a band the width of the page; the tabs take the top. A click on a token still opens its passport in the terminal.
- **The symbol sweep reads crowded symbols deeper.** A symbol whose DexScreener search filled its 30-pair cap has more pools than that search shows; it now goes to GeckoTerminal first and is read page by page (up to 5 pages), and GeckoTerminal gets 12 pages a run instead of 3. Two vanity-address ANTc copies hid on the third page.

## [0.8.0] - 2026-11-20

### Changed
- **Payment alarms reach Telegram.** A pause in selling after failed settlements, a sent payment with no receipt after 10 minutes, and a settlement wallet with less than a day of gas are now alerts from stp-health, not journal lines. `/api/status` carries `payments` for it.
- **The seal block shows the newest sealed day first**, not a record of the week rotated by date. A week-old record on top could not show that last night's seal was set; now, if it was not, the block falls back to the day before. Within one day the record still changes daily.

### Added
- **Look-alikes the token dataset never saw are found by symbol search.** Every 6 hours, before the look-alike list is built, `scripts/stocks/symbol-sweep.mjs` asks DexScreener for every issuer symbol and GeckoTerminal for a few, in rotation (its keyless budget is shared with the peg recorder). Each find outside the issuer's registry is read on chain (`symbol()` and `name()`), and only the chain's text enters the list, judged by the same rule as every other token. What only the search found is counted under `internal.sweep`; the published file keeps its keys. `POS_SYMBOL_SWEEP=0` turns it off.
- **`GET /api/archive/at`: what one address was on one day, free.** The archive answers from what was recorded then:
  - whether the address was on the issuer's list in force at the end of that day, by the list's hash, with the frozen list's URL;
  - whether the address was an open look-alike case, what it imitated and what the contract said about itself;
  - the day's anchors.

  The answer carries an `attestation` whose SHA-256 covers it, so it is checkable through the hashes; nothing is signed. It covers one address and one day: no range, no address list, no cursor. The archive is a window, not a download.

  The route refuses:
  - a day that is not on the calendar (2026-02-30), instead of rolling it over;
  - a date in the future.

  Today is marked `partial`, and a case the archive backfilled is `unknown` before the archive's own start rather than `none`.
- **The big batch is the paid route.** `/verify?addresses=` with 51 to 150 addresses needs a pass. Without one, the answer is the pass's 402 with the reason. The verdicts are the same either way.
  - 150 is the most a GET request line can carry through the proxy; 500 was tried and got a 431.
  - Every check that can refuse the request runs before any payment is taken.
  - Failed purchases are capped at 5 per client in 10 minutes.
  - A paid answer is `private, no-store`.

### Changed
- **A closed look-alike case says why it closed.** A `gone` event now carries `gone_reason`:
  - `imitated_left_list` when the listed stock it copied left the issuer's list. On 17 Nov Coinbase pruned 303 entries, and two dozen cases closed in one run.
  - `no_longer_matches` when the token simply no longer copies a listed stock.

  Closes recorded earlier get the reason from the registry archive at the time of the close. On /history the word is "closed because HOGc left the Coinbase list", and the landing board says the same; neither says "left the list" alone. The case schema gains the field.
- **One vocabulary: look-alike and issuer-listed** (`docs/stocks-truth-layer-tz.md`).
  - The landing button "known fakes" becomes "look-alikes", and "not official" becomes "not the issuer's".
  - In the terminal, "Official:" becomes "Issuer-listed:" and "tokens pretending to be stocks" becomes "look-alikes".
  - The MCP passport sentence, the token page description and the reference docs say "the issuer's contract" instead of "official contract".
  - "Fake" stays only where it answers a reader's own question ("Is it fake? Not necessarily"), or warns that there is no Proof of Stock token.
- The terminal window is titled `proof-of-stock` with a small **Terminal** label beside it.

### Added
- **Our Base Builder Code on the daily anchor** (`STP_BUILDER_CODE`, `deployment/ANCHOR-MIRROR.md`). When it is set, the Base transaction carries the code after our line as an ERC-8021 suffix, so Base counts the anchor as our app's activity. The line itself is unchanged, the witnesses cut the suffix off before they read it, and Robinhood Chain never gets it. Unset, nothing changes. A malformed code stops the run.
- **"Used in the last 7 days" on /status**, from the same counter as the private dashboard:
  - MCP agents that called a tool (once a day each) and their tool calls;
  - programs that called the data API, their calls, and the addresses checked through /verify;
  - people on the site.

  Catalogues and health checks that only list tools are left out. Browsers on our own site and our own exam and canary leave no API row. The block says these are our numbers, not onchain ones.
- **The counter records API use** (`apps/stocks-analytics.mjs` `api`). It writes one row per data-route answer to a program: the route, how many addresses a /verify batch checked (capped at 50), and whether the client is our guard or our Bankr skill. It never keeps the address or the query. The daily exam (`proofofstock-exam`) is now ignored like the canary.

### Changed
- **The landing shows Base only, for the hackathon.** Robinhood Chain is hidden on the landing page: the kicker, the two check cards, the seal block, the look-alikes board, the footer and the page description. The terminal, the API, MCP, docs, /status and /history still answer for Robinhood Chain, and no data changed. One class brings it back (`<body class="no-rh">`). The restore point is tag `landing-with-robinhood-2026-11-19`, and the shipped files are in `deployment/restore/robinhood-landing/` with a README.
- **The shield stands beside the headline** on the landing, as tall as its two lines; the lede and the buttons start from the shield's edge. On a phone it shrinks to 54 px and stays beside the headline.
- **The site icon is the shield** (`apps/stocks-web/shield.svg`): the favicon on every kind of page, the brand marks in the footer and the docs bar, and `logo.png` (touch icon, organisation logo), re-rendered from `scripts/og/logo.html`.
- **The seal block says what the chain can and cannot do.** The hash in Bitcoin cannot change; a changed record is caught, not prevented. The demo rewrite is said to happen only in the browser. Both mirrors are named, and the Robinhood Chain transaction is linked beside the Base one when it is confirmed and witnessed.
- **RWA reaches the served pages.** The description every page is served with and the docs home lede now say tokenized stocks are a kind of RWA; the README drops a claim it gave no source for.
- **Docs agree with the code:** the guard is published on npm and never throws on bad input (`invalid_input`); seven MCP tools, not six; the outside check asks every 30 minutes and runs a few times a day; the passport hours parameter says how many it shows.

### Fixed
- Seal block: "Sealed" named the day a mirror copied the record (the mirrors began on 14 Nov and copied older days), so a 12 Nov record read "Sealed 14 Nov". It now names the day the manifest was built and stamped into Bitcoin, the night after the record. The heading says "the past", not "yesterday", over a record that may be a week old.
- Look-alikes board: a token's name lost every letter "s" (a regex missing its backslash).
- A premium that rounds to zero printed `-0.00%`.
- History: "uses the company name of GMEc" named a symbol as a company; it now reads "the company name behind GMEc".
- `tools.md`: broken code span in the `find_stock_token` table.
- Paid passes: the first live purchase on mainnet reverted before anything moved. The settlement call named a function USDC does not have (its signature text lacked the second `address`), and passed `v` as 0/1 where USDC takes 27/28. Both are fixed in the host module, which a pinned reference vector from an independent encoder now holds. The next purchase settled.
- Paid passes: the same `X-PAYMENT` sent again after its payment was broadcast is answered from the record of that transaction however late it comes, instead of "the payment window is too short". Once the pass is over, an old header buys nothing.
- `pay-per-call.md`: resend a pending payment every 10 to 15 seconds, not "in a minute"; sign for the full 120 seconds; the authorization numbers are decimal strings.
- The 402 offer named the app's internal path as its `resource` (`https://proofofstock.xyz/stocks/verify`, a 404); it now names the public URL (`/verify`).
- `deployment/PUBLISHING.md` named a journal line the payment module never writes (`pass granted`); a settled purchase writes `[x402] settled <tx> payer <address>`.

### Added
- **A Bankr skill** (`packages/bankr-skill/proof-of-stock/`), in the format of the BankrBot/skills catalog. An agent checks a stock-token contract before it buys (`ISSUER-LISTED`, `LOOK-ALIKE` with the issuer's own contract, `NOT ON THE ISSUER'S LIST`, `UNAVAILABLE`), or gets the issuer's own contracts for a ticker. The helper prints fixed words only. A non-listed token's own symbol and name never reach the agent's context, and a check it could not make is never called listed. It has no dependencies and uses only the public `/verify` and `/api/find`.
- **The seal block shows what we write on the chain, word for word.** Under the two mosaics, the one line that day's Base transaction carries (`proofofstock anchor <day> sha256:<hash>`), built from the hash the visitor's browser just computed, with a link to that transaction: not the record, one line a day. A test holds the line to the anchor script's own calldata, letter for letter.
- **A seal a visitor can try to break, on the landing** (`apps/stocks-web/seal.js`). Under the sentence that says the chain is here so that we cannot rewrite yesterday, one real line from the case archive is shown with the seal of its day, and the visitor is invited to rewrite our answer: the seal stops fitting. The seal is the SHA-256 of that day's manifest, computed in the visitor's browser from the manifest's own bytes and compared with the hash our Base transaction carries; the block stays hidden unless the two are equal and the mirror was confirmed by a node that is not the chain's operator. The 64 squares are the 64 hex digits of the hash. A rewrite changes the hash of the day's cases file in the manifest, which is what rewriting a line of that file would do; nothing a visitor does leaves the page. When the 7-day window holds no sealed case, one pinned case from the archive is shown. The token's symbol and name are its creator's text and reach the page as a short label, as text.
- **`/anchors/` names the Bitcoin check of a day** (`btc_check`, beside `mirror`, `null` until the file exists). The seal block reads it and no longer asks for a file that is not there yet: for the newest day that request could only answer 404, an error in a reader's console for nothing.
- **The seal block shows a different record each day**: the sealed cases of the week, rotated by the UTC date, so every visitor sees the same one that day. On desktop the block is as wide as the sections around it.

## [0.7.0] - 2026-11-15

### Added
- **Paid passes over the free minute (x402)**, the owner's model of 15.11: a sporadic reader never pays anything and sees nothing new; a client the rate limiter refuses may buy **0.01 USDC on Base for a 10-minute pass at 600 units a minute** (ten times the free rate), bound to its client key on the server, with no account, no key and no separate paid endpoint. The refusal becomes a **402** that names one exact price (`maxAmountRequired` is the only amount settled, re-read from our own offer, never from the client's header); the retry with `X-PAYMENT` is verified as an EIP-3009 `transferWithAuthorization` for USDC on Base with our own @noble primitives, and settled on chain by the server itself, with no facilitator in the money path. The settle receipt rides out in `X-PAYMENT-RESPONSE`, and the transaction hash is checkable by anyone on BaseScan. Guards, all fail-closed: one settlement at a time with a queue cap (one wallet, one nonce), purchase pacing of one settled purchase per client per 5 minutes stamped before the chain is touched, auth-nonce replay dedupe before any node call, the anchor mirror's fee cap and its hash-equality check on the node's answer, a gas estimate that refuses a payment the chain would revert, and an RPC url that may not be loopback, private, reserved or non-https. **Off by default**: without the host's payee address and settlement key file every refusal stays the plain 429 of every day before, and the free world is byte-identical. `evm/core/stocks/x402.mjs`, wired into the limiter and every refusal path of `apps/stocks-web.mjs`; the buyer's page is `docs/how-to/pay-per-call.md`, the reference section is `docs/reference/http-api.md#paid-passes`, and llms.txt names the pass when passes are on. The limiter's per-second slots widen to Uint16 so a pass's 600 units a minute cannot overflow a byte. **The module itself is a host file and gitignored** (owner, 15.11): the money path is not for the public export, the import in apps/stocks-web.mjs is optional on purpose, a checkout without the file is the free service exactly, and on the host the file is copied by hand and backed up with the host config, the way a key is.

## [0.6.0] - 2026-11-14

### Added
- **`@proofofstock/guard` 0.2.1**, which is 0.2.0's code and nothing else. It exists to be the first version published through the workflow rather than from a laptop, so that it carries npm provenance: the registry records which public commit the tarball was built from, and anyone can check that what they install is what the repository says. 0.2.0 does not carry it and the threat model says so.
- **A threat model, written down** (`docs/explanation/threat-model.md`): who this service does not trust and what it does about each of them, what it refuses to claim, what it does not defend against, and what a successful attack would look like in the order that would hurt most. It is the document an external reviewer should read first, and the honest version of the pitch: there is no money here to take, so the only thing worth attacking is what the service says.
- **The evidence is in the reference now, not only in the answers** (the information audit, 13.11, second pass). Three things were in every answer and in no document, so a reader who did not already know they existed never met them: `issuer_factory` on `/verify` and in the `verify_stock_tokens` fields, `text_evidence` on a case (the contract's own `symbol()` and `name()` at a named block, with the line that asks the chain again), and `/anchors/` as a route, with the shape of a manifest and what a `.ots` proof is. The methodology gains **How we check ourselves**: the factory mirror, the daily exam, the outside check on GitHub's runners and the daily Bitcoin anchors, with how often each runs and what it is for, because the page that explains the sources never said how we find out when one of them is wrong. The landing answers it too, in a question of its own: "Can I check an answer myself, months later?". The README adds the outside check to the list of ways to check us.
- **An empty week is a sentence, not a zero** (the same audit). `recent_impostors` now has a test that runs the real path against a list whose window holds part of it, and over the case that reads worst: with nothing flagged this week, the answer says "No token on Base was first flagged in the last 7 days" and still gives the list's own count, so an agent cannot quote it as "no look-alikes".

### Fixed
- **A mirror is confirmed by somebody who is not the chain's own operator** (audit, 14.11; the last of its findings). "Confirmed in block N" rested on a receipt from the endpoint we sent the transaction to, and those endpoints are run by Coinbase and by Robinhood, the two issuers this service judges: one interested party's word about itself, written into the public record as a fact, and never looked at again. A mirror is now called `confirmed` only once a node run by another operator has said the same thing AND said it about the same bytes: this hash, in a block, succeeded, from and to the one address, value zero, carrying this day and this manifest hash as text. Until then it is `in-block-unwitnessed`, which the answer says in words and the run asks about again every day; after a day with no independent confirmation it is an alert. A node that sees something ELSE at that hash makes the mirror `contradicted`, which is an alert at once and a sentence that asks to be told.
- **A calendar could have told us a Bitcoin block number and we would have published it** (audit, 14.11; spec H4). An OpenTimestamps attestation is a tag and a height, and until now that was enough for the service to say "that hash is in Bitcoin block N" in the one sentence we ask agents to quote. Nothing compared the path in the proof with the block it names, so a hostile or broken calendar could answer with a made-up height and we would have repeated it the same day, for good. Three things changed. A fresh calendar answer is now parsed before it is stored and must contain nothing but a pending attestation: an answer that already claims a block is an answer somebody made up. A completed proof is reported as `bitcoin-claimed`, with the merkle root its path ends at, until the daily run has asked two sources that are not the calendar what the real root of that block is and they have agreed; what it found is public at `/anchors/btc-check-<day>.json`, and a source that disagrees is an alert, not a retry. And the sentence says which of the two it is, in words, rather than letting a claim pass as a fact.
- **The receipt checker said "the receipt holds" over an impostor's own bytes** (audit, 14.11). A receipt names the frozen issuer list it was decided against by URL, and `checkReceipt` fetched whatever URL it found: anyone could write a receipt saying "listed", serve a list that hashes to what it claims, rehash the receipt, and every check went green, with our own tool fetching the author's URL from the reader's machine. The origin is now pinned to this site, over https, and a receipt pointing anywhere else fails with that as the reason, before anything is fetched.
- **"Our data files hash to X" named the wrong thing** (audit, 14.11): X is the hash of the manifest, which names each data file by its own SHA-256. An agent that hashed the files themselves would have got something else and concluded we had lied.
- **A day could be hashed while it was still being written** (audit, 14.11). The recorder appends its run row when a run finishes, into the file of the day it started, so a run that began at 23:52 could still be writing into yesterday's file when the anchor hashed it at 00:20. Every later reader comparing that file with the manifest would have seen a mismatch indistinguishable from tampering. A file touched in the last five minutes now stops the run with its own exit code, which the unit retries without raising an alert, and the unit waits for the writers.
- **The alert for a proof that never completed went quiet after a week** (audit, 14.11), because the staleness check only looked inside the upgrade window; a day that lost both calendars on its own night was never stamped again at all. Every proof is now checked for staleness however old it is, a recent day with no proof is stamped again, and only the asking of calendars stays windowed.
- **Smaller ones from the same audit:** the transaction hash a node answers is now compared with the one we computed before sending, not merely checked for shape; a proof file is written whole or not at all, like every other piece of evidence; and an error message from a node goes to the journal through `JSON.stringify`, so a newline in it cannot print a line shaped like one of ours.
- **The three reference pages stopped naming a version of their own** (from an audit of the public surface against the service, 13.11): the line was taken out of seven pages, but the passport, the tool and the HTTP references wrote theirs inside a code span, which the test that followed did not look for, so the three most read pages went on announcing the release before for another day, in the raw markdown and in `/llms-full.txt`. Their line is gone too, and the test allows for the code span. The one version a page must show, the `serverInfo` of the `initialize` example in the tool reference, is a placeholder filled in from `package.json` when the docs are loaded, so it is read from the code like every other number that moves.
- **The tool reference quotes the sentences the server actually says** (same audit): it still showed the three `find_stock_token` leads from before the caller's query was taken out of them, which is to say it advertised, as an example, the one thing that was removed as a way to put a stranger's text into our own words. The three lines are the live ones, and a paragraph says why the query stays in the answer as `query` instead.
- **The journal of changes carries no measurement of a run** (same audit, and the rule the owner set for every project): this file is a public page (`/docs/changelog.md`) and part of `/llms-full.txt`, and nine entries still printed counts, shares and timings from real runs, one of them our own traffic. Each entry keeps its decision and its rule and gives up its figures; where they matter they are in the day's report, in `GET /api/exam` or in the `exam` branch. A third party's own published limit (a gateway's call budget, an RPC's retention window) is a fact about that party and stays.
- **The server's own addresses are really read** (13.11, found on the live host minutes after the deploy below): asking which addresses the host holds needs a netlink socket, which the unit's sandbox did not allow, so the call threw, the list came back empty and the server's own visits went on being counted while the code looked right. `stp-web.service` now allows `AF_NETLINK` for that one read (reading only: the unit holds no capability), and a host that still cannot read them says so at startup instead of being silent. The unit has to be installed on the host for this, as for the setting below.
- **The passport fits a phone again** (owner, 12.11): a value such as the issuer price with its source and age could not wrap, and pushed every row of the card, and the chain tabs, past the right edge.

### Added
- **The daily anchor is mirrored on Base and Robinhood Chain, and `verify_anchor` is the seventh MCP tool** (owner, 13.11; built 14.11; spec H4). The hash that goes into Bitcoin through OpenTimestamps is now also written to the two chains this service covers, one transaction a day each: to its own address, value zero, carrying `proofofstock anchor <day> sha256:<hash>` as plain ASCII, so anyone reading the transaction in an explorer sees what it says without a decoder. **Bitcoin stays the root, and that order is the point:** Base is sequenced by Coinbase and Robinhood Chain by Robinhood, which are the two issuers this service checks, so the proof of time lives on the one chain here that none of them operates. The mirrors buy reach and a block of latency instead of a few hours; a mirror that disagrees with the root is a fact about the mirror. `verify_anchor` hands an agent a day's hash, the state of each OpenTimestamps proof (pending, or its Bitcoin block), every mirror transaction and the steps to check all three without us; `/anchors/` names the mirror record beside each day. The transaction is built by hand from two audited primitives (`@noble/curves`, `@noble/hashes`, both pinned), proven against a real transaction taken off Base mainnet, and locked by mutation tests. `scripts/ops/anchor-keygen.mjs` makes the key on the host and prints only its address; `stp-anchor-mirror.service` is the only unit in the project that is given a key, through `LoadCredential`, and the build fails if a second one ever asks. A write whose gas price is out of line is skipped and alerted, never paid; a balance with under a month of writes left raises an alert while there is still time; a transaction the chain took and then dropped is noticed (no receipt and no transaction, which is asked rather than assumed), written again at the nonce it left behind, and alerted if a day stays blockless for a day. Two reviews went over this before it shipped, and what they found was all of one kind: a way to say something that was not so. An OpenTimestamps proof is now checked to commit to THIS manifest before its Bitcoin block is shown beside this hash; a transaction hash from an rpc is checked to be one before it can reach a sentence we ask agents to quote (those rpcs are run by the two issuers we judge); a submitted transaction and a confirmed one are said apart; and a chain that will not say what its base fee is gets no transaction at all, where a missing fee used to read as free and pass the cost cap. Costs a fraction of a cent a day per chain. Setting it up: `deployment/ANCHOR-MIRROR.md`.
- **/stats keeps MCP discovery apart from use** (owner, 13.11): since the registry entry most of what connects is catalogues and health checkers, so one bar of "requests" read as demand when it was not (measured on the host, 13.11; the figures are in that day's report, not here). An agent counts as use for a day once it called a tool that day, and every request it sent that day counts with it; the rest is discovery. The split is behaviour, never the client name, which would go stale the day a new crawler appears and is whatever a crawler sends: the name is a label in "Who connected" only. The MCP tile shows how many of the day's agents called a tool and both request counts, the two charts show the flows apart, and a card says that a probe calling a tool counts as use. `scripts/stocks/analytics-report.mjs` says the same. Requests are counted from the rows, not from the top-15 call list, which undercounted.
- **The anchors go into the backup too** (data audit, 13.11; `deployment/BACKUP.md`). `/var/lib/stp-anchors` was outside the copy, and it is the one directory on the host that cannot be rebuilt: a manifest follows from the data, but an OpenTimestamps proof made later attests the day it was made, not the day it covers, so losing it loses the only evidence of **when** the archive existed in this form. `POS_BACKUP_SOURCE` now takes several absolute paths separated by `:` (the unit names `/var/lib/pos:/var/lib/stp-anchors`); a relative path is refused rather than resolved against the working directory. The data root is still the run: without it the backup refuses instead of writing an empty snapshot. A path beside it that is not on the host does not hold the data back, it is listed in `missing_sources` in the status file and `stp-health` raises `backup:sources` naming it, so a short copy is never silent. That list is written only beside a success, so it describes the newest snapshot: a run that finds the path again and then fails to write anything keeps the alert up instead of sending the all-clear. `deployment/BACKUP.md` also writes down four things nobody had: retention is per path set rather than per repository, so a window with a path missing keeps a retention chain of its own; a restore must not trust `latest`, because a snapshot taken during such a window does not hold that path, and the recovery steps now find the newest snapshot that does; retention loses nothing while the day files stay on the host; and a path added to the source has to be readable by `pos-backup`, or restic exits 3 and the run counts as failed although the data did get copied.
- **Glama can prove our MCP endpoint is ours:** `GET /mcp/.well-known/glama.json` answers a claim, before the MCP handler, with no authentication and no redirect. The claim belongs to the host and never to this repository, which is exported publicly: `STP_GLAMA_CLAIM` in `/etc/pos/web.env`, read by `stp-web` (`deployment/PUBLISHING.md`). Without it, or with a malformed one, the path is a plain 404 rather than a wrong claim. nginx serves it as the third and last dot-path allowed; everything else under a dot is still 404. The hygiene test refuses any committed file that carries an ownership claim of ours.
- **"Not counted" on /stats** (owner, 13.11): the Overview tab says who leaves no row, in counts and a date, never an address (a dashboard ends up in a screenshot): how many addresses the host's list holds, how many of its own the server reads or that it cannot read them, loopback, the canary, and that days before 13.11 still hold our own visits. Amber when nothing is set yet, or when the server cannot read its own addresses.
- **The statistics leave out our own visits** (owner, 13.11; `deployment/STATS.md` "Not counting ourselves"). Loopback, every address the host's own interfaces hold and the CI canary (which names itself in every request) are never counted, with nothing to configure. The owner's own address is configuration and stays out of this repository: `STP_ANALYTICS_IGNORE`, read by `stp-web` from `/etc/pos/analytics.env`, takes addresses and CIDR ranges, IPv4 and IPv6, with comments; an empty or missing setting ignores nothing beyond the server itself. An ignored request is dropped before the pseudonym is computed, so it is in no tile, day, country, button or MCP count, and the day file keeps nothing about it. Rows written before this keep being shown; the day files can be deleted.
- **ChatGPT in the landing's connect card** (owner, 13.11): beside "MCP server URL", "Claude Code" and "mcp.json", a "ChatGPT (web)" block names the plans (Pro, Business, Enterprise/Edu) and lists the same five steps as the line above it and the tutorial (Plugins → + → Add custom MCP server, the server URL, No authentication, Create as a plugin and install it, then @ it in a chat). ChatGPT has no command or config file for this, so the block is steps; its copy button copies just the URL, the same one the other blocks show. Tests hold the order of the blocks, the steps and the URL; the beacon counts the new copy button as `copy=mcp-gpt-url`. Copy buttons now return to their own label after a click (before, every one went back to "copy").
- **POS stands on its own data and its own user** (owner, 12.11; `deployment/CUTOVER.md`). Our data moves to a data root of its own, `/var/lib/pos/<chain>/stock-peg`; the outside token streams it reads become an explicit, read-only input, `--token-dataset` / `POS_TOKEN_DATASET_*`, with the fields read listed in `scripts/stocks/data-roots.mjs`. Every unit runs as the user `pos` (the backup as `pos-backup`), none as root; only `stp-impostors` and `stp-health` keep the one capability to read past permissions. `scripts/ops/migrate-pos-data.sh` copies `stock-peg/` with `history/`, verifies it by SHA-256 and never overwrites; the impostor list refuses to write a second history while the first has not been copied. Nothing changes on the host until the runbook is run.
- **Our own backup** (`deployment/BACKUP.md`): restic every 6 hours to a Backblaze B2 bucket of its own (S3 API; owner's choice), credentials only in `/etc/pos/backup.env`, pruned to 2 days of every run, 14 daily, 8 weekly, 12 monthly. `stp-health` alerts when the last success is older than 24 h.
- **An alert when the token streams stop:** per chain, when the newest token-static day file is older than 8 hours (over the longest quiet stretch measured, under the one outage), because the look-alike list is built from them.
- **A bot of its own for the alerts:** the units also read `/etc/pos/alert.env`, which wins over the old file; `deployment/ALERTS.md` says how to swap the token without it passing through a chat.
- **A new impostor case carries what the contract itself said** (spec item G): when a case opens or its kind changes, the impostor run reads the contract's `symbol()` and `name()` at one block (one multicall, through the pool reader's helpers) and stores `text_evidence`: the raw return bytes in hex, the block and its hash, whether they match the collector's text, a `cast call` that asks again, and `needs_archive_rpc` (true on Robinhood Chain). Shown in `/api/history/cases` and MCP. The chain unreachable: `text_evidence: null`. Earlier and backfilled events never get evidence after the fact.
- **A receipt of a check, to keep** (the second moat analysis, 12.11: can a wallet prove, months later, why it showed a warning?). `GET /verify?chain&address&receipt=1` adds a `receipt`: the verdict, the rule and the version that applied it, the issuer list named by its SHA-256 with the URL of that exact list frozen, the factory fact, and the receipt's own SHA-256. `node scripts/receipt-check.mjs receipt.json` checks it later: an edited receipt, a different list, or a rehashed receipt with a changed verdict all fail. `docs/how-to/keep-a-receipt.md`.
- **The issuer's factory, beside the list, in every answer:** the passport, `/verify` and MCP verify carry `issuer_factory`, read from the chain mirror: `created: true` with the block, transaction and log index of the factory's event, or `created: false` with the block it was checked to; `null` while the mirror is catching up. When the issuer's list cannot be read the answer is still 503 and never "listed", but the factory fact rides along, labelled as a second source. The passport card shows it ("made by Coinbase's token factory, block N"), and a token outside the list says when the factory never created it either.
- **Each issuer's list is mirrored from the chain** (owner, 12.11: every chain has a reserve and a mirror). `scripts/stocks/issuer-mirror.mjs`, run by `stp-mirror.timer` every 15 minutes, reads the events of the factory each issuer deploys its tokens from: Coinbase's on Base (from a keyless public gateway, 1,000 blocks a call, backfilling over a few runs) and Robinhood's on Robinhood Chain, found 12.11 from the tokens themselves (each is a proxy on one beacon, made by one factory). It compares that set with the API's list. On Robinhood Chain every listed token was among those the factory had created, and the factory had made a few more the list leaves out (tests, not listed yet). The health check alerts when a listed token was never created by the factory, or when the mirror stops updating. The mirror answers "did the issuer's factory create this contract"; it never turns into "listed".
- **Our data is anchored in Bitcoin once a day** (spec item F; the moat debate of 12.11). `scripts/stocks/anchor.mjs`, run by `stp-anchor.timer` at 00:20 UTC, writes a manifest of the SHA-256 of every data file the previous day produced (readings, run rows, case archive, registry snapshots), chained to the manifest before it, and sends its SHA-256 to two OpenTimestamps calendars. Manifests and proofs are public at `/anchors/`; `docs/how-to/verify-an-anchor.md` shows how to check one with `ots verify`. It proves when the files existed in this form, not that they are right. No key, wallet or transaction of ours.

### Changed
- **"No key" is now said only where it is true** (14.11). The anchor mirrors mean the project holds one signing key, so every sentence claiming we hold none was rewritten in the same change that introduced it, rather than later: the connect card, the FAQ answer and its JSON-LD, the README, `SECURITY.md`, the tools reference, the SEO description, `llms.txt` and the terminal. What is said instead is the true and more useful thing: no wallet, no sign-in and no tool that signs for a caller, and the one key we do have sits on our own host, writes our daily anchor from its own address with value zero, and cannot be made to sign anything by anyone who calls us. `apps/landing-faq.test.mjs` now requires that disclosure to be in the FAQ, not only in a document.
- **The README says how to check us:** a section on the list hash, receipts, the issuer factory read from the chain, replayable prices, the daily exam and the Bitcoin anchors; the docs index links the two new how-to guides.
- **A rate limit during the mirror's backfill is a pause, not a failure:** the keyless Base gateway refused after about 200 calls on the first run and the unit alerted. Progress is kept, the next run goes on, and the Base pace is 300 ms.
- **The GeckoTerminal lane keeps to its budget:** a token whose page count is not known yet counts as the most (3 pages), not 2. The first run after the lane shipped went over its budget, and the run's length followed; the refusals went with it.
- **Two claims now say only what is true** (found in the moat debate, 12.11): the guard's README no longer shows `npm install @proofofstock/guard` as if it were published (it is not yet), and the methodology gives the measured window of Robinhood Chain's public RPC, about 6,200 blocks or 11 minutes (it said about an hour): older price evidence there needs an archive node to replay.
- **The recorder no longer spends three quarters of a run waiting** (steps 1 to 3 of the recorder speed plan, after an independent review and the measured runs of 12.11):
  - **GeckoTerminal top-ups run as one paced lane beside the DexScreener loop**, at most 4 (Base) and 10 (Robinhood) requests a run, 12.5 s apart. Its keyless API allows about 5 calls a minute per IP, and it refused a large share of a Robinhood run's requests. The tokens topped up are those whose DexScreener list was full, the longest without a top-up first. A token that has a pool only GeckoTerminal sees and the chain cannot read counts an hour older. A token not topped up keeps the pools it learned, read on the chain, and its row carries `pools.topped_up_at`. The run row counts `supplement_deferred`.
  - **DexScreener is paced by the start of each request** (250 ms, 240 a minute, 80% of its 300), not by a fixed pause after every token.
  - **A warning before the deadline:** the health check alerts when two runs in a row used 80% or more of their time budget, and resolves when two are back under 70%.

## [0.5.1] - 2026-11-12

### Added
- **Every MCP tool argument has a description, and server.json an icon** (mcptry, 12.11: agents pick tools and fill arguments from these). A test refuses a tool argument without one.
- **A private dashboard for the owner at `/stats`** (owner, 12.11): visits by day with bars, the day in detail (pages, countries, buttons, searches, passports), MCP clients and tool calls, the recorder's last runs per chain (time against budget, top-ups, 429s, the chain breaker) and the latest exam. Aggregates only, every value escaped, no script and no beacon. Closed twice: nginx basic auth with the owner's password file, and a header only that location sets (every other location clears it), so the app answers 404 to anything else. `deployment/STATS.md` says how to set the password.
- **The public exam on the landing** (owner, 12.11): a small chip with the day and the result, linking to the reports on GitHub (moved on 13.11 out of the terminal status bar to the proof links beside Status); the `exam` command prints the last one (what was asked, each metric, the set's SHA-256, how to rerun it); one FAQ question, "How do we know the answers are right?". The page never calls GitHub: the server reads `reports/latest.json` from the `exam` branch at most every 30 minutes, in the background, and `GET /api/exam` answers from memory with numbers and checked strings only (`apps/stocks-exam.mjs`). A body over 256 KB, an HTML page or a report of the wrong shape is refused; a failed read or a report older than 36 hours hides the chip, never an old result shown as current.
- **ChatGPT next to Claude in "Ask it from your agent":** one line each for Claude, ChatGPT (web; Pro, Business, Enterprise/Edu: Plugins → + → Add custom MCP server → the URL, No authentication → Create as a plugin, as OpenAI's help center describes it now, without Developer mode), then Claude Code and other clients. The tutorial `docs/tutorials/connect-an-agent.md` and `docs/stocks-passport-agent.md` give the same steps. A landing test holds the three lines and that the URL to paste is the one the command and the JSON name.
- **The recorder says where its time goes** (owner, 12.11: a Robinhood run reached its 9-minute deadline): each run row now carries `duration_s`, `budget_s` and `timing`, every outside request by source (issuer, DexScreener, GeckoTerminal, RPC block reads, RPC eth_call) with count, total, p50, p95 and max, timed until the whole answer has arrived. Measurement only: no reading changes. Step 1 of the recorder speed plan.
- **Ready for the official MCP registry under our own domain, `xyz.proofofstock/proof-of-stock`** (owner, 12.11): the site serves the registry's proof at `/.well-known/mcp-registry-auth` (a public key, `deployment/mcp-registry-auth`; the nginx host lets this one dot-path through, like security.txt), and `.github/workflows/mcp-registry.yml` publishes `server.json` by hand from the public repository, with `mcp-publisher` pinned by the SHA-256 of its release archive and the private key only in a repository secret. `server.json`'s description now fits the registry's 100 characters.
- **The hero says "ask it from your agent" in its empty corner:** a small card types out a real MCP call, `verify_stock_tokens` on NVDAc with the answer's own fields, under a dotted wire from "agent" to "proof of stock" that a dot crosses now and then. The whole card leads to the agents section, scrolling smoothly. Wide screens only; it stands still under reduced motion.
- **A flagged address on /history opens on the explorer, after a warning** (owner, 12.11): the first click unfolds "This is a look-alike, not the stock", what it is not, and not to buy, approve or send to it; the second opens the contract on the chain's explorer. A details element, so it works without a page script. A token the issuer has listed since opens directly. The address moved to the end of the line.
- **A public exam, once a day** (`scripts/exam.mjs`, `.github/workflows/exam.yml`): every token on the issuers' lists, the look-alikes of the week, strangers (the chains' dollar and ETH tokens, and never-deployed addresses derived from the date) and listed tokens asked on the other chain, with the right answers read from the issuers themselves. It scores false "listed", false "not listed", real tokens called fakes, look-alikes caught, minted against total_supply, refusals, list_proof against the issuer's list, price evidence replayed on chain, and latency. The report, with the set's SHA-256, is committed to the `exam` branch of the public repository; anyone can rerun it. First run 12.11; each day's numbers are in `GET /api/exam` and in that branch, never here.
- **An outside check every 30 minutes** (`scripts/canary.mjs`, `.github/workflows/canary.yml`, GitHub's runners, public repository only): the page and the freshness of lists and prices, a known listed token and a known look-alike, the MCP tool list, each issuer list hashed independently from the issuer's own API against our `list_proof`, and the passport's on-chain price evidence called again at its block for the same bytes. A failure is a red run and, with the repository's Telegram secrets, a message.
- **Fault drills on recorded real issuer answers** (`apps/fault-drills.test.mjs`, `tests/fixtures/issuers/`): a 503, a 429, an HTML page, a renamed list, a record without its address and the network down each make both readers throw, the site answer from the last good list for 15 minutes marked stale, and then "registry unavailable" (503), never "not listed". A new field and a changed type are seen by the shape check.
- **A new strong impostor kind, `registry_name`:** a token whose whole name is a listed company's name (`NVIDIA`, `McDonald's`, `Marvell Technology`), compared without case, punctuation and the corporate ending, is now published on the impostor list, in `/verify` and in MCP. A name that only contains the company does not count, nor one shorter than three letters; the issuer's own naming stays `issuer_name_suffix`. Why: an eye check of tokens that resembled a listed stock by meaning found that real copies mostly took the company's name as it is, and the symbol and suffix rules let all of them through. `impostors.json` `counts` gains the key.
- **Alerts in Telegram** (`deployment/ALERTS.md`): a failed unit (`OnFailure=`), and a health check every 15 minutes (`stp-health`) on the site's own numbers and the recorder's last run: an issuer list not read for 15 minutes, stale readings, an old look-alike list, a stopped recorder, DexScreener failing for over 20% of a run, the chain unreadable, sources disagreeing, and a change in a third party's format. Once an hour at most per alert, and once when it clears. Until now an ALARM went to the journal only.
- **Format changes are seen the day they happen:** the recorder keeps the shape of every Coinbase, Robinhood and DexScreener answer (`evm/core/stocks/shape.mjs`, `stock-peg/shapes.json`) and writes what changed into its run row (`shape_changes`): a new field, a field gone, a changed type, a list that shrank by over 10%.
- **`@proofofstock/guard` 0.2.0** (spec PR E): no evidence, no buy (a listed answer needs a fresh, non-stale `list_proof`, `maxRegistryAgeS` 900); `checkListProof()` reads the issuer's own list and checks the digest and the address; `crossCheck` option; `verifyMany` and `beforeBuyMany` (50 at a time); `beforeBuy` never throws (`invalid_input`); one retry on a network error or 503, none on 429; a `user-agent`; hand-written types; `require()` works (Node 20.19+). A parity test holds its digest equal to the server's. ⚠ Breaking: a listed answer without `list_proof` is now `unknown`.
- **`GET /verify?addresses=`: up to 50 addresses in one request** over HTTP, as MCP `verify_stock_tokens` already allowed: one read of the list and one `list_proof` for the batch, ⌈n/10⌉ units of the rate limit. Larger batches are planned as a paid route (owner, 12.11).
- **The passport shows what its premium rests on** (`latest.price_evidence`: the pool read at a block with a command to repeat it, or `evidence: "none"`, also for readings from before the chain was read; `latest.reference_evidence`). The evidence rule now asks for it next to every premium, and a lock proves the tests notice when it goes missing.
- **The recorder reads every pool from the chain itself**, at one block per token, in one Multicall3 call on the chain's public RPC: Uniswap v3 and its forks (`slot0` and both balances), constant-product pools (`getReserves`), and Uniswap v4 (`StateView.getSlot0`, a price only). Pools come from a pool book of everything DexScreener and GeckoTerminal ever listed against a stablecoin or WETH, plus the main factories every 6 hours. If the chain cannot be read, the reading is the aggregators' exactly as before; if DexScreener cannot be read, the chain's pools give the reading (`pools.source: "onchain"`) instead of `pairs_unavailable`.
- **Every reading says what its DEX price rests on** (`price_evidence`, the DEX leg only): for a price from the chain, the block, its hash, the aggregate3 calldata and the bytes returned, and a `cast call --block` line that returns them again (Robinhood's public RPC keeps no state older than about an hour: `reproduce_needs: "archive_rpc"`); for a price from an aggregator alone, `{ "evidence": "none" }`. The issuer's reference is named for what it is: `reference_evidence: "issuer_api_not_reproducible"`.
- Short-lived private copies of the aggregators' answers behind a premium, for our own error checking: off unless `STP_RAW_SNAPSHOTS=1`, outside the dataset tree (`/var/lib/stp-raw`, 0700/0600), 30 days rolling, capped, never served (the web unit cannot see the path) and never at the cost of a reading.
- `premium_refused: "sources_disagree"` and the passport note `sources_disagree`: the chain and an aggregator priced the deepest pool more than 2% apart. `pools.source` gains `dexscreener+onchain`, `dexscreener+geckoterminal+onchain` and `onchain`; `pools.onchain_error` and the run row's `onchain` are new.
- **A list by its hash: `GET /api/list/<hex>`** (and `/addresses`). A verdict's `list_proof` now names `list_url` and `addresses_url`, so it stays checkable after the issuer has changed its list: the bytes hash to `registry_hash`, the address lines to `addresses_sha256`. Served from the server's recent reads and the archive, re-hashed before they leave, cached as immutable.
- **A wall of findings on the landing page:** the look-alikes flagged this week from the case archive, both chains, with the open counts, and our misses too (a token we flagged that the issuer later listed is shown as "later listed by the issuer: we were early or wrong"). A row opens its passport in the terminal. The token's own symbol is shown as text in a cell only; no links out, no deployer. Analytics: `board:open` and the `findings` section.
- **The evidence rule: no evidence, no claim.** Every positive statement an answer makes carries the field that backs it, or is `null`; the methodology shows the table, `evm/core/stocks/evidence-rule.mjs` checks every kind of answer in the tests, and a mutation lock proves they notice.
- **Every verdict names the list it was decided against, so anyone can check it** (`list_proof` on `GET /verify`, the passport and MCP `verify_stock_tokens`, once per batch). Each 5-minute read of an issuer list is stamped with the SHA-256 of its sorted addresses and a `curl | jq | sort | sha256sum` command that computes the same digest from the issuer's API (matched on both live APIs, 12.11), the canonical `registry_hash` the archive at `/api/history/registry` chains with `prev_hash`, when it was read, and `stale` when the latest read failed. A verdict and its proof come from one registry snapshot. From an outside review: the note says the archive holds a list "once the recorder has read it", never that it already does.
- **The terminal waits with a cursor:** a quiet blinking block at the start of an empty, unfocused input line, so it reads as a real prompt; focus brings the browser's own caret. It does not blink under reduced motion.

### Changed
- **The client name in our connect instructions is now `proofofstock`** (owner, 12.11), not `stock-passport`: `claude mcp add --transport http proofofstock https://proofofstock.xyz/mcp` and the `"proofofstock"` key in the JSON, on the landing, in both READMEs, the agent page and the tutorial. Only the name a client stores locally changes, so an existing `stock-passport` entry keeps working; the tutorial says how to remove it so the tools do not show twice. The server's own `serverInfo.name` stays `proof-of-stock`, matching the registry name `xyz.proofofstock/proof-of-stock`.
- **A slow source can no longer eat the recorder's deadline** (12.11, step 0 of the recorder speed plan, after an independent review): DexScreener requests time out at 6 s (was 15), GeckoTerminal pages at 8 s (was 15), a token's RPC reads at 5 s (was 10; the factories' large discovery call keeps 15 s). After 5 tokens in a row whose chain read failed, the run stops asking the chain (`onchain.breaker` in the run row says when), the rows stand on DexScreener, and the pool book keeps learning. The run row's `timing` now counts per source the answers refused as rate limited (`n_429`) and the other failures (`n_failed`): GeckoTerminal top-ups fail a few times a run and nothing said why.
- **Where the chain and an aggregator both see a pool, the chain's price and liquidity are used.** On Base, a group of pools from one Aerodrome factory that DexScreener reported tens of thousands of dollars deep held dust instead, and many of the Base tokens with an eligible pool were priced from one of them. Those readings now move to another pool or to `no_eligible_pool`, so the Base series changes from this release on. A pool read from the chain never sets its own depth: the stock token's side is valued at the issuer's reference price, or not counted without one.
- **Switching chains does not ask the same question again.** The page keeps a lookup (find, passport, verify) for a minute, in flight too, so tabs clicked back and forth cost the server and the visitor's rate limit nothing (owner, 12.11). Failures are never kept; status, the tape and the board stay live.
- **The landing and the footer name no pool provider:** "public DEX pool data", with the methodology linked. The sources are still named where they matter: in the methodology, the passport reference and each answer's `sources`.
- **The footer is tighter, and X, Telegram and GitHub are the last thing on the page:** three icons at the end of the bottom line, after the version; the GitHub pill leaves the link row. The docs footer ends with the same three icons.
- **A listed passport says what listed is not:** on the site and as the last sentence of the MCP passport lead, "Listed says which contract is the issuer's, not that its price is fair."
- **The row validator lives beside its schemas** (`schemas/v2/validate.mjs`, was `base/dataset-v2/schema-validator.mjs`): the old path looked like a published dataset. It held no data.
- `marked` 18.2.0 (was 15.0.12); every docs page renders the same.

### Security
- **The rate limit is a sliding window: 60 units in any 60 seconds**, per client address (IPv6 by its /56), with the same units as before. It counted per calendar minute, so a steady series that crossed a minute boundary got two minutes' worth, which an external audit (12.11) showed by sending well over the limit inside one minute without being refused. Now 60 pass wherever the series starts. A refused request costs nothing, so a client that waits `Retry-After: 60` is let in again.
- **From an external audit of the MCP server (12.11), three small items:** `/mcp` answers a body that is not `application/json` with 415 (a page on another site can send text/plain or a form without a preflight); nginx names no version on its own error pages (`server_tokens off`); `/.well-known/security.txt` (RFC 9116) names hello@proofofstock.xyz, GitHub's private reporting and SECURITY.md, and expires a year after each answer.
- **`since` must be a whole ISO time** (MCP `recent_impostors`, `/api/history/cases`). `Date.parse` accepts `2026-11-09 (any text)`, and the MCP lead, the sentence an agent is told to quote, repeated `since` as given: a caller's text could ride on a valid date into our own words. Anything after the time is now `-32602` (HTTP: 400). From a GLM audit of the MCP servers, 12.11.

### Fixed
- **A jump to a section no longer lands under the ticker** (owner, 12.11): "Ask it from your agent" and the other anchors, and the terminal, now stop below the sticky ticker bar (`scroll-padding-top` on the page). Checked at 1440 and 375 px.
- **"biggest gaps now" and the `now` command answer again.** The wall of findings had a function with the same name as the one behind `now`, and the later one replaced it, so `now` printed nothing (since the wall shipped). The wall's function is renamed, and a test fails on any name declared twice in the page script.
- **Every key in the terminal's status bar is a button:** `history` puts the last command back in the prompt (as the up arrow does), `help` runs help, `clear` clears, as before.
- **The wall of findings shows no empty table head** when the week has no case: only the counts and the empty-state line.
- **A test keeps Cyrillic letters and em or en dashes out of the tracked tree** (`scripts/text-hygiene.test.mjs`, owner, 12.11), in code, comments, docs and file names.
- **Nothing says a Robinhood token is minted any more.** Robinhood reports no supply; the token list (`minted` per token and its count), `find_stock_token`, the matrix cell and the stdio server said `true`. One `mintedOf()` decides everywhere; the archive's `registry_hash` is unchanged.
- **The stdio MCP server holds callers to the schemas it advertises** (`hours` past 720, an unknown argument, a number as `query` ran) and answers bad input as the HTTP server does: an unknown tool or bad argument is `-32602`, an `id` of `null` is `-32600`, a client's response and every notification get no reply, and the protocol version is negotiated. Both servers share one argument check (`scripts/lib/mcp-args.mjs`).
- **The visit counter counts a landing section only after it has been on screen for a second.** It counted every section within half a second of some page loads (a restored scroll, a jump to the footer), which said the whole page had been read.
- **`premium_at_reference_time` is the same value on every route:** the matrix took it from the 72 h the site holds, the passport from its 24 h, so with an issuer price over a day old (a weekend) the matrix showed a reading the passport did not. Both use the public window now (`PUBLIC_WINDOW_H`).
- **The brand mark in the footer and the docs bar carries the icon inline:** as a file it was cached a day by the CDN and showed the old icon after 0.5.0.

## [0.5.0] - 2026-11-11

### Added
- **The source is public:** https://github.com/proofofstock/proof-of-stock. The site footer and the docs link to it.
- **The footer links the project on X (@proofofstock) and on Telegram (t.me/proofofstock1)**, with icons drawn in the site's own line style; the organisation's JSON-LD names the same profiles as `sameAs`.
- **The visit counter sees what people do, as kinds of action:** which button under the headline, what kind of search (ticker, name, ISIN, address) and whether it found anything, typed commands, which question opened, which sections were scrolled into view, what was copied, which kind of outside link was followed, the chain switch. A fixed list of kinds and values; never the text typed, no recording, no third party (docs/legal.md). The daily report has a line per kind.
- **Questions on the landing** (`#faq`): six questions a visitor or an agent developer doubts before trusting it (listed is not a price verdict, not listed is not proof of a fake, where the data comes from, how old an answer can be and what happens when a source is down, whether an agent is safe, cost), in words that stay true as issuers are added; the same text as FAQPage JSON-LD. The hero names no single issuer in its sentence.
- **Search engines, AI crawlers and link previews** (from an 11.11 audit of the live site: no robots rules, no sitemap, no canonical link, a text-only preview on `/` and none elsewhere, no structured data):
  - `/robots.txt` allows every page and keeps `/api/`, `/verify` and `/mcp` out; it names `/sitemap.xml`, which lists the home, the docs, `/status`, `/history` and one short link per issuer-listed token (`/?base=NVDAc`), from the registries in memory.
  - Every page names its canonical link (the docs home is `/docs/`; a token is its short link), and a markdown docs page points at its HTML one with a `Link` header. JSON answers carry `X-Robots-Tag: noindex`, and so does the empty passport of an address that is neither listed nor a listed impostor.
  - A 1200×630 preview image in the site's style (`/og.png`, from `scripts/og/og.html`) and a large Twitter card on every page; the docs, `/status` and `/history` get Open Graph tags too, and `/status` a description.
  - JSON-LD: the organisation (Proof of Stock, hello@proofofstock.xyz), the site, the web app and the MCP server on the home; a TechArticle per docs page; a WebPage elsewhere. A PNG icon (`/logo.png`, also `/favicon.ico`).
  - `/llms.txt` starts with where an agent begins: the MCP server, the HTTP API, the passport schema, the guard and `/llms-full.txt`.
  - **The site is named Proof of Stock** in every `<title>`, link preview, the JSON-LD and `/llms.txt` (was Stock Token Passport); a token's page keeps its ticker and chain first (`NVDAc (NVIDIA) on Base: … · Proof of Stock`).

### Changed
- **A new site icon** (the owner's): a blue disc cut by a notched band. It is the favicon on every page, the touch icon and the organisation's logo (512 px), the brand mark in the footer and the docs bar, and the mark on the link preview.
- **robots.txt names the search and AI crawlers** of OpenAI, Anthropic, Google, Perplexity, Meta, Apple, Amazon, Mistral, Microsoft, Common Crawl, DuckDuckGo and Cohere, with the same rules as every other crawler: the pages, docs and llms.txt open, the JSON API and /mcp out.
- **The name is Proof of Stock** on every page, in MCP (`serverInfo.name: proof-of-stock`) and in `server.json`; the guard is `@proofofstock/guard` (not published yet). The rights line says the code is MIT.
- **The first screen says what the site is:** "Is this stock token the real one?", one sentence on what it checks, and chips "biggest gaps now" and "known fakes". A passport opens with the verdict in words and when the issuer list was read; "reference" is "issuer price" and "difference" is "on-chain vs issuer", with what + means and the reading's age. The greeting says how many listed tokens have prices. The colour legend matches the colours (green above the issuer, red below). Errors are sentences (no connection, too many checks). A section says what the service cannot do: it only reads.
- **Accessibility:** faint text at 4.7:1 contrast, the headline is the page's h1, the chain switch is toggle buttons, the typed greeting is announced once.
- **The changelog is a docs page:** `/docs/changelog.md`, in the docs menu under Releases; the footer version links there and `/CHANGELOG.md` redirects to it.

### Security
- **Both CIs name every GitHub Action by its commit** (`actions/checkout` and `actions/setup-node` v4.4.0), not by a tag that can be moved; a test keeps it so.
- **A token's own symbol and name are treated as a stranger's text.** For a token outside the issuer registry they are published as one-line labels (invisible and control characters removed, cut to 32 and 64 characters), never put into a sentence the service says (the MCP lead of `recent_impostors`, an impostor page's title and link preview), and every answer that carries them says so in `untrusted_text`. The MCP server's instructions say the same. An agent reading our answers could otherwise be handed instructions through a token's name.
- **The impostor rule compares normalized text:** an invisible character or a full-width letter in a symbol was a way past the exact comparison. Rule version `impostor-strong-v2`.

### Fixed
- **The same share on the other chain shows no price older than the passport's window**, like the passport's own `latest` (it could show one up to 72 h old).
- **The site:** the status bar showed when the server last read its files as the age of the readings; it now shows when a price was last read. A pasted address gets the chart and the by-session table, as a ticker search does. Aerodrome pools are named.
- **The docs match the code:** `latest` follows `hours`, `no_readings` after 72 h without a reading, the `case` field, `internal error` on MCP, `window_days` and `older` on the impostor list, the rate limit in units, GeckoTerminal's trigger, the fourth pool rule; the alert script in "Alert when the gap is wide" no longer crashes at its first alert.

## [0.4.0] - 2026-11-11

### Fixed
- **The case archive keeps what it knows** (from the 11.11 review): an archive or stream that cannot be read is an error, not an empty one, so no run backfills every case again and the site keeps its last good copy; a damaged line in a token stream makes the list partial, so it closes no case as gone; a row appended after a torn last line is no longer lost. The recorder exits non-zero when it dies midway or writes an invalid row.
- **The guard believes only a well-formed answer:** `listed` must be a boolean about the address asked; anything else is `unknown` and refuses the buy (a `listed: "false"` string used to allow it).
- **Smaller fixes:** `/history` printed a literal `${BULK_WINDOW_DAYS}` when empty; a registry row without its lists stopped that chain's history; the visit counter credited a passport's seconds to the next one; the docs say a passport costs 3 units, 24 h and IPv6 /56.
- **From a code review (11.11):** `?chain=constructor` and other Object member names are a 400 (they answered 500); no raw error text, paths included, reaches a public answer or an MCP client; a client that arrives while the rate-limit table is full keeps its 60 units a minute (it passed uncounted); `/healthz` is 503 until an issuer registry is loaded, and a deploy is refused while another runs, rolls back on a failed restart and health-checks the rollback.
- **From a site audit:** /llms-full.txt links are absolute (relative to the one file they all 404ed); the terminal says "impostors" and "issuer-listed" instead of "fakes" and "verified"; /history says when its case archive starts instead of a dash; the guard is described as unpublished, not private; /api/status documents its impostor fields.
- **The contact address is the project's own:** hello@proofofstock.xyz on the legal page, in place of an inherited mailbox.
- **From a code review (11.11), the server side:** one client re-requesting a page can no longer fill the visit counter's day: each daily pseudonym gets at most 200 page loads and 400 beacons a day. `/status` and `/history` are built once per 30 s instead of on every request. The recorder stops itself short of its unit's timeout (no GeckoTerminal top-ups in the last 90 s, no more tokens at the deadline) and still writes its run row, which counts what it skipped in `supplement_skipped`. nginx keys its limits by an IPv6 /56 like the app, limits connections on the older names too, and sends HSTS; the site's unit hides other processes and writes its files private.

### Changed
- **No price older than the passport's window:** past 24 h without a reading, `latest` is `null` and `notes` carry `reading_stale`, instead of the last price the recorder left.
- **The two timed jobs run sandboxed like the site**, CI runs with a read-only token and `npm ci` only, and the public export is dry-run on every push.
- **⚠ Breaking: `/api/history/cases` has no cursor.** It answers the newest 50 events of the window at most; `cursor` is ignored and `next` is gone. Paging read the whole week 50 rows at a time, which the cap is there to prevent. `count` still says how many the window holds.
- **⚠ Breaking: no deployer address in public answers.** `/api/impostors` items and the passport's `impostor_listing` carry `same_deployer_impostors` (how many other listed impostors share the deployer) instead of `deployer`. The address is the collector's work.
- **The rate limit keys IPv6 by /56** (was /64), the block an ISP gives one customer, so one free /48 is 256 clients instead of 65,536.
- **Switching chain from the tabs repeats the last search there**, and says so in the terminal. Before, a Base passport stayed on screen under a Robinhood link. An address search is answered on both chains anyway, so it is not repeated.
- **The tape runs smoothly.** The background glow is a gradient instead of a 100 px blur filter that was redrawn every frame, the terminal no longer blurs the moving background behind it, and the tape no longer rebuilds itself when only the order of its tokens changes.
- **The footer and the docs say "beta".**
- **Charts open on GeckoTerminal** (CoinGecko's DEX charts) instead of DexScreener: `links.dex`, the passport's chart button and each pool row. DexScreener is still one of the price sources.
- **⚠ Breaking: lists are a window, an address is answered whole.** The archive and the recorder's prices are what nobody else has, so they are no longer a download:
  - `/api/history/cases`, `/api/impostors` and MCP `recent_impostors` list only the last 7 days, at most 50 rows; backfilled cases are not listed. They say so (`window_days`, `older`).
  - A passport shows at most 24 h (was 72), carries `series_points` only with `series=1`, and costs 3 units of the per-minute limit.
  - Any one address still gets its whole case and its passport; the counts cover the whole archive. The full archive is available on request.
- **Prices are coloured by direction.** An on-chain price above the issuer's is green and one below is red; under 0.5% it stays neutral, beyond 2% it is bold. Until now the colour was the gap's size whatever its sign, so a rise showed red. The tape is labelled "vs issuer", because its number is the gap to the issuer's price, not a price change.
- **The site is proofofstock.xyz.** Every link, the MCP URL (`https://proofofstock.xyz/mcp`), `server.json`, the docs and the guard default point there. stockofproof.xyz and tickerproof.xyz redirect every page to it, but serve `/mcp` in place, because an MCP client POSTs and a redirected POST is not reliably followed: agents set up with the old URL keep working. `deployment/nginx/proofofstock.xyz.conf` replaces `stockofproof.xyz.conf`.

### Added
- **Our own visit counter** (`apps/stocks-analytics.mjs`, `apps/stocks-web/beacon.js`, `scripts/stocks/analytics-report.mjs`), with no cookie, no third party and no stored address ([What we count](legal.md#what-we-count)). Every page counts which page was shown and for how many visible seconds, the open passport and the referring host. The server counts the pages it sent by requester class (browser, bot, tool) and MCP calls by tool. A visitor is a daily pseudonym whose key lives only in memory. It is on only where `STP_ANALYTICS_DIR` is set (the unit sets `/var/lib/stp-analytics`), so tests and the deploy gate never write to it.
- **The history is public** (TZ §H6): the page `/history` and `GET /api/history/cases` and `/api/history/registry` (`apps/stocks-history.mjs`). Per chain: the registry snapshots, the snapshot in force on any day, and the case timeline, each event dated and marked observed or backfilled. A backfilled case says "first seen by our collector", never "flagged by us". `/verify` and `/api/passport` gain `case`; the passport says when a contract the issuer now lists was on our impostor list before. Nothing is read from disk on a request: the archive is loaded with the background refresh.
- **Source links to GitHub, hidden until the repository is public.** They are a footer chip with the GitHub mark, a link in the docs top bar and "Source on GitHub" in the docs footer. They show only when `package.json` `stp.source_public` is true; it is false today, so no page links to a 404. `package.json` gains `repository`.
- **History starts accumulating** (`evm/core/stocks/history.mjs`, TZ §H1-H2). Files go under `<root>/stock-peg/history/`.
  - **H1, the impostor case archive:** `cases-*.jsonl` holds one row per change of a case: `opened`, `kind_changed`, `listed` (the issuer listed it) or `gone`. It is append-only; a case's state is the replay of its rows.
    - The first archive of a chain is written as `backfilled`, with `flagged_at` null and the `first_seen_at` our collector recorded.
    - A partial list (a torn day file, or truncation) closes nothing.
  - **H2, registry snapshots:** `registry-*.jsonl` gets the full canonical list without prices, its hash, the previous hash and what changed by address, written only when the registry changed.
  - **Who writes them:** the existing `stp-impostors` and `stp-peg` units, after their own output. A history failure fails the unit loudly and never withholds the public files.
  - Schemas `schemas/v2/stock-case.schema.json` and `stock-registry-snapshot.schema.json`, tests, and `tests/locks/stock-history.mutations.json` (5 mutations).
- **A Coinbase-style query finds the share on Robinhood:** `TSLAc` with no exact match retries as the bare ticker `TSLA`, exact matches only, and says so in `reason` and `query_normalized`.
- **MIT licence** (`LICENSE`).
- **The guard can be published:** `@stockofproof/guard` is no longer private and ships its licence.
- **`server.json` for the official MCP registry.**

  The owner's publishing steps are in `deployment/PUBLISHING.md`.
- **The docs are web pages.** A browser opening `/docs/...` gets HTML:
  - a top bar with search (titles and section headings; ⌘K, Ctrl+K or `/`);
  - catalogs with icons on the left, contents on the right, previous/next at the end;
  - tools and routes drawn as signature cards;
  - a docs home with a "will never" safety card.

  Agents, curl and `?format=md` still get the markdown itself. Markdown is rendered by `marked` (new dependency, pinned to 15.0.12). Raw HTML in the docs is escaped, except `<a id>` anchors.
- **`/status` is a page for people.** It shows each part per chain (issuer registry, price readings, impostor list) as up to date, running late or not updating, against its own schedule, and it refreshes every minute. `/api/status` stays the JSON for code and now includes the impostor list's age. The footer's Status dot takes the same colour.

### Changed
- **The footer is redesigned:**
  - brand and tagline;
  - documentation and status links as chips in the page's style, with a live dot on Status;
  - one short note;
  - a rights line ("© 2026 Stock Token Passport. All rights reserved.");
  - Legal, and the version with its release date, taken from this changelog.
- **The landing names all six MCP tools** and links the tool reference.

## [0.3.0] - 2026-11-10

### Added
- **Documentation** at `/docs/`, as markdown, arranged as tutorials, how-to guides, reference and explanation:
  - a field-by-field passport reference with a JSON Schema;
  - a tool reference with curl examples, errors and limits;
  - an HTTP API reference with monitoring notes;
  - a methodology page with known limitations;
  - one canonical legal page.
- **`/llms.txt` and `/llms-full.txt`**, an index and the full docs for agents (llmstxt.org).
- **Base ↔ Robinhood premium matrix:** `GET /api/matrix`, MCP `compare_venues`, terminal command `matrix`. Venues are
  paired by ISIN, and premiums are compared, never raw prices.
- **Impostor radar, static part, internal only:** address look-alikes and Coinbase vanity-prefix signals, with a
  self-check. They go to `impostor-signals.internal.json` and are not published until measured.
- **Chart legend** for market phases and price holes; dotted bridges over holes of up to 2 h.
- **Pool links:** each pool in a passport links to that pool on DexScreener.
- **Own deploy:** `scripts/ship.sh` and `scripts/deploy.sh` (pinned releases under `/opt/stp`, gated by the full test
  suite), and units `stp-web`, `stp-peg`, `stp-impostors`.

### Changed
- **The project lives in this repository.** Until now it lived inside our collector's repository.
- **The disclaimer is one canonical text** (`docs/legal.md`). Tool descriptions and the MCP instructions point at it
  instead of repeating it.
- **The MCP `serverInfo.version`** comes from `package.json`.

### Fixed
- **Quarantined readings:** those of 2026-11-09 17:30-19:55 UTC priced through memecoin pools (circular prices) no
  longer reach charts or statistics.

## [0.2.0] - 2026-11-10

### Added
- **`GET /verify` and `GET /badge.svg`:** the one-bit registry check, and an embeddable badge that prints the address
  it vouches for.
- **MCP `verify_stock_tokens`** (up to 50 addresses) and **`recent_impostors`**.
- **`@stockofproof/guard`:** a pre-trade check for agents, with an AgentKit action.
- **Short links** for listed tokens (`?base=NVDAc`).
- **Copy the contract with a click.**
- **A seamless live tape** that refreshes in place.

### Changed
- **Exact search:** a ticker or ISIN that matches exactly returns only those tokens; other matches carry
  `match_quality`.
- **Pools count only against a dollar stable or wrapped ETH**, matched by address.
- **Plain text everywhere.**
- **The black and Base-blue palette.**

## [0.1.0] - 2026-11-08

### Added
- The passport, the recorder (every 15 min), the impostor list and the public site.
