Skip to content

Rebuild openmessage.ai around verified claims - #283

Draft
MaxGhenis wants to merge 17 commits into
mainfrom
site/rebuild-2026-10
Draft

MaxGhenis wants to merge 17 commits into
mainfrom
site/rebuild-2026-10

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Draft. Four independent reviews (claims, code and security, voice, accessibility) run on Subfleet once a lane opens, and the PR stays a draft until they approve. Merge and the production deploy then wait on Max's call on whether to cut a release from main first.

What this does

Rebuilds openmessage.ai so that every claim on it is true of the build it names, and stays true.

The live site says several false things: an MIT license (the repo ships the Unlicense), a comparison table that contradicts Beeper's own pages in three of four cells, and "everything stays on your machine" with no mention of any risk. It also links an investor memo marked "not for public distribution" from every page.

The new site

  • Positioning follows the strategy ratified 2026-07-18 (agent substrate): "Your texts, WhatsApp and Signal in one SQLite database your agent can query".
  • The hero is real output. site/data/demo.js holds the text get_person_messages returned from the v0.2.9 build in demo mode. The thread pane and the raw pane both parse that one string.
  • Every checkable claim cites code. site/data/facts.js holds each fact next to its file, line and expected text, pinned to the release tag or a main commit (now d863ba6). Pages render them as read receipts that link to GitHub.
  • "What can go wrong" states the risks plainly: unofficial clients and WhatsApp's terms, agent sends with no confirmation, text leaving the Mac through the agent's model, the unauthenticated local server, breakage when a network changes.
  • "What ships today" separates v0.2.9 from what sits on main, unreleased. The page asks GitHub every 5 minutes which release the Download button serves, and names a version only when GitHub confirms a dated release, no older than v0.2.9, that carries OpenMessage.dmg. If GitHub reports a newer one, the page says some details may have changed; if GitHub gives no usable answer, the page names no version beside the button.
  • Setup sends Google Messages users to v0.2.9's Google Account tab (cookies or a cURL request, then an emoji on the phone). Google's help page says QR pairing is no longer available in the US, and main (Replace retired Google Messages QR setup with account pairing #287) retires QR setup.
  • Privacy page is now a table of everything the app and the site send, including the opt-in heartbeat, which the old page predated, plus the steps to delete what the app leaves on a Mac: its data folder, the window's cache of attachments, a command-line build's folder, the attachments download_media saved to /tmp, and notifications that show message text.
  • Both blog posts describe what v0.2.9 does, with citations. The Google note keeps a correction of its April claim about recovery.
  • Removed: /thesis (redirects home), the comparison table, 14 stale images, and the Google Analytics code, which was unconfigured in production.

Bounded public writes (from #262)

#262's commit is here with its authorship intact, since that PR sat idle and both PRs changed the same routes. Anyone can POST to /api/waitlist and /api/heartbeat, and site/lib/public-writes.mjs now bounds what they store: 413 above 2 KiB, 400 for an email over 254 characters or an install ID outside the app's 32-hex format, a per-instance rate limit per address (5 sign-ups per 10 minutes, 30 heartbeats per hour), and a daily budget of 1,000 objects per route. A waitlist record sits at an HMAC of the address, so a repeat sign-up replaces that day's record. Later commits move these tests to Vitest and fast-check, and scripts/read-waitlist.mjs prints each address once.

Invariants

Stated here and enforced in site/tests (293 tests; fast-check for the property tests):

Invariant Kind
Each receipt's cited line contains its expected text at its git ref; no receipt key is defined twice; every receipt a page shows is defined and every defined one is shown; the README's example receipt equals its entry differential: site vs code, consistency
The tool list equals the mcp.NewTool names registered at the release tag; every tool named in copy exists; the list of tools that send is complete differential
The tools the site says warn the model about message text are exactly the handlers that reach the warning at the tag; the tools it says quote message text without it are exactly the unwarned handlers that reach story quotes or common phrases differential: call graph at the tag
The connect command matches the release's default host, port and the SSE path its server logs differential
Commit and co-author counts equal git's; the release is an ancestor of main accounting identity
Every message in the hero transcript is in SeedDemo at the tag; parsed count equals the tool's own total differential, conservation
parseTranscript is lossless and total; a rendered conversation parses back to the same messages in order round-trip, property
normalizeRelease, compareVersions, releaseStatus, releaseCopy, formatDate, formatMegabytes and clockTime are total with stated ranges; compareVersions agrees with numeric tuple order; formatMegabytes is monotonic bounds, monotonicity, property
The homepage names a version, date or size only for a release GitHub confirmed, dated, no older than the one the copy describes and carrying the disk image; the list of changes on main shows only for that release itself property, plus stubbed-fetch fallbacks
A sign-up stored by /api/waitlist decrypts to the same address with scripts/read-waitlist.mjs; the wrong key or a flipped byte fails round-trip, differential
Over random sign-up and heartbeat sequences, a day's folder never holds more than the cap and holds exactly one record per distinct accepted address or persisted install; a refused request writes nothing bounds, conservation, property
/api/heartbeat stores only the fields the privacy page lists, whatever is sent, and accepts an install ID only in the app's format bounds, property
read-waitlist keeps each address's latest record property

When the suite was first written it killed eight hand-made mutants (a flipped arrow, a loose tag check, an inflated count, an edited transcript, an invented tool and others).

Fixes outside the pages

  • Heartbeat route: a second launch on the same UTC day returned 502 because the write refused to overwrite. It now replaces that day's record. The comments claimed "we only persist counts"; they now say what the route keeps.
  • Header blur: the CSS minifier kept only -webkit-backdrop-filter, so Chromium and Firefox drew page text through the sticky header. The prefixed declaration now comes first.
  • Deploy docs were wrong. Production deploys by CLI from site/. It does not deploy from the repo root or on push, and the documented path did not exist. CLAUDE.md and site/README.md now give the procedure that works, and the root vercel.json makes a root deploy fail instead of publishing the source tree.
  • Dependencies: next 16.4.0 → 16.4.6 and react and react-dom → 19.3.1. Next's critical advisories GHSA-673q-mjm6-r5xr and GHSA-2464-fhr4-w9xw cover every 16.x up to 16.4.0, and main's site still runs 16.2.2. @vercel/blob goes to 2.8.2. Overrides pin two packages that Blob pulls in: undici 6.29.1, which fixes five advisories in 6.29.0, and zod 4.6.7 (GHSA-mrhx-c7xc-m3w5 covers the 4.1.11 that @vercel/oidc pinned). CI regenerated bun.lock on a throwaway branch, and only these packages moved; bun audit there found no vulnerabilities.
  • CI: the Site Build job uses bun, fetches history and tags, and runs the tests before the build. Bound what the public waitlist and heartbeat routes can write to Blob #262's separate node --test step goes away.
  • Public writes: both routes answer 415 unless the body is JSON, and the waitlist rejects control and format characters in an address. Error messages tell a visitor what to do (a shorter address, a 10-minute wait).
  • Adds robots.txt, sitemap.xml, canonical links, per-page social metadata, JSON-LD, a generated social card, a Content-Security-Policy and other security headers, and a script to read the release-email list.

Checked so far

  • CI at the head, e7f7498: Go Test, Go Race, Web E2E, macOS App Build and Site Build pass. Site Build runs the 293 Vitest tests against the tag and main, then builds all 13 pages.
  • Two in-session review passes, each finding checked by an adversarial verifier. A pre-review of 3646571 found 59 issues, fixed in 1f5a0a0..969457e. An independent pass over 969457e (claims, code, voice, coverage) found 4 P2s and several dozen P3s, fixed in 6591a8c..4b64134; the main ones were the hero never saying Android, get_person_messages reading only the 1,000 most recent conversations, privacy delete steps that missed the window's cache and notifications posted through terminal-notifier, and no test of how release status became copy. A check of that diff found 4 more P2s, fixed in 2bc905a: send_media_to_conversation can double-send on retry as the other send tools can, download_media files stay in /tmp, main pairs Google by in-app sign-in rather than pasted cookies, and one metadata assertion could not fail. Checking those fixes turned up that a command-line openmessage serve re-imports iMessage (and, depending on setup, Signal Desktop and WhatsApp Desktop) every 30 seconds while the Mac app turns that off; the import card now says so.
  • A Vercel preview of 2bc905a, mirrored locally, renders /, /privacy, /blog and both posts at 320px and 375px with no horizontal overflow, and the social card fits. Only GETs on previews.

Deferred, with reasons

  • The screenshot's Signal badge draws white on white, so only the caption marks the second Jordan Rivera row as Signal. A fix needs a fresh capture from the app.
  • The h1 keeps "Your texts"; the line under it now says Android.
  • The page can still name the previous release for up to about 10 minutes after a new one ships (two 5-minute caches).
  • JSON-LD earns no rich result without ratings; it now uses sameAs for the repository.

Supersedes

Not in this PR

  • Nothing deploys on merge. The site ships by vercel deploy --prod from site/.
  • The license line. The footer says "free, open-source software" and links LICENSE; it names no license while License incompatibility #157 (AGPL dependency) is open.
  • Previews built from this branch since 2026-11-18 18:45 UTC store nothing. Three earlier previews carry production's Blob token, so they get GETs only.

🤖 Generated with Claude Code

MaxGhenis and others added 5 commits November 18, 2026 12:12
The live site described a product the download no longer matches in places
and said several things that are false: an MIT license (the repo ships the
Unlicense), a comparison table that contradicts Beeper's own pages, and no
mention of any risk. This rebuilds it.

What the site is now
- Positioning follows the ratified strategy: a local message database for
  agents. Headline: "Your texts, WhatsApp and Signal in one SQLite database
  your agent can query".
- The hero shows one real MCP tool result two ways. data/demo.js is the
  unedited output of get_person_messages from the v0.2.9 build in demo mode;
  the thread pane and the raw pane are both parsed from it.
- Every checkable claim cites a line of code. data/facts.js holds each fact
  next to its file, line and expected text, pinned to the release tag or a
  main commit. Pages render them as read receipts linking to GitHub.
- A "What can go wrong" section states the risks: unofficial clients and
  WhatsApp's terms, agent sends without confirmation, text leaving the Mac
  through the agent's model, the unauthenticated local server, and breakage
  when a network changes.
- A status section separates what v0.2.9 ships from what is merged on main
  and unreleased. The release shown is fetched from GitHub hourly; if it is
  newer than the facts, the page says so.
- Privacy page rewritten as a table of everything the app and site send.
- Both blog posts rewritten to what v0.2.9 does, with citations.
- /thesis removed (it was marked not for public distribution) and now
  redirects home. Comparison table removed.
- No analytics code: the GA integration was unconfigured in production and
  is deleted, so "no cookies, no analytics" is true by construction.

Invariants (tests/, 148 tests)
- Each receipt's cited line contains its expected text at its git ref.
- The tool list equals the mcp.NewTool names registered at the release tag;
  every tool named in copy exists; the sending-tools list is complete.
- The connect command matches the release's default host, port and mount.
- Commit and co-author counts equal git's.
- Every message in the hero transcript is in SeedDemo at the release tag,
  and the parsed message count equals the tool's own total.
- parseTranscript is lossless and total; a rendered conversation parses
  back to the same messages (fast-check).
- normalizeRelease, parseCommitTotal, commitsAheadOf, formatMegabytes and
  clockTime are total with stated ranges (fast-check).
- Differential: a signup stored by the waitlist route decrypts to the same
  address with scripts/read-waitlist.mjs; the heartbeat route keeps only the
  fields the privacy page lists.

Fixes outside the pages
- Heartbeat route: a second launch on the same UTC day no longer fails the
  write (allowOverwrite), and its comments now say what is actually kept.
- Deploy docs were wrong: production deploys by CLI from site/, not from the
  repo root and not on push. CLAUDE.md and site/README.md now say so, and the
  root vercel.json fails a root deploy instead of shipping the source tree.
- Site Build CI job uses bun, fetches history and tags, and runs the tests.
- Adds robots.txt, sitemap.xml, a canonical link, JSON-LD, a generated social
  card, security headers and scripts/read-waitlist.mjs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both routes are live on openmessage.ai and anyone can POST to them. The
waitlist stored a new object at a fresh UUID path for every submission,
with no length cap on the email; the heartbeat stored one per
caller-chosen install id. Repeated requests grew storage and Blob
operations without limit (security review 2026-10-22, finding 3).

lib/public-writes.mjs now bounds both:
- bodies over 2 KiB get 413; emails over 254 characters and install ids
  that aren't the app's 32-hex format get 400;
- a per-instance rate limit by client address (5 sign-ups per 10 minutes,
  30 heartbeats per hour);
- a daily object budget per route (1,000), read from Blob with list(), so
  storage stops growing across all instances; at the cap the waitlist says
  sign-ups are paused and the heartbeat answers OK without persisting;
- a waitlist path that is an HMAC of the address under the encryption key,
  so a repeat sign-up replaces that day's object and the path doesn't
  reveal the address; heartbeats overwrite the install's object for the
  day, where a second one used to fail with 502.

Tests run with node:test (no new dependencies; the site's lockfile is
npm's and this machine's tooling requires bun), including a randomized
check that a day's folder never holds more than the cap or more objects
than distinct accepted addresses. CI's Site Build job runs them.

Cherry-picked from #262 onto the site rebuild. Conflict resolution: the
heartbeat route takes this version, and package.json keeps the rebuild's
Vitest test script.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rebuild's site tests already run under Vitest, so the bounds from the
previous commit move to tests/public-writes.test.js and CI's separate
`node --test` step goes away; `bun run test` covers both.

The randomized LCG check becomes two fast-check properties over random
sign-up and heartbeat sequences across three days with a cap of 1 to 6:
a day's folder never holds more than the cap, it holds exactly one record
per distinct accepted address (or persisted install), a refused request
writes nothing, and the sequences do reach the cap.

The route tests cover the new contract: HMAC paths with allowOverwrite,
repeat sign-ups replacing the day's record, 413 above 2 KiB, 429 after the
per-address limit while another address is unaffected, 503 at the daily
cap, install IDs accepted only in the app's 32-hex format, and the
heartbeat answering OK without persisting at its cap.

read-waitlist now prints one line per address, keeping each address's
latest record, since a repeat sign-up on a later day is a second record.
The two errors a visitor can see name who is acting ("The site has
stopped taking sign-ups for today").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…step

Google's help page says QR pairing for Messages for web is no longer
available in the US, and main (#287) now sends new setup through Google
Account pairing. The setup step led with a QR code for every network.
It now gives WhatsApp and Signal their QR codes and sends Google Messages
to version 0.2.9's Google Account tab: paste a cookie object or cURL
request for messages.google.com, then tap the matching emoji on the
phone. The Google note says the same and cites main's QR retirement.

New receipts: googleAccountTab, googleEmojiConfirm and signalQrPairing
at v0.2.9, and googleQrRetired at main. Every main receipt still holds at
d863ba6; the commit counts become 301, 224 with a Claude trailer, and 163
since the release.

Copy pass on the homepage, privacy page and both notes: sentences name
who acts (OpenMessage indexes, parks, does not encrypt; the site encrypts
your address), the WhatsApp note drops its version-history paragraph, the
Google note keeps its correction of the April claim, and the privacy page
adds the per-address counters the rate limit keeps in memory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fast-check found that a one-letter local part ("a") appears in any hex
digest and in "waitlist/", so the old assertion failed on valid input.
The path is 32 hex characters under the day's folder, which cannot spell
an address because it has no "@".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis
MaxGhenis force-pushed the site/rebuild-2026-10 branch from c82fc99 to 883ac59 Compare November 18, 2026 17:13
MaxGhenis and others added 2 commits November 18, 2026 12:26
The minifier keeps only the last of a prefixed pair, so the deployed CSS
had -webkit-backdrop-filter alone and Chromium and Firefox drew page text
through the sticky header. The prefixed declaration now comes first. The
.faq rules styled nothing on any page. Both notes carry today's revision
date, since their pairing and wording changed since October 8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…x history

Every sentence now names who acts: the download button serves a version,
a send tool reports "Message sent" when the network accepts the message,
OpenMessage tags each row with its network, the app picks the install ID
at random. Participle captions and headings take real verbs ("I ran this
on the demo data", "Results flag message text as untrusted", "Unofficial
clients"), and "Claude co-wrote 224 of the 301 commits on main" replaces
the passive count.

Lines that pointed at the page itself go ("as above", "listed below",
"the report above", "the address below"), and the privacy page's
exhaustiveness claim moves beside the table it covers. The Google note
drops the October incident story and keeps the silence check it led to,
which also retires the googleStall receipt. The setup step names the
flag value (OPENMESSAGES_V2_SEND=1, per v2FlagEnabled) and gives the
Google Account steps as plain instructions. The privacy page's date moves
to today.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
next 16.4.0 sits inside the range of two critical advisories
(GHSA-673q-mjm6-r5xr, GHSA-2464-fhr4-w9xw: every 16.x up to 16.4.0).
react and react-dom go to 19.3.1 and @vercel/blob to 2.8.2.

Overrides pin two packages that @vercel/blob pulls in: undici 6.29.1,
which fixes five advisories in the 6.29.0 the lockfile held, and zod
4.6.7, past GHSA-mrhx-c7xc-m3w5 in the 4.1.11 that @vercel/oidc 3.8.10
pins through @vercel/cli-config 0.3.1.

CI regenerated bun.lock (bun 1.3.12, --lockfile-only), then installed
it frozen, ran bun audit (no vulnerabilities), the 174 site tests and
the build. Only the packages above moved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 4 commits November 18, 2026 15:55
Both routes answer 415 unless the Content-Type is application/json.
Every released app sets that header on its heartbeat (telemetry.go at
v0.2.0 through v0.2.9 and main), and a git-backed test checks each tag.

The waitlist rejects addresses with control or format characters, and
read-waitlist prints any that older records hold as "?", so an address
cannot rewrite the terminal that reads it. The form keeps its button
focusable while it sends (aria-disabled), marks the address field
invalid only when the route says the address is the problem, and shows
the route's own messages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The homepage names a version beside the Download button only when
GitHub confirms which release the button serves; releaseStatus sorts
GitHub's answer into same, newer and unknown, and fast-check properties
cover it and compareVersions. The commit-count arithmetic goes.

Claims now match the release's code:
- the untrusted-text warning covers five tools, and four story and
  stats tools quote message text without it; a differential test reads
  every tool handler at the tag and checks both lists;
- get_person_messages returns the oldest 50 messages by default,
  groups included, and person_stats covers one-to-one threads;
- send_to_conversation and send_group_message report SMS success
  without checking Google's answer;
- logins are session.json, whatsapp-session.db and a signal-cli folder;
- the demo command serves the web interface on 127.0.0.1:7007.

The app screenshot is a fresh v0.2.9 capture with matching alt text.
The privacy page cites the WhatsApp online status, link-preview images,
the story sample size, the chart library, the Mac app's environment and
notifications, and drops a file-permission claim the code does not make.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Next.js replaces the layout's openGraph whole when a page sets its own,
so the blog index, posts and privacy page lost the card image and kept
the homepage's URL. pageMetadata names each page's title, URL and card,
with the card's size and alt text from the same constants the image
route exports, and the layout templates og:title like the page title.

The blog index is "Blog", the posts use "login" where the homepage
does, and the footer and social card say "Mac app".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Field borders and link underlines reach 3:1 in both themes. Focus rings
on the result pane and thread draw inside their clipped frame, and the
selected network tab keeps a marker in forced-colors mode. The header
wraps below 24rem, stops sticking on short screens and marks the blog
link on blog pages. The theme toggle exposes its state and repaints the
browser's theme color, and the copy button announces its result from a
region outside the button.

next.config adds a CSP without script-src, since the App Router inlines
its payload scripts and nonces would end the homepage's hourly
revalidation. A root .vercelignore keeps a deploy from the repo root to
vercel.json alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 5 commits November 19, 2026 00:54
Release copy: a new releaseCopy helper decides everything the homepage says
about the release GitHub reports. It names a version only for a confirmed,
dated release no older than RELEASE that carries OpenMessage.dmg, since the
button 404s without it, and the list of changes on main shows only for that
release itself. Tested by example, by property and through getLatestRelease
with a stubbed fetch.

Homepage: the hero says Android; get_person_messages names its 1,000
conversation window; the warning card leads with the five tools; imports
list all four sources; signal-cli is a program, not a library; send tools can
report an error after the network took the message; the outbox flag applies
to a command-line `openmessage serve`; the CLI keeps its data in
~/.local/share/openmessage; and voice fixes from the voice lens.

Privacy: the delete steps add the WebKit cache, the command-line folder,
notifications posted through terminal-notifier or AppleScript, and unlinking
on the phone, each with a receipt at v0.2.9.

Tests: the warned-tools differential indexes var-block func seams and derives
the unwarned quoting tools from the code; a source scan rejects duplicate
receipt keys (one existed); the README example must match its receipt; the
og:title template and the SSE log line are pinned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…minutes

The privacy page tells you to unlink OpenMessage on your phone rather than
asserting how the networks keep links. Voice fixes in both posts and the
person-messages card. The 429 message names the 10-minute window from the
limiter's own constant. The homepage and its GitHub fetch revalidate every
5 minutes instead of hourly, so the page names the release the button serves
soon after a new one ships.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At 320px, ~/Library/Caches/com.openmessage.app on the privacy page and
~/.local/share/openmessage on the homepage widened the page by 82px and 6px.
break-word lets inline code break inside a word only when it would overflow,
and leaves table cells' minimum width alone so tables still scroll.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy, each claim checked against v0.2.9 or main:
- send_media_to_conversation can also report an error after the network
  took the message, so an agent retry sends it twice.
- Privacy delete steps add the files download_media writes to /tmp
  ($TMPDIR for a command-line build) and say what the app copies from a
  command-line build's folder.
- A command-line `openmessage serve` imports new iMessage messages every
  30 seconds, plus Signal Desktop once Signal is linked and WhatsApp
  Desktop until WhatsApp is linked; the Mac app turns that sync off.
- The command line can also read WhatsApp Desktop's own database.
- The Google post describes main's in-app Google sign-in, with cookie or
  cURL paste as the fallback.
- Link previews fetch the first link in each message.
- Demo-mode receipts cite the three log lines that skip each network.
- Wording: the meta description, social card, hero, warning card,
  screenshot alt text, site-storage bullet, 413 message and the
  unknown-release lead.

Tests:
- The layout title-template assertion could not fail; it now anchors to
  the metadata object's own title.
- The GitHub fallback test also feeds a 403 whose body looks like a
  release.
- Clearer test names and comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"You sign in to Google inside the app" read as what v0.2.9 does. The
sentence now hangs the in-app sign-in on the unreleased code on main,
and the cookie-paste fallback gets its own sentence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis added a commit that referenced this pull request Nov 19, 2026
#283 added tests that call headers() on the default export, which this
branch made a function of the build phase. config.test.js now reads the
server phase's config, deploy-checks.test.js asserts a build gets that same
object, and the privacy test also rejects #283's "keeps them until I delete
them" wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant