Skip to content

feat: route actor failures through per-source supervision strategies#78

Merged
joshua-temple merged 1 commit into
mainfrom
feat/cluster-supervision
May 31, 2026
Merged

feat: route actor failures through per-source supervision strategies#78
joshua-temple merged 1 commit into
mainfrom
feat/cluster-supervision

Conversation

@joshua-temple
Copy link
Copy Markdown
Collaborator

Layers a supervision policy over the kernel's raw escalation seam. A Supervisor routes each escalated child-actor failure to a Decision by the src the actor was spawned from, with a configurable default: Escalate forwards the failure to a configured sink (the next handler up the hierarchy), and Stop contains it at this level. It exposes a Handle method that plugs straight into ActorSystem.WithEscalationHandler, and records every failure it processed (Handled()) for observability. This turns the typed ActorEscalation into per-source supervision strategy, and is the foundation the restart and backoff strategies build on next. Coverage: cluster 100 percent. Additive; stdlib-only.

Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
@joshua-temple joshua-temple merged commit 610da78 into main May 31, 2026
10 checks passed
@joshua-temple joshua-temple deleted the feat/cluster-supervision branch May 31, 2026 16:34
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