improvement: refine HertzBeat AI tool guidance - #4118
Open
bigcyy wants to merge 6 commits into
Open
Conversation
Signed-off-by: Yang Chen <1597081640@qq.com>
zqr10159
marked this pull request as ready for review
August 24, 2026 10:41
zqr10159
approved these changes
Aug 24, 2026
zqr10159
left a comment
Member
There was a problem hiding this comment.
Revalidated against current master. Tool names, prompt safeguards, compatibility-only Schedule exposure, skill examples, and the new annotation-backed regression contract are consistent. Focused Java 25 tests and Checkstyle passed.
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
Simplify the HertzBeat AI system guidance, align every documented tool reference with the tools actually registered on current
master, and prevent the legacy Schedule compatibility methods from being exposed to the model.What changed
@Toolnames;@Toolexposure from the two compatibility-only Schedule methods that always return an error;query_monitors;Current-master repair
The branch was merged with current
master. The new contract initially found one remaining ambiguous skill invocation in the shortened prompt; the wording now namesexecuteSkillseparately from its arguments.Validation
AiToolGuidanceContractTestcases — passed;git diff apache/master --check— passed;AI assistance: used for current-master reconciliation, regression-test drafting, and test iteration.
Human validation: verified each guided name against the runtime
@Toolannotations and ran the focused Java 25 test set.Risk notes: this changes model guidance and removes two error-only legacy tool callbacks; the underlying action services and authorization boundaries are unchanged.