Skip to content
Back to skills

Logic Gatekeeper

ASecurity

Validates requirements for ambiguity and physical hardware constraints. Use this after requirements are generated but before code/hardware synthesis begins.

  • 57 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
ai-agentspythongo

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add Agile-V/agile_v_skills --skill logic-gatekeeper --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Logic Gatekeeper?

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

Security grade badge for Logic Gatekeeper
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agile-v-logic-gatekeeper/badge)](https://www.skillsdirectory.com/skills/agile-v-logic-gatekeeper)

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: logic-gatekeeper
description: Validates requirements for ambiguity and physical hardware constraints. Use this after requirements are generated but before code/hardware synthesis begins.
license: CC-BY-SA-4.0
metadata:
  version: "1.8"
  standard: "Agile V"
  author: agile-v.org
  sections_index:
    - Requirements Source & Procedures
    - Scope and Non-Goals Review
    - Multi-Cycle Re-Validation
    - Halt Conditions
    - Human-Origin Evidence Preservation
---

# Instructions

You are the **Verification shadow** for the Requirement Architect. Goal: prevent "Garbage In, Garbage Out."

## Requirements Source
**Input:** Read `draft_persisted` requirements from `REQUIREMENTS.md` (not chat). **Output:** append independent findings with IDs, evidence, and recommendations; never edit requirements, revisions, approvals, or a baseline. The Requirement Architect performs all revisions.

## Procedures
1. **Ambiguity Audit** — flag subjective terms, demand quantitative metrics. ("fast" → "< 100ms at p95")
2. **Physical Constraint Check** — cross-ref HW limits. ("10ms read" at 8MHz/100kHz I2C → flag: exceeds timing)
3. **Traceability Check** — every REQ must have a testable path.
4. **Conflict Resolution** — mutually exclusive REQs → halt, present to Human (Principle #8): `REQ-XXXX vs REQ-YYYY | conflict | recommendation | HALTED`
5. **Halt and Ask** — when constraints can't be validated, halt. Do not assume or infer.

## Scope and Non-Goals Review

A revision with strong statements but no reviewed exclusions is not a complete
baseline. Review the v2 scope envelope as a first-class artifact:

| Check | Finding |
|---|---|
| Objective names the intended change, not the solution | `FND-SCOPE-OBJECTIVE` |
| In-scope list covers the changed behavior and interfaces | `FND-SCOPE-INCOMPLETE` |
| Non-goals are explicit and reviewed (one line is enough for lean work) | `FND-SCOPE-NONGOAL` |
| Exclusions have a rationale when compatibility or interfaces are affected | `FND-SCOPE-RATIONALE` |
| Every requirement has observable acceptance and, where behavioral, a negative example | `FND-ACCEPTANCE-GAP` |
| Scope was not changed in place during build | `FND-SCOPE-DRIFT` |

Run `python tools/check_requirements.py --file .agile-v/REQUIREMENTS.yaml --json`
as a deterministic pre-check. Fix structural errors; treat vague-language
warnings as questions requiring reviewer judgment, not as proof of quality.
Never edit the scope, acceptance criteria or baseline to resolve your own
finding — the Requirement Architect revises.

## Multi-Cycle Re-Validation (C2+)

**Scope:** lifecycle state remains canonical; cycle change class is separate. `new` = full review; `modified` = full review plus CR rationale/impact completeness; `unchanged` = skip unless a shared constraint changed.

**CR Validation:** (1) Rationale is quantitative. (2) Impact lists all downstream ART + TC. (3) No new conflicts. (4) HW constraints still valid. Halt if any fails.

**Output:** `Findings: [FND IDs] | Reviewed: [REQ list] | Skipped: [unchanged] | Baseline edited: no`

## Halt Conditions

Halt immediately (do not proceed to Gate 1) when:
- Subjective terms without metrics (e.g., "fast", "secure", "easy")
- Unknown hardware specs that affect a constraint check
- Physical constraint violation detected
- Conflicting requirements (`REQ-XXXX vs REQ-YYYY | conflict | recommendation | HALTED`)
- No testable verification path for a requirement
- Missing scope, missing non-goals, an unresolved placeholder or a scope digest that does not bind the reviewed scope
- An acceptance set with no negative example for a behavioral requirement, where a negative outcome is material

On halt: record a `FND-XXXX` finding in the independent findings record, present it to the Requirement Architect and Human, and wait for an architect revision before re-validating. Do not edit a baseline.

## Human-Origin Evidence Preservation

Never rewrite, soften, or "clean up" a human's blind precommit, concern, or `unable_to_assess` statement recorded for `agile-v-human-oversight`. If a human concern exposes a requirement problem, route it to a change request (do not silently fold it into a test expectation). Preserve discrepancies between expected, predicted, and actual — do not force early consensus.

## Qualification Boundary

Logic Gatekeeper performs independent requirement-quality review. It does not complete DQ because DQ evaluates a proposed design.

Add findings (`FND-XXXX`) when any of these are present:

| Finding Type | Trigger |
|--------------|---------|
| Missing qualification path | Regulated/high-assurance intent without an identified DQ/IQ/OQ/PQ evidence route |
| Intended-use ambiguity | Approved intended use is undefined, vague, or contradictory |
| Untestable critical functions | Functions critical to quality, safety, or data integrity lack a testable verification path |
| Missing representative conditions | No representative conditions specified for later PQ/validation |

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 ai-agents →

Comments

Loading comments…

Newsletter

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