fix(background-review): whitelist dynamic memory-provider tools - #39746
Open
infernix wants to merge 1 commit into
Open
fix(background-review): whitelist dynamic memory-provider tools#39746infernix wants to merge 1 commit into
infernix wants to merge 1 commit into
Conversation
infernix
marked this pull request as ready for review
June 5, 2026 11:16
Contributor
|
Thanks for tracing the runtime whitelist boundary. Problems
Suggested changes
This is an automated hermes-sweeper review. |
infernix
force-pushed
the
fix-background-review-memory-tools
branch
from
August 25, 2026 12:53
327fe86 to
b9d607c
Compare
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.
What does this PR do?
Fixes background review for dynamic memory-provider tools. The review thread previously built its runtime whitelist from the static
memoryandskillstoolsets only, which excluded tools injected at runtime by memory providers such as Honcho (honcho_profile,honcho_search,honcho_context, etc.). As a result, background reviews inherited those tools in the schema but then denied them at dispatch time.This PR keeps the existing static whitelist and extends it with tool names reported by the parent agent’s active
MemoryManager. That preserves the safety boundary while allowing the review fork to call the same memory-provider tools already present in the parent agent’s live tool surface.Related Issue
Fixes #
Type of Change
Changes Made
agent/background_review.pyso the background review whitelist starts from the staticmemoryandskillstoolsets, then unions in dynamic tool names fromagent._memory_manager.get_all_tool_names().tests/run_agent/test_background_review_toolset_restriction.pyfor dynamically injected memory-provider tools, including Honcho-stylehoncho_*names.How to Test
fix-background-review-memory-tools.Checklist
Code
fix(scope):,feat(scope):, etc.)pytest tests/ -qand all tests passDocumentation & Housekeeping
docs/, docstrings) — or N/Acli-config.yaml.exampleif I added/changed config keys — or N/ACONTRIBUTING.mdorAGENTS.mdif I changed architecture or workflows — or N/AScreenshots / Logs
Passed:
1 files, 4 tests passed, 0 failed.