Bundle-ready for the one clustered mcl-martha release #16

Manually merged
terra merged 3 commits from ceres/15-wave2-bundle into main 2026-12-02 08:00:14 +00:00
Member

Bundle-ready for the one clustered mcl-martha release (mcl-graph#15).

  • info/0 declares the service org, which mcl_om 1.9 takes when one release hosts several services; config/sys.config.src keeps the same value because 1.8.0 reads only the env.
  • The one C7 shape (Mars, after mcl-mail#31 and mcl-stations#16): the application always starts its own supervisor, bundled only skips the application’s own mcl_om:boot/1 call, and mcl_graph_service:start/1 hands the bundle’s boot back the running supervisor (idempotent, never already_started).
  • data_root puts the store at <root>/mcl-graph/graph.sqlite; standalone keeps data_dir / MCL_DATA_DIR as it was.
  • The two macula settings this service requires (pq_hybrid, a named KEM key) are set as defaults from the app module when a release leaves them unset.
  • store_holder keeps the CozoDB store and the truths subscriber on the one node whose volume holds the graph; elsewhere the service starts nothing, advertises no desk and answers /health ok.

Refs #15, macula-services/mcl-om#8.

Local gate (CI builder image, fresh _build): lint, eunit 144/144, dialyzer clean. Six mutants on the new guards, all killed. The singleton wrap (A3 package 4) is deferred to a last commit once mcl_om ~> 1.9 is on hex, and C6 takes effect at that boot.

r=1 note: 788f9bf reworks C7 to that single shape and moves C6 (the org in info/0) to the last commit with the ~> 1.9 pin, per the brief’s correction.

Bundle-ready for the one clustered mcl-martha release (mcl-graph#15). - `info/0` declares the service org, which mcl_om 1.9 takes when one release hosts several services; `config/sys.config.src` keeps the same value because 1.8.0 reads only the env. - The one C7 shape (Mars, after mcl-mail#31 and mcl-stations#16): the application always starts its own supervisor, `bundled` only skips the application’s own `mcl_om:boot/1` call, and `mcl_graph_service:start/1` hands the bundle’s boot back the running supervisor (idempotent, never `already_started`). - `data_root` puts the store at `<root>/mcl-graph/graph.sqlite`; standalone keeps `data_dir` / `MCL_DATA_DIR` as it was. - The two `macula` settings this service requires (`pq_hybrid`, a named KEM key) are set as defaults from the app module when a release leaves them unset. - `store_holder` keeps the CozoDB store and the truths subscriber on the one node whose volume holds the graph; elsewhere the service starts nothing, advertises no desk and answers `/health` ok. Refs #15, macula-services/mcl-om#8. Local gate (CI builder image, fresh _build): lint, eunit 144/144, dialyzer clean. Six mutants on the new guards, all killed. The singleton wrap (A3 package 4) is deferred to a last commit once mcl_om ~> 1.9 is on hex, and C6 takes effect at that boot. r=1 note: `788f9bf` reworks C7 to that single shape and moves C6 (the org in `info/0`) to the last commit with the `~> 1.9` pin, per the brief’s correction.
Bundle-ready for the one clustered mcl-martha release
Some checks failed
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) Has been cancelled
lint-and-test / The tested lock arrives whole (pull_request) Has been cancelled
64bc2af45e
info/0 declares the service's org, which mcl_om 1.9 takes when one
release hosts several services; config/sys.config.src keeps the same
value because 1.8.0 reads only the env. A `bundled` switch stops this
application from calling mcl_om:boot a second time, `data_root` puts the
store in <root>/mcl-graph/, the two macula settings this service
requires are set as defaults from the app module, and `store_holder`
keeps the CozoDB store and the truths subscriber on the one node whose
volume holds the graph, advertising no desk and answering /health ok
elsewhere.

Refs #15
C7 one shape: the app owns its tree, start/1 is idempotent
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 5m7s
lint-and-test / The tested lock arrives whole (pull_request) Successful in 2s
788f9bf7be
Mars's ruling for every service, after mcl-mail#31 and mcl-stations#16:
start/2 always starts mcl_graph_sup, bundled only skips the app's own
mcl_om:boot call, and mcl_graph_service:start/1 hands the bundle's boot
back the running supervisor instead of starting a second tree. The
placeholder supervisor is gone.

C6 (the org in info/0) moves to the last commit with the mcl_om ~> 1.9
pin, per the brief's correction: 1.8.0 reads the org only from its env,
so config/sys.config.src keeps its line untouched.

Refs #15
C9: no crypto_profile default; macula refuses to start without one, before this app (mcl-graph#15 review)
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 5m28s
lint-and-test / The tested lock arrives whole (pull_request) Successful in 3s
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 3s
c4 model / c4-model (push) Successful in 0s
lint-and-test / check (push) Successful in 5m57s
lint-and-test / The tested lock arrives whole (push) Has been skipped
build-and-push / check (push) Successful in 7m24s
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
0305fd0447
macula_app:start/2 returns {error, crypto_profile_missing} when the
profile is unset, and macula starts before mcl_graph, so a default set
in mcl_graph_app:start/2 could never be read. The kem_advertise default
stays: macula reads it at each advertise. Tests and CHANGELOG follow.
terra manually merged commit 0305fd0447 into main 2026-12-02 08:00:14 +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-graph!16
No description provided.