SOP + hook: parallel agent file-target overlap detection #234
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/claude-custom#234
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Type
Feature
Lineage
Standalone — discovered during 2026-04-03 email sprint. 3 parallel email PRs all touched email.py and admin.py, requiring 2 rebases and a ruff format fix before any deployed.
Repo
forgejo_admin/claude-custom(hook) + pal-e-docs (SOP + convention)User Story
As a session orchestrator,
I want to detect when multiple in-progress tickets target the same files
So that I can either sequence merges or split modules before agents conflict.
Context
On 2026-04-03, three email feature tickets (#311, #312, #313) were dispatched in parallel. All three appended functions to the same two files:
email.py(1,400+ lines, 54 commits)admin.py(1,000+ lines, 60 commits)Result: PR #318 merged clean, PR #317 needed rebase, PR #329 needed rebase. Each rebase required an agent dispatch. The ruff format step also failed silently, blocking all 3 deploys.
The File Targets section already exists in issue templates but nothing checks for overlap between active tickets.
Environment
File Targets
Phase 1 (SOP + convention):
sop-file-target-overlapnoteconvention-file-target-declarationnotePhase 2 (hook):
hooks/check-pr-file-targets.sh— PreToolUse hook onmcp__forgejo__merge_approved_prsettings.json— register the new hookAcceptance Criteria
Phase 1:
Phase 2:
Test Expectations
Phase 1:
Phase 2:
Constraints
Checklist
Related
pal-e-agency— project this affects