Backlog metadata
Summary
From the 20 September 2026 Violin dev duplication/library review, baseline 5ca0d9d6767b91fe809b2e4996c85ac65ba9e962. Priority: P1. Source locations and measurements describe the review baseline.
Scope
Refactor handlers/ptt_gates.py::_validate_phase_exit into table-driven predicates and a typed gate context; gates/hypothesis_gate.py::check_hypothesis_freshness into timestamp, receipt, target and semantic-progress checks; gates/command.py::check_command into an explicitly ordered gate pipeline.
Acceptance criteria
Dependencies / related work
Sequence after #134, #135.
#123 owns methodology skeletons and write-time obligation validation; #83 skill agreement; #124 completeness wording. These feature fixes are excluded.
Verification
Working branch: codex/review-gate-predicates, based on dev. Future PRs target dev; follow AGENTS.md and preserve fail-closed policy. Rebase dependent branches onto updated dev before implementation.
Implementation must pass uv run pytest, uv run ruff check ., uv run ruff format --check . and uv run python scripts/violin_guard.py check-release, plus the focused checks above. No implementation or test rerun is claimed by this tracking issue.
Backlog metadata
Summary
From the 20 September 2026 Violin dev duplication/library review, baseline
5ca0d9d6767b91fe809b2e4996c85ac65ba9e962. Priority: P1. Source locations and measurements describe the review baseline.Scope
Refactor handlers/ptt_gates.py::_validate_phase_exit into table-driven predicates and a typed gate context; gates/hypothesis_gate.py::check_hypothesis_freshness into timestamp, receipt, target and semantic-progress checks; gates/command.py::check_command into an explicitly ordered gate pipeline.
Acceptance criteria
Dependencies / related work
Sequence after #134, #135.
#123 owns methodology skeletons and write-time obligation validation; #83 skill agreement; #124 completeness wording. These feature fixes are excluded.
Verification
Working branch:
codex/review-gate-predicates, based ondev. Future PRs targetdev; follow AGENTS.md and preserve fail-closed policy. Rebase dependent branches onto updated dev before implementation.Implementation must pass
uv run pytest,uv run ruff check .,uv run ruff format --check .anduv run python scripts/violin_guard.py check-release, plus the focused checks above. No implementation or test rerun is claimed by this tracking issue.