-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
agent-retrospectiveLearning extraction agentLearning extraction agentarea-infrastructureBuild, CI/CD, configurationBuild, CI/CD, configurationarea-workflowsGitHub Actions workflowsGitHub Actions workflowsautomationAutomated workflows and processesAutomated workflows and processesenhancementNew feature or requestNew feature or requestpriority:P2Normal: Standard enhancement or bug fix, moderate impactNormal: Standard enhancement or bug fix, moderate impact
Description
Context
PR #908 had 95 files changed (20× over healthy limit). Need early warning system for scope explosion.
Problem Statement
No visibility into PR size until creation:
- File count grows incrementally
- No alerts when crossing thresholds
- Large PRs discovered too late
- Splitting is harder after the fact
Proposed Solution
Create git hook that tracks cumulative PR size:
Thresholds:
- 10 files: Warning (suggest reviewing scope)
- 20 files: Strong warning (suggest split/commit)
- 50 files: Block commit (hard limit)
Implementation:
- Track files added since branch diverged from main
- Check after each commit
- Display current count: "PR size: X/10 files"
- Suggest: Split PR or commit current work
Acceptance Criteria
- Git hook created (pre-commit or post-commit)
- Tracks cumulative file count
- Warning at 10, 20 files
- Block at 50 files (hard limit)
- Clear remediation guidance
- Bypass mechanism for justified large PRs (e.g., mass refactor)
Effort Estimate
4 hours
Priority
P2 - Normal (This Quarter)
Related
- Issue [P0] Create pre-PR validation script (Validate-PRReadiness.ps1) #934 (pre-PR validation validates final size)
- PR feat(skill): add reflect skill and auto-learning hook #908 (95 files)
- Root Cause: Scope Creep via Tool Side Effects
References
.agents/retrospective/2026-01-15-pr-908-comprehensive-retrospective.md (lines 1321-1327)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
agent-retrospectiveLearning extraction agentLearning extraction agentarea-infrastructureBuild, CI/CD, configurationBuild, CI/CD, configurationarea-workflowsGitHub Actions workflowsGitHub Actions workflowsautomationAutomated workflows and processesAutomated workflows and processesenhancementNew feature or requestNew feature or requestpriority:P2Normal: Standard enhancement or bug fix, moderate impactNormal: Standard enhancement or bug fix, moderate impact