Files
supermarket/TEST.md
davidandClaude Opus 5.5 d23d5e2a87 Phase 2 part 7: the end of the funnel
Posts can be written for a buying signal: the prompt gets its hypothesis
and angle, and links carry its campaign tag. Plausible (Stats API v2) is
read once a day for visitors on tagged links, recorded per signal as
Visited. Stripe (restricted key) is read every hour: $0 checkouts are
Signed up, paid invoices and one-time payments are Paid with their value,
tied to a signal by the checkout's utm_campaign metadata or the payer's
email. The Core's Cal.com has no API, so booking emails from Cal.com in
the outreach mailbox count as Booked. New Settings → Website & sales;
the signal page lists its posts and tagged links. Schema 11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 06:42:03 -07:00

296 lines
13 KiB
Markdown

# Supermarket: a checklist for testing by hand
Work through this in the app at <http://localhost:8470> to confirm that
each part works and feels right. Tick a box when the step behaves as
described. Where it doesn't, write down what you saw next to it (the page,
what you clicked, the message shown) and bring it back as a fix.
Items marked **(costs)** spend money or credits: Anthropic web searches,
Hunter.io credits, or real posts and emails that people will see. Items
marked **(real)** do something outside the app that can't be undone.
Leave them for last, or skip them.
Throughout, also notice:
- [ ] Every page loads without an error, in both light and dark mode
(follows the system setting).
- [ ] The sidebar shows where you are, and the Review and Outreach counts
match what's on those pages.
- [ ] After every Save or action, a short message confirms it at the top of
the page. A failure says what went wrong in plain words.
- [ ] Slow buttons (fetching, writing, searching, sending) change their
label while they work and can't be clicked twice.
- [ ] On a narrow window, the menu button opens and closes the sidebar.
- [ ] Press `/` anywhere: the search box takes focus.
## 1. Install, launch and the command
- [ ] `supermarket status` says it's running, with the version.
- [ ] `supermarket` (or the Supermarket icon in the app grid) opens the app
in the browser.
- [ ] `supermarket stop`, then `supermarket start`: the app stops, then comes
back with the same data.
- [ ] `supermarket logs` follows the log; Ctrl-C ends it.
- [ ] `supermarket data` prints `~/.local/share/supermarket`.
- [ ] After a reboot, the app is running again without you starting it.
- [ ] Opening the app from another machine on the network fails: it only
answers at localhost.
## 2. Overview
- [ ] The overview lists the modules. Content and Prospects open; SEO,
Metrics and Sites are marked as later phases.
- [ ] Its Setup list (AI, social accounts, Core, Hermes and so on) matches
what you've set up, and each missing step links to where to do it.
## 3. Settings
### Profile
- [ ] With the AI set up, *Draft from website* fills in the profile from
your site. Review every field before saving.
- [ ] Name, description, positioning, voice, words to avoid, products,
targets (industries, sizes, roles, regions, problems, buying
signals), websites and accounts all save and show again on reload.
- [ ] Removing a product or website and saving removes it.
### Social accounts
- [ ] Each network shows whether its keys are saved, without showing them.
- [ ] *Connect* for X and for LinkedIn signs you in and comes back saying
it's connected. X's callback must be `127.0.0.1`, not `localhost`.
- [ ] LinkedIn shows when its 60-day sign-in runs out.
- [ ] Removing a key (the *remove* box, then Save) removes it.
### Core & Hermes
- [ ] It shows your Core's domain, email and name from `core.conf`.
- [ ] The service checks (Nextcloud, EspoCRM and others) show which answer.
- [ ] The Hermes section shows whether the bridge is set up, when Hermes
last checked in, and how to repair it (`supermarket hermes`).
### Lead sources
- [ ] origami.chat and explee.com keys save. *Test* says the key works;
for origami.chat it also shows what its API sends.
- [ ] The Hunter.io key saves, and *Test* shows your plan and the credits
left (free).
- [ ] Ticking departments and seniority, and choosing how many people a
company, saves and shows again on reload.
### Email
- [ ] The suggested mail server is `mail.` plus your Core's domain, and
the From address is your Core email.
- [ ] Saving hours that end before they start is refused with a message.
- [ ] After saving the password, *Check the settings* shows a green line
for sending and for reading replies, and your domain's SPF, DKIM
and DMARC records. Note any red lines.
- [ ] **(real)** *Send a test email* arrives in your inbox, from the right
name, with the signature under it.
### AI
- [ ] It shows which key is used: Hermes' shared key, or one saved here.
- [ ] *Test* gets an answer from the model.
- [ ] A different model per task (profile, content, prospects, outreach)
saves and is used.
- [ ] With an OpenAI-compatible server, *List its models* lists them.
## 4. Inventory
- [ ] Add a partner and a competitor by hand, with websites, feeds, X
handle and mention policy. They save and show in the list.
- [ ] With the AI set up, *Fill in the empty boxes* on an entry drafts the
rest from its website.
- [ ] Edit and delete an entry.
- [ ] *Export*, then *Import* the file again: nothing is duplicated.
## 5. Content
### Sources
- [ ] *Fetch* on an inventory entry finds new items from its feeds and
sitemap, and the list shows when it was last checked.
- [ ] Items can be dismissed and restored.
- [ ] Your own products (`/content/own`) show your sites' and feeds' new
pages.
### Drafting and posts
- [ ] Select one or more items, choose channels (X, LinkedIn, Reddit) and
*Write drafts*. Drafts appear in Posts.
- [ ] Each draft follows the profile's voice, avoids the listed words,
and makes no claims beyond the source. The X draft fits the
character limit; the live counter agrees.
- [ ] A competitor set to "category only" is never named.
- [ ] Editing a draft and saving keeps the edit.
- [ ] Links to your own sites get UTM tags when published; other links
don't.
- [ ] For Reddit, choosing a subreddit shows its rules, and the draft
respects them.
### Publishing
- [ ] **(real)** *Publish* on an X draft posts it, and it moves to
Published with a link to the post.
- [ ] **(real)** The same for LinkedIn.
- [ ] Reddit: *Open in Reddit* opens the submit page filled in; *Mark as
posted* moves it to Published.
- [ ] *Schedule* a draft for a few minutes ahead: it shows under Scheduled,
and goes out at that time (in your local time zone).
- [ ] *Unschedule* puts it back in Posts.
- [ ] A failed publish says why and keeps the draft.
## 6. Prospects
### Signals
- [ ] The scorecard lists each signal with counts for Found, Contacted,
Replied, Interested, Booked, Visited, Signed up and Paid, and the
share of contacted at each step.
- [ ] The period and channel filters change the numbers.
- [ ] *New signal*: name, status, hypothesis, how to spot it, angle,
campaign tag. The tag is made from the name if left empty.
- [ ] A signal's page shows its funnel by channel, its campaigns and its
latest steps.
- [ ] Under Campaigns, assigning an origami.chat or explee.com campaign to
a signal moves its numbers to that signal.
- [ ] *Import now* for each tool brings in new results and says so. Running
it twice adds nothing new.
- [ ] Deleting a signal asks first; its prospects and results stay,
without a signal.
### Finding companies (discovery)
- [ ] Without "How to spot it", the Claude search asks you to fill it in.
- [ ] **(costs)** *Search the web now*: the run shows "searching…" and
updates by itself. When done, it lists how many companies were added,
how many were left out and why, and how many web searches it used.
- [ ] Each company it added is in Review, tagged with the signal, with a
link to the page that shows the signal.
- [ ] **(costs, first 10 free)** *Search explee.com now* with an explee.com
description adds only strong matches.
- [ ] Setting *Search automatically* to every 7 days saves. A retired signal
doesn't run.
### Review
- [ ] The New, Accepted and Set aside tabs show their counts, and the
signal filter narrows them.
- [ ] *Add a prospect* with a company and a person: both appear in New.
Adding the same email again doesn't make a duplicate.
- [ ] A prospect that matches a record already in the CRM shows a warning.
- [ ] Changing a prospect's signal moves it under that signal on the
scorecard.
- [ ] *Record an outcome* (e.g. Replied by email, or Paid with an amount)
shows on the prospect and on the scorecard; *remove* takes it back.
- [ ] *Set aside*, then *Reconsider*, moves it back and forth.
- [ ] *Accept* a company: it moves to Accepted as "waiting for Hermes", and
appears on the CRM queue page.
- [ ] Accepting a person without a last name explains that EspoCRM needs one.
- [ ] *Suppress* a domain or an address: its new prospects move to Set aside.
### Hunter.io
- [ ] **(costs, 1 credit when it finds someone)** *Find people at
&lt;domain&gt;* adds people under the company, with title, address and
confidence, and the card says what it found and the credits used.
- [ ] **(costs)** *Find their email* on a person with a name and company
fills in the address, or says none was found (free).
- [ ] **(costs, ½ credit each)** *Verify the address*, and *Verify with
Hunter.io* for all, mark each address verified, risky, bounces or
couldn't be verified.
### Suppression list
- [ ] Add an email and a domain with a reason; both show in the list.
- [ ] Prospects at that address or domain can't be added or accepted, and
emails to them are refused.
- [ ] Removing an entry takes it off the list.
### Outreach
- [ ] *Write an email* on a person in Review opens Outreach at the new
draft. It greets them by first name, gives a reason that matches
their signal and company, and invents nothing.
- [ ] Editing the subject and text and *Save* keeps them.
- [ ] *Write a LinkedIn message*: the counter shows the length; *Copy*
copies it; *Open their profile* opens LinkedIn in a new tab.
- [ ] **(real)** Send it on LinkedIn, then *Mark as sent*: it moves to Sent
and counts as Contacted (LinkedIn) on the scorecard. *They replied*
records a reply and counts as Replied.
- [ ] *Queue to send*: it moves to Queued. The status line shows how many
went out today and whether sending is paused (outside your hours).
- [ ] *Back to drafts* takes it out of the queue.
- [ ] **(real)** Queue an email to an address of your own (add yourself as a
prospect) and *Send now*. It arrives with your signature and the
opt-out line, a copy is in your Sent folder, and it counts as
Contacted (email).
- [ ] **(real)** Reply to that email. After *Check for replies* (or within
10 minutes) it shows under Replies with the start of your reply, and
counts as Replied.
- [ ] **(real)** Reply "stop" to another test email: the address goes on the
suppression list.
- [ ] Queuing a second email to the same address within two weeks is
refused with the date of the first.
- [ ] With more queued than the daily limit, the rest wait for the next day.
- [ ] *Draft* for several accepted people writes up to 5 drafts.
### CRM queue (EspoCRM through Hermes)
- [ ] The page lists queued, done and failed actions, and when Hermes last
checked in.
- [ ] *Send a test Lead*, then run the job (the `hermes cron run …` command
shown on the page): the Lead appears in EspoCRM and the action shows
as done.
- [ ] A failed action shows the error, and *Retry* queues it again.
- [ ] If EspoCRM can't be reached, the hint says whether the problem is
on the Core's side or Supermarket's.
### Website & sales (the end of the funnel)
- [ ] On Content, *For a buying signal* lists your signals. Posts written
for one speak to its situation, and when published their links carry
`utm_campaign=` the signal's tag.
- [ ] A signal's page lists the posts written for it, and your websites'
addresses tagged with its campaign; *Copy* copies one.
- [ ] Under Settings → Website & sales, Plausible's address is your Core's,
and the sites listed are your websites' domains.
- [ ] With a Plausible Stats API key saved, *Test* shows each site's
visitors in the last 30 days, and *Import now* says how many visitors
came on tagged links.
- [ ] Open a tagged link yourself; the next day (or after *Import now* the
day after), the signal shows a Visited step for that channel.
- [ ] With a restricted Stripe key saved, *Test* says it can read checkouts
and invoices, and whether it's live or test mode. *Sync now* lists
sign-ups and payments, and the customers table fills in.
- [ ] A payment from a prospect's email shows as Paid, with the amount, on
that prospect's signal, and the revenue on the scorecard.
- [ ] **(real)** A purchase through the shopping cart from a tagged link
counts for that signal (once the cart passes the tags to Stripe).
- [ ] With Cal.com's sending address saved under Settings → Email, a
booking made through your Cal.com link shows as Booked for the
person who booked (after the next inbox read). A cancellation
doesn't count.
## 7. Search
- [ ] Searching for an inventory entry, a fetched item, a post, a prospect
(company or person) or a signal finds it, with a link to where it is.
## 8. Agents (MCP)
- [ ] `supermarket token` prints a token.
- [ ] Claude Code (`claude mcp list`) shows Supermarket connected, and can
list prospects or the CRM queue through it.
- [ ] Hermes uses the Supermarket and Core MCP tools in its CRM job.
## 9. Data and safety
- [ ] `~/.local/share/supermarket/secrets.json` is readable only by you
(`ls -l`), and no key is ever shown in the app after saving.
- [ ] Before a change to the database schema, a backup was made (the
`app.db.pre-*` files), and the app starts on the new schema without
losing data.