Completion Check

by parcadeid07ff4b06b62No license3.9K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 8 months ago

Completion Check: Verify Infrastructure Is Wired

Instructions onlyDevOps & Cloud
AI-generated overview

A checklist for verifying that newly built infrastructure is actually wired into the system and used, not dead code.

What it does
Provides a completion-verification pattern for infrastructure work: trace the execution path from entry point to the code, confirm hooks are registered, check that the correct database or backend is in use, run an end-to-end test, and search for orphaned or parallel implementations. It includes a checklist and a worked example contrasting a wrongly built DAG task graph with a correctly wired one. It produces verification steps and criteria rather than files or code.
When to use it
Use before declaring infrastructure work complete, especially when code has been written but may not be connected to the running system. Also useful when suspecting dead code, unregistered hooks, wrong backends, or duplicate parallel implementations.
Requirements
Instructions only; no scripts are shipped. The example commands reference shell tools such as grep, ls, ast-grep, and uv, but these are illustrative rather than required.

Completion Check: Verify Infrastructure Is Wired

When building infrastructure, verify it's actually connected to the system before marking as complete.

Pattern

Infrastructure is not done when the code is written - it's done when it's wired into the system and actively used. Dead code (built but never called) is wasted effort.

DO

  1. Trace the execution path - Follow from user intent to actual code execution:

    bash
    # Example: Verify Task tool spawns correctlygrep -r "claude -p" src/grep -r "Task(" src/
  2. Check hooks are registered, not just implemented:

    bash
    # Hook exists?ls -la .claude/hooks/my-hook.sh
    # Hook registered in settings?grep "my-hook" .claude/settings.json
  3. Verify database connections - Ensure infrastructure uses the right backend:

    bash
    # Check connection stringsgrep -r "postgresql://" src/grep -r "sqlite:" src/  # Should NOT find if PostgreSQL expected
  4. Test end-to-end - Run the feature and verify infrastructure is invoked:

    bash
    # Add debug loggingecho "DEBUG: DAG spawn invoked" >> /tmp/debug.log
    # Trigger featureuv run python -m my_feature
    # Verify infrastructure was calledcat /tmp/debug.log
  5. Search for orphaned implementations:

    bash
    # Find functions defined but never calledast-grep --pattern 'async function $NAME() { $$$ }' | \  xargs -I {} grep -r "{}" src/

DON'T

  • Mark infrastructure "complete" without testing execution path
  • Assume code is wired just because it exists
  • Build parallel systems (Task tool vs claude -p spawn)
  • Use wrong backends (SQLite when PostgreSQL is architected)
  • Skip end-to-end testing ("it compiles" ≠ "it runs")

Completion Checklist

Before declaring infrastructure complete:

  • Traced execution path from entry point to infrastructure
  • Verified hooks are registered in .claude/settings.json
  • Confirmed correct database/backend in use
  • Ran end-to-end test showing infrastructure invoked
  • Searched for dead code or parallel implementations
  • Checked configuration files match implementation

Example: DAG Task Graph

Wrong approach:

✓ Built BeadsTaskGraph class✓ Implemented DAG dependencies✓ Added spawn logic✗ Never wired - Task tool still runs instead✗ Used SQLite instead of PostgreSQL

Right approach:

✓ Built BeadsTaskGraph class✓ Wired into Task tool execution path✓ Verified claude -p spawn is called✓ Confirmed PostgreSQL backend in use✓ Tested: user calls Task() → DAG spawns → beads execute✓ No parallel implementations found

Source Sessions

  • This session: Architecture gap discovery - DAG built but not wired, Task tool runs instead of spawn, SQLite used instead of PostgreSQL

Source and attribution

Source:parcadei/continuous-claude-v3in.claude/skills/completion-checkat commitd07ff4b

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal