Wave 2: mcl_om ~> 1.9, and the org lives in info/0 (mcl-mail#31) #34

Manually merged
terra merged 0 commits from pluto/31-om-19-singleton into main 2026-12-02 09:45:51 +00:00
Member

Wave 2 (mcl-martha#1): the last commit of mcl-mail#31, the step that waited on hex mcl_om 1.9.0.

Refs macula-services/mcl-mail#31, martha-ai/mcl-martha#1, macula-services/mcl-om#8, macula-services/mcl-om#11

What changes

  1. The pin moves ~> 1.6 to ~> 1.9. 1.9.0 is on hex (checksum 76bf6386...0c76029) and holds the multi-service boot and mcl_om_singleton. The release assembles with mcl_om 1.9.0 and macula 18.3.0 in it.
  2. C6 completes: the org lives in info/0 and nowhere else. mcl_om 1.9 takes each service's org from mcl_om:service_org/1, which reads this service's info/0, so the {org, <<"mcl-mail">>} line leaves config/sys.config.src. That line was only ever read by mcl_om 1.8 and below; keeping it would be dead in this release and, in a bundle, a second org sharing one env with every sibling service.
  3. The drift test becomes its mirror. the_config_names_no_org_test fails if a config org comes back, and the new the_org_mcl_om_boots_with_comes_from_info_test clears the mcl_om env, calls mcl_om's own decision function, and requires this service's org, so the answer proves info/0 supplied it.
  4. No singleton wrap, and that is recorded. A3 package 4 lists the six wave-2 services with per-node work (a reconciler, a truths subscriber); mail has none: it publishes and subscribes to no mesh topic, and its read model is one ETS table per node that every node must fill for its own reads. What a double run would do if mail ever gains such work is written down in mcl_mail_sup, beside where a singleton child would go.

What to check

  • No org remains in config/sys.config.src and no code falls back to it: info/0's org is the only source in the service.
  • Nothing else read the mcl_om org env (grep is clean; the test fixture setting it is the round-trip test's own configure, not a product path).
  • The split note says the honest thing: one copy per partition on a netsplit, and the second evoq append is refused by reckon-db's version check, with evoq's retry unconfirmed.

Verified locally

OTP 28.4.3 / rebar 3.28.0: rebar3 compile clean, MCL_LINT=1 rebar3 lint clean, rebar3 eunit 158 tests, no failures, rebar3 dialyzer clean, and rebar3 as prod release assembles with mcl_om-1.9.0 and macula-18.3.0 in it. A boot of that release is not run here: the shipped config is {mesh, required}, so a boot would reach the live realm's stations and claim. The org path is proven by mcl_om's own service_org/1 with the env cleared, plus checked_org on the answer.

Wave 2 (mcl-martha#1): the last commit of mcl-mail#31, the step that waited on hex mcl_om 1.9.0. Refs macula-services/mcl-mail#31, martha-ai/mcl-martha#1, macula-services/mcl-om#8, macula-services/mcl-om#11 ## What changes 1. **The pin moves `~> 1.6` to `~> 1.9`.** 1.9.0 is on hex (checksum 76bf6386...0c76029) and holds the multi-service boot and `mcl_om_singleton`. The release assembles with mcl_om 1.9.0 and macula 18.3.0 in it. 2. **C6 completes: the org lives in `info/0` and nowhere else.** mcl_om 1.9 takes each service's org from `mcl_om:service_org/1`, which reads this service's `info/0`, so the `{org, <<"mcl-mail">>}` line leaves `config/sys.config.src`. That line was only ever read by mcl_om 1.8 and below; keeping it would be dead in this release and, in a bundle, a second org sharing one env with every sibling service. 3. **The drift test becomes its mirror.** `the_config_names_no_org_test` fails if a config org comes back, and the new `the_org_mcl_om_boots_with_comes_from_info_test` clears the `mcl_om` env, calls mcl_om's own decision function, and requires this service's org, so the answer proves info/0 supplied it. 4. **No singleton wrap, and that is recorded.** A3 package 4 lists the six wave-2 services with per-node work (a reconciler, a truths subscriber); mail has none: it publishes and subscribes to no mesh topic, and its read model is one ETS table per node that every node must fill for its own reads. What a double run would do if mail ever gains such work is written down in `mcl_mail_sup`, beside where a singleton child would go. ## What to check - No `org` remains in `config/sys.config.src` and no code falls back to it: `info/0`'s `org` is the only source in the service. - Nothing else read the `mcl_om` org env (grep is clean; the test fixture setting it is the round-trip test's own configure, not a product path). - The split note says the honest thing: one copy per partition on a netsplit, and the second evoq append is refused by reckon-db's version check, with evoq's retry unconfirmed. ## Verified locally OTP 28.4.3 / rebar 3.28.0: `rebar3 compile` clean, `MCL_LINT=1 rebar3 lint` clean, `rebar3 eunit` 158 tests, no failures, `rebar3 dialyzer` clean, and `rebar3 as prod release` assembles with `mcl_om-1.9.0` and `macula-18.3.0` in it. A boot of that release is not run here: the shipped config is `{mesh, required}`, so a boot would reach the live realm's stations and claim. The org path is proven by mcl_om's own `service_org/1` with the env cleared, plus `checked_org` on the answer.
Wave 2 (mcl-martha#1): mcl_om ~> 1.9, and the org lives in info/0 (mcl-mail#31)
Some checks failed
c4 model / c4-model (pull_request) Has been cancelled
c4 model / c4-model-1 (pull_request) Has been cancelled
lint-and-test / check (pull_request) Has been cancelled
lint-and-test / The tested lock arrives whole (pull_request) Has been cancelled
4f5f08956b
C6 completes with the pin. mcl_om 1.9 boots several services in one node and
takes each one's org from its own info/0 (`mcl_om:service_org/1', mcl-om#8), so
the `{org, <<"mcl-mail">>}' line leaves config/sys.config.src: the `mcl_om' app
env is one value per VM, and in a bundle every service on the node would share
it, which is the one thing an org per service must not do.

The drift test becomes its mirror. `the_config_names_no_org_test' fails if the
line comes back, and `the_org_mcl_om_boots_with_comes_from_info_test' calls
mcl_om's own decision function with that env cleared, so the answer being this
service's org is what proves info/0 supplied it.

No side effect is wrapped in mcl_om_singleton, and that is a decision: A3
package 4 lists six wave-2 services with per-node work, mail has none (no mesh
publish or subscribe; the read model is one ETS table per node that every node
must fill), and what a double run would do if that ever changes is written down
in mcl_mail_sup.

Verified on OTP 28.4.3: rebar3 compile, MCL_LINT=1 rebar3 lint, rebar3 eunit
(158 tests), rebar3 dialyzer, and `rebar3 as prod release' assembles with
mcl_om 1.9.0 and macula 18.3.0.
mcl_mail_sup: the singleton note counts no services; graph's learner was ruled out (mcl-mail#31)
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
lint-and-test / check (pull_request) Successful in 3m52s
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 6s
c4 model / c4-model (push) Successful in 0s
build-and-push / check (push) Successful in 3m58s
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) Successful in 3s
build-and-push / File the tested resolve for the signer (push) Successful in 1s
build-and-push / attest (push) Successful in 0s
cb5f83359f
terra manually merged commit cb5f83359f into main 2026-12-02 09:45:51 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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-mail!34
No description provided.