Feat/operator alerts (#1635)

* feat(state): durable operator alerts owned by the State Store

Alerts dedup on org+kind+subject, resolve themselves when a condition
clears, and are raised, resolved, dismissed and listed through the state
contract. Task transitions raise needs-human and failed alerts in the same
transaction; the store checks service health and prunes closed alerts.
Each raise and resolve queues a webhook delivery whose attempts are kept.

* feat(notify): deliver operator alerts to the webhook; raise config and release alerts

notify.webhook now receives raised and resolved alerts above a severity
threshold with HMAC-signed payloads, bounded retry and every attempt recorded
on the alert. archied raises model alias, provider and credential-binding
alerts from the effective configuration, an update alert from the release
channel, and a credential-rejected alert from the egress resolver. The
dashboard API lists and dismisses the caller's org's alerts.

* feat(ui): alert bell in the top bar and webhook alert settings

The bell lists the org's open alerts by severity with dismiss and a link per
alert, and refreshes from the event stream. The task settings page gains the
webhook severity threshold and signing secret. ui/dist rebuilt.
This commit is contained in:
sam authored and GitHub committed 2026-10-12 03:30:46 +11:00
1 parent f34f60f9c7
commit 8a3ba32c5a
43 files changed
+4671 -465

No files matched your search

+2
View File
@@ -1,4 +1,5 @@
<script setup lang="ts">
import AlertsBell from "@/alerts/AlertsBell.vue";
import NewTaskButton from "@/tasks/NewTaskButton.vue";
import Brand from "./Brand.vue";
import ConnectionPill from "./ConnectionPill.vue";
@@ -19,6 +20,7 @@ const props = defineProps<{ hidden: string[] }>();
<div class="flex shrink-0 items-center gap-2">
<SearchBar :hidden="props.hidden" />
<NewTaskButton v-if="!props.hidden.includes('/workflows')" />
<AlertsBell />
<ConnectionPill />
<SupportLink />
<ProfileDropdown />