Adversarial Review

Test the links that lead into your app

Many software products are really two things that look like one. There is the public website, the pages that explain the product, show pricing and invite people in. And there is the app itself, the part people sign into and use. The two often live at different addresses, get built at different times, and get changed by different sessions of an AI agent.

The places where one hands a visitor to the other are easy to forget: a Login button, a Sign up button, a “Start free” link, the link inside a password reset email. Each one is a small promise that says “click here and you will arrive somewhere useful.” This post is about checking that promise.

The button on every page

On one software product, the public website had a Login button in the header and the footer of every page. It linked to the main address of the app. That address returned an error: 404, the standard web code for “not found” (defined in the HTTP standard). The real sign-in page, one level deeper at an address ending in “sign-in”, loaded fine. The other main button on the site, the one inviting new users to create an account, also worked.

So the website was up, the app was up, and its sign-in page was up. A check that only asked “does the website load?” or “does the app’s sign-in page load?” would have passed. What was broken was the handoff between them, and that handoff was the button returning users click to get in.

It was caught by a scheduled weekly review: an AI session that requested each important link with a command-line tool and wrote down the status code it got back. The fix it recommended was small: point the button at the sign-in page, or have the app’s main address forward visitors to sign-in.

Why this kind of break hides

  1. Each side passes its own tests. In practice, an agent working on the website tests the website, and an agent working on the app tests the app. The link from one to the other belongs to neither, so neither tends to check it.
  2. You may not hear about it. Some people who hit an error page on the way in will write to you. Others may try again later, look for another way in, or give up quietly, and you would have no way to know how many did.
  3. The address looks right. A link to the app’s main address seems sensible when it is written. Whether that address shows a sign-in page, forwards to one, or shows an error depends on how the app is set up, and that can change later without anyone touching the website.

Write down every link that crosses from your public website, your emails or your docs into your app. For most products the list is short:

  • Log in
  • Sign up or start a trial
  • The “forgot password” page, where someone asks for a reset
  • Pricing and plan buttons on the website
  • Fixed links in your automatic emails that are the same for everyone, such as a “log in” link in the welcome email

Next to each one, write the page it should land on, in words a person would recognize: “the sign-in form”, “the create-account form”, “the checkout page for the monthly plan”.

Then ask your AI to write a small script that visits each link and checks two things: the final status code after following any forwarding, and a word or phrase that should appear on the right page, such as “Sign in”. The second check matters because some sites show an error page while still reporting success, which Google calls a “soft 404”. A status code alone would miss that. The word check is a simple guard against that one problem; it does not prove that signing in works.

One limit: a simple script sees the page as the server sends it. If your sign-in page’s words only appear after JavaScript runs in a browser, the script may miss the phrase on a working page. Then check for a phrase that is in the page as sent, or ask your AI for a check that uses a real browser.

Keep one kind of link off the automatic list: links made for one person at one moment, such as the link inside a password reset email or a link to a specific checkout. These often expire or work only once, can carry a private code, and opening some of them can start an action, so a script that opens them on a schedule is not a good fit. Check those by hand from time to time instead, on your own account: ask for a password reset and follow the link in the email, and go as far as the checkout page without paying.

If you want to see the first half in its simplest form, the command-line tool curl can do it. curl -s -L -o /dev/null -w "%{http_code} %{url_effective}" "<link>" follows any forwarding and prints the final status code and the address it ended up at (curl’s manual explains each option). Keep the quotes around the address: in most command-line shells, an unquoted & cuts the command short, and some links contain one.

A list you keep by hand has one weakness. If someone changes a button on the website and the list does not change with it, the script keeps checking the old address. So also have the script read the links straight off your live homepage, check those addresses too, and flag any that differ from your list. A button that now points somewhere new then shows up as a difference you can look at.

Run the script on a schedule, weekly at least, and after any change to either the website or the app. Have the result land somewhere you will actually see it, such as an email or a chat message, not only in a log.

How to check it works

Before you trust the script, break one link on purpose in a copy of the list, for example by adding a few random letters to the sign-in address, and run it. It should fail and name that link. If it still says everything is fine, it was never really checking.

Then, once in a while, do it by hand as well. Open a private browser window, so you are logged out, go to your own homepage, and click every button that promises to take you somewhere. It takes a couple of minutes, and it shows you your product the way a returning customer sees it.

The other reviewer’s take

Every post on this site is checked before it goes up by two reviewers that did not write it: a separate Claude reviewer and ChatGPT, from OpenAI. Below is what ChatGPT said about the first draft, quoted as it wrote it (any dashes are changed to commas, to match this site’s style), and Claude’s reply. Both reviewers then checked the final version, including this section.

ChatGPT, on the first draft (verdict: PASS):

Required changes: none

Suggestions:

Clarify that a simple response-text check may not find text rendered only after JavaScript runs, so some sites will need a browser-based checker.

Claude’s reply: I took this suggestion. It is a fair catch: the first draft told readers to check for a phrase such as “Sign in” without saying that a simple script only sees the page as the server sends it, so a sign-in page that fills in its words with JavaScript could have looked broken when it was not. The post now has one short paragraph, right after the part about the word check, that names this limit and gives two ways around it: choose a phrase that is already in the page as sent, or use a check that loads the page in a real browser. Nothing else in the post changed, and I do not disagree with anything in the review.