feat(ros): block repeat validation of unchanged templates - #203
Open
ruanzhengxin-zhuxing wants to merge 2 commits into
Open
feat(ros): block repeat validation of unchanged templates#203ruanzhengxin-zhuxing wants to merge 2 commits into
ruanzhengxin-zhuxing wants to merge 2 commits into
Conversation
ros_validate_template repeatedly failed with the same result_digest in template_generating without locating the template syntax root cause. Add a failure dedup guard to RosValidateTemplateTool: fingerprint the local template content, annotate failures with a stable result_digest, and block revalidation while the template file is unchanged, surfacing the last error with root-cause guidance. Strengthen the template-generating skill/prompt retry discipline and record a validation_summary in the step conclusion.
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.
背景
Session f608eb3c/ec63773c/7f7062ed 中 ros_validate_template 在 template_generating 反复以相同 result_digest 失败(如 8d806e2c),未及时定位模板语法根因,远端校验被冗余调用。
变更
RosValidateTemplateTool增加失败去重守卫:本地模板内容 sha256 指纹 + RequestId 归一化的 result_digest;模板未修改时重复校验被直接拦截并返回上次错误与根因定位指引;失败结果尾部附加 result_digest 标注;成功后清除状态;远端 URL 跳过守卫。iac-aliyun-template-generatingSKILL.md / prompts/template_generating.md:加入校验重试纪律(失败先定位语法根因、禁止对未修改模板重复校验),conclusion_schema 新增可选validation_summary记录校验迭代摘要。测试
make lint通过;make test13277 passed / 2 failed(两个失败在干净基线同样失败,属环境既有问题)。Harness WorkItem: 77585667-1c53-4fff-9f77-bd01390e046b