Verification lattice

From gonzalezpazmonica/pm-workspace · View interactive version

Verification lattice is an AI agent skill from the GitHub repository gonzalezpazmonica/pm-workspace. Usar cuando se necesita verificación multi-capa más allá del code review estándar.

How to use this skill

Skill file

Subagent Scope Guard

If you were dispatched as a subagent to execute a specific delegated task,

skip this skill's full orchestration workflow. Execute only the assigned

task, report result (DONE / DONE_WITH_CONCERNS / BLOCKED), and return.

This guard prevents runaway skill activation in nested agent contexts.

Verification Lattice: 5-Layer Verification Pipeline

A layered verification system where each layer builds on previous results, culminating in informed human review.

Decision Checklist

Before running verification, answer sequentially:

  1. Is this a documentation-only or formatting change? -> If YES: run Layers 1-2 only (skip 3-5)
  2. Does the change affect security, auth, or PII? -> If YES: run all 5 layers, Layer 3 mandatory
  3. Is the risk score > 50? -> If YES: run Layers 1-4, Layer 5 mandatory (human review)
  4. Is the risk score < 26? -> If YES: run Layers 1-3 only, Layer 5 optional
  5. Does the project have performance benchmarks? -> If NO: skip Layer 4 performance checks

Abort Conditions


Layer 1: Deterministic Verification

Purpose: Automated checks producing consistent, repeatable results.

Checks:

Agent: None (scripts only)

Gate: All checks must pass. No exceptions.

Output: Pass/Fail + error log


Layer 2: Semantic Verification

Purpose: AI-powered analysis of intent and correctness.

Checks:

Agent: code-reviewer

Gate: All criteria mapped to code changes.

Output: Mapping report + acceptance criteria checklist


Layer 3: Security Verification

Purpose: Identify vulnerabilities and compliance risks.

Checks:

Agent: security-reviewer

Gate: No high or critical severity findings.

Output: Security scan report + remediation plan


Layer 4: Agentic Verification

Purpose: Cross-cutting concerns beyond code functionality.

Checks:

Agent: architect

Gate: No regressions, architecture decisions justified.

Output: Architecture review + risk assessment


Layer 5: Human Code Review

Purpose: Design decisions, business alignment, maintainability.

Input: Consolidated report from layers 1-4.

Focus:

Gate: Human approval required.

Output: Reviewer sign-off + design notes


Execution Flow

  1. Layer 1 runs → produces report
  2. Layer 2 consumes Layer 1 report → produces report
  3. Layer 3 consumes Layers 1-2 reports → produces report
  4. Layer 4 consumes Layers 1-3 reports → produces report
  5. Human reviewer reads consolidated report from Layers 1-4 → approves/requests changes

Each layer is independent executable, but cascade provides context enrichment.

Commands

Output Storage

All verification results stored in output/verification/{task-id}/:

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.