-
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
agent-implementerCode implementation agentCode implementation agentagent-orchestratorTask coordination agentTask coordination agentagent-retrospectiveLearning extraction agentLearning extraction agentarea-promptsAgent prompts and templatesAgent prompts and templatesbugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestpriority:P0Critical: Blocks core functionality, security vulnerability, or data lossCritical: Blocks core functionality, security vulnerability, or data loss
Milestone
Description
Context
PR #908 exceeded 20-commit limit by 3× (59 commits) without agent awareness. Limit was invisible until violated.
Problem Statement
No visibility into commit count during session:
- Agents don't know how many commits accumulated
- ADR-008 limit (20 commits) is invisible
- Violations discovered only when it's too late
Proposed Solution
Modify orchestrator to:
- Run
git rev-list --count HEAD ^origin/mainafter each commit - Display as "Commit X/20 (ADR-008)" in session output
- Warn when approaching limit (≥15 commits)
- Block at limit (≥20 commits, suggest squash)
Acceptance Criteria
- Commit counter runs automatically after each commit
- Format: "Commit X/20 (ADR-008)"
- Warning at 15+ commits
- Blocking error at 20+ commits with remediation guidance
- Works for all agents (orchestrator, implementer, etc.)
Effort Estimate
2 hours
Priority
P0 - Critical (This Week)
Related
- Issue feat(workflow): auto-flag PRs exceeding commit threshold #362 (commit count governance)
- Issue [P0] Create pre-PR validation script (Validate-PRReadiness.ps1) #934 (pre-PR validation script)
- PR feat(skill): add reflect skill and auto-learning hook #908 (59 commits, 3× over limit)
- ADR-008 (20-commit limit)
- Root Cause: Governance Without Enforcement
References
.agents/retrospective/2026-01-15-pr-908-comprehensive-retrospective.md (lines 1263-1267)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
agent-implementerCode implementation agentCode implementation agentagent-orchestratorTask coordination agentTask coordination agentagent-retrospectiveLearning extraction agentLearning extraction agentarea-promptsAgent prompts and templatesAgent prompts and templatesbugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestpriority:P0Critical: Blocks core functionality, security vulnerability, or data lossCritical: Blocks core functionality, security vulnerability, or data loss