Skip to content

feat: HookResult::Abort + BehaviorGuard + bee-colony stop hook framework#1612

Open
1688mengdie wants to merge 3 commits into
GCWing:mainfrom
1688mengdie:pr/hook-framework
Open

feat: HookResult::Abort + BehaviorGuard + bee-colony stop hook framework#1612
1688mengdie wants to merge 3 commits into
GCWing:mainfrom
1688mengdie:pr/hook-framework

Conversation

@1688mengdie

Copy link
Copy Markdown

Summary

Extend the hook framework with Abort capability, behavior guard, and per-round bee-colony stop hook infrastructure.

Changes

  • HookResult::Abort: New enum variant to interrupt tool execution with reason and fix instructions
  • BehaviorGuard: Default trait method detecting stale same-tool calls (threshold 3)
  • STALE_TRACKER: Global mutex-based same-tool-call detection with last_target field
  • Stop hook framework: B01/C01 dual-bee round-level monitoring with REVIEW_BUFFER
  • Context accumulation fix: Review results replace previous messages instead of accumulating

Verification

  • cargo check -p bitfun-desktop
  • HookResult::Abort compiles in tool execution pipeline
  • Context no longer accumulates indefinitely

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