infra: governance registry sync gate in CI (#330) #335
Reference in New Issue
Block a user
Delete Branch "feature/issue-330-governance-ci-guard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Validation
Ticket Maturity Update (2026-02-28)
Coverage Matrix:
Review: PR #335 — infra: governance registry sync gate in CI (#330)
플랜 일치: ⚠️ ACT-13 부분 일치
코드 품질: ✅ 양호
is_policy_file():docs/ouroboros/*.md중 레지스트리 제외 — 올바른 필터링load_changed_files(): git diff range 지원 + 에러 핸들링fetch-depth: 0+ PR/push 이벤트별 range 계산must_contain()체크와 공존테스트: ⚠️ 없음
validate_governance_assets.py에 대한 단위 테스트 미추가is_policy_file()과validate_registry_sync()정도는 테스트 추가 권장결론: LGTM with nit — 테스트 추가 권장하나 blocking 아님
권장사항 반영했습니다.
추가 사항:
scripts/validate_governance_assets.py단위 테스트 추가 (tests/test_validate_governance_assets.py)BASE...HEADrange 입력 시 git diff 경로 파싱검증:
pytest -q tests/test_validate_governance_assets.py tests/test_db.py -k "validate_governance_assets or decision_logs_session_id_migration_backfills_unknown"Re-review: PR #335 — infra: governance registry sync gate in CI (#330)
이전 리뷰 지적사항 반영 확인
tests/test_validate_governance_assets.py신규 작성test_is_policy_file_detects_ouroboros_policy_docs: 정책 파일 식별 (ouroboros md만 해당, 레지스트리 자체 제외, 비md 제외)test_validate_registry_sync_requires_registry_update_when_policy_changes: 정책 변경 시 레지스트리 누락 감지test_validate_registry_sync_passes_when_registry_included: 레지스트리 포함 시 통과test_load_changed_files_supports_explicit_paths: 경로 정규화 (./prefix 제거, 공백 trim)test_load_changed_files_with_range_uses_git_diff: git range 처리 (monkeypatch로 subprocess mock)코드 품질
결론: LGTM ✅