Quality Gate Check Hook - Process Refinement System
Pre-completion hook that verifies quality criteria before allowing task completion. Integrates with /quality-gate command.
Usage: python quality-gate-check.py --task E.1.1 python quality-gate-check.py --task E.1.1 --strict
Author: CODITECT Process Refinement Version: 1.0.0 Created: 2026-01-02
File: quality-gate-check.py
Functions
get_project_root()
Get the project root directory.
check_file_exists(task_id)
Check if expected files exist for task.
check_plan_updated(task_id)
Check if PILOT plan has task marked complete.
check_session_logged(task_id)
Check if task has session log entry.
check_naming_convention(task_id)
Check if files follow naming conventions.
run_quality_gate(task_id, strict)
Run all quality gate checks.
format_report(result)
Format quality gate result as report.
main()
No description
Usage
python quality-gate-check.py