项目文件夹

文件
2026-07-13 12:58:18 +08:00

42 行
1.2 KiB
YAML

id: tools-red-tick
name: "Starter tool invocation failing"
owner: "@oss"
signal:
dimension: tools
triggers:
- green_to_red
- sustained_red
- red_to_green
conditions:
escalations:
- whenFailCount: 4
mention: "!channel"
severity: critical
guards:
- minDeployAgeMin: 20
rate_limit:
perKey: "{{signal.slug}}:{{triggerName}}"
window: 15m
suppress:
when: 'trigger == "sustained_red" && lastAlertAgeMin < 15'
targets:
- kind: slack_webhook
webhook: oss_alerts
# errorDesc is pre-sanitized in showcase/harness/src/probes/drivers/sanitize.ts
# — triple-brace intentional so literal characters survive to Slack.
template:
text: |
{{#trigger.green_to_red}}:red_circle: *{{signal.slug}}* — tool invocation failed, error: {{{signal.errorDesc}}}{{/trigger.green_to_red}}
{{#trigger.sustained_red}}:red_circle: *{{signal.slug}}* — tools attempt: {{signal.failCount}}, error: {{{signal.errorDesc}}}{{/trigger.sustained_red}}
{{#trigger.red_to_green}}:white_check_mark: *{{signal.slug}}* tools recovered (was down since {{signal.firstFailureAt}}){{/trigger.red_to_green}}
<{{{env.dashboardUrl}}}|Showcase>{{#event.runId}} · <{{{env.dashboardUrl}}}/runs/{{{event.runId}}}|Run>{{/event.runId}}