Skip to content
Back to skills

E2e Evidence Report

ASecurity

Plan E2E test cases, run them via e2e-test-workflow recording every browser case, verify result data with read-only queries on the run-owned DB, and publish an HTML evidence report in a temp directory. Use when E2E results must be proven with recordings and DB evidence.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 19, 2026
developmentrustbashnodeexpressrailsapidatabase

Works with

  • api

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned November 19, 2026

npx -y skills add ch4570/vulpora --skill e2e-evidence-report --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of E2e Evidence Report?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for E2e Evidence Report
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ch4570-e2e-evidence-report/badge)](https://www.skillsdirectory.com/skills/ch4570-e2e-evidence-report)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: e2e-evidence-report
description: Plan E2E test cases, run them via e2e-test-workflow recording every browser case, verify result data with read-only queries on the run-owned DB, and publish an HTML evidence report in a temp directory. Use when E2E results must be proven with recordings and DB evidence.
---

# E2E evidence report

Turn an E2E request into a report a reviewer can trust without rerunning it: each test case (TC) shows its
steps, the screen recording or captures, the API exchanges, and the database rows that prove the outcome.
Execution, environment ownership, cleanup and verdict rules stay with `e2e-test-workflow` and its components;
this skill adds the TC plan, the evidence capture, the DB verification and the report.

> **Reference loading:** read [principles](reference/principles.md) first. Read [evidence schema](reference/evidence-schema.md)
> before writing `evidence.json`, then route through the [KB index](reference/kb/INDEX.md): media capture for the browser
> lane, DB verification for every case with a persisted outcome.

## 1. Freeze the request and create the evidence directory

Record the repository root, revision, requested scope (TC IDs, areas or `all`) and lanes (`api`, `browser`).
Create the run's evidence directory **outside the repository** with `mktemp -d "${TMPDIR:-/tmp}/vulpora-e2e-evidence.XXXXXX"`.
Every artifact of this skill — plan, overlay config, raw outputs, `evidence.json`, the rendered report — lives there.
Never write report files into the repository, and never reuse a directory from an earlier run.

## 2. Establish the TC plan before execution

Build `tc-plan.md` in the evidence directory from the repository's source of truth, in this order:

1. the existing E2E scenario catalog (`e2e-scenario-author`, validated, not regenerated unless authorized);
2. the QA browser handoff (`qa-test-designer`) for UI flows;
3. when neither covers the request, draft TCs from the code's endpoints and screens, mark them `DRAFT`, and stop for
   the user's approval before running them.

Each TC states: ID, priority (P0–P2), lane, Given/When/Then, the visible or API result expected, and **the DB
assertion**: which rows the case must create, change or leave untouched, expressed as a read-only query scoped by the
case's own run-namespace identifiers, plus the expected rows. A TC whose outcome is persisted but has no DB assertion
is incomplete; add one or record why the outcome is not observable in the database.

## 3. Run through e2e-test-workflow with evidence capture

Invoke `e2e-test-workflow` with the approved TCs and lanes. It owns the run environment, execution, cleanup, teardown
and verdict. Add only these capture rules:

- **Browser lane:** generate the run-owned config overlay with
  `node <skill>/scripts/write-playwright-evidence-config.js --repo <repo> --evidence-dir <dir>` and pass the printed
  config to the `playwright-e2e` command (`--config <overlay>`). It imports the repository config unchanged and records
  video and a screenshot for every test, retries 0, with output under the evidence directory (`playwright-e2e` PW-7
  evidence mode). Add `test.step` names that match the TC steps and attach a full-page screenshot at each checkpoint
  the TC names.
- **API lane:** keep the runner's request/response captures (masked) for every exchange the TC makes.
- **DB verification, per case, before its cleanup:** run each TC's DB assertion against the **run-owned** database
  from the workflow's `environment.json` only, inside a read-only transaction, with the case's identifiers in the
  predicate and a row cap. Record query, expected rows, actual rows and `PASS`/`FAIL`. Then let cleanup and the absence
  probe run as usual. The [DB verification topic](reference/kb/db-state-verification.md) has the exact guard rails.

A DB assertion failure makes the case `FAIL` even when the screen or API looked right. Never point a query at a shared,
staging or production database, never write through the verification connection, and never widen a predicate to
make a check pass.

## 4. Assemble evidence.json and render

Write `evidence.json` in the evidence directory per the [evidence schema](reference/evidence-schema.md). Copy each
case's statuses from the workflow output; do not upgrade any status. Reference media by paths relative to the evidence
directory (Playwright writes them under `playwright-output/`). Then render into an empty sub-directory:

```bash
node <skill>/scripts/render-evidence-report.js --evidence <dir>/evidence.json --out <dir>/report
```

The renderer refuses a malformed file, a non-read-only query, a `PASS` case whose DB check or cleanup is not `PASS`, a
browser `PASS` without a video, and media outside the evidence directory. Fix the evidence, not the renderer. It copies
media into `report/assets/`, masks secrets and personal data again, and writes `report/index.html` (Korean UI, works
offline, no external resources).

## 5. Report

Return: the report path (`<dir>/report/index.html`), the overall verdict and per-status counts from the renderer, DB
checks passed / total, videos and screenshots captured, the workflow's lifecycle evidence (cleanup, teardown, orphan
audit), and every gap (blocked lanes, missing media, TCs without DB assertions). Do not open a browser. Tell the user
the directory is temporary and is removed by the OS or by them; it is not committed.

## Stop conditions

- No approved TC plan → stop after drafting it.
- `e2e-test-workflow` returns `BLOCKED` for a requested lane → report it; do not substitute another runner.
- The database in `environment.json` is not run-owned, or the case identifiers are unknown → DB checks are `NOT_RUN`
  and the case cannot be `PASS`.
- The renderer rejects the evidence twice for the same reason → stop and report the validation errors.

Files in this skill

  • SKILL.md5.7 KB
  • reference/evidence-schema.md2.7 KB
  • reference/kb/INDEX.md926 B
  • reference/kb/db-state-verification.md2.2 KB
  • reference/kb/media-evidence.md1.9 KB
  • reference/principles.md1.2 KB
  • scripts/render-evidence-report.js16.2 KB
  • scripts/write-playwright-evidence-config.js3.6 KB
  • tests/contract.test.sh1.7 KB
  • tests/render.test.js6.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.