evoq_decisions_sup (evoq v1.23.0)

View Source

Supervisor for the stateful decision-actor subsystem (Part B).

Mirrors evoq_aggregates_sup: the decision registry plus N partition supervisors, with actors distributed by phash2({Module, Key}, N). A separate tree from the aggregate one — no shared, hardwired sup is touched (see SPIKE_EVOQ_DECISION_ACTOR.md, Path 1).

Summary

Functions

Partition for a {Module, Key} boundary identity.

Start a decision actor for {Module, Key} in its partition.

Start the decisions supervisor.

Functions

partition_for(BoundaryId)

-spec partition_for({module(), binary()}) -> 1..4.

Partition for a {Module, Key} boundary identity.

start_decision(Module, Key, StoreId)

-spec start_decision(module(), binary(), atom()) -> {ok, pid()} | {error, term()}.

Start a decision actor for {Module, Key} in its partition.

start_link()

-spec start_link() -> {ok, pid()} | {error, term()}.

Start the decisions supervisor.