Commit graph

9 commits

Author SHA1 Message Date
Developer
c688f0a60e feat: Router actor for pooled message distribution (Cycle 19)
Add Router<M> actor that manages a pool of identical workers and
distributes incoming messages via configurable routing strategies:
RoundRobin, Random, and Broadcast. Workers are monitored and
auto-replaced on failure with meltdown protection.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 14:21:03 +00:00
Developer
771c38c863 feat: OneForAll and RestForOne supervisor strategies (Cycle 18)
Add coordinated restart strategies to the Supervisor actor. OneForAll
restarts all children when one fails; RestForOne restarts the failed
child and all children after it in spec order. Uses a SupervisorPhase
state machine to coordinate stop signals and Down confirmations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 14:12:28 +00:00
Developer
a70bd86db2 feat: supervision trees with handle_down callback and Supervisor actor (Cycle 17)
Add three features to enable Erlang-style supervision:

1. ActorInterface::handle_down() — callback for monitored actor deaths,
   allowing actors to react to Down messages without making Down their
   Incoming type. Backward-compatible: actors with Incoming=Down still
   receive through handle().

2. ctx.stop_actor(addr) — send graceful stop to another actor from
   handler context using PoisonPill semantics.

3. Supervisor actor — manages child actors with configurable restart
   policies (Permanent/Transient/Temporary), OneForOne strategy, and
   meltdown detection (max_restarts). Built entirely on existing
   primitives (monitor, spawn, Down, lifecycle hooks).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 13:58:46 +00:00
Developer
8c68a59b45 docs: update architecture docs for Cycles 10-16
Reflect current state of tick_once (8 phases), TickContext (3 new
registries + stats_hook + worker_threads), TimerWheel, lifecycle
hooks, cleanup_dead with StopReason/Down notifications/registry
cleanup, and expanded Ctx/Runtime public API.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 13:42:23 +00:00
d817ad952f feat: distributed runtime (#30)
Major feature addition. For full details read `./docs/development_history/DISTRIBUTION.md`
2026-02-12 09:13:50 +00:00
ef08d3e7a5 feat: transport protocol (#27)
Address actors via ID, send messages over transport (TCP, QUIC, etc)
2026-02-09 19:05:37 +00:00
Zachery Aaron Shores-Chmielewski
6897d71e4b feat: refactor based on spectral spectral_analysis
Asking the agent to refactor to reduce spectral complexity, it worked. Trivial change, but this did reduce code complexity.
2026-02-07 17:36:45 +07:00
de0f3960f4 feat: docs and README (#13)
Update the docs and readme with all the changes we've made
2026-02-06 17:12:04 +00:00
Zachery Aaron Shores-Chmielewski
d3fdf9e550 feat: worker thread api (#6)
Make the worker thread api clearly seperated and ready for test harness
2026-02-06 21:45:19 +07:00