Back to list
Rwb3n

dod-validation-cycle

by Rwb3n

0🍴 0📅 Jan 22, 2026

SKILL.md


name: dod-validation-cycle description: HAIOS DoD Validation Cycle for validating Definition of Done before closure. Use before DONE phase. Guides CHECK->VALIDATE->APPROVE workflow. generated: '2025-12-25' last_updated: '2025-12-28T21:12:55'

DoD Validation Cycle (Bridge Skill)

This is a Validation Skill (bridge) that validates Definition of Done criteria before work item closure. It acts as a quality gate at the entry to close-work-cycle.

When to Use

Invoked automatically by close-work-cycle before VALIDATE phase. Manual invocation: Skill(skill="dod-validation-cycle") before closing a work item.


The Cycle

CHECK --> VALIDATE --> APPROVE

1. CHECK Phase

Goal: Verify DoD prerequisites exist.

Prerequisites to Check:

  • Work item has associated plan(s)
  • Tests were run (test results available)
  • Memory refs captured (WHY documented)
  • Docs reviewed (CLAUDE.md, READMEs)

Actions:

  1. Read work file to find associated documents
  2. Check plan status(es)
  3. Verify memory_refs field is populated
  4. Report missing prerequisites

Exit Criteria:

  • Associated plans found
  • Test results mentioned or N/A documented
  • memory_refs populated or WHY captured

Tools: Read, Glob, Grep


2. VALIDATE Phase

Goal: Validate each DoD criterion per ADR-033.

DoD Criteria (ADR-033):

CriterionCheck
Tests passUser confirms or test output available
WHY capturedmemory_refs populated in work file
Docs currentCLAUDE.md/READMEs updated if behavior changed
Traced files completeAll associated plans status: complete

Actions:

  1. For each criterion, verify status
  2. Flag any failing criteria
  3. Report validation status

Ground Truth Verification (Plan-Specific):

If associated plans exist (from work item's documents.plans field):

  1. For each plan:

    • Read plan file from docs/work/active/{id}/plans/PLAN.md (or legacy path)
    • Parse Ground Truth Verification table (looking for ## Ground Truth Verification section)
    • Use parse_ground_truth_table() from .claude/lib/validate.py
  2. For each verification item:

    • Classify type based on file_path pattern (via classify_verification_type())

    • Execute machine-checkable items:

      TypeToolSuccess Criteria
      file-checkRead(path)File exists AND expected_state pattern found
      grep-checkGrep(pattern)Match count matches expectation (0 or >0)
      test-runBash(pytest)Exit code 0
      json-verifyRead + JSON parseFile exists AND expected fields present
      human-judgment-Flag for manual confirmation
    • Flag human-judgment items for manual confirmation

  3. Report results:

    • "X of Y machine checks passed"
    • "Z items require human confirmation" (list them)
  4. Gate decision:

    • BLOCK if any machine-check FAILS (list specific failures)
    • WARN if unchecked items remain (items with [ ] checkbox)
    • PASS if all machine-checks pass and human-judgment items confirmed

Exit Criteria:

  • Tests MUST pass (or N/A with rationale)
  • WHY MUST be captured
  • Docs MUST be current
  • Associated plans MUST be complete
  • Ground Truth Verification: all machine-checks MUST pass (or N/A)
  • Ground Truth Verification: human-judgment items MUST be confirmed

Tools: Read, Grep, Bash


3. APPROVE Phase

Goal: Confirm work item is ready for closure.

Actions:

  1. If all criteria pass -> APPROVED
  2. If any fail -> Report blockers
  3. Return to calling cycle immediately

On PASS: Return to close-work-cycle - it will proceed to VALIDATE phase. On FAIL: Return to implementation for fixes.

MUST: Do not pause for acknowledgment - return to calling cycle immediately.

Exit Criteria:

  • All DoD criteria validated
  • Approval status reported
  • Returned to calling cycle (no pause)

Tools: -


Composition Map

PhasePrimary ToolOutput
CHECKRead, Glob, GrepPrerequisites status
VALIDATEReadDoD compliance report
APPROVE-Approval/block decision

Quick Reference

PhaseQuestion to AskIf NO
CHECKAre plans found?STOP - no work to validate
CHECKAre memory_refs populated?Flag: WHY not captured
VALIDATEDo tests pass?BLOCK - fix tests first
VALIDATEAre plans complete?BLOCK - complete plans first
VALIDATEDo Ground Truth machine-checks pass?BLOCK - fix failures first
VALIDATEAre human-judgment items confirmed?WARN - prompt for confirmation
APPROVEAll criteria met?Report blockers

Key Design Decisions

DecisionChoiceRationale
Three phasesCHECK -> VALIDATE -> APPROVEConsistent with other validation skills
Read-onlyNo modificationsBridge skills validate, don't modify
MUST gateRequired before closeEnsures quality before closure
ADR-033 alignmentUse official DoD criteriaSingle source of truth
Ground Truth integrationVALIDATE phaseINV-042: Ground Truth Verification is DoD criterion
Machine-check failureBLOCKObjective failures should prevent false completions
Unchecked itemsWARNMay be intentional (N/A) - surface but don't block
Parser reuseUse validate.py functionsDRY principle, tested in E2-219

  • plan-validation-cycle skill: Pre-DO validation (parallel pattern)
  • design-review-validation skill: During-DO validation (parallel pattern)
  • close-work-cycle skill: Invokes this skill as MUST gate
  • ADR-033: Work Item Lifecycle Governance (DoD definition)
  • INV-042: Machine-Checked DoD Gates investigation (design source)
  • E2-219: Ground Truth Verification Parser (parse_ground_truth_table(), classify_verification_type())
  • validate.py: .claude/lib/validate.py contains parser implementation

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon