feat: HookResult::Abort + BehaviorGuard + bee-colony stop hook framework - #1612
Closed
1688mengdie wants to merge 4 commits into
Closed
feat: HookResult::Abort + BehaviorGuard + bee-colony stop hook framework#16121688mengdie wants to merge 4 commits into
1688mengdie wants to merge 4 commits into
Conversation
3 tasks
added 3 commits
July 18, 2026 15:56
…nControlAgentType
… mode ## Feature (62cc648) - HookResult::Abort enum + BehaviorGuard + StopHook framework - FILE_READ_TRACKER: per-session file read recording - REVIEW_BUFFER: cc-haha pattern LLM review result buffer - Bee-colony review: async LLM review via std::thread::spawn per round - Review dimensions: clerk (context guard) + inspector (behavior) + tip-bee (skills) ## Post-merge fix — downgrade ABORT to WARN-only Root cause: bee-review blocked all LionHeart reads and PS/Chinese/JSON commands, causing infinite abort loop and frozen message sending. - execution_engine.rs: prompt 5 ABORT rules -> WARN, forbid ABORT output - post_call_hooks.rs (assembly): ABORT result downgraded to WARN - post_call_hooks.rs (agent-runtime): C01 behavior_guard Abort -> additional_contexts instead of aggregated.abort - tool_context_runtime.rs: HookResult::Abort -> warn log only, tool result passes through unmodified Design: bee-review has reminder-only permission — zero interception.
1688mengdie
pushed a commit
to 1688mengdie/BitFun
that referenced
this pull request
Jul 20, 2026
… mode Original (62cc648): - Added HookResult::Abort enum + BehaviorGuard + StopHook framework - FILE_READ_TRACKER: per-session file read recording - REVIEW_BUFFER: cc-haha pattern LLM review result buffer - Bee-review: async LLM review via std::thread::spawn after each tool round - Review dimensions: clerk (context guard) + inspector (behavior guard) + tip-bee (skill recommender) Fix — downgrade all ABORT to WARN-only: - execution_engine.rs: 5 ABORT rules changed to WARN in prompt, forbid ABORT output, interception injection changed to [review reminder] context - post_call_hooks.rs (assembly): bee-review ABORT result downgraded to WARN - post_call_hooks.rs (agent-runtime): C01 behavior_guard Abort changed to additional_contexts instead of aggregated.abort - tool_context_runtime.rs: HookResult::Abort changed to warn log only, tool result passes through unmodified Root cause: Original prompt "touched LionHeart library -> ABORT" conflicted with master-framework requiring LionHeart file reads. "PS/Chinese/JSON -> ABORT" blocked all PowerShell commands. Result: infinite ABORT loop, messages frozen. Design: Bee-review has reminder-only permission: tip-bee recommends skills, clerk guards context, inspector issues WARN. Zero interception.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extend the hook framework with Abort capability, behavior guard, and per-round bee-colony stop hook infrastructure.
Changes
Verification