write-evidence-report
Load before a product is launched or written about: roll the latest test, QA, performance, security, and usability results into product/EVIDENCE.md. Trigger on "are we ready to launch", "what have we
SKILL.mdplugins/standalone/ceh-testing/skills/write-evidence-report/SKILL.md
GitHubWrite the evidence report
Roll every Prove result into one file, .agents_workspace/product/EVIDENCE.yaml, that a later
stage reads instead of the scattered reports, with its EVIDENCE.md rendered beside it. Done
means a dated run for the current commit sits at the top of the file, every area has a status, and
every claim under Claims cites the result behind it.
The checks leave their reports in .agents_workspace/product/, dated, one folder each. A blog
post or a listing that needs "is it tested, fast, safe, usable?" cannot use them: none answers for
the product as a whole. This file is the one answer.
Procedure
Pin the commit. Run
git rev-parse --short HEADandgit status --porcelain. A dirty tree is named in the report, because results then describe code nobody can check out.Run the test suite once. Find the command in the repo's
CLAUDE.md, README, CI workflow, or manifest scripts, run it, and record the command and its summary line (passed, failed, skipped). This run is the task, so it needs no separate request. When it cannot run (missing service, secret, or runner), the Tests area isnot runwith the reason.Collect the latest result per area. Read, newest first, and take one per area (per metric for performance, per target for usability):
Area Source QA .agents_workspace/product/qa/<YYYYMMDD-HHMMSS>-<session-id>/QA_REPORT.yaml, else its.mdPerformance .agents_workspace/product/perf/<metric>.yaml, else its.mdSecurity .agents_workspace/product/audit/security/<YYYYMMDD-HHMMSS>-<session-id>-security-audit.yaml, else its.md, also in the older.agents_workspace/product/security-audit/. A*-security-auditname is newer than every olderSECURITY_AUDIT-*name, and within one form the last by file name is the newestUsability .agents_workspace/product/audit/ux/<target>/run-<NNN>/UX_AUDIT.yamlandERROR_MESSAGES.yaml, else their.md, also in the older.agents_workspace/product/ux-audits/Plan each plan in .agents_workspace/product/plan/with statusbuilding, plus eachbuiltplan whose## Recordhas no Evidence line yet: phasesdonewith evidence, and any check-against-plan findingsWith no such plan, the Plan area reads
none in flight, notnot run: nothing was skipped. Any other area with no source isnot run, and names the skill that produces it: QAceh-testing:explore-app-for-bugs, performanceceh-testing:measure-performance, securityceh-security-audit:audit-codebase-security, usabilityceh-usability-audit:simulate-newcomer-first-run.When a report's
.yamlsits beside its.md, read the YAML by key, never the Markdown: first runuv run --script ${CLAUDE_SKILL_DIR}/scripts/artifact.py check <file>.yaml(formats in${CLAUDE_SKILL_DIR}/references/qa-report-schema.md,perf-report-schema.md,security-audit-schema.md,first-run-audit-schema.md,interface-audit-schema.mdanderror-messages-audit-schema.md). On exit 1, the area isnot run, naming the errors, because a broken report proves nothing. On exit 3, read that report's.mdinstead and say so, because its key paths may not hold. On exit 2, or without uv, say in the reply that the report went unchecked, and read the YAML anyway. The commit each ran against iscommit. QA's bugs arebugs, each withseverity,statusandfix. Performance takes the last attempt inattemptswhosekeptis true, else the baselineattempts.0, with itsmedian,low,high, the file'sunitandmachine. Security countsfindingsbyseverity, and its open issues are thecriticalandhighones, each with itslocation. AUX_AUDIT.yamlis a first-run or an interface audit, told apart by itsschema:key, andartifact.pypicks the model by it: keep the newest of each format per target. Both givefindings, each withseverity, andgate(score,out_of,na). The error-messages audit givesrows, each withseverityandapplied, andharvestedandalready_complete.Mark staleness. For each result, find the commit it ran against (the report's
commit, or take the last commit before its date). Whengit log --oneline <that>..HEADis not empty, the area isstalewith the commit count, because the code moved after the check. A QA report whosebugshold anyfixcounts from its fix commits instead: the smallestgit rev-list --count <fix.commit>..HEADover them, skipping afix.committhatgit cat-file -e <fix.commit>^{commit}rejects, and with none left, fromcommit. The run made those commits and re-ran each bug after its fix, so they are not code that moved after the check.Write the claims. List only what a reader outside the team may be told, each one sentence with the area and figure behind it: "All 212 tests pass at a1b2c3d", "p95 search latency 38 ms on <machine>". A
stale,not run, oropen issuesarea yields no positive claim about the thing it checks.Add the run at the top of
.agents_workspace/product/EVIDENCE.yaml, as the first item ofruns, in the Output format. Never edit an earlier run: each one is what was proven at its commit, and a plan's Record cites it by date. With no file, copy the template. With only anEVIDENCE.md, move it first, as the schema'sevidence/v2section says (a file in the older single-run layout becomes one run dated from its Written line). Before the edit, runuv run --script ${CLAUDE_SKILL_DIR}/scripts/artifact.py check .agents_workspace/product/EVIDENCE.yamland stop on exit 1 with its errors. After the last edit, run it withrender, which writes theEVIDENCE.mdbeside it, and fix the YAML for each error it lists. Never edit the generated.md. On exit 2 or 3, or without uv, say in the reply that the file went unchecked and unrendered.Record the evidence in each plan. Append an Evidence line to the
## Recordof each plan in the Plan area: the run date, the short SHA, and every area that is notpassed. A plan with a<slug>.yamlbeside its.mdis aplan/v2plan: read its status and Record from the YAML, not the.md, which can lag behind it, and append to the YAML'srecordlist instead, asdate,event: Evidence, and a quoteddetails, never editing the generated.md. When the.mddid not change, because the hook that renders it (ceh-build-plan) is not installed, say so in the reply.
Rules
- Every figure is copied from a report or this session's test run, never estimated, reworded, or softened. A critical security finding stays critical.
- The file stands alone. Copy the numbers in, because a later run replaces the source reports. Name the source path only as a pointer for the author.
- Never run the other checks from here. They are their own skills, and some need a running app or
a person. Report them
not runand name the skill. - Open issues are listed, not judged: critical and high security findings, confirmed QA bugs not yet fixed, usability blockers, and plan items missing or failing their check.
Output
.agents_workspace/product/EVIDENCE.yaml follows assets/evidence.template.yaml, per the
evidence/v2 section of references/evidence-schema.md: a new file is a copy of it, and each run
adds one item at the top of runs. Its EVIDENCE.md is rendered from it in the layout of
assets/evidence.template.md.
Stop conditions
- The test suite fails → still write the report with Tests
failed, list the failures under Open issues, and make no Tests claim. A failed run is evidence too.