Skip to content

feat(ros): block repeat validation of unchanged templates - #203

Open
ruanzhengxin-zhuxing wants to merge 2 commits into
mainfrom
harness/77585667
Open

feat(ros): block repeat validation of unchanged templates#203
ruanzhengxin-zhuxing wants to merge 2 commits into
mainfrom
harness/77585667

Conversation

@ruanzhengxin-zhuxing

Copy link
Copy Markdown
Collaborator

背景

Session f608eb3c/ec63773c/7f7062ed 中 ros_validate_template 在 template_generating 反复以相同 result_digest 失败(如 8d806e2c),未及时定位模板语法根因,远端校验被冗余调用。

变更

  • RosValidateTemplateTool 增加失败去重守卫:本地模板内容 sha256 指纹 + RequestId 归一化的 result_digest;模板未修改时重复校验被直接拦截并返回上次错误与根因定位指引;失败结果尾部附加 result_digest 标注;成功后清除状态;远端 URL 跳过守卫。
  • iac-aliyun-template-generating SKILL.md / prompts/template_generating.md:加入校验重试纪律(失败先定位语法根因、禁止对未修改模板重复校验),conclusion_schema 新增可选 validation_summary 记录校验迭代摘要。
  • i18n:新增两条用户可见消息并补全 zh/es/fr/de/ja/pt 翻译。

测试

  • 新增 6 个单测:重复失败拦截、修改后放行、成功清除状态、远端 URL 跳过、digest 归一化。
  • make lint 通过;make test 13277 passed / 2 failed(两个失败在干净基线同样失败,属环境既有问题)。

Harness WorkItem: 77585667-1c53-4fff-9f77-bd01390e046b

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.
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