Skip to content
Back to skills

Evidence Coverage

ASecurity

Build a Logic x Evidence Matrix mapping every production logic change in a PR to its required testing layer and current evidence status.

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 26, 2026
testinggobashtestinggit

Works with

  • mcp

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add jleechanorg/jleechan-skills --skill evidence-coverage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Evidence Coverage?

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

Security grade badge for Evidence Coverage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jleechanorg-evidence-coverage/badge)](https://www.skillsdirectory.com/skills/jleechanorg-evidence-coverage)

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: evidence-coverage
description: Build a Logic x Evidence Matrix mapping every production logic change in a PR to its required testing layer and current evidence status.
---

# Evidence Coverage Analysis — Living World & PR Scope

When invoked (via `/evidence-coverage`), build a **Logic × Evidence Matrix** that maps every
production logic change in the current PR to its required testing layer and current evidence status.

## Procedure

### 1. Identify all production file changes

```bash
git diff origin/main...HEAD --name-only -- $PROJECT_ROOT/ | grep -v tests/
```

For each file, extract the logical changes (new functions, modified behavior, prompt changes,
schema changes). Group them by **domain** (e.g., trigger gate, prompt contract, backlog pruning,
sanctuary mode, turn counters, streaming dispatch).

### 2. Classify each logical change into a testing layer

Use the testing-layers skill (`.claude/skills/testing-layers/SKILL.md`) decision matrix:

| Layer | Name | Characteristics | When Required |
|-------|------|----------------|---------------|
| L1 | Unit / Deterministic | No server, no LLM, pure function | Math, parsing, schema validation, prompt-contract string checks |
| L2 | Integration (mock LLM) | Server running, mock LLM | Route wiring, middleware, auth, state merge |
| L3 | Real LLM (MCP) | Real server + real provider selected by the harness owner | Model compliance, prompt effectiveness, behavioral contracts |
| L5 | Browser E2E | Full stack + browser | UI rendering, player-visible behavior |

**Key rule**: Any claim about LLM compliance (event frequency, sanctuary activation, prompt
obedience) MUST have L3 evidence. L1 prompt-contract tests prove the prompt *says* the right
thing; L3 proves the model *does* the right thing.

### 3. Locate existing evidence

Search evidence directories:
```bash
ls /tmp/your-project.com/<branch>/  # evidence bundles
find /tmp/your-project.com/<branch>/ -maxdepth 3 -name "evidence.md"
```

For each bundle, extract:
- Git HEAD SHA from `evidence.md` or `metadata.json`
- Pass rate
- Scenario names
- Timestamp
- For L3, the harness-selected provider, actual model identifier from response
  metadata, and material configuration required by the canonical evidence and
  harness owners. Preserve the requested model separately; mark an unreported
  actual model as unknown rather than deriving it from the requested alias.
  Include this provenance in bundle metadata and reproduction directions.

### 4. Check evidence freshness

Compare the captured source SHA with the current change:
```bash
git diff <evidence_sha>..HEAD -- $PROJECT_ROOT/
```

Read the full diff, including test files, against the claims the evidence backs.

Apply `../evidence-standards/SKILL.md` sections Evidence Staleness
Tolerance and Evidence Sequencing. Re-run evidence affected by a material behavior
change after batching pending fixes. For a qualifying nonbehavioral delta, record
the diff assessment and re-affirm the prior result for the current SHA. Preserve
the original tested SHA, timestamps, and artifact hashes; re-affirmation is not a
new run, and a changed filename alone does not establish staleness.

### 5. Build the matrix

Output a markdown table with these columns:

| ID | Domain | Logic Change | File(s) | Layer | Test File | Evidence Status | Provenance | Gap? |
|----|--------|-------------|---------|-------|-----------|----------------|------------|------|

For L3 rows, link the provider/model/configuration metadata and reproduction
directions in **Provenance**. Mark missing attribution as a gap for any claim
that depends on the actual provider or model.

For L1 rows, retain commands, results, and tested SHA, with the raw test output
or an accessible CI run/job link bound to that SHA. Unit proof may satisfy a
bounded deterministic claim; N/A is not a substitute for its evidence. Preserve
original tested identity and record any current applicability separately.

**Evidence Status values:**
- `FRESH (SHA xxx, N/N pass)` — evidence exists at current HEAD, all scenarios pass
- `RE-AFFIRMED (tested SHA xxx, current SHA yyy)` — prior evidence remains applicable after the canonical nonbehavioral-diff check
- `STALE (SHA xxx, N/N pass)` — a material change invalidates the evidence for this claim
- `MISSING` — no evidence bundle found
- `N/A` — no applicable behavior or claim needs proof in this row; explain why. A unit-tested claim uses FRESH, RE-AFFIRMED, STALE, or MISSING instead.

**Gap values:**
- Empty — covered
- `STALE` — needs re-run
- `MISSING` — needs first run
- `CRITICAL` — L3 evidence missing for LLM compliance claim

### 6. Identify Domain-Specific Behavioral Contracts

For the logical changes identified, define the key behavioral contracts that need L3 proof. For example, if a PR introduces a new "Sanctuary Mode", the contracts might include:
- Autonomous completion detection
- Duration scaling by arc scale
- Sanctuary breaks on player-initiated major aggression

List these contracts for the current PR and ensure each has corresponding L3 evidence.

### 7. Report format

After the matrix, include:

**Summary statistics:**
- Total logic changes: N
- Covered (fresh or re-affirmed): N
- Stale: N
- Missing: N
- Critical gaps: N

**Recommended action** for each gap — which test to run, expected command, estimated time.

## Evidence bundle locations

- MCP tests: `/tmp/your-project.com/<branch>/<test_name>/latest/`
- Unit tests: retained raw output or an accessible exact-SHA CI run/job link, including commands, results, and tested SHA; a local copy is optional when the CI proof is accessible.
- Antagonism prompt contract: `testing_mcp/test_living_world_antagonism_prompt_contract.py` (L1, standalone)
- Sanctuary mode: `testing_mcp/test_sanctuary_mode.py` (L3, real LLM)
- LW trigger gate: `testing_mcp/test_lw_trigger_gate.py` (L3, real LLM)
- Multi-turn frequency: `testing_mcp/test_living_world_real_e2e.py` (L3, multi-turn)
- Corrupt recovery: `testing_mcp/test_living_world_corrupt_recovery.py` (L3, real LLM)

## Cross-references

- Testing layers: `.claude/skills/testing-layers/SKILL.md`
- E2E testing: `.claude/skills/end2end-testing/SKILL.md`
- Evidence standards: `../evidence-standards/SKILL.md` (user-scope) and `.claude/skills/evidence-standards/SKILL.md` (repo-scope)
- Root-cause first: `.claude/skills/root-cause-first/SKILL.md`

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 testing →

Comments

Loading comments…

Newsletter

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