# Acceptance

Each clause in CONTRACT.md is accepted by the evidence below, run through a public door (route, command, built page or browser journey) on a built Worker with fakes only at paid or network edges. The status after each clause is the one recorded in CONTRACT.md's Status section at the judged commit; a build round moves a clause to done only when its evidence runs and passes.

## Existing guarantees

- `HTTP-001` One Worker with honest public and private doors (done): Request `/health`, `/vane.js`, an unknown path and every private route signed out on a built Worker. Health answers, the script is served, unknown paths return 404, and private routes return 401 or redirect to sign-in (`tests/vane.test.mjs`).
- `ACCESS-001` Owners approve, administrators prepare, members read (done): Invite an administrator and a member. The member cannot prepare a site, the administrator cannot approve or import, export is owner-only, and revoking the administrator ends their session (`tests/vane.test.mjs`).
- `ACCESS-002` Private doors refuse signed-out and cross-origin requests (done): Call every private GET and POST door signed out, signed out after sign-out, and with a foreign Origin. Each is refused with no write (`tests/vane.test.mjs`).
- `APPROVE-001` Prepared changes apply only on the owner's recorded approval (done): Prepare as an administrator, approve as the owner, then approve again; the second approval gets 409. Inspect the proposal for distinct preparer and approver (`tests/vane.test.mjs`).
- `COLLECT-001` A cookie-free script that sends only declared anonymous fields (done): Post an event from a foreign origin (403), with an extra personal field (400) and with a path carrying a query (400). A valid event is accepted (202) (`tests/vane.test.mjs`). In a browser, a default-mode pageview leaves no cookie and no storage entry; `#vane-ignore=on` writes only `vane_ignore` and excludes that browser, and `#vane-ignore=off` clears it. `/methodology` and the report's data inventory name both storage exceptions. With DNT and then GPC set, a page load sends nothing while the `PRIVACY-002` counter is off, and exactly one field-free count and nothing else while it is on. The public-config journey asserts both compatibility modes: an unapproved proposal changes nothing; approval adds only the compatibility flag and ISO currency; private fields stay absent, and approved opt-out restores the exact earlier response bytes.
- `CONSENT-001` The site's consent mode is enforced at collection (done): On a consent-required site, an event without granted consent is refused with 403 and one with granted consent is accepted (`tests/vane.test.mjs`).
- `DEDUP-001` Each page load is admitted once (done): Send the same event twice (202, then 200 with nothing counted) and then a conflicting copy (409). The report counts one visit (`tests/vane.test.mjs`).
- `TRAFFIC-001` Page loads, sources, campaigns and goals with a comparison and stated limits (done): Collect events in two adjacent periods of the same length and read the summary. The compared totals and every referring-hostname, campaign, page and goal row show the correct previous-period count and change, and the counts and coverage-limit text match the seeded events (`tests/vane.test.mjs`).
- `IMPORT-001` Reviewed, journaled and undoable Umami import (done): Preview the import (no writes, no raw identifiers), apply it with a changed fingerprint (409), apply it twice (one job), read the journal and undo it (`tests/vane.test.mjs`).
- `ARCHIVE-001` Complete history export and atomic restore (done): Export, corrupt the archive and restore it (400, no writes). Restore the real archive into an empty installation, check that the tables are identical, restore it again (409) and undo the restored import (`tests/vane.test.mjs`). The archive carries each site's US metro-name table, its source label and public choice, and a restore gives the same names (`tests/locations.journey.mjs`). Complete-table equality includes the preserved destination sign-in audit and the new restore receipt and audit, each asserted explicitly; the corrupt-restore comparison covers every destination table.
- `ERASURE-001` Owner-approved erasure, fenced against old backups (done): Erase a site with live and imported history. Both are gone, the deletion and erasure journals exist, and restoring the old archive with the later journal is refused (`tests/vane.test.mjs`).
- `RETENTION-001` The declared retention window erases older history (done): Import old history, collect a recent event and apply retention until it completes. The old history is gone, the recent event remains, and one deletion is journaled (`tests/vane.test.mjs`).
- `RUNSITE-001` The public run site reaches installation and every guide (done): `rer build --site`, then follow every local link from the built homepage and guides (`tests/site.test.mjs`).
- `DOCS-001` Documentation built from repository Markdown (done): Build the site and open each guide. Code blocks, tables and heading anchors render, and the clipboard control copies the block (`tests/site.test.mjs`).
- `HOME-001` The approved homepage in the shared theme (done): The independent visual gate compares the built homepage at 1440 and 390 px with the approved specification and picks. In the repository, a browser opens the built homepage at 390 and 1440 px: at 390 px the hero cards and every section's drawing sit under their copy with no sideways scrolling, at 1440 px each drawing sits beside its copy, and every font, image and style comes from the run site itself (`tests/site.test.mjs`).
- `LOBBY-001` The installed Lobby and real sign-in stay intact (done): On a fresh installation, bootstrap the owner, complete `/setup`, sign in by email link and open `/app`. No landing-drawing numbers appear in analytics (`tests/vane.test.mjs`).
- `DEPLOY-001` Run-site deployment stays behind its switch (done): With the variable unset, the run-site workflow skips deployment. The identifiers in `wrangler.jsonc`, `package.json` and `edition.json` are unchanged. Run site workflow 40142096805 on e92c624a68c66d1000bee594f83a92066d510a70 exercised the manual prove_unset_switch input: the effective RUN_SITE_DEPLOY environment variable was unset for that execution, job deployment-switch succeeded and job deploy was skipped. The repository variable was preserved. Normal runs use the same resolved-switch output and enable deployment only for the exact value true. All three identifier files are byte-for-byte unchanged from starting main 35d45430bc9fb50ba944e45d5dfece89f1777ca5; no permanent configuration-shape test was added.

## Install and collection

- `INSTALL-001` One script tag with live install verification (done): Point a fixture site at Vane without the script, then with the wrong site ID, then with a CSP that blocks it, then correctly. Each check names its cause; the correct one turns verified when the first event arrives (`tests/vane.test.mjs`). Record the Worker's outbound requests during each check: only the homepage GET and at most five redirects, carrying no visitor data, and only the pass/fail result is stored.
- `INSTALL-002` WordPress and WooCommerce plugin (missing): Install the plugin on a WordPress + WooCommerce test site, connect it and place a test order. Pageviews, automatic events and a purchase with the correct USD revenue appear in Vane, the `CONV-007` ecommerce funnel and product report show the order's product, quantity and revenue, and admin visits are excluded when that option is set.
- `INSTALL-003` Shopify app with checkout tracking (missing): Install the app on a Shopify development store and complete a test checkout. Storefront pageviews, the checkout funnel steps and a reconciled purchase with its revenue appear, and the `CONV-007` ecommerce funnel and product report show the order's product, quantity and revenue.
- `INSTALL-004` Webflow, Squarespace, Wix, Pane and static-site paths (missing): Follow each guide against its platform's test site and pass verification. Turn on Vane in a Pane site and see the page's visitors in the Pane editor. Turn on Vane in a Stall storefront and run a test purchase: the `CONV-007` ecommerce funnel and product report show the product, quantity and revenue. Apply a split-test variant (`EXPERIMENT-001`) from the Pane editor and see its exposures counted.
- `INSTALL-005` Google Tag Manager template (missing): Import the template into a GTM container, publish it and fire a dataLayer purchase. A Vane event with the mapped properties arrives, and denied consent sends nothing in a consent-required mode.
- `INSTALL-006` First-party proxy for blocker-resilient delivery (partial; ct batch-8 C approved rewording; workflow 39724581606 blocked Plausible but Google gtag returned 307 rather than the ct-required blocked-client error under 270,785 unchanged refreshed default filters; direct Vane returned 200 and the proxy added one private pageview with list versions recorded; full green weekly journey and ct re-read pending; Cloudflare edge simulated): Configure the Cloudflare route and the Next.js rewrite, and load the site in Chromium with uBlock Origin's default lists active, including EasyPrivacy. First prove the lists are live: in the same session, before the site loads, the incumbents' real tags `https://plausible.io/js/script.js` and `https://www.googletagmanager.com/gtag/js?id=G-TEST` fail with `net::ERR_BLOCKED_BY_CLIENT`. Record the unproxied `vane.js` outcome with the uBlock and list versions; when it is blocked the proxied page still collects. The journey reruns weekly against current default lists. No Vane surface claims to evade blockers or recover blocked visitors; COVERAGE-001's proxy/direct shares are the only measure. Events still arrive, the proxy share is reported, and the forwarded values are never stored raw. Implemented semantics: the active owner explicitly manages audited site/hostname/path connections; server credentials are shown once and retained only as digests, and the Cloudflare token is transient. Public script/config GETs and all collection doors retain the existing origin/consent boundary. Native proxy/direct counts carry their denominator; old transport and imported coverage stay unknown. Future tracker doors, including the WordPress insertion in `INSTALL-002`, inherit this boundary before shipping.
- `INSTALL-007` Single-page applications and hash routing (done): Navigate a React Router and a hash-routed fixture through four views. Four pageviews arrive with the right paths and no duplicates, and a manual pageview arrives with its path and kept UTM field; its `props: {author: 'jo'}` breakdown is `CONV-002`'s acceptance. In Chromium, a React app routed by TanStack Router through the History API records `/`, `/pricing`, `/docs` and `/about`, and the same app on `/app/` with `data-hash` records `/app/`, `/app/pricing`, `/app/docs` and `/app/about`, each once, with a repeated click and a same-URL `pushState` adding nothing; with `data-manual`, the queued `vane('pageview')` and `vane('pageview', {url: '/manual/step-2?utm_source=newsletter'})` are the only pageviews (a `pushState` sends none), the second with its UTM source; the settings page shows both attributes (`tests/vane.test.mjs`, `tests/fixtures/spa-router.jsx`).
- `INSTALL-008` Server-side and mobile Events API (done): Send events from a server with a site token, with a duplicate idempotency key and with a token for another site. Events count once, the foreign token is refused, and no raw IP or user agent is stored. A custom event joins its page load, visitors come from the supplied address and agent, and a Stats API key or no token is refused (`tests/vane.test.mjs`).
- `COLLECT-002` Open path collection with automatic redaction (done): Load pages with emails, tokens, order numbers and UTM and click-ID queries in the URL. Stored paths are redacted, UTM values and the paid-click flag are kept, and a rewrite rule groups the order pages. Visits landing on `/?ref=producthunt` and `/?source=newsletter` report `producthunt` and `newsletter` as their sources, and a visit with both `utm_source=google` and `ref=x` reports `google`. In a browser through `vane.js`, with a rewrite rule, an exclude list, a kept key and a second hostname (`tests/vane.test.mjs`).
- `COLLECT-003` Bot, referrer-spam and internal-traffic exclusion (done): Send traffic from a headless browser, a spam referrer, an excluded IP, an excluded country and an opted-out browser beside real visits. Only the real visits count, and the exclusion report shows each reason and its count. A real headless browser, Googlebot, curl, Cloudflare bot scores below 30, a Cloudflare verified bot, requests from data-center networks (Cloudflare ASNs 16509 and 24940), a semalt.com referrer, IPv4 and IPv6 addresses inside excluded ranges, a Canadian request and an opted-out browser are each refused and counted under their reason with their share; an address just outside the range and a residential network scored as human count; the automatic-event door refuses a crawler, a low bot score and a data-center network; invalid ranges and country codes are refused; and no visitor IP or user agent is stored (`tests/vane.test.mjs`, which supplies the request's Cloudflare fields at the Worker's fetch door). Raw IP, user agent, Cloudflare country/subdivision codes, postal code, coordinates and request timezone are never stored. Refused loads store no event, visitor hash or location, only enabled site/day/reason/count counters; admitted loads store only DASH-005 location names and their US metro code (metro names live in the site's metro-name table and are never stored on events), which follow event archive and erasure. Unknown/XX/T1 and Events API locations stay NULL and show Unknown location. The named public-door test inspects custody before and after refusal and admitted storage.
- `COLLECT-004` Collection at small-business scale (done): A load test at the stated volume and burst rate admits every valid event exactly once. The 12-month dashboard query is timed, and the limit warning appears at the published threshold. `tests/collection-scale.journey.mjs`, “COLLECT-004 genuine monthly pageviews, …” (the full-volume test), passed in Collection scale workflow 40065213328 on b554a0bf06080d844cb29bca72faf2a3e1caf312 on 24 October 2026: twelve months at 10,000,000 pageviews each, 120,015,102 total pageviews admitted exactly once including initial and burst traffic, 519.6 events per second completed in the paced burst, and 26 complete public summary and HTML reports with a maximum of 1,623.8 ms. The actual store uses 9,895,727,104 of 10,737,418,240 bytes (92% of the stated D1 limit). The affected collection, rollup, analytics, report and journey sources are unchanged through main 35d45430bc9fb50ba944e45d5dfece89f1777ca5. `tests/vane-report-settings.mjs`, “RETENTION-002 a keep-forever site keeps 30 months of imported history and today's events, 25 months erases only older events with one journal entry, and a store past 80% of its capacity warns with both choices and drops nothing”, proves warning below capacity at the published 80% threshold, both choices and no lost admissions, with report and capacity screens at 1440 and 390. `.github/workflows/collection-scale.yml` runs the full-volume collection job weekly on Sunday at 20:29 UTC, separately from push Verify. Runtime proof does not establish actual provider billing, which remains HOST-001.
- `COVERAGE-001` Coverage shown beside every number (done): Combine declined consent, sampling, exclusions, an import and a zone comparison on one site. The report shows each share with its denominator and labels the totals as partial. Today: declined consent from a real browser, an excluded path, a privacy signal, sampling, an import and an erasure; page loads refused as collection errors are listed with the other counts (`ALERT-002`, `tests/tracking-health.test.mjs`); the zone comparison and proxy share arrive with a zone connection and `INSTALL-006` (`tests/vane.test.mjs`).

## Visitors and engagement

- `METRIC-001` Cookie-free unique visitors from daily-rotating salted hashes (done): Send pageviews from two simulated visitors over two days. Unique visitors are 2 per day and the range shows 4 under the stated method. Show that the database, logs and archive hold no IP, no user agent and no salt older than 24 hours, and that the same visitor hashes differently on another site (`tests/vane.test.mjs`).
- `METRIC-002` Visits and pages per visit (done): Under the default 30-minute visit timeout, send one visitor's pageviews with gaps of 10, 40 and 5 minutes. The report shows 2 visits, 4 pageviews and 2 pages per visit (`tests/vane.test.mjs`; the product clock moves through the local dev-key door `/__dev/clock`).
- `METRIC-003` Bounce rate and visit duration (done): Simulate a quick bounce, a single-page visit with 45 seconds of engagement, and a three-page visit. The bounce rate, visit durations and per-page time match the definitions (`tests/vane.test.mjs`, with the script's pings proven in a browser).
- `METRIC-004` Methodology disclosed and versioned (done): Open the methodology page signed out and follow each metric's definition link from the dashboard. The page states the roll-up rules and the two storage exceptions. Change the visit timeout and see a definition annotation dated on the charts. Timeouts outside 15 to 120 minutes are refused, an administrator only prepares the change and the owner approves it; days before the approval keep 30 minutes while later days use the new timeout; the annotation shows on the visits, bounce-rate and duration charts and not on the pageviews chart or a range without the change; the roll-up applies each site's own version and names the site; and the page defines revenue, consented mode, definition versions and its no-estimates stance (`tests/vane.test.mjs`). The location entry names Nielsen DMA® codes from Cloudflare, says Vane ships no metro names and carries the Nielsen service-mark notice (`tests/locations.journey.mjs`).
- `METRIC-005` Consented visitor mode: returning visitors and retention (done; `tests/consented.test.mjs` — approved mode, returning/cohort and cookie-free counts, revoke, methodology/lifetime, cross-visit funnel and stable variants, plus private aggregate CSVs and 1440/390 screens): With consent granted, visit on day 1 and day 8 and see one returning visitor in the week-2 cohort. Without consent, the same visits count as cookie-free daily visitors. A revoke deletes the identifier. The methodology page (`METRIC-004`) defines consented mode, its identifier and lifetime. A consented visitor who views the product on day 1 and buys on day 3 completes a cross-visit funnel, and sees the same split-test variant on both days.
- `METRIC-006` Scroll depth and time on page (done): Scroll a long fixture page to 50% and to 100% in separate visits. The page shows the average depth and the 75% share as expected (`tests/vane.test.mjs`, in a browser; time on page is proven under `METRIC-003`).

## Dashboards and analysis

- `DASH-001` Real-time dashboard (done): Send events while the real-time view is open. Current visitors and the live lists update within 15 seconds and drop once the visitors go idle for 5 minutes. In a browser, the view refreshes in place with no reload; pageviews per minute, live pages and live sources match the seeded visits and their change against 30 minutes earlier; an engagement ping keeps a visitor current; only this view allows `connect-src 'self'`; the JSON door gives the same figures and refuses a signed-out reader; and the view has no horizontal scroll at 390 px (`tests/vane.test.mjs`; live locations are carried by `DASH-005`).
- `DASH-002` Historical time series in the site's time zone (done): Seed events either side of a US daylight-saving change and midnight in America/Chicago. The daily buckets follow local days, each preset range returns the expected totals, and the data table matches the chart. The fall-back day has 25 hourly buckets with 01:00 CDT and 01:00 CST apart, and in a browser in America/Chicago the add-site form's time zone reads America/Chicago (`tests/vane.test.mjs`).
- `DASH-003` Page, entry and exit reports (done): Seed visits with known entry and exit pages. The three tables match, and grouping by `/blog/*` sums the posts correctly (`tests/vane.test.mjs`; a site has one hostname until `SITE-001`/`DASH-013` add more).
- `DASH-004` Channels, referrers and UTM campaigns (done): Send visits with Google organic, Google paid (gclid flag), Facebook, an email UTM, a chatgpt.com referrer and five-field UTMs. Each lands in its documented channel, every UTM field is reportable, and each row's visitors, bounce rate and visit duration equal a hand-computed count of the seeded visits. A webmail referrer is grouped and its address never kept, and a selected goal narrows each row's conversion rate (`tests/vane.test.mjs`).
- `DASH-005` Country, region and city (done): Send events with Cloudflare geo for Texas, Ontario and London. Reports show the country, region and city, and no IP appears anywhere in storage. Seed Austin with 12 visitors and Marfa with 3, then open a shared link. Austin is listed, Marfa is folded into "Other cities" in Texas, and the signed-in dashboard lists both. With the real-time view open, a current visitor from Texas appears in its live locations list and drops after 5 minutes idle. A week where Texas visitors fall names Texas among the explanation's movers with its totals. The country table shows each country's conversions and conversion rate for the selected goal. Filtering by country is United States keeps only those visits (`tests/vane.test.mjs`, through the collection door with Cloudflare geolocation, the summary, report, shared-link and real-time doors) The metro journeys in `tests/locations.journey.mjs` (imported by `tests/vane.test.mjs`) fake only Cloudflare's request fields, with Cloudflare's own example code 635 (Austin, Texas) and synthetic codes, places and names such as 999 and “Fixture Metro A”, never real DMA names. A1: code 635 shows unnamed with Austin, Texas as its place; CSV, the ZIP metros file, the warehouse export, the Stats API and MCP give an empty name and figures equal to the dashboard's; the saved filter, the mover and the live list key on the code. A2: a US load without a valid code (none, or 6355) counts as Unknown metro area, non-US loads are absent and loads without geolocation stay Unknown location. A3: shared and public pages show the observed place, fold a 3-visitor metro into Other metro areas, name only the region when a metro's leading city is under 5 visitors, and show no location when the location report is not chosen. A4: an administrator uploads a table and it waits with its preview; after the owner approves, the name appears on every signed-in surface, export and API answer, and on public pages only after public names are approved, with the footnote; the audit records it and event rows are unchanged. A5: uploads by a Viewer, an Analyst, a Stats API or provisioning key, the agent command API or from a web address, approval by an administrator, codes 63, 6355 and 6a5, a duplicate code, empty, overlong and formula-leading names, a control character, wrong, extra or missing columns, files over 1,000 rows or 256 KB and a missing label or statement are each refused with nothing changed. A6: clearing reverts to unnamed, erasure leaves the table, and the archive, restore and a site transfer keep the names and the public choice. A7 (a one-off repository search at the landing commit, not a test): no DMA code-to-name list exists in the repository, and `SOURCES.md` records the refused sources.
- `DASH-006` Devices, browsers and operating systems (done): Send events from iPhone Safari, Android Chrome, Windows Edge and an iPad. The device, browser and OS tables match, and no raw user agent is stored (`tests/vane.test.mjs`, with the script's viewport width proven in a browser).
- `DASH-007` Filters, segments and saved views (done): From the report, filter by Organic Search and mobile and not `/blog/*`, save the segment and reopen it in the report and the summary API. Each total equals a hand-computed count of the seeded events, and each comparison keeps whole visits. The saved segment recomputes a funnel's step counts. A member applies the segment but cannot save one. Reopening the segment in an alert is `ALERT-001`'s acceptance. An unsupported pattern is refused at save with the reason, never silently ignored or run. The filter form, segment save and summary API refuse backreferences and lookaround with a visible reason, preserve the saved segments on refusal, and accept linear patterns that keep whole visits at 1440 and 390 (`tests/vane-conversions.mjs`, “DASH-007 restricted matches refuse unsupported patterns visibly at every filter door and keep whole visits”). In Chromium at 1440 px, clicking Organic Search in the channel table and adding mobile and not `/blog/*` leaves visits 1, 5 and 6 of six seeded visits (3 visits, 6 pageviews, 1 goal, 3 visitors), `/blog/*` not matching `/blog/deep/post`; the saved segment reopens at 390 px and in the summary API with those totals, a funnel of 4 then 2 visits becomes 2 then 1, and is, is not, contains, does not contain, matches and wildcard filters on channel, source, UTM, device, browser and operating-system versions, hostname, entry page, page and goal each keep their hand-counted visits; a member reads the segment and is refused saving one, the save is audited, and a deleted segment returns 404 (`tests/vane.test.mjs`).
- `DASH-008` Period comparisons (done): Compare the last 30 days with the previous period and with last year. The chart overlays and the per-row changes match the seeded data. A custom period and matched weekdays move the compared dates as stated, and every table row on the report carries its absolute and percentage change (`tests/vane.test.mjs`).
- `DASH-009` Annotations, manual and automatic (done): Add a manual note, approve a settings change, post a deploy webhook and receive an Uptime incident. All four annotations appear on the chart at the right time. Each one is listed in the explanation of a report whose range covers it (`REPORT-003`). Notes over 280 characters or with markup are refused, only the author or the owner deletes a note, only the owner creates or revokes the secrets, a forged token or unsigned GitHub delivery is refused, repeats are idempotent, the 61st integration annotation in an hour is refused, a signed GitHub release lands on its publication date, notes never reach the public stats page, and the overview sparkline marks the annotated days (`tests/vane.test.mjs`).
- `DASH-010` Multi-site overview and roll-up (done): With three sites, open the overview, sort it by change and create a roll-up of two of them. Send one simulated visitor (same IP and user agent) to both sites on one day, and two other visitors to one site each. The roll-up shows 4 visitors and 4 visits, labeled "summed per site", with the cross-site note. Its pageviews, conversions and revenue equal the exact sums. Its bounce rate equals the summed bounced visits over the summed visits. The site split gives each site's own figures, and the methodology page states each rule. Revenue joins when `CONV-006` ships; search and split by site are checked too (`tests/vane.test.mjs`).
- `DASH-011` Journeys and paths (done): Seed visits through home → pricing → signup and home → blog → exit. The journey from home shows both paths with the right counts, with drop-off per step, an entry journey and the previous steps to signup (`tests/vane.test.mjs`).
- `DASH-012` Site-search analytics (done): Search `?q=returns` from two visitors and `?q=alice@example.com` from one. The returns term appears and the email-like term never does (`tests/vane.test.mjs`; the email-like term is dropped before storage).
- `DASH-013` Hostnames and subdomains within one site (done): On one site with `www.` and `blog.` hostnames, send `/` and `/pricing` from each. The pages table shows four rows, each with its hostname. The Hostname filter `is blog.example.com` narrows the dashboard, the Stats API answer and a CSV export to the blog's events. `is not` and `contains` return the complements and matches, a wildcard matches both hostnames, and a segment saved with the filter gives the same totals in a scheduled report. An event from a hostname that is not allowed is refused. Today the filter is proven on the dashboard and the JSON summary, with a hostname-scoped goal; the CSV export, segment and scheduled report parts are carried by `API-002`, `DASH-007` and `REPORT-001` when they ship (`tests/vane.test.mjs`).
- `DASH-014` Named sources for referrer domains and app referrers (done): Send visits with the referrers `https://news.ycombinator.com/item?id=1`, `android-app://com.slack.android`, `https://app.slack.com/` and `https://l.facebook.com/`, and an unlisted `https://brewblog.example/`. The sources table shows Hacker News, Slack with two visits, Facebook and `brewblog.example`, and Slack's drill-down lists both of its referrers. An approved owner rule naming `brewblog.example` as Brew Blog regroups that row, and the published source list names every grouping used. (`tests/vane.test.mjs`).
- `PERF-001` Page performance (done): Load a fixture page with an artificially slow image and see its LCP p75 above 2.5 s on that page only. The report carries only the IDs and figures, the device-class row takes the nearest-rank p75, a report with another field or for an unknown page load is refused (`tests/vane.test.mjs`, in a browser).
- `HEAT-001` Aggregate click and scroll maps (done): Click two buttons repeatedly on a fixture page. The heatmap concentrates on them, no event holds text or identifiers, and the scroll map matches `METRIC-006`. Approved ct 22 Oct defaults: owner-only, off until the owner enables an audited exact primary-origin path, anonymous daily width-specific grid counters, consent boundaries and METRIC-006 scroll reach. Maps render over recorded page height and anonymous layout-grid blocks, with no image, at 1440/390 (`tests/heat.test.mjs`).
- `HEAT-002` Heatmap over a live screenshot of the page (done; native capture and refusals passed at both widths): The owner explicitly shares the live tracked browser tab through native tab capture; its Capture Handle must match this site, approved path and geometry. Screenshots remain only in that owner tab’s memory, no screenshot service is called, no image is uploaded or persisted, and sharing stops after each frame. The owner captures the enabled fixture page natively and sees its click and scroll maps over that live screenshot at 1440 and 390 CSS pixels (`tests/heat.test.mjs`, `VANE_HEAT_CAPTURE=1`; ct-approved throwaway-profile harness exception 22 Oct 15:14Z).

## Conversions and revenue

- `CONV-001` Pageview goals with patterns and conversion rates (done): Define `/thanks/*` and `/thanks**` and visit `/thanks/pro` and `/thanks/pro/annual`. `/thanks/*` converts on `/thanks/pro` only (`*` stays within one path segment, as in Plausible), `/thanks**` converts on both, and the conversion rate equals converting visitors divided by visitors. Define a 75% scroll goal on `/blog/**`. A visitor scrolling a post to 80% converts and one scrolling to 50% does not (`tests/vane.test.mjs`; Plausible's scroll-goal import is `IMPORT-008`'s).
- `CONV-002` Custom events with properties (done): Fire Signup with plan=pro and plan=free through JavaScript and CSS classes. The breakdown by plan matches, and a property holding an email address is refused. A manual pageview (`INSTALL-007`) with author=jo breaks down by author. A funnel step on Signup with plan=pro counts only the pro signups. A `DASH-007` filter plan is pro keeps only the visits with a pro signup. In Chromium, four visitors fire Signup with plan=pro through a `vane-event-name=Signup vane-event-plan=pro` form, plan=free through `vane()`, plan=free through a class button and plan=pro through `vane()`: the report lists Signup with 4 events and 4 visitors and plan free 2, pro 2; a manual pageview with author=jo and a `data-prop-author="sam"` pageview break down by author; through the public door an email-address property or name is refused, a phone-number value is dropped, counted under coverage and never stored, and 31 properties are refused; the funnel `/ > event:Signup[plan=pro]` counts 4 then 2 visits, and the filters prop.plan is pro (2 visits), prop.plan is not pro (4), event is Signup (4) and prop.author is jo (1) hold; the inventory lists the properties table (`tests/vane.test.mjs`).
- `CONV-003` Automatic outbound-link, file-download, 404 and form-submission events (done): Click an outbound link and a PDF link, open a 404 page and submit a form on a fixture site. Four events arrive with the right properties and no form contents (`tests/vane.test.mjs`, in a browser).
- `CONV-004` Conversion rates by source, campaign, landing page and audience (done): Seed conversions from Google and from email. The channel table shows each channel's conversion rate and revenue for the selected goal. The source, UTM, entry-page and device rows show their conversions and conversion rate for the selected goal and for any goal (`tests/vane.test.mjs`); each row's revenue and revenue per visitor are proven with `CONV-006`, country rows are carried by `DASH-005`.
- `CONV-005` Funnels (done): Define the funnel product → cart → checkout → purchase and seed visits that drop at each step. The step counts and rates match, and the segment filter recomputes them. The hostname filter is the segment filter today; an out-of-order visit is not counted past step 1; a drop-off opens the journeys onward; one-step funnels are refused (`tests/vane.test.mjs`; custom-event steps, consented cross-visit funnels and saved segments are carried by `CONV-002`, `METRIC-005` and `DASH-007`).
- `CONV-006` Revenue goals (done): Record USD and CAD purchases with a Stripe Checkout return referrer. Revenue totals in USD at the owner-entered CAD rate, which is shown, and attribution goes to the original source rather than Stripe, both after the visit timeout and within the visit; a EUR amount with no rate is listed apart. The methodology page (`METRIC-004`) defines revenue: what is summed, the owner-entered conversion rate and the roll-up's exact sum. With Google and email conversions seeded, the channel table shows each channel's revenue and revenue per visitor for the selected goal, and the revenue chart, its data table, the compared period and a roll-up's exact sum match. The public stats page shows no revenue until the owner adds the revenue report; then it shows the USD and CAD amounts as sent, the USD total with the CAD rate labeled as owner-entered and the EUR amount apart, while its page and device rows carry none (`tests/vane.test.mjs`).
- `CONV-007` Ecommerce events (done): In a browser, one visitor views a tee, adds two to the cart, adds a mug, checks out and buys both across three page loads, and another views and adds a tee. The ecommerce funnel shows 2, 2, 1 and 1 visits, and the product report shows each product's views, units and revenue ($50.00 for the tees, $12.50 for the mug), with a euro purchase kept as €20.00. Lines on another event, an email address in a line, a zero quantity, an unknown or missing currency, an undeclared line field and more than 50 lines are refused (`tests/vane.test.mjs`). Each platform's test purchase through this funnel and report is proven by its own clause: WooCommerce `INSTALL-002`, Shopify `INSTALL-003`, Stall `INSTALL-004`.
- `CONV-008` Conversions reconciled with real orders and leads (missing): Complete three Stripe test payments, one with the browser event blocked and one refunded, and two HubSpot form submissions, one later marked qualified. The report shows each outcome in its correct confirmed or unconfirmed column, with net revenue. Block browser purchase events while Stripe confirms orders, and the `ALERT-002` divergence alert names the gap.
- `CONV-009` No-code event definitions (done): Define a click event for `#book-demo`, preview the matched element and approve it. Clicks on the live fixture arrive as the event, with no site code change. The preview of `#book-demo` against the live fixture page shows one match, `<button id="book-demo" class="cta">` Book a demo, a missing selector shows none, an invalid one is refused and a member cannot preview; a definition with an unknown kind is refused, and the config door serves no definition until the owner approves the settings; then, on the unchanged page in Chromium, a click on the button, a contact-form submit, the pricing section scrolling into view and a `pushState` to `/docs/intro` arrive as Book demo, Lead, Pricing seen and Docs (the pricing section counting again for the new pageview), and the report lists them (`tests/vane.test.mjs`).
- `EXPERIMENT-001` A/B tests with honest results (done): Run a fixture test with a seeded 20% lift and a null test. The first reaches significance with the expected interval, the null test never does, and a skewed split triggers the mismatch warning. Before every variant has the minimum sample the test reports underpowered and calls no result. In a browser, `vane('experiment', ...)` hands the page its variant and reports the exposure, and an exposure naming its own variant is refused (`tests/vane.test.mjs`). Consented cross-day assignment is proven with `METRIC-005`, Pane-applied variants with `INSTALL-004`.

## Search and advertising

- `SEARCH-001` Google Search Console keywords (done): Against a Search Console API fixture, connect, read the queries, filter by a query and disconnect. The query and page figures match the fixture, and the tokens are removed after disconnect. With a fixture that has not yet published its last two days, those days show as pending with the next sync time. After the fixture publishes them, the next sync fills both days in once with the fixture's figures, and each query lists its landing pages with their clicks and Vane visitors. Read-only session-bound OAuth, site scope, 16-month source sync, CSV/ZIP, sealed credentials omitted from archives and disconnect are exercised through the public doors at 1440 and 390 (`tests/search-console.test.mjs`).
- `SEARCH-002` Bing Webmaster Tools keywords (done): Against a Bing API fixture, connect and see Bing queries beside Google's with matching figures. The public doors assert verified-property connection, query/page/date clicks, impressions, CTR and position, scope, key custody and disconnect, daily replacement and failure retention, CSV and 1440/390 report/settings journeys (`tests/bing.test.mjs`).
- `ADS-001` Ad spend matched to campaigns (missing): Against ad API fixtures, connect two platforms and map one campaign by hand. Spend, CPA and ROAS per campaign match the fixtures and the confirmed revenue.

## Import and migration

- `IMPORT-002` Google Analytics 4 history import (done; `tests/ga4.test.mjs` proves read-only session-bound OAuth, all Admin property and key-event pages, inclusive 13-month dates, 910 source rows across Data offsets, dimension metrics and differences, journal, undo, sealed nonportable credentials and visible stop on revoked refresh; uploaded review and source reports at 1440 and 390): Against a GA4 Data API fixture, preview, apply, read the journal and undo a 13-month import. Imported totals match the fixture per dimension, and the definition-difference notes are shown.
- `IMPORT-003` Plausible import (done; `tests/plausible-history.test.mjs`, `tests/plausible-definitions.test.mjs`): Import a fixture in Plausible's dashboard-export layout and a Stats API fixture. Each dimension's totals match the source, the goals are proposed under the same names with the types and patterns `IMPORT-009` recovers, no funnel is read from either source, and undo removes the imported history.
- `IMPORT-004` Fathom import (missing): Import a Fathom export fixture. The totals match, each Fathom event is proposed as a goal under its name, and undo works.
- `IMPORT-005` Matomo import (partial): Import from a Matomo Reporting API fixture and unformatted report CSVs. Every source report’s aggregates match, no visitor-log rows or API token are stored, source goals prepare through owner approval, CSV/ZIP exports match, archive/restore and retention preserve custody, and undo works at 1440 and 390 (`tests/matomo.test.mjs`). Gap: resolved-address/pinned egress (Base egress door); owner-entered endpoints use API-002’s literal/name public-host rule, https only, no credentials in URLs and redirects refused until that door ships.
- `IMPORT-006` Umami, Simple Analytics and PostHog at full scale (done; `tests/import-export.test.mjs` proves resumed reviewed whole-file exports of all three providers, exact totals, unknown coverage, identifier absence and journal/undo; `tests/import-scale.journey.mjs` proves two million distinct Umami rows with preview and publication interrupted at one million, exact resumed published totals, bounded heap and identifier-free custody on the exact committed candidate SHA through heavy-slot outside push Verify; `.github/workflows/import-scale.yml` also provides a manual branch door, and the landing report cites the scale run ID): Import a 2-million-row Umami export, a Simple Analytics export and a PostHog export fixture, with an interruption mid-way. Each resumes, totals match, and no identifiers are kept.
- `IMPORT-007` Imported history merges without double counting (done; `tests/import-merge.test.mjs` maps live-day precedence, unknown coverage, source labels, viewer choices, comparison, CSV/ZIP, both Stats API doors, overlap preview/journal, owner replacement, event exports, archive/transfer/undo and 1440/390 history review; `tests/import-parallel.test.mjs` maps 14-day comparisons with evidenced bot-filter differences and unresolved causes): Import GA4 history that overlaps two days of live collection. Charts show the overlap once using live data, label the imported range and count it as unknown coverage. Against a Plausible Stats API fixture for 14 overlap days, the parallel-run report shows both columns per day and explains a seeded bot-filter difference. Switching imported data off removes the imported range from the chart, the tables, a CSV export and the Stats API answer with the option set, and switching it back on restores them. Import GA4 history through 4 June 2024, then preview a Plausible export that starts on 3 June 2024. The preview lists 3–4 June 2024 as overlapping Google Analytics 4 and skipped, the applied import's journal lists them, and those days' totals equal GA4's alone.
- `IMPORT-008` Tracking cut-over keeps incumbent events counting (done; `tests/plausible-definitions.test.mjs`, `tests/incumbent-options.test.mjs`, `tests/sitemap-scan.test.mjs`): On a fixture page instrumented only with Plausible calls (props and USD revenue) and `plausible-event-name=Book+Demo` and `plausible-event-name--Book+Demo` classes, swap in `vane.js` with compatibility on. The same events, properties and USD revenue arrive with no page edit. On a fixture page whose snippet calls `plausible.init({customProperties: {author: 'jo'}, fileDownloads: {fileExtensions: ['dwg']}})`, the pageview carries author=jo and a click on a `.dwg` link arrives as a file download. On a second fixture page with `fathom.trackEvent('Purchase', {_value: 4999})`, a $49.99 revenue event arrives. A third page that still loads `plausible.js` appears in the explicit owner/admin-started call-site scan with a drafted native rewrite. Recorded local origins prove robots.txt-listed and fallback sitemaps, same-origin pages only, the selected page limit, disallow, no redirects or credentials, no stored bodies, actor/time/fetched/refused records, unsupported-option findings, matching recovered-definition evidence, and Settings at 1440 and 390. Dynamic rewrite expressions are labelled for completion; AGENT-001 inherits PR/Pane hand-off before it ships. After the `IMPORT-009` export fixture is imported, the goals are proposed under the same names, and approving them makes the live events from the first fixture count as conversions in the goal reports.
- `IMPORT-009` Goal and funnel definitions recovered from what each incumbent plan exposes (done; `tests/plausible-definitions.test.mjs`, `tests/matomo.test.mjs`): Current-capability scope is the Plausible dashboard ZIP, fixed official plausible.io API reads and existing Matomo definitions. `IMPORT-004`, `IMPORT-002`, `IMPORT-008` and `AGENT-001` inherit source recovery, call-site evidence and person-approved completion before they add those capabilities. Missing revenue-query evidence stays Needs completion.  Import a fixture in Plausible's real dashboard-export layout, with no funnel file. Its `conversions.csv` holds `Visit /thanks*`, `Scroll 75% on /blog/**`, a custom event `Signup`, a goal named `Purchase` with counts and no revenue columns, and a goal renamed to `Leads (old)`, and its `custom_props.csv` holds `plan`. Matching accepted live `Signup` and `Purchase` calls establish their event names, and the live `Purchase` carrying USD revenue establishes revenue type and currency. Four goals are proposed with the right type, pattern, threshold and currency (USD, shown for confirmation). `Leads (old)` appears under Needs completion and is not proposed. `plan` is proposed as a property. Against a fixture of the read-only goals endpoint called with a Stats API key, plus a Stats API v2 revenue answer in EUR, the same goals are read directly, `Purchase` carries EUR, and no field is inferred from a name except the scroll threshold. Against a fixture of the same endpoint called with an Enterprise Sites API key, the result is identical. Rebuild the funnel `Visit /pricing` → `Signup` → `Purchase` by pasting the three step names, approve it, and replay the live shimmed events from the first `IMPORT-008` fixture. The funnel report counts them at each step. The import screen states that Plausible exposes no funnel definitions, and no funnel is ever proposed from an export or API read.

## Reports, alerts and follow-up

- `REPORT-001` Scheduled email reports (done): Subscribe two recipients to the weekly report at 8:00 America/New_York and run the schedule across a daylight-saving change. Each email arrives once at the local hour with figures that match the dashboard, and unsubscribe stops it. With a fake mail provider and clock, fail one delivery temporarily twice: it is retried at 15 minutes and 2 hours and delivered once. Fail another on all four attempts: it shows as failed after the 12-hour retry. A permanent bounce shows in the app at once and is not retried. A weekly report set to Mondays at 8:00 am arrives on Monday at 8:00 local time and on no other day. Then a signed provider event reports a permanent bounce on one delivered report hours later and a spam complaint on another: each shows on its send at once, a wrong signature or another address is refused, an identical retry changes nothing, and the next scheduled sends to both addresses fail unsent with that reason while other recipients keep their reports. (`tests/vane.test.mjs`)
- `REPORT-002` Slack, Microsoft Teams and Nook delivery (partial): Against fixture endpoints for all three, send a weekly report and an alert. Each payload carries the right figures and a working deep link, and a revoked token surfaces as a delivery failure. Slack, Teams and Nook NOOK-079 weekly reports across DST, filtered figures/links, alert figures, scoped roles, single-use OAuth, sealed custody, period deduplication, visible revoked-token/401 failures, disconnect, and settings at 1440/390 are asserted in `tests/chat.test.mjs`. All three destinations assert the weekly report, alert, figures, private deep link and revoked-credential failure. Nook uses a scoped integration token with stable idempotency keys, never a session cookie. The only remaining gap is resolved-address/pinned egress (Base egress door).
- `REPORT-003` A readable explanation of what changed (done): Seed a week where organic search falls 40% on one page while other channels are stable. The explanation names that page and channel with its denominators, lists the overlapping annotation, and labels a fluctuation inside the baseline's 95% prediction interval as normal variation and one outside it as not. With 8 weeks of alternating baseline traffic, a Monday inside its interval (MLK Day and Washington's Birthday left out of its baseline) reads within normal variation and a Tuesday below its interval does not; the range's definition annotation and its excluded-path coverage change are listed; a holiday is not judged and a range over 31 days is not judged; and the text claims no cause (`tests/vane.test.mjs`).
- `ALERT-001` Traffic spike and drop alerts (done): Seed eight weeks of baseline traffic, then inject a 4× spike, a 70% drop and a Thanksgiving-day dip. The spike and drop alert once each, the holiday dip does not, and the cool-down suppresses a repeat. With a current-visitors threshold of 50 and a fake clock, raise current visitors above 50. The alert is sent within 15 minutes of the crossing, and the recorded crossing and send times show it. Enter a recurring Saturday 2:00–3:00 am maintenance window and inject a 90% drop inside it. No alert is sent, and the alert log shows the drop as held with the reason scheduled maintenance; the same drop at 4:00 am alerts. Each alert's message lists its largest movers with their totals, as the report's explanation does. An alert on a saved `DASH-007` segment counts only that segment's visits. (`tests/vane.test.mjs`)
- `ALERT-002` Conversion, revenue and tracking-health alerts (done; `tests/revenue-alert.test.mjs` proves AUD/EUR dated conversion, fixed and hourly usual-range revenue drops, missing-rate non-judgment, delivery, repeat suppression and settings at 1440/390; `tests/tracking-health.test.mjs` proves daily tracking health, owner-local scheduling, named alerts, movers, follow-up and signed-webhook delivery, and overview/settings at 1440/390; future `CONV-008` carries confirmed-outcome divergence before its outcome sources ship, under all `ALERT-002` rules; the acceptance below remains word for word): Remove the script from a fixture site, break a goal's event name and block browser purchase events while Stripe confirms orders. Each condition raises its own named alert. Drop the script from `/pricing` only while the other pages keep sending, and a page-silent alert names `/pricing`. With twelve goals that all fire, the overview reads all 12 goals tracking with the time of the last check; break one, and the next check reads 11 of 12 and names the silent goal. Each alert's message lists its largest movers with their totals, as the report's explanation does.
- `FOLLOW-001` Alerts are followed through until a person resolves them (done): Fire a drop alert, leave it unacknowledged past the reminder time, then the escalation time. One reminder and one escalation arrive. Acknowledge and resolve it as a tracking fault. Reminders stop and the item records who resolved it, when and with what outcome. (`tests/vane.test.mjs`)

## Sharing, team and data access

- `SHARE-001` Shared links and embedded dashboards (done): Create a password-protected link that hides revenue, open it signed out and embed it. The figures match the dashboard with no revenue shown, the wrong password is refused, and a revoked link returns 404. A segment link embeds dark on the site's origin with the segment's figures and is refused on an unlisted origin, 10 wrong passwords lock a link for 15 minutes, a member cannot create a link, an expired link returns 404, and creation and revocation are audited (`tests/vane.test.mjs`). City and metro folding and metro-name publication on links are `DASH-005`'s (`tests/locations.journey.mjs`).
- `SHARE-002` Public dashboards (done): Make a site public with two reports chosen and open its URL signed out. Only those reports appear, and turning it off returns 404; revenue appears only once the owner adds the revenue report, asserted under `CONV-006` (`tests/vane.test.mjs`; the page is `/stats/<site ID>`, chosen through an approved settings change).
- `TEAM-001` Per-site roles and invitations (done): Invite an analyst to one site and a viewer to two sites. Exercise every action through its public route as each role, including the analyst saving a segment (`DASH-007`) and preparing a no-code event (`CONV-009`): every out-of-role or out-of-scope call is refused with no write, and a transfer of ownership works only with the current owner's confirmation.
- `TEAM-002` Single sign-on and two-step sign-in (partial; fixture behavior in `tests/security.test.mjs`, native forms and owner recovery at 1440/390 in `tests/security-browser.test.mjs`; external dependency `okta-scim-admin-console`: the real Okta tenant and administrator API token are held, but configuring its SCIM test integration requires an administrator console session; the 26 October live attempt returned UNKNOWN connection status and HTTP 400 “Provisioning is not supported.”; the temporary app was deleted and no provider provisioning request occurred): Against OIDC and SAML fixture issuers, sign in, enforce SSO and deprovision a member through SCIM; their access ends at once. Turn on TOTP for one member and sign in with a valid code, a wrong code (refused) and a recovery code (accepted once). Then enforce a second step for everyone. A member without one is held at the enrollment page, and every private route refuses them until they enroll, after which they sign in with TOTP. Prove owner-issued shown-once hashed SCIM credentials, scope, rotation, revocation and audit; issuer+subject creation without email merge or site grants; no privilege raise, reactivation, owner mutation or invitation mail; next-request session/API/push revocation; idempotent and out-of-order requests; off-default, owner-proved audited enforcement including owners and existing sessions; and audited deployment-custody owner break-glass during an IdP outage. A real Auth, Okta or Entra IdP tenant must exercise SCIM; fixtures alone are not provider proof. The ct-approved authority rules (22 October 2026, 12:30Z) are: installation-owned provider bindings and explicit SAML/Entra subject associations admit native accounts. SCIM creates a native zero-site Viewer and a federation binding by issuer and subject, never an email merge or site grant; only an owner subsequently grants sites. SCIM never raises a role, reactivates an owner-removed or deactivated person, touches an owner or sends invitation mail. Its credential is owner-issued, shown once, stored hashed, scoped to SCIM only, rotatable and revocable with audit. Deactivation ends sessions, API keys and push tokens at the next request and is idempotent; replayed or out-of-order calls change nothing twice. SSO and TOTP are off by default, owner-proved, audited and enforced for owners and existing sessions at the next request. The documented owner break-glass uses a fresh deployment-issued `rer signin` link, preserves any enrolled or required second step, disables SSO explicitly with audit, and is never SCIM-reachable. Credentials and factor proofs are excluded from analytics archives. Future MOBILE-002 and AGENT-003 inherit live membership and required sign-in fences for native user sessions and custodial grants.
- `AGENCY-001` Agency client workspaces and branded reports (done; `tests/agency.test.mjs` passes client isolation, agency/client branded reports and weekly mail, custom-host boundaries, real HTTP logo upload/redirect and all new screens at 1440/390; approved as landed by owner direction 22 Oct 11:07Z): Create two clients, each with a site and a client user. Each client user sees only their own site, the branded weekly email shows the agency logo, and the agency overview lists both. Implemented authority (ct approval pending): the owner explicitly manages audited client membership, site assignment, branding and public report domains; client accounts are viewers bounded by their client’s current sites on every request and email dispatch. Branding is disabled by default. Enabling a brand publishes only the uploaded raster logo, name and colors on the existing report scopes; custom domains expose only public/shared report, asset and unsubscribe doors, with native sign-in kept on the installation origin. Domain attachment and TLS remain the owner’s explicit Cloudflare configuration; Vane never provisions or probes them. Whole-installation archives retain agency settings; a site transfer grants no client membership at its destination.
- `API-001` Stats API (done): With a scoped key, query visitors by channel with a filter, a saved segment (`DASH-007`) and a comparison; the figures equal the dashboard's. A key for another site, a revoked key and a burst over the rate limit are each refused. A Plausible v2 query fixture returns the same figures from the compatible route, and a provisioning key creates a site and a goal that then appear in the app. A metro breakdown answers each US metro code as its value with `metro_code` and `metro_name` (null when unnamed) and a filter on the code (`tests/locations.journey.mjs`).
- `API-002` CSV, Looker Studio and warehouse export (done): Download a breakdown as CSV and a site ZIP, run the Looker Studio connector against the API, and run a scheduled export to an R2 fixture. Each matches the dashboard and the declared schema. Only the owner schedules the export, a private or non-https endpoint is refused, the key is never shown or archived, no visitor hash leaves, each date is sent once, and every run, sent or refused, is audited with its counts (`tests/vane.test.mjs`). The ZIP metros file and the warehouse events carry `metro_code` and the approved `metro_name` at export time, empty when unnamed, and never an observed place (`tests/locations.journey.mjs`).
- `API-003` Webhooks for goals, alerts and reports (done): Subscribe a webhook endpoint, fire an alert and a goal burst, and fail the first delivery. Signed payloads arrive once each after the retry, and the delivery log shows the failure and the success. Today the burst is goal conversions, counted per goal and minute; alert events join with `ALERT-001` (`tests/vane.test.mjs`).
- `API-004` MCP endpoint for assistants (done): Connect an MCP client with a scoped key and ask for last week's top sources; the result equals the Stats API answer, and a write tool is refused without a grant. Another site, a missing or revoked key and an event-stream request are refused (`tests/vane.test.mjs`).

## Privacy, compliance and administration

- `PRIVACY-001` Data inventory and privacy-policy text (done): Toggle consented mode, automatic events and a Search Console connection. The inventory and the generated text change to match, and the stored data matches the inventory. Today: toggle automatic events, site search, consent, kept parameters, the signal counter and retention; consented mode and its retained digests are proven by `tests/consented.test.mjs`; Search Console adds its entries under `SEARCH-001` (`tests/vane.test.mjs`). The inventory lists the US metro-name table as a site setting holding no visitor data (`tests/locations.journey.mjs`).
- `RETENTION-002` Raw events kept as long as the owner chooses (done): On a site set to keep events for as long as the installation exists, import 30 months of history, collect today's events and apply retention. Every imported and live event remains, and a raw-event query for the oldest imported day returns its events. Switch the site to 25 months and apply retention: only the events older than 25 months are erased, and one deletion is journaled. Fill a fixture store to 80% of its published capacity: the warning names both choices, and no event is dropped. A fixture store's capacity is set with `VANE_STORE_LIMIT_MB` (`tests/vane.test.mjs`).
- `PRIVACY-002` US state privacy signals honored (done): Load a fixture page with GPC set and with DNT set. Nothing is collected, the signal share is counted in a field-free counter if the owner enables it, and the stance shows on the methodology page (`tests/vane.test.mjs`).
- `PRIVACY-003` Consent managers and regional consent modes (done): With each adapter on a fixture page, deny and then grant consent from a California, a German and a Texas location. Collection follows each region's rule. Google Consent Mode v2 and `window.vaneConsent` precedence, an unknown country and the server's own refusal are proven the same way (`tests/vane.test.mjs`). Raw IP, user agent, Cloudflare country/subdivision codes, postal code, coordinates and request timezone are never stored. Refused loads store no event, visitor hash or location, only enabled site/day/reason/count counters; admitted loads store only DASH-005 location names and their US metro code (metro names live in the site's metro-name table and are never stored on events), which follow event archive and erasure. Unknown/XX/T1 and Events API locations stay NULL and show Unknown location. The named public-door test inspects custody before and after refusal and admitted storage.
- `PRIVACY-004` Data location choice (missing): Deploy one installation with the EU jurisdiction. The database reports EU jurisdiction, and the inventory says so.
- `PRIVACY-005` Visitor data stays in the owner's installation (done; sitemap extension in `tests/sitemap-scan.test.mjs`): In a browser, load a fixture page with `vane.js` and record every request: only the installation's origin receives one. With every outbound request from the Worker refused and recorded, collect events, read every report, apply an import and download the archive. Each succeeds, and the record holds no outbound request. `seed.json` lists Cloudflare as the only required external; every other entry is an integration an owner connects (today the warehouse export, webhooks and browser push services) (`tests/vane.test.mjs`).
- `AUDIT-001` Durable audit of settings, data and agent actions (done): Perform each audited action that exists, including an `agent.prepare` proposal and a sign-in that opens a new session, and read the audit view and export. Each entry is present with its actor, time and subject, and erasing a site's history leaves the audit entries without the erased data (`tests/vane.test.mjs`). `SHARE-001` and `API-001` each prove their shared-link or API-key changes in the same audit view and export before they ship.
- `SITE-001` Site management (done): Add a site with a `www` and an apex hostname, change its time zone and currency through approval, and delete it. Events from both hostnames count, and deletion leaves no history. The same test moves the site by site archive to a second installation (`tests/vane.test.mjs`).
- `HOST-001` Owner-run hosting with measured cost (done): Deploy to a Cloudflare test account, run the `COLLECT-004` load test and read the cost panel. The stated cost per 100,000 pageviews matches the measured account usage within 10%, and the deployed resources are exactly the Worker and the bindings `deploy.json` declares. The cost panel names Workers Paid as the plan for the load-test volume. On a Workers Free fixture account, traffic at 80% of the daily request limit raises the plan warning. Sandbox proof: `tests/host-cloudflare-cost.journey.mjs`, “HOST-001 a deployed Vane Worker under real native load costs what the panel states, within 10% of Cloudflare's own account usage”, passed on 6e3124d34ceaa082d70db9285be6555ef33b825c on 26 October 2026 with the held test token: 1,000,000 genuine pageviews through the `COLLECT-004` batch door on a fresh deployment, Cloudflare's own Worker and D1 analytics priced at published rates against the stated figures (usage cost per 100,000 pageviews USD 0.804 against 0.803; monthly cost at 10,000,000 pageviews USD 34.43 against 34.32; all within 10%), the deployed panel naming Workers Paid, exactly one Worker and one D1 database added with the Worker's bindings equal to `deploy.json` plus the four rer kit bindings, and the account inventory identical after removal. Local proof: `tests/vane-report-settings.mjs`, “HOST-001 real collection measures requests, D1 work and storage before projecting hosting cost”, proves the Free fixture warning at 80%, owner-only projection, the Workers Paid notice and the plan notice in the setup questions, with 1440 and 390 cost panels.

**HOST-001 evidence scope: bounded stage, original acceptance unchanged.** This note supersedes the added interpretation headed “Semantics the code uses (HOST-001)” and any statement that the smaller live run satisfies the original deployed COLLECT-004 load requirement. Every original HOST-001 and COLLECT-004 product promise and acceptance sentence remains in force.

**Reported measured stage.** The verification reported on 26 October 2026 at 6e3124d34ceaa082d70db9285be6555ef33b825c loaded 1,000,000 distinct pageviews through native batches of 1,000. Worker and D1 analytics, priced using the published rates recorded in `docs/hosting-cost.md`, give USD 0.804 per 100,000 pageviews against USD 0.803 stated. This is normalized gross list-rate usage before the account minimum and included allowances, including a month of pricing for the observed storage-growth coefficient. It is not a bill or the installation’s monthly charge divided by its pageviews. The window includes its observed setup, sign-in, scheduled work and dashboard reads, not a representative month of those activities. The reported inventory comparison found one added Worker and one added D1 database, the product bindings from `deploy.json` and four identified deployment-kit bindings, followed by restored account inventory. That comparison is retained as bounded evidence; it does not amend the original resource declaration requirement or authorize additional infrastructure.

**Derived monthly stage.** USD 34.43 against USD 34.32 at 10,000,000 monthly pageviews is a rate-based projection from the smaller run, not a measurement at 10,000,000 pageviews. It scales request, Worker CPU, D1 read and write coefficients, applies the account minimum and assumes the included allowances remain available. Its storage assumption does not establish retention growth. Native batch size, visitor and dimension cardinality, dashboard query frequency and complexity, retained history, scheduled work and other account usage can change the result. Agreement of the total cost does not establish agreement of every component.

**Named Gap: HOST-001 deployed scale.** The original requirement to perform the COLLECT-004 load on a deployed account remains unproved. The smaller live run does not establish deployed behavior across twelve months containing 10,000,000 pageviews each, the 500-event-per-second burst, exactly-once custody, the complete twelve-month dashboard timing, capacity and warning behavior, or the cost comparison at that workload. Backlog, D1 limits, latency, ingestion loss and dashboard read cost at that scale remain unproved by this live sample. These are limits of the existing evidence, not additional acceptance criteria. The separately recorded COLLECT-004 full-volume runtime evidence remains separate and is neither revoked nor converted into provider proof. HOST-001 is not complete under this interpretation.

**Next bounded step.** Reconcile these evidence descriptions using the existing held receipts and their source commits. No new load is authorized. A fresh 12,000,000-pageview stage would be intermediate evidence only: using the pinned coefficients and rates, it implies about 95 million D1 row writes, about USD 45 of write overage if the 50 million included writes are unused, and about USD 50 including the account minimum. If the allowance is already consumed, its incremental D1 writes alone would be about USD 95. These are conditional planning estimates, not provider charges. That stage is not warranted merely to repeat the current arithmetic and cannot close the original full-volume Gap. Neither this interpretation nor the measurement certifies Cloudflare billing.

- `HOST-002` Runs on the owner's own computer (done; local one-line journey in `tests/host-local.journey.mjs`, nightly job `host-local` at 18:17 UTC, release or manual; Cloudflare transfer is `HOST-003`): From an empty folder, run the one-line command until it reports the app ready and prints its sign-in link. Open the link, add a site, load a fixture page that carries the site's script and see the pageview in the report. Repeat the journey with network access cut off after installation, and it still passes. “HOST-002 installed journey: empty-folder command, sign-in, real tracker, durable report and network-cut replay” in `tests/host-local.journey.mjs` passed in workflow 40050422780 on bdbcf6377f3a8c04f58b671fb01c321749dfd6a2 on 24 October 2026, including empty-folder installation from complete Git source, sign-in, real fixture collection, durable report after restart and the installed rer dev replay with only loopback and no external routes. Online and installed offline reports pass at 1440 and 390, including mobile menu focus and hover tooltips. The separate network-denied runtime test in that file proves import and archive restore.
- `HOST-003` Local installation moves to the owner's Cloudflare account (done): The installation is a local (`HOST-002`) installation whose report shows a fixture pageview. Export the installation, import it into a fresh Cloudflare test deployment, and the same pageview is in the report there. “HOST-003 local rer archive restores the same fixture pageview into a fresh Cloudflare deployment” in `tests/host-cloudflare.journey.mjs`, with `tests/host-transfer-source.mjs`, proves empty-folder local installation, the real tracker pageview, public rer export, public rer import with --target remote, fresh hosted deployment, normal owner sign-in and first-run confirmation, the same /subscriptions pageview at 1440 and 390, missing-authority refusal and occupied-destination refusal. [Cloudflare installation transfer run 40185411652](https://github.com/just-every/run-vane/actions/runs/40185411652) passed on fdbb065e3796dea09720cdf306e375f3ecefe69b on 25 October 2026, with one test passed, zero failures and zero skips. `tests/host-cloudflare-cleanup.mjs` runs ownership-checked removal from the finally path and independently lists the account after removal; the [retained receipt and screenshots](https://github.com/just-every/run-vane/actions/runs/40185411652/artifacts/12595818007) record transfer and cleanup passed, 242 remaining Workers and 78 remaining D1 databases, with this run Worker and D1 absent. `.github/workflows/host-cloudflare.yml` runs job host-cloudflare every Sunday at 19:37 UTC and by manual dispatch, using the two mandatory RunEditRun Actions secrets. Both absent-secret cases fail before installation without skipping. One-off network-edge failure proof verifies both inventory reads still run after an ownership-read failure; a 120-Worker response and two D1 pages prove complete inventory traversal. `docs/hosting-cost.md`.
- `OPEN-001` Free and open source under the MIT license (done): `LICENSE` holds the MIT license text and `package.json` declares `MIT`. A scan of `src/` finds no license-key check, payment-provider call, plan gate or usage meter, and the product tests pass on a fresh clone with no key or account other than the owner's own.
- `DEMO-001` Try Vane on realistic data (done): Start `rer demo`, open each example site and approve the pending change. Stop the demo; its data is removed (`tests/demo.journey.mjs`, run by Verify's `demo` job in CI only; the checkout's own data is unchanged).
- `MOBILE-001` Phone-ready, accessible dashboard (done): At 390 and 1440 px, complete the site, report, filter, approval and alert journeys by keyboard with an automated accessibility scan clean, and every chart on the report, real-time and sites pages has a data table. Install the PWA and receive a push alert, both a test alert and a traffic alert (`ALERT-001`). (`tests/vane.test.mjs`)
- `MOBILE-002` Native iOS and Android apps (missing): On iOS and Android test builds, sign in, open real-time, filter a report, receive a drop alert as a push and acknowledge it. The acknowledgment appears in the web app.

## Push further with agents

- `AGENT-001` Maintain trustworthy instrumentation (partial; `tests/instrumentation.test.mjs` proves native sitemap observations, page/scroll/custom-goal counts, compared funnel reach, HTTP-404 removed-step evidence, source-diff evidence and the actual GitHub draft-PR network-edge hand-off after both owner approvals, real browser event recovery, one annotation and Settings/Approvals at 1440/390; GitHub source authority is ct approved as adopted with riders, 22 Oct, and stays PARTIAL until a real GitHub receipt; Pane deploy diffs, non-HTML source edits, GTM/Pane hand-off and CONV-008 server-outcome reconciliation remain absent): Deploy a fixture site change that renames the signup button and drops the script from one template. The agent reports both with evidence and drafts a PR and a no-code event. After the owner approves and the change deploys, the agent confirms the events arrive again and annotates the fix.
- `AGENT-002` Explain why traffic or conversions moved (partial; `tests/movement.test.mjs` proves the three fixture rankings (the checkout edge returns real HTTP 500 failures and confirms successful orders in a separate ledger; only aggregates enter Vane), denominators/evidence/confidence/disproof, source/campaign contributions, annotations, unknowns and 1440/390 reports/settings; owner-only local investigations and off-default incoming anonymous aggregate evidence are ct approved as adopted with riders, 22 Oct, and stay PARTIAL until real sender integrations exist; sender figures do not establish independently provider-verified orders, and CONV-008, ADS-001, blockers/browser errors and established seasonality remain gaps): Seed three fixture weeks: a tracking break, an organic ranking drop, and a real checkout failure that confirmed orders corroborate. For each, the agent ranks the true cause first with cited evidence and names what is unknown. Each explanation lists the annotations dated in its window.
- `AGENT-003` Propose and ship a site or campaign change under granted authority (partial; local foundation in `tests/agent-work.test.mjs`; Owner-only local drafts record expected effect, guardrail and measurement. All shipping refuses; the ct-approved instrumentation GitHub authority is not widened. External dependency: Pane page-edit capability is unavailable. General title and redirect PRs, grant lifecycle, deployed redirect proof and shipped-change annotation remain unbuilt. Conservative default adopted: local owner-only work, no outbound grant; ct approval pending.): Grant Pane page-edit and GitHub PR access but no ad access. The agent ships an approved CTA change in Pane and opens a PR for a title change. Its proposed budget change waits for approval and cannot be shipped without the ad grant, and revoking the Pane grant blocks the next edit. From a 404 report where `/pricng` has 37 visits, the agent drafts a redirect to `/pricing` and opens it as a PR under the GitHub grant. Once it is merged and deployed, the next visit to `/pricng` lands on `/pricing`, and the path's 404 count stops growing. The shipped CTA change appears as an annotation on its day.
- `AGENT-004` Measure the result against coverage gaps (partial; local foundation in `tests/agent-work.test.mjs`; A result endpoint requires a verified deployed instrumentation fix, matched weekdays and existing experiment intervals, and withholds positive verdicts for observed coverage changes. Only draft-as-shipped refusal is asserted so far; positive lift, consent-drop assessment and approved page revert acceptance remain unproved. Pane revert depends on the unavailable Pane edit capability. Conservative default adopted: no automatic revert and no new grant; ct approval pending.): Ship two fixture changes: one with a real lift under an experiment, and one before-and-after change during a consent-rate drop. The first is reported as a measured improvement with its interval, the second as inconclusive because of coverage, and an approved revert restores the prior page.
- `AGENT-005` Pursue anomalies to resolution (partial; local foundation in `tests/agent-work.test.mjs`; Owner-requested pursuit runs movement investigation first, attaches its evidence to the existing follow-up and leaves it open until a person resolves it. No new outbound message or automatic closure. Silent-deploy investigation, one configured developer contact, due reminder and verified event recovery with intact coverage remain unproved. Conservative default adopted: no autonomous contact or closure; ct approval pending.): Fire a silent-site alert caused by a deploy. The agent attaches its evidence, messages the configured developer once, reminds them after the due time, and after the fix verifies events and closes the item with that evidence. A real traffic dip with no fault is closed as expected after the owner confirms.
- `AGENT-006` Weekly growth brief with opportunities (done; `tests/agent-work.test.mjs` proves scheduled ended-week production, all five types with exact figures and linked local drafts, all-type review and dismissed-state review at 1440 and 390, repeated-run idempotence, immediate suppression in saved brief reads and Settings with recalculated shortfall, preserved historical evidence and drafts, and dismissed-type suppression the next week. Conservative default: owner-only local drafts, no new outbound authority. CT judged DONE-JUSTIFIED on 25 October 2026 at e905c013f97d392a9e4689de679c5c52db8a6215; `tests/agent-work.test.mjs`, lines 60–100, proves both acceptance sentences. AGENT-003 changes remain draft-only): On a fixture site with seeded opportunities, the brief names each with correct figures and a linked draft. A dismissed type does not return the next week.
- `AGENT-007` Answer questions in plain English, with the query shown (done; ct approved riders applied; public-door assertions and ten-question real-model sandbox passed 22 Oct): Ask ten fixture questions, including an ambiguous one and an unanswerable one. Every numeric answer equals the Stats API result for the shown query, the ambiguous question gets a choice and the unanswerable one says why. The deployment’s Base ai module is the only provider path; closed Stats API plan validation refuses unsupported coverage without repair. Email, over-limit and unrunnable-plan refusals count toward 60 attempts/site/hour and are audited without text; MCP shares the owner’s site switch, and Slack/Teams inherit it before shipping. Named input Gap: personal details beyond email are not automatically removed and the ask-box notice discloses provider egress. Named external Gap: provider retention/training terms are never claimed (`tests/ask.test.mjs`; real-provider journey `tests/ask-journey.mjs`).

## Not required

Cross-site tracking, fingerprinting, identity graphs, ad-exchange attribution, individual session replay and per-user product analytics with person profiles are outside Vane (see CONTRACT.md's Honest boundaries). Domain purchase and fleet rollout are separate lanes; independent release review is a later stage.

## Checks

Functional site check: `rer build --site`, then `node --test tests/site.test.mjs`.
Product journeys: `pnpm run test:vane` (built Worker under Miniflare).
Shared type check: `pnpm typecheck`. The independent visual gate compares the
built homepage at 1440 and 390 with the approved SPEC and picks.

DASH-005 metro slice: exercise the US metro table, selected goal, comparison, saved filter, mover, CSV, ZIP, warehouse, Stats API/MCP and live list keyed on the code, with unnamed codes labelled “Metro NNN (unnamed)” beside their observed place, and the owner-approved metro-name table with its refusals; public metros under five fold into Other metro areas. Unknown/XX/T1 and Events API locations stay NULL and appear as Unknown location. Raw IP, user agent, Cloudflare country/subdivision codes, postal code, coordinates and request timezone never enter storage. Excluded, consent-denied, DNT/GPC loads retain only enabled site/day/reason/count counters. Location travels with its event in archives and erasure. Names come only from the site's owner-approved table (synthetic names in tests); unnamed codes show their code and leading observed place; no DMA code-to-name table exists in the repository.
