Fusion
96a9da7979
FN-8505: notify operators of terminal task wedges
Deliver durable, actionable notifications when terminal task recovery wedges.
- Persist and deduplicate terminal wedge notification episodes across task updates and service restarts.
- Classify terminal failure and self-healing escalation states, then deliver actionable ntfy and mailbox alerts.
- Align PostgreSQL baseline and upgrade migration registration for the durable wedge field.
Files changed:
.changeset/fn-8505-task-wedge-notifications.md | 7 +
docs/agents.md | 4 +
docs/architecture.md | 4 +
.../core/src/postgres/migrations/0000_initial.sql | 2 +
.../migrations/0033_fn-8505_wedge_notification.sql | 5 +
packages/core/src/postgres/schema-applier.ts | 29 +++-
packages/core/src/postgres/schema/project.ts | 1 +
packages/core/src/store.ts | 22 ++-
packages/core/src/task-store/persistence.ts | 2 +
packages/core/src/task-store/serialization.ts | 1 +
packages/core/src/task-store/task-row-mappers.ts | 2 +-
packages/core/src/task-store/task-update.ts | 5 +
packages/core/src/types.ts | 14 ++
packages/core/src/types/workflow-steps.ts | 2 +
.../src/__tests__/notification-service.test.ts | 20 +++
packages/engine/src/__tests__/notifier.test.ts | 26 +++-
packages/engine/src/__tests__/self-healing.test.ts | 9 +-
.../__tests__/notification-service.test.ts | 34 ++++-
.../__tests__/task-wedge-notification.test.ts | 134 +++++++++++++++++
.../src/notification/notification-service.ts | 108 +++++++++++++-
packages/engine/src/notification/ntfy-provider.ts | 11 ++
.../src/notification/task-wedge-notification.ts | 160 +++++++++++++++++++++
packages/engine/src/notifier.ts | 3 +
packages/engine/src/self-healing.ts | 17 +++
24 files changed, 610 insertions(+), 12 deletions(-)
Fusion-Task-Id: FN-8505
Fusion-Task-Lineage: eee85220-18ba-475d-9d01-dc96e2b923e6
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-22 20:07:48 -07:00
..
2026-07-22 20:07:48 -07:00
2026-07-22 19:37:44 -07:00
2026-07-22 19:37:44 -07:00
2026-04-18 23:41:47 -07:00
2026-07-14 08:16:42 -07:00
2026-07-20 18:16:58 -07:00