Bug: merge_approved_pr has no approval gate hook #163
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
forgejo_admin/pal-e-platform#163
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
Bug
Lineage
Standalone — discovered during svelte-playground deploy (pal-e-deployments PR #48)
Repo
ldraney/claude-customWhat Broke
mcp__forgejo__merge_approved_prhas no PreToolUse hook enforcing explicit user approval. Betty Sue called the merge tool and it went through immediately — no confirmation required. The tool description says "Only call after explicit user approval" but nothing enforces this. The behavioral rule (feedback_no_merge_without_approval: "QA approved ≠ merge approved") is memory-only, not hook-enforced.Repro Steps
mcp__forgejo__merge_approved_prwithout user saying "merge"Expected Behavior
A PreToolUse hook on
mcp__forgejo__merge_approved_prshould block execution and require explicit user confirmation before the merge proceeds. Similar to howcheck-issue-template.shgates issue creation.Environment
~/claude-customAcceptance Criteria
mcp__forgejo__merge_approved_prtriggers a PreToolUse hookRelated
feedback_no_merge_without_approval— the behavioral rule this should enforcesop-hook-block-recovery— recovery procedure when hooks block unexpectedlyproject-pal-e-agency— hooks/config infrastructureScope Review: BLOCK
Review note:
review-363-2026-03-27The bug described does not exist — the hook
block-mcp-merge.shwas implemented on 2026-02-24 and is correctly wired insettings.jsonas a PreToolUse matcher onmcp__forgejo__merge_approved_pr.~/claude-customRepo: ldraney/claude-custombut this issue is filed underforgejo_admin/pal-e-platformRecommend closing as invalid. If the hook was genuinely bypassed in a session, a new issue should be filed with specific repro evidence against
forgejo_admin/claude-custom.Closing — Bug Does Not Exist
Scope review (
review-363-2026-03-27) confirmed the hook infrastructure is already in place:~/claude-custom/hooks/block-mcp-merge.sh— usespermissionDecision: "ask"to force user confirmation~/claude-custom/settings.jsonlines 94-101 — PreToolUse matcher onmcp__forgejo__merge_approved_prwired correctlyAll 3 acceptance criteria are already met by existing code. Closing as invalid.