Files
copilotkit__copilotkit/showcase/harness/config/alerts/pin-drift-weekly.yml
Jordan Ritter 0522b7fa41 refactor(showcase): rename showcase/ops → showcase/harness
The monitoring/alerting service is a test harness (probes, assertions,
alerting), not an operations service. Rename the directory, package
name (@copilotkit/showcase-ops → @copilotkit/showcase-harness), all
internal references (Dockerfile, Prometheus metric prefix
showcase_ops_ → showcase_harness_, orchestrator log messages, probe
YAML nameExcludes, test fixtures), and regenerate pnpm-lock.yaml.

Wire protocol names (X-Ops-* headers) and shell-dashboard internal
API naming (OPS_BASE_URL, ops-api.ts) are intentionally unchanged —
they are stable contracts between sender and receiver.
2026-04-28 13:48:12 -07:00

31 lines
1.0 KiB
YAML

id: pin-drift-weekly
name: "Weekly pin-drift report (FAIL count vs baseline)"
owner: "@oss"
signal:
dimension: pin_drift
triggers:
- cron_only:
schedule: "0 10 * * 1"
conditions:
rate_limit: null
targets:
- kind: slack_webhook
webhook: oss_alerts
# Render `[first run — no baseline yet]` on the initial weekly run
# instead of leaking the raw enum value `[no_baseline]` into Slack.
# Probe emits `signal.noBaseline = true` when `signal.setStatus ==
# "no_baseline"`; template branches on that flag.
template:
text: |
{{#signal.noBaseline}}:chart_with_downwards_trend: *Showcase pin-drift (weekly)*: FAIL={{signal.actualCount}} [first run — no baseline yet] | <{{{event.runUrl}}}|Run>{{/signal.noBaseline}}
{{^signal.noBaseline}}:chart_with_downwards_trend: *Showcase pin-drift (weekly)*: FAIL={{signal.actualCount}} (baseline {{signal.baselineCount}}) [{{signal.setStatus}}] | <{{{event.runUrl}}}|Run>{{/signal.noBaseline}}
on_error:
template:
text: ":x: *Showcase drift report*: job failed | <{{{event.runUrl}}}|Run>"