Skip to content

Show one product app: fold sign-in doorways and same-app pages together - #33

Merged
maaland merged 1 commit into
mainfrom
feat/fold-surfaces
Oct 5, 2026
Merged

maaland merged 1 commit into
mainfrom
feat/fold-surfaces

Conversation

@maaland

@maaland maaland commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Fixes the Turso report showing two product apps. turso.tech/signin is a doorway: it answers 307 → https://app.turso.tech/login. Now the report shows one product app, app.turso.tech, with "turso.tech/signin redirects here" under it.

Rules

  1. Doorways fold into their destination. Every surface records redirectsTo (new optional report field) when it ends up on another host: the browser's final page if it loaded one, else the HTTP layer's final response. acme.com ↔ www.acme.com doesn't count. A surface that redirects to a host the scan already covers is shown as part of that surface.
  2. Product-app pages on one host are one app. Resend's /login and /signup are one app; the most certain page leads.
  3. Nothing found is lost. The shown surface lists the detections of everything folded into it, keeping the most certain finding of each technology.
  4. Error pages aren't classified. console.cal.com (403) and app.buildwithfern.com (404) had been called "app" purely from their subdomain names. The HTTP layer now reports the page's status (new http-status signal), and a 4xx/5xx page stays unclassified, giving the status as the reason.
    • Trade-off: app.leonardo.ai answers 429 (bot protection), so it's no longer called an app either. We can't see it, so "not sure" is the honest answer.

Redirects to a host the scan didn't cover (say an Auth0 login) stay visible as their own surface. Apps on other subdomains (portal.meter.com next to dashboard.meter.com) also stay separate. They may really be two products.

Measured

A new number in fixtures/accuracy.md: the report shows exactly one product app, and it's the right one, for 16 of 22 companies. The rest are:

  • Meter and OpenEvidence, which have a second portal (plausibly real products),
  • Udio, where app.udio.com is shown while the source pointed at the homepage,
  • Leonardo (blocked),
  • The House (product on its homepage, unclassified),
  • Stack Overflow (never found).

Per-technology accuracy is unchanged (53 of 63, 0 wrong).

🤖 Generated with Claude Code

- Surfaces record redirectsTo when they end up on another host (browser's
  final page, else HTTP's final response)
- surfacesByRole folds a surface that redirects to another surface's host
  into it, and treats product-app pages on one host as one app; folded
  findings still count (detectionsWithFolded)
- HTTP layer reports the page's status; an error page (403, 404, 429…)
  stays unclassified instead of being called an app by its address
- Web page and MCP show what was folded where
- Accuracy: the report shows exactly one product app, the right one, for
  16 of 22 companies

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

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
stackprobe Ready Ready Preview Oct 5, 2026 11:38am UTC

Request Review

@maaland
maaland merged commit 903fa74 into main Oct 5, 2026
7 checks passed
@maaland
maaland deleted the feat/fold-surfaces branch October 5, 2026 11:42
maaland added a commit that referenced this pull request Oct 7, 2026
Closes #34.

## What changed
- **Visual system** (`globals.css`, no UI library):
- Ground `#F2ECE0`, ink `#141414`, muted `#5C574D`, hairlines `#D6CFBF`.
  - Bricolage Grotesque + JetBrains Mono via `next/font`, 4 px radii.
  - Teal (`#CDEFEF`) only for confidence bars.
  - Drippa's hard shadow appears once, on the home search box.
- **Header / footer:** "stackprobe · powered by Drippa" (→ drippa.ai)
and GitHub. The footer reads "Powered by Drippa. Open source,
Apache-2.0." with links to the license and the repo.
- **Home:** left-aligned "What's it built on?", one line of explanation,
and the big search form.
- **Report (`/s/[domain]`):**
- A large domain name with **one factual sentence** about the product's
stack ("Product runs on Clerk 5, Next.js and Vercel."). It says so
plainly when no product app was found or it couldn't tell. Scan facts
sit on the right: scanned, surfaces, took.
- **A tab per surface,** product app first. Tabs are real links
(`?surface=…`), so they work without JavaScript and with the keyboard.
- **A row per technology:** name, version, category, clue count,
confidence, and a bar behind the row as wide as the confidence. Each row
is a `<details>` that opens its evidence in monospace. Screen readers
get one sentence per row instead of the visual columns.
- Below the table, which layers ran and a note if checks failed. "Copy
link" and "Scan again" round it off.
  - **Running and not-scanned states** keep the auto-refresh.
- **Render tests** for the report sections (`report-sections.test.tsx`):
the opening sentence and facts, tabs as links with the current one
marked, a row per technology with its evidence, which checks ran, and
the not-scanned and running states.
- **Logic** lives in `lib/report-view.ts` (verdict sentence, tab order
and labels, layers that ran, durations), with unit tests.

## Scope
#34 was updated so it matches this PR: the Agents link moves to #39, the
"Recently scanned" table to #40, and the How it works and Opt out links
to #43 and #42. Each lands together with its page or its data, so no
link points at a 404 and no list is faked.

## Checked
- Rendered locally against the real Turso scan at 1280 px and 390 px,
with no horizontal page scroll.
- Lint, typecheck, tests (323) and build pass.

(The Turso scan shown during testing predates #33, so it still has two
product-app tabs. New scans fold the sign-in doorway.)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Preview — 4b8bd006 Deployed Oct 5, 2026 by vercel[bot]
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