mcl-graph#15: mcl_om ~> 1.9, the org in info/0; the learner stays beside its store #18

Manually merged
terra merged 1 commit from ceres/15-wave2-bundle into main 2026-12-02 09:45:42 +00:00
Member

The last wave-2 change for mcl-graph#15, after mcl_om 1.9.0 reached hex.

  • Pin ~> 1.9. service_org/1 takes a service's org from its own info/0, so one release can host several services under their own orgs (mcl-om#8).
  • info/0 declares org => <<"mcl-graph">>. config/sys.config.src keeps the same line for a standalone boot, and the new the_org_is_declared_beside_the_config_test/0 holds the two equal.
  • No singleton on learn_truths_from_mesh. A3 package 4 said to wrap it in mcl_om_singleton; ruled out (Mars, 2026-12-02, on the question Hygiea's mcl-stations finding raised). The learner writes this node's own graph.sqlite and a node answers from the store on its own volume, so it belongs where the store runs — which the supervisor already enforces. A cluster-wide singleton would leave every other holder's graph deaf to truth_asserted, surfaced only as /health degraded. The ruling and its reason are in mcl_graph_sup's doc and the CHANGELOG; a replicated store later is the case that would need the wrap.

Gate on the tip in the forge builder image (macula-ci-otp@3e202…, own _build volume): rebar3 lint, rebar3 eunit (145/145), rebar3 dialyzer all clean. Mutants, each red then restored: info/0 without the org; info/0's org drifting from the config line; the learner wrapped in mcl_om_singleton again.

Refs #15

The last wave-2 change for mcl-graph#15, after mcl_om 1.9.0 reached hex. - **Pin `~> 1.9`.** `service_org/1` takes a service's org from its own `info/0`, so one release can host several services under their own orgs (mcl-om#8). - **`info/0` declares `org => <<"mcl-graph">>`.** `config/sys.config.src` keeps the same line for a standalone boot, and the new `the_org_is_declared_beside_the_config_test/0` holds the two equal. - **No singleton on `learn_truths_from_mesh`.** A3 package 4 said to wrap it in `mcl_om_singleton`; ruled out (Mars, 2026-12-02, on the question Hygiea's mcl-stations finding raised). The learner writes this node's own `graph.sqlite` and a node answers from the store on its own volume, so it belongs where the store runs — which the supervisor already enforces. A cluster-wide singleton would leave every other holder's graph deaf to `truth_asserted`, surfaced only as `/health` degraded. The ruling and its reason are in `mcl_graph_sup`'s doc and the CHANGELOG; a replicated store later is the case that would need the wrap. Gate on the tip in the forge builder image (`macula-ci-otp@3e202…`, own `_build` volume): `rebar3 lint`, `rebar3 eunit` (145/145), `rebar3 dialyzer` all clean. Mutants, each red then restored: info/0 without the org; info/0's org drifting from the config line; the learner wrapped in `mcl_om_singleton` again. Refs #15
mcl-graph#15: pin mcl_om ~> 1.9, the org in info/0; the learner stays beside its store
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 2s
c4 model / c4-model (pull_request) Successful in 0s
lint-and-test / check (pull_request) Successful in 7m39s
lint-and-test / The tested lock arrives whole (pull_request) Successful in 1s
build-and-push / guard (push) Has been skipped
build-and-push / guard-1 (push) Has been skipped
c4 model / c4-model-1 (push) Successful in 4s
c4 model / c4-model (push) Successful in 0s
lint-and-test / check (push) Successful in 5m42s
lint-and-test / The tested lock arrives whole (push) Has been skipped
build-and-push / check (push) Successful in 7m14s
build-and-push / The tested lock arrives whole (push) Has been skipped
build-and-push / test (push) Successful in 0s
build-and-push / build-and-push (push) Has been skipped
build-and-push / File the tested resolve for the signer (push) Successful in 2s
8031ec2a35
mcl_om 1.9.0 is on hex. service_org/1 takes a service's org from its own
info/0, so a release can host several services under their own orgs
(mcl-om#8). info/0 declares org => <<"mcl-graph">>; config/sys.config.src
keeps the same line for a standalone boot, and the new
the_org_is_declared_beside_the_config_test holds the two equal.

A3 package 4 said to wrap learn_truths_from_mesh in mcl_om_singleton. Ruled
out (Mars, 2026-12-02, on the question Hygiea's mcl-stations finding
raised): the learner's only write path is learn_link:learn/2 into this
node's own graph.sqlite, and a node answers from the store on its own
volume, so the learner belongs where the store runs -- which the supervisor
already enforces (store_holder false starts neither). A cluster-wide
singleton would start it on one node and leave every other holder's graph
deaf to truth_asserted, with only /health degraded to say so. A replicated
store, one writer feeding every node's view, is the case that would need
the wrap.

Refs #15
terra manually merged commit 8031ec2a35 into main 2026-12-02 09:45:42 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-services/mcl-graph!18
No description provided.