Verify Web App
DSecurityDrive Everr App and Cloud (`packages/app`, `packages/cloud`) the way a user does, in an isolated throwaway `pnpm dev` stack with the browser driven by `agent-browser`, and capture proof. Use when a change touches `packages/app`, `packages/cloud`, `packages/telemetry-explorer`, `packages/otel-web`, `packages/app/clickhouse`, `packages/cloud/clickhouse` or the Postgres schema, or when you must prove web sign-up/sign-in, installation setup, API keys, Explore pages with seeded logs/traces/errors,...
- 56 stars
- 0 votes
- 0 copies
- 1 view
- Added November 18, 2026
Works with
Security analysis
42/100- Exfiltrates credentials via HTTP — exact pattern from Snyk ToxicSkills study
- Sends environment variables or credentials to an external URL
- Installs packages at runtime which could introduce malicious dependencies
Pro scans all 18 files and shows the line behind each finding
npx -y skills add everr-labs/everr --skill verify-web-app --agent claude-codeAre you the author of Verify Web App?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/everr-labs-verify-web-app)---
name: verify-web-app
description: Drive Everr App and Cloud (`packages/app`, `packages/cloud`) the way a user does, in an isolated throwaway `pnpm dev` stack with the browser driven by `agent-browser`, and capture proof. Use when a change touches `packages/app`, `packages/cloud`, `packages/telemetry-explorer`, `packages/otel-web`, `packages/app/clickhouse`, `packages/cloud/clickhouse` or the Postgres schema, or when you must prove web sign-up/sign-in, installation setup, API keys, Explore pages with seeded logs/traces/errors, dashboards and runbooks applied as code, the browser SDK `@everr/otel-web` against public ingest, session replay, or the GitHub connect boundary actually work.
user-invocable: true
metadata:
internal: true
---
# Verify the Everr web app (App and Cloud)
App and Cloud (Vite, better-auth, Drizzle/Postgres, ClickHouse, Graphile Worker), run through the standard `pnpm dev` stack. Cloud is selected by default for its sign-up and organization-provisioning recipes. Use `web-launch --app app` for the self-hosted installation setup. Each run creates a throwaway user through the browser in a fresh database. The `.auth` file AGENTS.md mentions holds credentials for the developer's own long-lived dev database; an isolated run does not use it. What does need real secrets is listed under "Web app boundary" below.
Other surfaces have their own skills: the `everr` CLI and its local stack in [verify-cli](../verify-cli/SKILL.md), the collector distributions on their own in [verify-collector](../verify-collector/SKILL.md), the docs and landing site in [verify-docs](../verify-docs/SKILL.md). Runs of different skills can coexist.
Not covered:
- Cloud-backed CLI commands need a separate authenticated session. When testing them against a web run, isolate `EVERR_CONFIG_DIR` and point login at the selected app; use its backing loopback HTTP port if the CLI cannot trust the local Portless CA.
- Storybook.
Everything goes through one helper: `.agents/skills/verify-web-app/scripts/verify-web-app.ts` (below: `V`), TypeScript that Node >= 24 runs directly (no build step or separate dependency install). Run it from anywhere (`$V ...`, or `node $V ...`); it resolves the repo from its own path.
```bash
V="$(git rev-parse --show-toplevel)/.agents/skills/verify-web-app/scripts/verify-web-app.ts"
```
## Launch
Prerequisites are the standard [worktree development](../../../docs/development.md) toolchain, a reachable Docker daemon, and `agent-browser`. Both packages use their existing GitHub settings in dotenv files, just as normal development does. The standard startup copies each unconfigured package's `.env` from the primary worktree; existing package configuration stays untouched. Cloud also reads its required optional-service settings from `packages/cloud/.env`. The helper reserves 6 GiB of available memory for the complete graph; `--ignore-memory` explicitly overrides that guard.
Setup, checked by `$V web-preflight` (and again at the start of `web-launch`, which stops before starting anything if a piece is missing). Each missing piece prints one `missing: ...; fix: ...` line with the command that fixes it:
- the Portless proxy running (`pnpm exec portless proxy start`) and its CA at `~/.portless/ca.pem`. The helper looks for the proxy on port 443; when yours listens elsewhere (1355 on a machine where it started without root), export `PORTLESS_PORT=<port>` before every `web-*` command
- `process-compose` on PATH
- `docker compose` working (a root-owned `~/.docker` hides the Compose plugin)
- `packages/app/.env` and `packages/cloud/.env`, here or in the main worktree
- `certutil` on Linux (`libnss3-tools`), so agent-browser can trust the Portless CA
- on macOS, the Portless CA trusted by the keychain (`pnpm exec portless trust`), which agent-browser's Chrome relies on
On Linux, `web-browser-env` and the helper's own browser commands set `AGENT_BROWSER_CA_CERT` to the Portless CA unless it is already set. On macOS they leave it unset: agent-browser rejects it there, and Chrome trusts the CA through the keychain. Never work around a certificate error with `--ignore-https-errors`; it hides real TLS problems.
```bash
$V web-preflight # "preflight ok", or one line per missing piece
$V web-launch <RUN_ID> # both products, Cloud selected
$V web-launch <RUN_ID> --app app # self-hosted App selected
```
The helper launches the standard `pnpm dev` stack. Cloud sends email to its Mailpit; App uses email only when its own SMTP settings are configured. Each run owns a scratch state directory, Compose project and volumes, Portless service names, and the standard Process Compose Unix socket under its state directory (`state/pc.sock`). The helper uses the default development control API; no server flags are added at launch. The developer's usual stack can coexist. GitHub and Smee start by default using the existing package dotenv settings, using the default development mode for both products. Follow [CONTRIBUTING.md](../../../CONTRIBUTING.md) for their configuration; no extra profile or shell exports are needed.
Ready means both applications, both combined collectors (public OTLP and private GitHub listeners), PostgreSQL, both ClickHouse servers and Mailpit passed the standard development readiness checks. The selected application's migrations must also be applied. Allow up to ten minutes for cold native collector builds and first route compilation.
`web-env` prints connection metadata, including `WEB_ORIGIN`, both product origins and ingest URLs, `WEB_PORT` (the selected app's backing HTTP port), selected `CLICKHOUSE_URL`, selected `OTLP_GRPC_ORIGIN`, both product gRPC origins, both private GitHub replay origins, and `MAILPIT_ORIGIN`. It contains no generated application credentials. The helper trusts Portless's public local CA for Node HTTPS requests. Application dotenv files are read by Vite; database credentials and authentication settings come from the standard development YAML. Application self-telemetry points at a dead port so this throwaway run does not write into another instance.
Start with the selected product's browser recipe: Cloud uses [web-auth.md](features/web-auth.md); App uses [web-installation.md](features/web-installation.md). Create API keys through the UI. `web-seed` sends telemetry through the selected product's public collector and verifies the resulting rows and tenant. Database helpers also target the selected product.
The collector configs are the actual `scripts/dev/collector-app.yaml` and `collector-cloud.yaml`, copied into evidence without transformation. Edit those files when changing development ingestion; `web-collector-restart` restarts the selected native collector and refreshes its snapshot. Changes to the standalone `collector/config.example.yml` need separate validation if they do not affect development configs.
### Web app boundary
The default graph starts with the existing GitHub App configuration. Once it is running, signup/setup, sessions, API keys, authenticated OTLP, Explore pages, dashboards, runbooks and Mailpit exercise local services. These paths require real configuration:
| Capability | Required configuration |
| --- | --- |
| GitHub connection, webhook signature checks, CI collection | Keep the real GitHub App settings in each package's existing dotenv file as described in CONTRIBUTING.md. Each selected package may set its own `SMEE_CHANNEL` for real deliveries. Linking a repository also needs a real GitHub installation. |
| Google sign-in | `GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_SECRET` in the selected application's configuration |
| Billing checkout | Real Polar sandbox token, product and webhook settings in Cloud's configuration |
Use real supplied values. When a boundary cannot be reached, record the missing configuration and leave that capability unverified. Email capture is isolated: query `MAILPIT_ORIGIN/api/v1/messages`, or open its UI. There is no shared SMTP port.
## Doctor
Read-only. Run first, and whenever anything looks off:
```bash
$V web-doctor
```
Checks the standard Process Compose readiness states, this project's four running containers, both application health endpoints, product-specific ClickHouse tenant-policy counts, that each product's ClickHouse reader (`app_ro`, with the password from `process-compose.yaml`) can read `app.logs`, collector source snapshots, private GitHub signature rejection, selected collector HTTP/gRPC authentication and HTTP CORS, selected database migrations, app port ownership, supervisor liveness, collector schema-detection errors, and `agent-browser`. Ends with `WEB DOCTOR OK` or `WEB DOCTOR FAILED`. On failure inspect `/tmp/verify-everr/web-<id>/web.log`, then clean up and relaunch. After editing a collector config, restart it before running Doctor again.
## Drive
Pick the feature file from [`features/README.md`](features/README.md) and follow it. Primitives:
- Rendered app: drive it with `agent-browser` (see "Browser" below) at `$WEB` from `eval "$($V web-browser-env)"`. Cloud journeys sign up a throwaway user; App journeys create the installation owner; export these first:
```bash
export VERIFY_NAME="Verify Bot" VERIFY_EMAIL="verify-$(date +%s)@example.com" \
VERIFY_PASSWORD="verify-password-123" VERIFY_KEY_NAME="verify-key-$(date +%s)"
```
- HTTP: `$V web-http <label> <METHOD> <path> [curl args]` records command, status, headers, body.
- GitHub webhooks: `$V web-webhook <label> <event> <payload.json>` signs the body with this run's `GITHUB_APP_WEBHOOK_SECRET` (`x-hub-signature-256`), as GitHub does for a configured App.
- Onboarding: `$V web-onboard` (after sign-up) sets the browser to 1280x800, answers the consent banner with `Deny` so it never covers screenshots or buttons, and clicks through the four Home onboarding steps (focus + Enter) until the selected product's Home dashboard renders (App: `Reporting services`; Cloud: `Usage by signal`), saving `web/onboard-*` and checking `organization.metadata.onboardingCompleted`. Prints `ONBOARDED ...`; idempotent. Recipes that need Home's dashboard view, or clean screenshots, run it right after sign-up.
- Keys: `agent-browser get text body | $V web-key-save <name>` (while the `Copy your key now` or `Your public key` dialog is open) stores the `ek_` key in `/tmp/verify-everr/web-<id>/keys/<name>` (mode 600, deleted by cleanup). Recipes use the names `secret` and `public`. `$V web-key <name>` prints a saved key. Never scrape a secret key from the `/api-keys` list: it shows only `ek_` plus three characters (6 characters in all), and only the full-key pattern `\bek_[A-Za-z0-9_-]{20,}` (what both helpers use) is a usable key.
- As code: `$V web-apply <body.json> [--key-name N] [--dry-run]` POSTs an `everr apply` body (`{"repoid", "state": {"dashboards", "runbooks", "alerts"}}`) to `/api/apply` with a saved key that has `Manage as code` (default name `secret`). Records `http/apply-<body>/{request.json,command.txt (key redacted),status,body}` and prints created/updated/deleted per kind; exit 1 unless `200`. Example body: `scripts/apply-examples/dashboard-runbook.json` (see `features/web-dashboards.md`).
- Network: `$V web-net <label> <seconds> [--reload]` clears this browser's network log, optionally reloads the current page, waits, and writes `net/<label>.requests.txt` plus `net/<label>.serverfn.txt`: total requests, `/_serverFn/` calls decoded to function names with counts (`GET <function> <count>` ...), and new page errors split into the known hydration mismatch and others. Use it for refetch loops and "what does this page load" questions.
- Telemetry: `$V web-seed [--key-name NAME | --key-file FILE]` posts fixed OTLP/JSON logs (3, one an exception) and one 3-span error trace to this run's collector with the saved key (default name `secret`), checks that an invalid key gets `401`, waits until the rows are in `app.logs`/`app.traces`, and checks their `tenant_id` is the key's organization (`apikey.reference_id`), not the `everr.tenant.id` the payload claims. Ends with `SEEDED run=<id> service=verify-seed-api logs=3 errors=1 spans=3 traces=1 trace=<id> tenant=<org>`. Once per run (counts in recipes assume it). Markers are constants (`SEED` in `scripts/verify-web-app.ts`).
- Browser SDK: `$V web-sdk-page [--local]` bundles this checkout's `packages/otel-web/src` (esbuild from the repo's own `node_modules`) into a small integrator page (buttons `#add`, `#boom`, `#fail-fetch`, `#emit`; `#status` reads `sdk ready (recording on|off)`), serves it at `SDK_PAGE_ORIGIN`, and writes `SDK_URL` (page plus `otlp` and `key` query params) for `web-browser-env`. Default: this run's collector with the saved `public` key. `--local`: the live [verify-cli](../verify-cli/SKILL.md) run's local collector (its `launch`), no key. Recording is on when the checkout has `src/recording.ts`. The server is stopped by `web-cleanup`. See `features/web-browser-sdk.md`.
- Side effects: `$V web-psql <label> "<SQL>"` (runs inside a read-only transaction in this run's Postgres container) and `$V web-ch <label> "<SQL>"` (ClickHouse default user, JSONEachRow).
### Browser
Every rendered-UI step uses the `agent-browser` CLI directly, in the run's own session:
```bash
eval "$($V web-browser-env)" # AGENT_BROWSER_SESSION=verify-everr-web-<id>, WEB, APP_WEB, CLOUD_WEB, WEB_APP, SHOTS=<evidence>/web, SDK_PAGE_ORIGIN, SDK_URL, ab_save
```
Run the `eval` in the shell you drive from. With `AGENT_BROWSER_SESSION` set, every `agent-browser` command targets this run's browser, never another agent's, and cookies persist across commands until cleanup closes the session. The commands the recipes use:
- `agent-browser open <url>`: navigate. Exits 1 with `Navigation failed: net::ERR_...` when the origin is down.
- `agent-browser wait --text "<text>" [--timeout <ms>]` (default 25000; `web-browser-env` raises it to 90000 via `AGENT_BROWSER_DEFAULT_TIMEOUT`, because the dev server compiles each route on its first visit), `wait --fn "location.pathname === '/'"`: exit 1 on timeout. Always wait for the text you expect before capturing; the UI renders query results after load.
- `agent-browser fill "<css>" "<value>"` (replaces the value), `click "<css>"`, `find role <role> click --name "<accessible name>"` (substring match). After opening a menu or dialog, `wait --text` for its item before clicking it: it animates in, and `find` fails with `No element found` if it runs first.
- `agent-browser snapshot -i`: interactive elements with `@eN` refs, to find a handle when a recipe's selector no longer matches.
- `agent-browser press Enter`: submit the focused form. Prefer it to clicking submit: the analytics consent banner can cover the button, and `click` then refuses with `is covered by <p...>`. The banner is answered once per session with `Deny` by `web-onboard` (never `Accept all`, which turns on analytics storage); before that, use Enter or focus + Enter.
- `agent-browser focus @eN` then `press Enter`, or `eval '<js>.focus()'` then `press Enter`: activate a button the consent banner covers (`New public key`). `find` has no `focus` action.
- `agent-browser network requests [--filter <substring>] [--clear]`: requests since the last `--clear`, one per line (`[id] METHOD url (Type) status`). Use it to count requests (a refetch loop) or to see OTLP exports and their CORS preflights from the SDK page. Clear right before the window you measure.
- `agent-browser errors` and `agent-browser console`: page errors and console output. They accumulate across navigations in the session, so do not assert emptiness; use them to explain a failure.
- `agent-browser eval '<js>'`: evaluate in the page and print the result (button `disabled` state, a player's `currentTime`).
- Lazy grids: a dashboard panel runs its query only once it scrolls into view, and the page itself does not scroll; the pane's inner scroll area (`main [data-slot=scroll-area-viewport]`) does. Before asserting panel data, scroll that element to the bottom in steps (the `SCROLL` snippet in `features/web-dashboards.md`); `agent-browser scroll down` scrolls the window and does nothing here.
- `agent-browser errors`: in 0.39.1 the plain form prints bare `✗` lines and `errors --clear` does not clear, so never assert "no errors" with it. Use `agent-browser --json errors` (has the text) and compare counts before and after an action, or `$V web-net`. Every page of the app logs one React `Hydration failed because the server rendered HTML didn't match the client` error on load (site-wide at e138f4d, present on `/logs` too): report it as a known pre-existing error, not a PR bug, unless the PR's page logs a different one or more of them.
- A first visit that compiles a large route (`/runs`) can outlast `agent-browser open`'s own fixed navigation timeout before any `wait --timeout` starts. Navigate without waiting for load, then wait: `agent-browser eval "location.assign('$WEB/runs')" && agent-browser wait --timeout 180000 --text "..."`.
- Evidence: `ab_save <label> ["<caption>"]` (defined by the `eval`) saves `$SHOTS/<label>.png` (`agent-browser screenshot`), `.url` (`get url`), `.txt` (`get text body`) and, with a second argument, `.caption` (the claim the screenshot backs, used by `web-report`). Labels are flat (`sign-up-01-form`): `screenshot` does not create directories. Assert on the `.txt`, not on the screenshot.
Web stable handles (from source): App setup inputs `#workspace-name`, `#owner-name`, `#owner-email`, `#owner-password`; Cloud sign-up inputs `#name`, `#email`, `#password`; sign-in `#email`, `#password`; submit `button[type=submit]`; user menu is the sidebar button containing the user's name, with menu item `Log out` (`role=menuitem`); API key dialog `#api-key-name`, switch `Send telemetry` / `Manage as code` (`role=switch`), buttons `New key`, `Create key`, `Done`; public key dialog labels `Name` and `Allowed origins` (one origin per line), buttons `New public key`, `Create public key`. Explore filters are URL params; `service` is a JSON array shared by `/logs`, `/traces`, `/errors` (`?service=%5B%22<name>%22%5D`). Route paths (pathless layouts stripped): `/setup`, `/auth/sign-up`, `/auth/sign-in`, `/organization-setup`, `/`, `/api-keys`, `/github`, `/logs`, `/traces`, `/errors`, `/runs`, `/dashboards`, `/runbooks`, `/alerts`, `/repos`, `/cost-analysis`, `/users-management`, `/billing`, `/settings`, `/settings/account/profile`, `/settings/account/security`, `/settings/organization/general`; API `/api/health`, `/api/github/install/start`, `/webhook/github`.
## Evidence
Location: `$REPO/.verify-everr/artifacts/web-<RUN_ID>/` (gitignored, outside the scratch dir, so cleanup never deletes it):
- `run.txt` (run id, selected product, command, project, git HEAD and launch time), `run.env` (connection metadata), `collector-app.yaml`, `collector-cloud.yaml` (source snapshots)
- `sdk-page/` from `web-sdk-page`: `entry.ts`, `index.html`, `build.log`, `page.txt` (origin, endpoint, key prefix, recording on/absent)
- `web/<recipe>-<step>.{png,txt,url}` saved with `agent-browser` (see Browser)
- `http/<label>/{command.txt,status,headers,body}` and `delivery.txt` for webhooks
- `seed/` from `web-seed`: `traces.json`, `logs.json` (the exact payloads), `seed.txt` (responses, row counts, tenant check, `SEEDED` line), `rows.json`, `trace_id`
- `db/<label>/{query.sql,stdout,stderr,exit_code}`
- `web.log` (Process Compose output, native collectors, apps and workers) and `compose.log` (database and Mailpit container logs), copied at cleanup; `cleanup.txt`
- `net/<label>.{requests,serverfn,errors}.txt` from `web-net`; `http/apply-*/` from `web-apply`; `report.md` from `web-report`
- `video/` from `web-record`: `<name>.mp4`, `<name>-<frame>.png`, `<name>.timeline.txt`, `<name>.probe.txt`
- `timings.tsv`: one row per `web-*` command and launch/seed sub-step (`phase`, start, end, seconds, `ok` or `fail (exit N)`), written even when the step fails
Visual proof (required for any change that touches UI):
- A verification report backs every UI claim with an image: a screenshot per claim (`ab_save <label> "<claim>"`) or a `web-record` video with key frames. A UI claim with no image or video behind it is unverified, and the report says so in those words.
- One claim, one piece of media with a one-line caption. Do not narrate in prose what the media shows, and do not write up bugs found and fixed during the work: the report shows only the final behavior. Text is for the not-verified list and the checks table.
- For a layout claim, put the measured value in the caption, for example `content at x=268, 12px padding, at 1280x800 and 2000x635`. Read it with `agent-browser eval` (`getBoundingClientRect()`, `getComputedStyle()`).
- A claim about timing or interaction (validation on submit rather than on change, a transition, a loading state) needs a `web-record` video, because a still shows only the end state. Keep it 10 to 25 s at 1280x800, with `r.hold` pauses so a reviewer can follow each step. When the PR changes behavior, record a before and an after clip of the same journey.
- To record the before clip, keep the PR's stack running and swap every file the PR changed in the affected package to main's copy in the same worktree (Vite reloads them). Swap all of them, not only the UI files, so main's component never runs against the branch's helpers. Files the PR added do not exist on main, so delete them. `git checkout HEAD -- <path>` drops uncommitted edits, so `git status --porcelain` must print nothing before the swap and again after the restore. If `git diff --name-status origin/main...HEAD -- "$pkg"` shows deleted (`D`) or renamed (`R`) files, handle them by hand. The caption names the source of the before clip (`before: origin/main channel-dialog.tsx`).
```bash
pkg=packages/app
git status --porcelain # must print nothing; commit or stash first
git diff --name-only --diff-filter=M origin/main...HEAD -- "$pkg" | xargs -r git checkout origin/main --
git diff --name-only --diff-filter=A origin/main...HEAD -- "$pkg" | xargs -r rm --
# record the before clip
git checkout HEAD -- "$pkg"
git status --porcelain # must print nothing
```
- Take screenshots after the data renders: `wait --text` for the asserted text first, then `ab_save`. Dismiss the consent banner first (`$V web-onboard` does it) and use the 1280x800 viewport (`web-onboard` sets it; otherwise `agent-browser set viewport 1280 800`; `web-record` defaults to it).
- `ab_save` sleeps 0.7s before the screenshot: after a client-side navigation the DOM (what `wait` and the `.txt` see) updates before the compositor paints, and an immediate screenshot showed the previous page (observed 2026-10-20 on the dashboards panel link). Also wait for something that only the new page lacks or has, not text both pages share.
- Before reporting, open each image (Read the PNG) and confirm it shows what its caption claims: the asserted data is visible, nothing covers it, it is the right page. Fix or drop captions that do not match. For a video, extract frames (`ffmpeg -i <name>.mp4 -vf fps=2 <dir>/f-%03d.png`) and open the frames at each step the caption names. When a shot is re-taken, copy it to a new file name before opening it again: an image viewer can serve the earlier version of a path it already showed.
- `$V web-report [RUN_ID]` collects the run's videos (with timeline and key frames) and screenshots with their captions and URLs into `<evidence>/report.md`, with image links relative to the evidence dir, a Timings table from `timings.tsv` (each command and sub-step, a `gap` row for the time between commands, and the total), plus a checklist for the image-per-claim and open-each-image rules above. Prints `REPORT ... screenshots=<n> uncaptioned=<n> duplicates=<n>`; give every screenshot that backs a claim a caption. Byte-identical screenshots saved under different labels are listed as `DUPLICATE a = b` and in a `Duplicate screenshots` section: retake them so each claim has its own frame. Attach or link `report.md` in the verification report.
Video (`web-record`): a Playwright recording of a scripted journey, for a reviewer who wants to watch the change rather than read `.txt` files. It is a companion to the `agent-browser` evidence, not a replacement: assert with recipes, record afterwards.
```bash
$V web-record --steps .agents/skills/verify-web-app/scripts/record-examples/explore-seeded.ts [--name explore] [--viewport 1280x800] [--no-captions] [--crf 28] [--max-mb 10]
```
- Defaults from the current web run: `--base-url` is the run's app, `--storage-state` is this run's `agent-browser` session (saved with `agent-browser state save` into the scratch dir, so the signed-in user carries over; sign up first), `--out` is `<evidence>/video`. Any of them passed explicitly wins; `--cookie name=value` replaces the storage state.
- The steps file default-exports `async (r) => { ... }`, with `r.page` (the recorded Playwright page), `r.base`, `r.caption(text, {sub, tone})`, `r.frame(name)`, `r.step(label)`, `r.hold(ms)`, `r.now()` (see `scripts/record.ts`). `scripts/record-examples/explore-seeded.ts` is a generic example (the seeded Explore pages after `web-seed`); write PR-specific journeys the same way, taking ports and keys from `r.base` or the environment, never hardcoded. Steps files need a `"type": "module"` `package.json` above them (`scripts/package.json` covers files under `scripts/`).
- Captions: `r.caption(text, { tone })` draws a banner at the bottom of the page, so it shows in every frame, still and GIF. Set one caption per step, with the same one-line claim the PR uses for it. Use `tone: "bad"` (red) for an error state, `tone: "good"` (green) for success, and the default for neutral steps. Clear it with `r.caption("")` at the end; `--no-captions` turns banners off.
- Output: H.264 High, yuv420p, 25 fps, faststart, no audio (plays on GitHub and in chat). Last line `RECORDED <mp4> codec=h264 duration=<s> size=<MB> frames=<n>`. If a step throws, the video so far is still encoded, `<name>-failure.png` is saved, and the exit code is 1. Check with `ffprobe` (the helper writes `<name>.probe.txt`).
- Prerequisites: `playwright-core` (not a repo dependency) plus Playwright's own ffmpeg for its raw video: `npm i --prefix ~/.cache/verify-everr/playwright playwright-core && ~/.cache/verify-everr/playwright/node_modules/.bin/playwright-core install ffmpeg` (or point `VERIFY_PLAYWRIGHT_DIR` at a dir whose `node_modules` has it). System `ffmpeg` and `ffprobe` with libx264 (`apt-get install ffmpeg`). Chrome: `VERIFY_CHROME`, else agent-browser's downloaded Chrome, else `google-chrome`/`chromium` on PATH. Headless; Linux tested.
- The video runs in real time: on a loaded host, page loads show up as long stalls. Record on an idle box, after the recipes passed.
Publishing media on the PR: GitHub plays inline video only from attachments uploaded through its web UI, which has no API. Convert each MP4 to a GIF, embed the GIF inline, and link the MP4 next to it:
```bash
ffmpeg -i after.mp4 -vf "fps=12,scale=960:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse" after.gif # keep under ~8 MB
```
- Commit stills, GIFs and MP4s to the `pr-media` branch under `<pr>/v<N>/`, and use a new `v<N>` folder for each re-record instead of overwriting.
- Embed them with commit-pinned URLs, `https://raw.githubusercontent.com/everr-labs/everr/<pr-media sha>/<pr>/v<N>/<file>`, and check that each URL returns 200 (`curl -s -o /dev/null -w '%{http_code}' <url>`) before posting.
- After a follow-up commit that touches the verified UI, re-record, publish to a new `v<N>`, and edit the existing verification comment and PR body in place. Do not post a new comment.
- `report.md` links media relative to the evidence dir, so those links break on GitHub. Use it to review the run locally, and write the comment as a separate file (`comment.md`) whose embeds are the commit-pinned `pr-media` URLs: `gh api -X PATCH repos/everr-labs/everr/issues/comments/<id> -F body=@comment.md`.
Note: `web/api-keys-03-issued.*` and `web/api-keys-07-public-issued.*` contain the freshly issued `ek_` keys (the helper reads keys from the scratch dir, never from evidence). It is only valid against the run's database, which cleanup destroys.
Proof standards:
- Exercise the real user path: the UI routes, OTLP through the run's collector, `/api/apply`. Never call internal setters or test-only endpoints.
- A screenshot alone is not proof. Pair the UI end state with a second view: a reload (new page load), a different route, or a `web-psql` row.
- Never seed users or sessions with SQL or internal endpoints. Create them through the UI journey.
- Telemetry goes in only through the run's collector with a UI-created key: `web-seed` (OTLP with a secret key) or the browser SDK on `web-sdk-page` (public key). `web-sdk-page --local` is the one exception: it sends to a verify-cli run's local collector without a key, so it proves nothing about key checks or tenant stamping. Never insert into `otel.*`/`app.*` with `web-ch`: that skips the key check and tenant stamping the proof is about.
- Mocks only at the boundaries in the "Web app boundary" table. Everything else in the run is real and local.
## Cleanup
```bash
$V web-cleanup
```
`web-cleanup` stops this run through its owned Process Compose socket, falling back to its recorded process group if needed. It stops any SDK page server, closes the run's browser, preserves logs and removes only this run's Compose project, volumes and project-local images. The shared Portless proxy remains running. Scratch removal is guarded by the scratch root; evidence survives. If Docker removal fails, resources remain, or cleanup cannot confirm their removal, the command exits nonzero and keeps the run metadata and selection. Restore Docker access and rerun `web-cleanup` (or set `WEB_RUN_ID` to the retained run id). Successful host-process shutdown clears its PID file so retrying does not signal an old PID. Run cleanup after every attempt, including failed launches. Never issue an unscoped `docker compose down` against another stack.
## Helpers
- `scripts/verify-web-app.ts` (executable TypeScript entry, run by Node). Subcommands: `web-preflight`, `web-launch [RUN_ID] [--app app|cloud] [--ignore-memory]`, `web-doctor`, `web-env`, `web-browser-env`, `web-http <label> <METHOD> <path> [curl args]`, `web-webhook <label> <event> <payload>`, `web-psql <label> <SQL>`, `web-ch <label> <SQL>`, `web-key-save <name>`, `web-seed [--key-name N | --key-file F]`, `web-collector-restart`, `web-sdk-page [--local]`, `web-record --steps F [...]`, `web-key <name>`, `web-onboard`, `web-apply <body> [...]`, `web-net <label> <s> [--reload]`, `web-report [RUN_ID]`, `web-cleanup`. Run it with no args for usage. Env knobs: `EVERR_VERIFY_SCRATCH` (scratch root, default `/tmp/verify-everr`), and `WEB_RUN_ID` to target a web run when none is selected (the selected web run wins, so a sourced `run.env` from an earlier run cannot redirect commands).
- `../verify-shared/common.ts`: paths, run-id validation, scratch-root containment, ports, process helpers. Shared with the other `verify-*` skills, so a change there needs a run of each.
- `scripts/package.json`: only `"type": "module"`, so Node loads the `.ts` files as ES modules without a warning.
- `scripts/apply-examples/dashboard-runbook.json`: an as-code body (dashboard `verify/traffic` with a static-list variable and 2 panels, runbook `verify/verify-runbook` embedding one) for `web-apply`.
- `scripts/record.ts`: the `web-record` recorder (Playwright + ffmpeg); runnable standalone. `scripts/record-examples/`: generic steps files.
- `scripts/sdk-page/`: `index.html`, `entry.template.ts` (the page `web-sdk-page` bundles) and `serve.ts` (loopback static server).
- `scripts/workflow-run.webhook.json`: a minimal signed-webhook payload for `web-webhook`.
Maintain the feature map with `/maintain-verification-skill` when commands, routes, or attributes change.
Files in this skill
- SKILL.md
- features/README.md
- features/web-api-keys.md
- features/web-auth.md
- features/web-browser-sdk.md
- features/web-dashboards.md
- features/web-explore.md
- features/web-github.md
- features/web-installation.md
- scripts/apply-examples/dashboard-runbook.json
- scripts/package.json
- scripts/record-examples/explore-seeded.ts
- scripts/record.ts
- scripts/sdk-page/entry.template.ts
- scripts/sdk-page/index.html
- scripts/sdk-page/serve.ts
- scripts/verify-web-app.ts
- scripts/workflow-run.webhook.json
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.