Skip to content

feat: Conflict predictor — git history analysis for file collision warning #946

@JeremyDev87

Description

@JeremyDev87

Purpose

git history 분석으로 "이 두 이슈가 같은 파일을 건드릴 확률"을 예측. taskMaestro Wave 계획 시 충돌 사전 경고.

Changes

  • Create: packages/claude-code-plugin/hooks/lib/conflict_predictor.py
  • Create: packages/claude-code-plugin/tests/test_conflict_predictor.py

Acceptance Criteria

  • git log --name-only로 최근 N 커밋의 파일 변경 패턴 분석
  • 파일 동시 변경 빈도 매트릭스 생성 (file A와 file B가 같은 커밋에 등장한 횟수)
  • 이슈 body에서 타겟 파일 추출 → 충돌 확률 계산
  • 결과: {issue_pair: (A, B), shared_files: [...], risk: high/medium/low}
  • parallel-orchestrator에서 활용 가능한 API 제공
  • TDD: 최소 10 테스트

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions