/jleechan-skills:evidence-standardsfrom jleechan-skills
Defines evidence standards for claims in PRs, including claim-proportionate evidence, raw data completeness, redaction rules, and bundle/manifest requirements. Use before gate fixes or when claiming a behavior is fixed.
Ships in jleechan-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
For proportional evidence classes, follow pr-lifecycle. For PR-description publication, follow its stage-exit receipt contract. This skill owns evidence content and integrity, not a second lifecycle policy.
Bundle, manifest and media rules below apply when a claim relies on actual test, runtime or artifact proof. Source-only skill guidance follows the lifecycle Markdown instruction-only route and its one or two independent source-reviewer rule; it does not automatically start an evidence campaign. This scope clarification does not waive named domain proof or grant approval or merge authority.
For every evidence claim, /es must deliver the complete claim-scoped raw data
needed to assess it, including failed and incomplete attempts, through an
authorized, retrievable access path. Keep summaries separate as navigation and
interpretation; a summary, manifest, checksum list, or another reviewer's report
does not replace the underlying records and content. This completeness boundary
covers only data relevant to the claims and applicable owner requirements; it
does not require unrelated repository dumps or new evidence classes.
Protect secrets and sensitive data. Preserve raw originals in their authorized
store and provide reviewers safe, redacted content that retains all substantive
claim-relevant bytes. Where redaction is necessary, preserve integrity and
provenance, and have the reviewer independently run a nondisclosing comparison
against protected originals using the preserved body bytes. Producer-only
attestation is not enough. Keep credentials and protected originals out of
reviewer/model output; if a safe independent comparison cannot be made, report
the affected raw portion unavailable. Credential-only redaction does not justify
replacing substantive raw content with a summary. Do not expose secrets, read
.env files, or place unredacted credentials in reviewer or model output.
Identify each claim-scoped raw item as available or unavailable; missing portions
and the reason must be explicit.
Compact proof still retains the entire claim-scoped raw evidence set, along with primary artifacts, source provenance and hashes; mark irrelevant server/PID/provider fields N/A with reasons instead of inventing runtime metadata. Source hashes alone do not prove execution.
Evidence must prove what you claim. The strongest evidence is a raw request/response capture from the real production code path; a unit test in isolation proves only its bounded deterministic claim, not a live boundary. Match proof to the claim, label every claim with its evidence layer, and never substitute a green test suite for proof of integration correctness. This file is the policy; the companion files (see § Cross-references) cover structure and recording.
evidence-coverage). For visible copy, show the label or its absence in the matching rendered state on each revision. Source quotes alone apply only to verified non-rendered changes with no runtime impact. Code that runs on only one platform (Platform.OS branches, *.web.*/*.native.* files, window/document/history listeners, native-only modules) must be listed path by path, with its user-visible behavior proved on the platform where it executes.After any evidence-gathering pass, you MUST reconfirm what the evidence proves and what it does NOT prove, in your response to the user as well as in the bundle's "What This Evidence Does NOT Prove" section. That section lists untested scope only: observed behavior that the user's acceptance or the UI's own disclosure forbids is a FAIL, never a limit or follow-up (evidence-review check 9).
When a claim asks for video, the artifact MUST come from a genuine continuous browser, screen, or terminal capture (including a continuous .cast or native event timeline) that preserves the real timeline across the applicable before→after transition and, when a user action exists, from before that action through the resulting state. Never create, deliver, attach, or approve slideshow output, even when labeled sampled, selected-frame, summary footage, or “not video”: screenshot-concat files, sampled or selected-frame montages, repeated-still padding, and still-image sequences encoded as MP4 are forbidden even when they have captions, real pixels, a normal frame rate, valid H.264 metadata, or a successful decode. A contact sheet, screenshot, or diagnostic frame extraction is allowed only as a static diagnostic and never substitutes for video evidence.
Check the producer and publisher, not only the output container: trace the artifact to the continuous recorder, its raw timeline, and the applicable before-to-after transition, including the action and resulting state when a user action exists. Decode and checksum probes establish file integrity only; they do not establish continuity. A real capture may contain unchanged waiting intervals, but a derived caption, transcode, redaction, or authorized trim is valid only when it preserves the timeline of an actual continuous source. If only a slideshow exists, the video claim FAILS and the evidence is undelivered; do not relabel it as a limitation, N/A, or PASS because transport, tests, or metadata succeeded.
Before the first expensive call (real-LLM batch, browser run, replay sweep), write one sentence:
"This campaign will explain , and if it comes back , the explanation is ."
For a new feature with no reported failure, name the requested acceptance claim and the observable result that will satisfy it. If neither a reported symptom nor an acceptance claim can be stated, you are not gathering evidence, you are decorating a claim. Stop and re-aim.
Hard rules:
~/.claude/skills/ablation/SKILL.md) over synthesizing new prompts. Synthetic prompts test the schema; captured payloads test the bug.Recurrence log: violated 2026-08-16 (research fanout instead of ablation), 2026-08-18 (ranked a 4-6% lever while a 58% one sat unranked), and 2026-09-07 (360 real Gemini calls proving schema conformance while the reported ~75% memory miss went unmeasured; a zero-LLM-call forensics pass the same day found the two real root causes).
A computed figure (p-value, denominator, interval, rate) stated in a README, PR body or commit message must be readable from a committed artifact, not only from the prose asserting it.
Observed 2026-09-07: a bundle claimed fisher_exact_greater() "reproduces both values" while the committed filter used a different cohort (n=70 vs n=50) and returned different p-values, and claimed summary.json "now carries the data" while that file's hash was unchanged. Review caught both, not self-check.
For claims about integrated or live production behavior:
httpx.MockTransport, responses, respx with a recorded body) — Layer 2 mock-at-network.Real beats fast: a 30-second test against the real local server beats a 200-test mock suite for proving "the server behaves like X."
For a changed backend boundary, exercise the real entry point, middleware, handler and every dependency needed by the claim on both revisions. Use the same request and equivalent starting state. Retain the raw method/path, relevant headers and request body, response status and body, and separate readback of any claimed write, event or other effect. Keep originals in authorized storage. Share only authorized, traceable sanitized evidence; never expose credentials or sensitive payloads.
Synthetic mock JSON, DOM fixture injection, or calling frontend rendering functions with hand-crafted JSON in the browser console is strictly forbidden for UI evidence. Only UI driven by a real running server (local development server or live deployed preview) rendering real backend responses is valid Layer 2 UI evidence. Unit and mocked-fixture captures are supporting evidence only and do NOT prove UI integration correctness.
Compare the rendered pre-change implementation (BEFORE) and candidate implementation (AFTER) for every user-visible change. Apply the lifecycle proof rules: matched captioned screenshots or readable settled frames in captioned video for static claims; continuous captioned video for sequence claims. Keep required desktop/mobile coverage.
BEFORE: WITHHELD — <reason> and withhold the comparison claim. Never reproduce unsafe behavior just to obtain media. This waives no separate bug-reproduction, real-server, review or publication requirement.Before producing evidence for a claim over a set (all 14 agents, every mode, each class), FIRST declare the envelope and get acceptance:
Reachability is computed, never a hardcoded list (a frozen "X is unreachable" verdict is itself a ZFC violation): state it as the observed union of real routing plus the named structural exclusion. Never manufacture breadth via a non-production path (direct SDK, mock, reconstructed input); fake-complete is FAIL, and honest-partial plus envelope wins.
No silent partial — lead with the gap. The FIRST line of breadth evidence MUST be "DELIVERED X of N; DID NOT DELIVER N−X (reason)", before any "✓"; burying the shortfall is a silent partial failure, worse than refusing. In that line, separate gate-excluded (true impossibility; name the gate) from not-yet-driven (reachable, no scenario built yet). Never report "undriven" as "impossible."
Generate the report from a per-item ledger, not free narration. One row per requested element: item | status (DELIVERED / GATE-EXCLUDED / NOT-YET-DRIVEN / UNDETERMINED) | reason | artifact. Compute counts from the ledger so no item is dropped and no cause is applied to a group without a per-row reason. Before writing GATE-EXCLUDED, confirm the gate is intrinsic to the item, not to a turn/run type: a gate on "turns emitting tool_requests" excludes turns, not agents, so a tool-capable agent is NOT-YET-DRIVEN/UNDETERMINED, never statically impossible. A static "impossible list" that is really a per-run property is a ZFC violation.
A moving HEAD does NOT invalidate evidence by itself. Evidence captured at a prior SHA stays valid at HEAD while the delta between them leaves every claim it backs intact. A docs typo, comment, type-hint or lint-only commit usually needs no fresh run; a changed test assertion, evidence driver/capture, prompt, contract or executable instruction that a claim depends on does. Flagging evidence "stale" only because the SHA moved is an over-correction.
The check is a diff, not a SHA comparison:
metadata.json.provenance.git_head or the bundle README).git diff <evidence-sha> HEAD — read every changed file's content diff against the claims it could affect..claude//.codex//.cursor/ skill or agent file whose assertion, driver or executable instruction changed can invalidate the proof it supports.Fresh evidence IS required when the delta changes production behavior or anything a claim depends on: a test assertion, evidence driver/capture or executable instruction backing the claim; production code (the repo's source tree excluding its test dirs, including prompt/template surfaces; the repo-level /es file names the exact paths); API/endpoints/game logic/agent routing; runtime config (env vars, feature flags); DB schema/migrations; or a deploy/preview workflow. For a mixed diff, rerun only the proof its behavior or claim-dependent changes affect.
Rationale: rerunning real-server + real-LLM evidence for a docs typo or test rename burns hours for zero added confidence. If the behavior's code is byte-identical at HEAD and no assertion or driver backing it changed, the proof is valid at HEAD. Repo-level files may add project-specific context; discover the applicable evidence companion in the active repository’s policy or skill catalog. Shared pr-lifecycle precedence governs conflicting lifecycle copies; domain-specific proof and separate safety/merge restrictions remain. Repo overlays cannot waive the delta-and-claim test above.
Before a behavior fix, use the existing smallest suitable harness to reproduce the reported failure against the exact pre-change revision, then run the same scenario against the candidate and preserve both revisions, inputs and outputs. Source/trace inspection and authorized diagnostic instrumentation may be needed to build that reproducer. A missing reproducer blocks an unproven fix claim, not continued diagnosis. Real-service failures still need the real boundary; a fast unit test cannot substitute for a cross-service reproduction.
Cheap gates (unit/focused tests, lint, compile) iterate freely per commit. Review scheduling follows pr-lifecycle/SKILL.md's canonical lifecycle; keep enforcing the required correctness and evidence checks. Final expensive evidence (real-server + real-LLM runs, packaged RED/GREEN comparisons, browser/video capture, bundle assembly) runs ONCE, at the END, after code is complete: all review findings resolved or explicitly deferred, focused tests green, no known remaining code work. Freeze the HEAD, then run the expensive stack against it. Mid-iteration runs are voided by the next fix (PR #9604/#9640, 2026-09-01: ~40 of 50 commits were evidence churn, and the RED/GREEN pair and bundle still needed a full rerun). The final comparison may replay the preserved baseline beside the completed candidate; scheduling that package last does not defer the initial failure reproduction past the fix.
Rerun expensive evidence ONLY on a material change under § Evidence Staleness Tolerance. Triage review findings by materiality FIRST: findings that block correct behavior must be fixed and reverified, while style, nit, doc or wording feedback may be tracked without weakening required correctness gates. Batch ALL pending behavioral fixes into ONE new SHA before any rerun; never rerun per finding.
Evidence harness/infra code is not the feature: building or hardening capture harnesses inside the feature PR moves the HEAD and voids gates. Land harness changes in their own PR first, then freeze the feature head.
Before an expensive FINAL run, record a reusable launch capsule: FINAL or DIAGNOSTIC, exact worktree and SHA, absolute interpreter, command and output paths, nonsecret effective provider/model settings, and dedicated test-account scope. Run cheap import, browser and provider-selection preflight through that same invocation before provider calls, and confirm behavior work is settled for FINAL. Reviewers reuse the exact capsule. Setup failures remain setup failures until raw provider proof supports a product or auth diagnosis.
Before expensive capture, verify the actual producer identity and provider, downstream logging target, and readiness in the child that will run it. Confirm canonical control IDs and the observed terminal envelope; an absent optional success field does not mean false. Reuse the existing pipeline; do not add mocks or retry loops. If a harness fails after controlled state was persisted, resume it through the real SDK only when readback proves its preconditions, and record the resume source and limits. Complete published PR-body media (including the GIF derivative manifest) and direct raw RED/GREEN delivery before starting the final /er. This sequencing does not delay cheap code or advice review, which may run earlier or concurrently.
| Class | Description | Layer | Acceptable for production claim? |
|---|---|---|---|
| real-callstack + real-LLM | Real https://generativelanguage.googleapis.com/... POST, real response streamed | Layer 2 | Yes (required for LLM-behavior claims) |
| real-callstack + mock-at-network | Real callstack, HTTP boundary mocked with recorded body | Layer 2 | Yes, for non-LLM claims |
| real-callstack + real-BQ/HTTP | Real BigQuery / Firestore / HTTP insert | Layer 2 | Yes |
| real-callstack + in-process SDK mock | gemini_provider.get_client = lambda: _FakeClient() — SDK short-circuited | Layer 1 synthetic-LLM | No (named anti-pattern, see below) |
| unit test | Isolated deterministic execution | Layer 1 | Bounded deterministic claims only; never live-boundary proof |
| none | No artifact, just assertion | — | No |
Choose sufficient evidence with pr-lifecycle § Change-impact review and test depth, /4layer and testing-layers, never by line count alone. /es stays the evidence-classification gate; it does not force every production edit through live LLM or browser capture.
A bounded deterministic claim may use fresh focused unit RED/GREEN and affected regressions when the changed logic is self-contained and no service, model, security, persistence or browser boundary is implicated. A small single-function fix can qualify; small size alone does not. State exactly what the unit proof covers and does not cover, keeping commands, results and tested SHA.
Unit proof is insufficient for model compliance, auth, persistence races or browser behavior, and no amount of unit coverage proves an unexercised integration or live boundary. Integration claims need the implicated real callstack and boundary; model behavior needs real-provider proof where lower layers cannot establish the claim. Never replace required real-service captures with mocks or replays; all existing real-service-only directory contracts remain in force. Non-production work still needs proportionate checks, and a test assertion, shared driver, CI rule or agent policy change can invalidate existing evidence.
Mocks at the in-process function boundary are not mocks at an external API boundary. When the production path includes a third-party SDK (google.genai, openai, anthropic, ...), mocking a wrapper inside the codebase replaces the whole SDK with fabricated objects: the downstream call-graph runs end to end, but the data flowing through it is synthetic.
Detection signal: the verify script imports the production module AND overrides any function in that module's call-graph that talks to the SDK. If the SDK constructor itself is reachable, the LLM is real; if the SDK is short-circuited, the LLM is synthetic regardless of what else is real.
Per-claim layer label is mandatory. Every /er verdict claim ends with [Layer N source]:
[Layer 1 unit] — monkeypatched, no real callstack[Layer 1 synthetic-LLM] — real callstack but in-process SDK mock[Layer 2 mock-at-network] — real callstack, HTTP boundary mocked with recorded body[Layer 2 real-LLM] — real callstack, real provider POST, real response streamed[Layer 2 real-BQ] — real callstack, real BigQuery HTTP insertA claim mixing Layer 2 (real BQ) with Layer 1 (synthetic LLM) is not Layer 2 proof for its LLM-behavior part: the /er verdict for that claim must be PARTIAL or FAIL, not PASS. A claim without a layer label is non-compliant and its verdict is downgraded to PARTIAL.
For deployed browser claims, before publishing a preview or readiness statement, assemble its receipt from the active deployment output: deployment timestamp, exact outward URL, served frontend/build revision, backend revision and actual datastore target (mark absent components N/A with a reason). Use that same URL for the browser run and delivery text. An alias serving identical bytes does not inherit origin-dependent auth or return-route proof. Deployment history, artifact checksums and health responses do not establish the active user flow. A diagnostic preview may be shared with its observed limits stated.
For each in-scope authentication claim, distinguish provider handoff, authenticated return, email submission, actual inbox receipt, redemption and settled outcome. Picker opening or send acceptance alone cannot pass a completion claim. For saved state, correlate the run with independent datastore readback and reload; name the actual project/database and whether it is hosted or emulated. Emulator or fixture proof cannot qualify a hosted-service claim.
Derive each scenario verdict from its authoritative acceptance criteria, including the first settled destination and required record identities/content. A wrong landing is FAIL even when records transfer successfully; later navigation does not repair that run. Preserve original verdicts when correcting a runner and rerun affected cases. Report qualifying passes, failures and open cases separately from footage inventory. Bind qualifying media to its scenario, original URL, build pair, datastore, observed result and applicable revision; distinguish continuous playback from sampled-frame inspection. Before reuse, verify the capture's claim-relevant bindings against the active outward URL, served frontend and backend revisions, and datastore target. Apply the staleness rule across revision changes only when the claimed behavior and its evidence dependencies are verified unchanged. File count and historical passes alone establish no current applicability. A changed claim-relevant origin or datastore, or an applicable binding you cannot verify, requires fresh proof on the active deployment or a withheld claim. For deployed copy claims, verify the rendered text; for spacing claims, measure the affected gaps and preserve touch targets. Use applicable mobile and desktop widths and comparable before/after evidence. A local source edit earns no deployed proof.
Keep the original evidence and its provenance intact. Give the intended reviewer accessible reproduction directions and artifact links in the PR, a checked-in document, an access-controlled receipt/store, or an authorized gist, including the reviewed/tested SHA, dependencies, exact commands and expected results the evidence class requires. Underlying artifacts may stay in authorized private hosting. The separate sanitized review receipt follows pr-lifecycle § Review records in the PR description, including its gist URL (or, for a one-liner fast-path /es record, the PR-body section), exact reviewed SHA, and PUBLICATION BLOCKED state when publication cannot complete. Artifact hosting is not review-record completion.
Publish or send artifacts only to the current task's authorized audience and destination. Sanitize any shareable copy, keep private originals, and identify the relationship between them. A viewer without sign-in is a public destination even when linked from a private PR. An unlisted gist is accessible to anyone with its URL; it is not an access-controlled secret store.
In authorized evidence, redact authentication tokens, including bearer, access, refresh, custom and session tokens and token-bearing URL components. Account emails and IDs may stay visible; their presence alone is not a privacy defect or an extra redaction or approval gate. Ordinary game/test content likewise needs no separate privacy certification merely because it is readable.
Follow any actual repository gate requiring particular in-tree evidence paths.
For the producer-owned bundle layout, inventory, trace paths, manifest/checksum coverage, and the required Claim → Artifact Map plus What This Evidence Does NOT Prove disclosure, see bundle-anatomy.md. Use the producer's actual format and map its fields/paths explicitly; do not recreate stdout or invent sidecars. Keep all applicable raw proof, provenance and owner-required media. A complete checksum set proves integrity only; it does not prove execution or replace the layer and SHA-applicability rules above. Preflight and freeze the complete bundle with existing producer/sealing utilities before formal review; corrections belong to the producer and require an updated identity and applicable delta review.
Worked request/response, model, and video examples are intentionally omitted: the layer table above, the producer contract, ui-video-evidence, and pr-lifecycle are the maintained sources.
For UI claims, use a real running server rendering real backend responses and follow ui-video-evidence plus the lifecycle's visual gate. Mocks, DOM injection and hand-crafted browser data can support unit claims but never prove UI integration. Unless an explicit lifecycle exception applies, capture comparable BEFORE/AFTER implementations; use desktop 1440×900 and mobile 375×812 coverage where applicable. Interaction, navigation, streaming, animation, transition, loading and timing claims require captioned video; a simple static visual may use matched captioned screenshots with the reason recorded.
Bind each capture to the served app/build SHA, capture-driver revision, dirty
diff/hash, exact commands, original UTC time, environment and raw artifact
paths/hashes. Preserve raw media and map every derivative to its source hash and
transformation command. A candidate pre/post journey is not a pre-change
baseline; if no applicable baseline can safely be captured (or, for a non-fix
claim, recovered), record
BEFORE: WITHHELD — <reason> and withhold the comparison claim.
Published screenshots must render inline (not text-only links); use width 450
for desktop and 360 for mobile comparison tables (800 for a side-by-side
comparison slide). Video publications retain an inline GIF from the same run
beside a playable MP4/H.264 link unless the authorized destination supplies an
equivalent inline form; GitHub does not, so PR bodies need the GIF. Text-link
media cells in a findings table need inline copies. The element under test must
change in the pixels, not only in a caption; below-fold or caption-only video
does not prove the claim, and an independent reviewer must decode the relevant
frames. Verify the intended
reviewer's access, media content type and rendered PR-body URLs. For video, play
the exact delivered file through the claimed action and the settled destination.
Check that captions, masks and crops preserve the complete screen. Use clickable
authorized hosts rather than gs:// or storage.cloud.google.com/ links. The
sanitized receipt lists the same media hashes and access mode. Never make private
media public merely to satisfy reachability, use placeholders/crops that hide the
changed element, fabricate a baseline, or leave required media only in a
gist/comment.
This is the user-scope (global) /es policy. For complete evidence standards, always read both this skill and the relevant repo-level file:
~/.claude/CLAUDE.md § "Evidence — match proof to the claim" and § Unit proof and claim boundaries above. Use the current claim-based rule, not obsolete blanket production/size-only exceptions. Preserve UI-video and risk-specific requirements; the repo overlay names its triggers.<repo>/.claude/skills/evidence-standards/SKILL.md (or, in repos that keep it flat, evidence-standards.md under <repo>/.claude/skills/) with project-specific extensions (e.g. your-project.com has dice-claim, campaign-isolation, BigQuery and Gemini specifics). Always read both and apply the scoped precedence rule; repository domain proof does not override the shared lifecycle.bundle-anatomy.md (bundle structure, JSONL shapes, integrity rules), tmux-video-evidence.md (tmux/asciinema recording), ui-video-evidence.md (browser/UI video).Adjacent skills: evidence-review (/er — the per-claim audit), tdd-evidence-workflow (TDD-specific evidence patterns), streaming-evidence-standards (streaming-response signed-payload evidence), ui-bug-proof (RED-before-GREEN UI bug reproduction).
What SKILL.md sets; muted values are Claude Code's defaults
Before /er, /green, gate fixes, or AO worker dispatch on a PR that touches production code paths. Also when claiming a behavior is "fixed" or "working" and you need to prove it.
242 skills in this plugin
/4layer/4layer - Four-Layer Minimal Repro Testing Protocol/ablationUse when diagnosing a bug in LLM/model behavior, or any stochastic system, where the cause is disputed or theorized rather than measured. Slash commands `/ablation` and `/abal`. Enforces the rule that you manipulate the REAL captured input and replay it through the REAL production path, one variable at a time, with a verbatim control arm run first to establish the base rate. Trigger phrases include "ablation", "ablate", "what actually causes", "is X the trigger", "prove the root cause", "A/B the payload", "does removing X fix it", "why does the model do this", "test the hypothesis", "root cause is disputed"./accept-adapt-rejectTriage incoming feedback into Accept / Adapt / Reject buckets with structured verdicts and follow-up actions. Triggers on /aar, /accept-adapt-reject, or review triage./adjustment-proofUse when proving, rejecting, or deleting backend adjustment registry entries with real LLM evidence and independent disabled-adjustment worktrees./adviceUse when a focused second opinion is needed; collect the applicable independent, full-coverage reviewer votes on an exact change or saved-document bundle./agent-orchestratorUse this skill when working in repositories managed by Agent Orchestrator or when the user asks how to use `ao` properly. Covers the default AO workflow: bootstrap with `ao start`, dispatch work with `ao spawn`, inspect progress with `ao status` or `ao session ls`, steer sessions with `ao send`, and recover or clean up sessions safely. Includes strict parameter fidelity, pre-spawn cap cleanup, quota-wall fallback, and post-spawn verification.Claude Code refuses to install this plugin
.claude-plugin/plugin.json: commands: Invalid input, agents.0: Invalid string: must start with "./", agents.0: Invalid string: must end with ".md", skills.0: Invalid string: must start with "./"
.claude-plugin/plugin.json: commands: Invalid input, agents.0: Invalid string: must start with "./", agents.0: Invalid string: must end with ".md", skills.0: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.