Skip to content

refactor(hooks): remove dead rewrite_forge_p function#4

Open
shafqatevo wants to merge 2 commits into
mainfrom
claude/funny-austin-a0aeb8
Open

refactor(hooks): remove dead rewrite_forge_p function#4
shafqatevo wants to merge 2 commits into
mainfrom
claude/funny-austin-a0aeb8

Conversation

@shafqatevo
Copy link
Copy Markdown
Contributor

Summary

  • Removes rewrite_forge_p() (26 lines + comment block) from hooks/forge-delegation-enforcer.sh — the function was never called; decide_bash duplicates its logic inline
  • Eliminates a latent hazard: if ever reached, the function would call gen_uuid internally, producing a second UUID different from the one already validated at the decide_bash call site
  • Updates plugin.json manifest SHA256 to match the modified file

Test Plan

  • tests/test_forge_enforcer_hook.bash — 20/20 pass
  • tests/test_plugin_integrity.bash — 13/13 pass (SHA integrity check now passes)

🤖 Generated with Claude Code

shafqatevo and others added 2 commits April 24, 2026 13:05
The function was never called — decide_bash duplicates its logic inline.
Also eliminates a subtle hazard: if ever called, it would generate a
second UUID distinct from the one validated at the decide_bash call site.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ode removal

Reflects the new hash of hooks/forge-delegation-enforcer.sh after
rewrite_forge_p was removed in the previous commit.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@shafqatevo shafqatevo force-pushed the main branch 7 times, most recently from 0cc6570 to 5a6e025 Compare May 24, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant