Evidence review

From jleechanorg/claude-commands · View interactive version

Evidence review is an AI agent skill from the GitHub repository jleechanorg/claude-commands. Enforcement rules for reviewing evidence artifacts against the evidence-standards skill. Invoked by /er. Produces PASS / PARTIAL / FAIL / INCONCLUSIVE verdicts.

How to use this skill

Skill file

Evidence Review Skill

Claim-proportionate evidence and publication

For claim-proportionate proof, follow pr-lifecycle; for PR publication, use its stage-exit receipt contract. Evidence content and integrity remain governed by evidence-standards.

Retained review integrations

Follow pr-lifecycle's retained review integrations for skill discovery (including on a remote host), UNAVAILABLE reporting, quorum and disclosure boundaries.

Purpose: review evidence for a claim, a path or a PR, and produce a verdict with specific artifact-level citations. evidence-standards (/es) defines what to produce; this skill defines how to judge it. When in doubt about a requirement, read the standards first.

Invoked by: /er [subject or path]

Standards source: evidence-standards skill (/es). When in doubt about a requirement, read the standards first.

Repo overlay (always check): this is the user-scope (global) /er policy — the floor. Before judging, resolve repo overlays through the target repository's instructions/catalog. Check <repo>/.claude/skills/<overlay-name>.md and <repo>/.claude/skills/<overlay-name>/SKILL.md, where overlay-name is evidence-review or evidence-standards; inspect both forms if present. These add domain-specific proof (e.g. worldarchitect.ai adds BQ/streaming/dice modes). For lifecycle stages, generic review routing, proportionality and SHA reuse, the shared pr-lifecycle precedence rule governs conflicting copies. Domain proof, security and separate merge authority remain intact.


Evidence-only scope and read-only dispatch

/er approves evidence for the actual claims, not full source correctness or an

/advice vote. /er is not source approval and does not count toward source-review

quorum; likewise, a source-only reviewer vote does not count as evidence

approval or establish that raw evidence was reviewed. Read the complete

base-to-head diff to derive explicit and implicit claims,

then inspect claim-relevant source, artifacts, and provenance. Do not require prior

source approval or an adjacent, undeclared source-review log. If claim-relevant

source or provenance is missing, withhold the affected evidence claim rather than

guessing.

Completeness means every artifact needed for the actual claims and applicable

owner requirements, not a whole-repository semantic dump to restamp unchanged

proof. This scope boundary does not waive real-service, auth, provider, BQ,

source/provenance, visual or integrity gates, independent code/advice quorum, or

separate user/merge authority. An observed acceptance violation remains FAIL,

never a limitation or nonblocking P1.

For every claim being reviewed, directly open and inspect **all available

claim-scoped raw evidence content and source records**, including failed and

incomplete attempts. Reconcile the underlying records to the claim, provenance,

and any derived summary; independently check the content, not only hashes,

filenames, manifests, ledgers, or another reviewer's summary. Record which raw

items were inspected and which were unavailable, with the affected claim and

reason. This requires the full relevant evidence set, not unrelated repository

data or new evidence classes.

Apply the redaction and protected-original comparison requirements in

evidence-standards. Never request or expose

secrets, read .env files, or put unredacted credentials in reviewer/model

output. If raw evidence required for a claim cannot be opened or independently

reconciled, and no inspected artifact establishes a contradiction or acceptance

violation, mark that claim INCONCLUSIVE and do not approve it. A contradiction

or observed acceptance violation in inspected evidence remains FAIL under the

verdict rubric, even when another portion is unavailable. Label summary-only

review as limited; it cannot replace the raw-evidence review gate. Record other

claims' independently supported coverage separately.

Every review dispatch, including coordinator asks, must explicitly say: remain

read-only; do not mutate source/evidence, post, push, update branches, or change

PR metadata/stages. Return findings only. Do not regenerate evidence or write a

verification report into the producer bundle. Frame extraction may use unique

review scratch without changing original media. The separately authorized owner

handles fixes and publication; a review invocation does not authorize them.

Claim and artifact preflight

Inventory claimed artifacts and reconcile raw bytes, provenance, and checksum

coverage with existing utilities. Map canonical producer files to /es duties;

do not demand duplicate logs. Independently verify coverage and bytes, and

reproduce each applicable documented check. Runtime claims require actual

runtime/provider provenance. Missing claim-required proof is non-approving.

Source-only Markdown changes do not trigger an artifact campaign; runtime or

artifact claims retain named domain proof. Batch fixes before dispatch

(advice §5); use Phase 0 for

later deltas rather than relabeling old evidence.

Verdict Rubric

| Verdict | Meaning |

|---------|---------|

| PASS | Every claim has a matching artifact of STRONG quality and every applicable mandatory check below passes. Satisfies the draft-phase /er gate when /er is applicable. |

| PARTIAL | Some required claims are supported, but coverage is incomplete because at least one required claim lacks proof or a warning identifies a gap in required proof or evidence integrity (including a relevant warning in an optional verification_report.json). An unrelated optional warning does not change the verdict. Does not satisfy the draft-phase /er gate. |

| FAIL | A claim is contradicted by an artifact, or integrity is broken (sha256 mismatch, dirty capture producing the claim, scope exclusion). |

| INCONCLUSIVE | Not enough artifact data exists to decide. Request more. |

Lifecycle applicability

The canonical pr-lifecycle contract owns /er

applicability, phase, and SHA-bound reuse or delta review. Resolve that route

before invoking this skill; do not restate or expand its exceptions. Preserve

original tested/reviewed SHAs and explain candidate applicability under its

delta rule. Follow the lifecycle and domain owners for any separate review,

runtime-proof, or publication requirements.


Mandatory Pre-PASS Checks (all must pass)

1. Bundle integrity

The example below handles the default manifest and sibling modes. If the

canonical producer uses another aggregate filename, explicitly record its mapping

to the same complete coverage contract and verify it with the existing producer

verification utility or sha256sum -c <mapped-manifest> instead. A filename

difference is not missing integrity; absent coverage or mismatching bytes is.

(
  bundle_dir='<bundle_dir>'
  cd "$bundle_dir" || { echo "Failed to enter bundle directory" >&2; exit 1; }

  if [[ -f checksums.sha256 ]]; then
    sha256sum -c checksums.sha256
  else
    cs_list="$(mktemp)" || exit 1
    if ! find . -name "*.sha256" -type f -print0 > "$cs_list"; then
      echo "Failed to discover checksum files" >&2
      rm -f "$cs_list"
      exit 1
    fi

    found_any=false
    status=0
    while IFS= read -r -d '' cs_file; do
      found_any=true
      dir="$(dirname "$cs_file")"
      base="$(basename "$cs_file")"
      ( cd "$dir" && sha256sum -c "$base" ) || status=1
    done < "$cs_list"
    rm -f "$cs_list"

    if [ "$found_any" = false ]; then
      echo "No checksum files found" >&2
      exit 2
    fi
    exit "$status"
  fi
)

Checksums establish integrity, not provenance. A matching digest proves only that the reviewed bytes match the manifest, not where they came from, which code path produced them, or that they demonstrate the claimed behavior. For STRONG evidence, also resolve the primary raw artifact against its capture provenance (for example metadata.json.provenance.git_head, runtime/process metadata, and the raw request/response or test output that directly shows the claim). A claim supported only by a checksum or manifest entry is MISSING, not STRONG.

2. Verification report ceiling

verification_report.json is optional unless the subject claims verifier output exists.

if [[ -f verification_report.json ]]; then
  jq -r '.overall_verdict' verification_report.json
fi

3. Scope note consistency

grep -A10 "Scope note" README.md

4. Video artifacts required by the claim

Select video requirements from the user-scope evidence-standards (its UI/media proof section is the source for the claim list below), the repository UI owner and the lifecycle proof rules. A comparison claim whose before side is recorded BEFORE: WITHHELD stays INCONCLUSIVE (the portable spec's WITHHELD) and blocks readiness while required. An independent reviewer (not the author, driver or evidence producer) who accepts the stated reason in a receipt bound to the current head excuses only the run: judge only a narrower claim that other evidence supports, never the original comparison. For claims about rendered UI or media: interaction, navigation, streaming, animation, transition, loading and timing claims need captioned video; a simple static visual may use matched captioned screenshots with the reason recorded; named risk-specific and user-required proof still apply; a rendered claim that fits neither needs captioned video. Claims with no rendered or user-visible output follow their own evidence class, not this video rule. Tie each artifact to the tested SHA. Terminal recording is required when the relevant owner or user asks for it or the claim depends on terminal behavior; a test invocation alone does not create a GIF-plus-MP4 requirement.

For each applicable video requirement, verify:

A missing or inaccessible media format yields PARTIAL only when it is

supplemental and the claim's decisive raw evidence has been inspected. If the

media is the claim's decisive raw proof and cannot be opened, mark the claim

INCONCLUSIVE under the raw-coverage rule above, unless inspected evidence

establishes FAIL. Record inapplicable formats as N/A with a reason; do not

impose terminal and browser video on every PR.

Video acceptance needs an independent content review. When a video backs an acceptance claim, an independent AI reviewer (not the author or orchestrator) extracts frames from the published video itself (not the capture's own screenshots) and returns PASS/FAIL per acceptance step with the timestamp where it is visible. Privacy masking, decode/playback, upload read-back, captions, and turn-record or coverage-judge JSON are separate checks and never substitute. No content review → PARTIAL; a step the frames contradict → FAIL.

Mandatory AI Visual Inspection (VISUAL APPROVED at <40-char-sha>): applicability, record contents and SHA binding are owned by pr-lifecycle's visual-approval contract. For any user-visible change outside the documented exemptions, the approving seat (an /advice visual lane, /dot, or an /er visual lane run by a seat other than the one that produced or reviewed the evidence, as that contract requires) MUST download and visually inspect the actual rendered image or extracted video frames, never just URL status or checksums, and record VISUAL APPROVED at <40-char-sha> (or VISUAL REJECTED at <40-char-sha>) with the per-claim findings that contract requires. A link-existence check or pending request (e.g. /dot: REQUESTED, pending) is NEVER a visual approval PASS: it caps /er at PARTIAL and blocks stage:5-final-approval and merge readiness.

5. Media hosting check

Apply this check when inline or linked media backs a claim; it does not by itself require publishing an otherwise private evidence bundle. Evidence classes and hosting rules are owned by evidence-standards (§ UI/media proof); this check applies them and adds no stricter hosting rule.

Media the intended reviewer cannot open or play is INCONCLUSIVE when it is

the claim's decisive raw proof; it is PARTIAL only for a supplemental format

when the claim's raw evidence has already been inspected. An inspected

contradiction or acceptance violation remains FAIL.

6. Self-contained / clean-computer reproducibility

Apply the reproducibility requirements for the evidence class in evidence-standards. A PASS needs self-contained directions that identify:

Directions may live in the PR, a checked-in document, an access-controlled evidence receipt or an authorized gist. Link them and ensure the intended reviewer can access them; this check does not authorize external publication.

Failure mode: instructions that only say "see the repo" or "run the tests", without exact commands and expected results → PARTIAL.

7. Anti-Fabrication & Telemetry Verification (Bead rev-wghca)

Report & Bead-Close Discipline (Bead rev-siiir) — provenance: on one mission, three consecutive completion reports asserted numbers the cited artifact contradicted, and two P0 beads were each closed twice against acceptance criteria written plainly in their own bodies:

BigQuery Query-Discipline Traps (worldarchitecture-ai.llm_forensics) — these produced real wrong numbers and apply wherever a reviewer queries telemetry for this gate:

8. Branch & Commit Containment Verification

9. Observed acceptance violations

Before PASS, list every forbidden-state observation in the raw artifacts (request ledgers, logs, frames) and compare it verbatim with the user's stated acceptance and the UI's own disclosure text.

Example: if a warm-up request fires while consent is off under a dialog saying "Nothing is sent until you allow it", neither filing it as a nonblocking follow-up nor handing the reviewer a "transport-only" assessment allows PASS, and no video bundle passes without an independent AI review of the frames.


Review Procedure

Phase 0 — Staleness gate (run before anything else)

Resolve the last ER-VERDICT: and its original HEAD, base, claims, evidence, and

phase. Apply pr-lifecycle's SHA-binding rule:

a matching HEAD alone does not establish unchanged scope or coverage. Record

candidate applicability without restamping the original verdict. Recheck claims

affected by changes to behavior or to a dependent assertion, driver, or

executable instruction, using the review coverage the lifecycle requires.

If impact cannot be bounded, rerun the affected review; batch fixes first.

Continue necessary review and already-authorized fixes within the task scope and autonomy deadline. A review-only invocation reports findings without editing the reviewed source or evidence; fixes use write authority the parent task already holds. Review count alone does not require escalation; ask only for missing authority or an unresolved decision that blocks the affected action.

Phase 1 — Inventory

  1. Enumerate all artifacts referenced by the subject (bundle dir, PR description,

run.json, metadata.json, gist, release assets), including the complete

claim-scoped raw set and failed or incomplete attempts. Record unavailable

items with the affected claim and reason.

  1. Enumerate all claims (from PR description, commit messages, or user-provided claim list).

Phase 2 — Claim-to-Artifact Mapping

For each claim, identify the single primary artifact that proves it. Rate quality:

| Quality | Meaning |

|---------|---------|

| STRONG | Claim directly observable in a raw artifact (log line, screenshot frame, test output) with resolved capture provenance; checksum integrity is necessary but not sufficient |

| WEAK | Claim is indirect — derived from self-reporting (evidence.md, summary.md) without raw backing |

| MISSING | No artifact supports the claim |

| INVALID | Artifact-quality label only: an artifact exists but contradicts the claim, or fails integrity check. Overall verdict remains FAIL. |

Phase 3 — Mandatory Checks

Run each applicable check in "Mandatory Pre-PASS Checks" above. Record its result, or N/A with the scope reason.

Phase 4 — Verdict Table

Produce output in this format:

## Evidence Review Verdict

**Subject**: <what was reviewed>
**Bundle**: <path>
**Raw coverage**: inspected <claim/items>; unavailable <claim/item, reason> (or None)
**Overall**: PASS | PARTIAL | FAIL | INCONCLUSIVE
**Confidence**: HIGH | MEDIUM | LOW

### What This Evidence Proves vs. Does NOT Prove
**Proves**:
- <list of specific, verified claims supported by STRONG artifacts>

**Does NOT Prove**:
- <list of limitations, untested scenarios, or claims with WEAK/MISSING artifacts>

### Claim Map
| # | Claim | Artifact | Quality | Notes |
|---|-------|----------|---------|-------|
| 1 | ...   | run.json | STRONG  | Line 42 shows ...|
| 2 | ...   | (none)   | MISSING | No artifact found |

### Mandatory Checks
- [x] bundle or per-file checksums verified → 38/38 OK
- [x] verification_report.json absent/not applicable, or overall_verdict = PASS
- [x] Scope note matches claimed domain
- [x] Required or claimed terminal media: <verified artifacts, or N/A with reason>
- [ ] Required or claimed browser media: <verified artifacts, or concrete missing artifact and verdict>
- [x] Linked reproduction directions: <location with exact SHA, dependencies, commands, and expected results>

### Violations
1. <specific evidence item that fails>

### Accepted Exceptions
1. <with rationale from verification_report.json>

### Recommendations
1. <non-blocking suggestions for future bundles>

Anti-Patterns to Reject


Invocation Contract (`/evidence_review` / `/er`)

/er [subject or path] combines this skill's judging rubric with a manual evidence-standards compliance pass into one verdict.

Skill-load guard is mandatory. Before any review, resolve this skill's path (user-scope ~/.claude/skills/evidence-review/SKILL.md takes priority over any repo-scope copy). If the file cannot be found, abort and report the error; never proceed with an inline or paraphrased methodology. A subagent invoked as a fallback reviewer loads this file itself rather than having the methodology inlined into its prompt.

Review and standards coverage: Select one available independent evidence reviewer through advice's capability profiles and tiers, using the first authorized tier that can cover the complete scope; no fixed CLI, model or machine dependency applies. The selected reviewer loads this skill and the applicable user-scope and repository evidence-standards requirements, then reports artifact-level findings. Evidence adjudication is separate from the /advice source-vote quorum: this reviewer supplies the evidence verdict, not a source-review vote. The lifecycle owns quorum, stage coverage, and receipt reuse.

Verdict synthesis. Combine this skill's evidence findings with the

applicable evidence-standards compliance result into one raw overall verdict.

Goal-driving harnesses own any further normalization under their own policy.

Evaluate rows from top to bottom; the first matching row wins. A FAIL in either

input takes precedence over PARTIAL or INCONCLUSIVE in the other.

| ER verdict | ES verdict | Raw overall verdict | Harness-normalized |

|-----------|-----------|---------------------|--------------------|

| any | FAIL | FAIL | FAIL |

| FAIL | any | FAIL | FAIL |

| PASS | PASS | PASS | PASS |

| PASS | WARN | WARN | PASS |

| PASS | PARTIAL | PARTIAL | FAIL |

| WARN | PASS | WARN | PASS |

| WARN | WARN | WARN | PASS |

| PARTIAL | any | PARTIAL | FAIL |

| INCONCLUSIVE | any | INCONCLUSIVE | FAIL |

Normalization constraint: A harness may normalize WARN to PASS only when all mandatory proof, required artifacts, and claim coverage are fully verified (i.e., the warning is strictly advisory/non-blocking and all mandatory checks pass). A normalization label can NEVER establish PASS while mandatory proof or required claim coverage is missing; in such cases the verdict remains capped at PARTIAL or FAIL under the applicable mandatory check in sections 1–4. An optional verification_report.json warning is non-blocking unless it identifies a gap in required claims, required proof, or evidence integrity. Under no circumstance may a harness or reviewer promote missing mandatory proof to PASS.

Proves vs does NOT prove reconfirmation is mandatory. For every claim, the final report restates what the evidence proves and does NOT prove, even when both passes PASS.

Historical Lessons (keep the bar high)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.