Changelog
View SourceFormat: Keep a Changelog. Versioning: SemVer.
[Unreleased]
mcl_core 1.0.0, the first mcl_core release: mcl_om 1.9.0 under a new name, in a new repository (macula-services/mcl-core#1), and a LAN transport (macula-services/mcl-core#3). With the LAN off, the default, nothing behaves differently from mcl_om 1.9.0. The entries below this one are mcl_om's and name it as it was.
Changed
- mcl_om is now mcl_core. The hex package, the application, its app env
key and every module (
mcl_om_*tomcl_core_*) take the new name, and the version starts again at 1.0.0.mcl_om1.x stays published. A service moves by renaming, nothing else:- the dependency:
{mcl_om, "~> 1.9"}to{mcl_core, "~> 1.0"}; - its calls:
mcl_om:,mcl_om_pubsub:,mcl_om_wire:and the rest tomcl_core..., and-behaviour(mcl_om_service)tomcl_core_service; - its
sys.config: the{mcl_om, [...]}block to{mcl_core, [...]}; - a reader of
/infoor<org>/info: themcl_om_versionkey is nowmcl_core_version.
- the dependency:
src/is split by role (docs/DESIGN.md §1.2):src/contract/,src/bridge/andsrc/lan/.
Added
- The transport boundary,
mcl_core_transport.mcl_core:call_capability/4,5andmcl_core_pubsub:publish/2,3reach the wire through it. It tries the LAN transport first and the mesh bridge (mcl_core_bridge) second (transports/0). - The LAN transport (docs/DESIGN.md §2, macula-services/mcl-core#3).
Services on one LAN cluster over distributed Erlang with no station. Off
unless the
lanapp env is set:#{data_dir => Dir, first => boolean(), gossip => map()}. Seeguides/lan_transport.md.- Cluster start. The first node (
first => true) generates the Erlang cookie (.erlang.cookie, 0400) and the gossip secret (gossip.secret,- into
data_dir; every other node gets them copied at install. A node refuses to start when it is not distributed, has no stable identity key (identity_key_path), or lacks either secret, and a secret that is short or readable by group or others is refused. Nothing overwrites a secret. The cookie is set from the file, and macula's gossip (macula_cluster_gossip) dials every node it hears with the same secret.
- into
- Calls. A capability whose
authisopen,{callers, members}or{callers, {nodes, Ids}}is served on the LAN as well as the mesh, behind the same guard pipeline. A call prefers this node's provider, else a random one, and tries one more if the first is gone.advertiserpins a node as on the mesh. The handler finds the calling node's id undercaller(overwriting the payload's own) and inmacula_response:caller/0. A capability that needs the realm (role,handler_authorizes, a UCAN) and a streamer are served on the mesh only. - Pubsub. A declared subscription also runs on the LAN, except one
under a sealed group. A publish goes to the LAN's subscribers when there
are any, else to the mesh; a
realmoption always means the mesh. The event meta names the publisher's node id,publisher_verified => trueanddelivered_via => lan.{nodes, Ids}sources are checked against the publisher. - Answers that differ from the mesh. A refused caller gets
{error, caller_refused}; a handler's{error, Reason, _}comes back as{error, Reason}with the term itself, not the mesh's detail text; a crashed handler is{error, {handler_crashed, Reason}}.
- Cluster start. The first node (
- The mesh bridge (docs/DESIGN.md §3, macula-services/mcl-core#7). On a
LAN cluster, one node is the bridge:
{bridge, true}(defaultfalse). Seeguides/lan_transport.md.- Only the bridge runs the mesh pool, sends the D25 claim (once per org it
exports), and advertises. Every other node runs none of them, and is not
refused for
{mesh, required}without mesh settings. export => meshon a capability: the bridge advertises it, from any node of the cluster. It forwards each mesh call into the LAN, with the mesh caller ascaller. The serving member's guard runs once, for that caller. Anexportother thanmeshrefuses the registration, naming the capability.- A member's mesh call or publish is relayed to the bridge node over distribution.
mcl_core_lan:call_as/6: a LAN call made as a given caller.- The mesh pool's start moved from
mcl_core_identitytomcl_core_bridge:start_mesh_pool/0.mcl_core_identity:macula_client/0still answers.
- Only the bridge runs the mesh pool, sends the D25 claim (once per org it
exports), and advertises. Every other node runs none of them, and is not
refused for
- The LAN entry point (docs/DESIGN.md §4.2, macula-services/mcl-core#4).
Clients that are not BEAM nodes (Martha, lazymartha, macula-mcp) call
capabilities and follow topics on a LAN cluster as a named member, with no
station. Off unless the
lanmap hasentry => #{address => Ip, port => Port}. Seeguides/lan_transport.md.- The address must be private (10/8, 172.16/12, 192.168/16, 169.254/16,
fc00::/7, fe80::/10) or loopback. Any other address, wildcards included,
starts no listener, and
/healthis{degraded, {lan_entry, {not_private, Address}}}. - Who may take a token: a node id on
lan_membersindata_dir, one<hex node id> owner|memberper line. A list that group or others may write names nobody. It is read again on every request. POST /lan/v1/challenge, thenPOST /lan/v1/token. The challenge is single-use, lives 60 s and is held only at the issuing node. The token request must carry the key whose node id (macula_node_keys:node_id/2) is the one claimed, with a signature overmcl_core_lan_entry:signed_message/2. The token is HMAC-SHA256 under HKDF(gossip secret,mcl-lan token v1) and lives 15 minutes; any node verifies it.POST /lan/v1/callwith the bearer token: made throughmcl_core_lan:call_as/6as the token's node id. A"caller"the client sends is dropped. With no LAN provider the answer is 404no_lan_provider; the call is not relayed to the bridge, where it would carry the bridge's identity.GET /lan/v1/events?topic=Twith the bearer token: the topic's LAN events as server-sent events. The stream ends when the token expires or the member leaves the list.
- The address must be private (10/8, 172.16/12, 192.168/16, 169.254/16,
fc00::/7, fe80::/10) or loopback. Any other address, wildcards included,
starts no listener, and
mcl_core_pubsub:mesh_publish/3: a publish on the mesh alone, whatpublish/3was in 1.9.0. The bridge publishes with it.- The design (
docs/DESIGN.md) and its C4 model (assets/), moved from macula-services/mcl-lan at 4020832.
[1.9.0] - 2026-12-02
Added
- One release hosts several services (mcl-om#8). Each
mcl_om:boot/1,2now ADDS its service to the ones the node hosts (a second boot of the same module replaces only its own entry). A bundle boots its services with a list:mcl_om:boot([kanban_service, {mail_service, Opts}])answers{ok, [{Mod, Pid}]}, or{error, {Mod, Reason}}for the first service whosestart/1refuses; that service is not hosted. A standalone release callsboot/1once and nothing changes for it. They share one identity key, one mesh pool and one health socket.- A service's org (
mcl_om:service_org/1) is theorgkey of its owninfo/0when present, else mcl_om'sorgenv as before. It is checked the same way at boot. - Capabilities are kept per service and advertised per org. Registering
one service never replaces another's (
mcl_om_capabilities:register/3,list/1).<org>/infoand<service>.describe_capabilitiesanswer for their own service. - Health combines every hosted service's verdict. With several, a failing
one is named:
{degraded, {<<"mcl-mail">>, Reason}}./healthlists each one's info underservices, which is now a key/healthsets itself, so a service may not use it in its owninfo/0. - The boot claim is made once per distinct org (
mcl_om_claim:add_org/1)./health'sclaimis today's map for one org and a list of those maps for several. mcl_om:service_modules/0lists the hosted services in boot order.service_module/0stays: the first of them.
- A service's org (
mcl_om_singleton: a side effect on exactly one node of a cluster (mcl-om#8).mcl_om_singleton:child_spec(Name, {M, F, A})goes in a service's supervisor on every node. The node whose guard registers theglobalname runs the work; the others stand by and take over when its node goes away. Two nodes that each ran the work apart keep one when they meet: the holder on the node whose name sorts first.whereis/1finds the work. On a node without distribution it simply runs.- The house's Design gate (mcl-om#67, macula-sponsors#113). A house
scaffold now carries
.github/workflows/c4-design-gate.yml, which answersgate:designon a plan issue with macula-ci-images' shared gate: without the C4 Context and Container diagrams inassets/, the issue gets a comment and a failing check. The label is never removed. The template default stays off, so a stranger's scaffold carries no such file (scripts/scaffold-service.shremoves the empty render). architecture/README.mdin the scaffold now has a Level 2 containers table and namesassets/c4-containers.svgbeside the context and component diagrams.
Changed
The service template's
mcl_omfloor is~> 1.9, this release.The house's C4 pin moves from macula-ci-images
40c349dtob268b87, the commit with the Container rule and the Design gate.c4-modelandc4-design-gateshare the one pin inscripts/scaffold-service.sh.The dependency advisory scan runs on the forge. It reads the rebar.lock this build resolves, with osv-scanner, in a macula-ci-otp image on the forge's own runners; before, it died in ~2 s at set-up (macula-io/macula-ci-images#22). The cowlib waiver for EEF-CVE-2026-43966 is gone: the build resolves cowlib 2.22.0, which carries the fix, and the waiver had expired on 2026-11-20.
Fixed
- A release tag publishes from the forge (mcl-om#13).
publish-hex.ymlran its guard and publish on github.com only; it is now ported the way evoq's was, andpublishneedsverify,test(lint-and-test.yml),advisories,release-guardanddocs. The docs check runs in the forge's ci-otp image, so its gate is real (#5). The scaffold-lint job moved, unchanged, intotemplate-lint-image.yml; it still cannot run on the forge (#2). The advisory scan moved, unchanged, intoadvisories.yml, and publish calls its stand-in directly: two calls deep, the forge drops the stand-in'sOSV_SCANNER_VERSION. - A scaffold push that changes only
assets/rebuilds no image (mcl-om#63). The generatedscripts/is_image_push.shcounted.md,docs/andLICENSEas documentation but notassets/, so a commit carrying only a re-renderedassets/c4-*.svg(which the shared C4 gate writes) built and pushed an image. The template now matches^assets/, as every service's own copy already did, and its comment no longer claims a main push rolls boxes through watchtower. - The check job runs on the forge again (mcl-om#7). It died in 2 s at
its first step:
actions/checkout@v4is a JavaScript action and the job's ci image carries no node. The job now checks out in plain shell, as the sibling repositories do, and dropsactions/cache@v4with it. Its builder image stays the scaffold's, which the template suite pins.
[1.8.0] - 2026-11-02
Slice A of mcl-om#51: the scaffold now generates a repository that meets the
house rules on its first commit, instead of collecting the gaps one review at a
time. The library's API is unchanged; what moves is what rebar3 new mcl_service
writes.
Slice B of mcl-om#51: a scaffolded repository now arrives with its labels and its first issues named, instead of a list of jobs to discover.
Slice C of mcl-om#51 adds the other half: a check that compares the services already built against that template, so the two cannot drift apart silently.
Added
Per-procedure inbound limits from the node's config (mcl-om#19, mcl-echo#11).
{inbound_guard, #{procedures => #{<<"org/proc">> => Limits}}}sets one procedure's limits, and optionally its envelope, for one environment without a rebuild. It is merged over the capability's ownlimitsand stays under runtimeset_limits. The guard checks the whole block at boot (mcl_om_guard_limits:validate_config/0), so a bad entry, including one whose ownper_caller_maxexceeds its ownglobal_max, stops the node rather than surfacing at an advertise tick. Checked only when the procedure is declared: the relation against the capability's own numbers, and whether the name matches a procedure at all. The scaffold'ssys.config.srcshows the key, and a generated service now asks formcl_om ~> 1.8, the first release that reads it.scripts/seed-repository.sh <org>/<repo>seeds the repository the scaffold cannot create (mcl-om#55). It prints the plan and, with--file, creates the five workflow labels the org uses, acrew:<member>label for each member named with--creworMCL_CREW(never guessed, since members come and go), and four issues: the C4 model before there is code, the README with the service's own logo, the walking skeleton (CI, a digest-pinned deployment entry, the first two desks) andv0.1.0— each opening with thePurpose (kind):line the house requires. Dry by default, because what gets created should be readable before it is created, and because a plan rather than a side effect is whatmcl_service_template_SUITEcan assert: it runs the script with a stand-inghon PATH and checks every call, every Purpose line, and that no body carries a box name, a home path or a repository of ours.scaffold-service.shnow names the command in its next steps.A generated service carries its own logo and README head (mcl-om#51): two parameterised SVGs in
assets/— the shared mesh icon with this service's name under it, light and dark — and a README that shows them, with a badge row. A mark of its own from the first commit rather than a placeholder.SECURITY.md,.github/FUNDING.ymland.github/advisories-waivers.txt: the security policy a stranger can act on, the funding button (ours only when the org is one of ours), and the waivers file the dependency scan reads, with no rows, so nothing is waived by default.The release and promotion path:
scripts/image_tags.shdecides every channel fromGITHUB_REFin one place,scripts/is_newest_release.shkeeps:latestfrom moving backwards when an older tag finishes last, andscripts/promote_latest.shcopies a digest's own manifest bytes under:latestrather than re-serialising one nothing signed. Its test runs in CI against a registry of its own on every change.scripts/check-service-drift.shreports how a service differs from the template, and how it starts its Erlang node (mcl-om#56). Read-only, offline, and read atorigin/mainrather than from the working tree, so a checkout left on a branch says what people deploy. It compares only the files the template ships verbatim — the four release scripts and.tool-versions, derived frommcl_service.templaterather than typed into the script — because everything else carries the service's own name, org and images. Each finding is one TSV line, so the sweep becomes one issue per service per difference. The distribution line is #24's remaining half:no-listeneris the template's form,loopbackbinds 127.0.0.1 (or::1) and nothing else — the directive naming any other address,{0,0,0,0}included, isopen, since it is also how a node binds the world —openlistens on every address with a cookie as its only defence, andunknownis a repository with noconfig/vm.args.src. A cookie is reported only where it is set to a literal value; the house's${MCL_COOKIE:?…}pass-through is not a cookie this repository carries. It is a report and not a gate: it exits 0 and files nothing.
Changed
- A generated service publishes three channels, and only a release moves
:latest. A push tomainpublishes:mainand:<sha>, which nothing follows; av*tag publishes its version; and:latestmoves to that tag's digest once it is built — and, in the house, signed. Before this, a push tomainpublished:latest, so the tag people pull was whatever main was last built from. - The generated lint workflow assembles the release too (mcl-om#52): it runs
the Containerfile's own
rebar3 as prod release, in the same digest-pinned builder image, so a release relx refuses fails on a pull request instead of on the tag that needed it. mcl_om's template suite fails when the two disagree.
Removed
- No Erlang distribution listener, no epmd on a public interface, no image
cookie default (mcl-om#24, subsumed). The generated
config/vm.args.srcstarts the node with-sname,-start_epmd falseand-dist_listen falseand sets no cookie; the Containerfile bakes no defaultMCL_COOKIEand the compose file sets neither a node name nor a cookie. A box that can reach a node's distribution port can attach a process holding the service's keys, and a per-box cookie was the only thing in front of it. The generated service's own tests pin the three flags, so the property survives after the scaffold has moved on.
Fixed
- A prerelease never moves
:latest, and never counts as the newest release.scripts/is_newest_release.shsorted with git's--sort=-v:refname, which putsv1.1.0-rc1ABOVEv1.1.0: git reads therc1as text after the empty suffix a plain release has, where SemVer sorts a prerelease before the release it precedes. So cutting an rc moved:latestto a rehearsal, and the release cut after it — reading as not-newest against the rc — never reached:latestat all. Only plainvX.Y.Ztags are releases now.only_a_plain_release_moves_latestcuts both rows for real in a throwaway repository and reads the answer from the script, and the promotion step's ownif:and the house'sneeds: [build-and-push, attest]are pinned too, so neither can be dropped under a green suite. Found in the review of #54; the same script on main in mcl-tenders and mcl-jobs is filed there (mcl-tenders#17, mcl-jobs#14).
[1.7.0] - 2026-11-01
A subscription can now be under a sealed group (mcl-om#49). The publish side
has had its hook since mcl-tenders: publisher_opts => #{publish => Fun} reads
the token at the publish. The subscribe side had no equivalent, so a service
that publishes its facts sealed could not subscribe to them through mcl_om at
all — it had to hand-roll a subscriber and lose the reconcile, /health and
the fail-closed bookkeeping. This is the subscribe-side twin, and it is what
mcl-tenders#4 and the guide_tender_lifecycle need; mcl-om#48 later swaps the
admission for the node's realm membership UCAN without changing a declaration.
Added
groupandadmissiononmcl_om_service:subscription()(mcl-om#49): valid only together.groupis the sealed group's prefix, whichtopicmust be under on a segment boundary — a whole segment, so<realm>/tendersis a group of<realm>/tenders/wire/x_v1and never of<realm>/tenders_archive/wire/x_v1.admissionis{Module, Function, Args}, called asapply/3with exactly those arguments and nothing added, answering{ok, Token}(the UCAN that admits this node to the group) or{error, Reason}. Declared wrong, the boot is refused naming the topic, the way a missingsourcesalready is: half of the pair, a group that is not a segment of its topic, a term that is not{atom, atom, list}, and anM:F/aritythat is not exported are each their own refusal.- The token exists for the length of one call, and nowhere else IN MCL_OM'S
OWN ARTEFACTS. mcl_om starts such a subscriber with a
subscribefunction of its own (macula_subscriber:start_link/6'ssubscribeoption) that calls the admission and passes the token straight tomacula:subscribe/5beside the group. So the child spec carries the fun and the{M, F, A}and never the token, andmacula_subscriberkeeps no options in its state at all. What mcl_om reports for a refused admission is never what the admission answered as itself: an atom is passed through (no_admission_token), any term becomesadmission_refused, and a raiseadmission_raised— because an admission reads a token and can fail holding it ({error, {expired, Token}}is a real shape), and echoing that term is exactly how a token would reach a log line,/healthor a crash report. The tests look for a canary token in the child spec, in the read-back, in the recorded failure, in the/healthreport and in the log — including a crash raised in the subscribe path itself, whose reason would otherwise carry the options, and so the token, into a log line. NODE-WIDE this holds only once macula-io/macula#189 lands: the SDK's keyring keeps the ucan in its own state andmacula_node_keys:redacted/1does not redact it, so a crash report orsys:get_statusof the keyring can still show one. That is macula's fix, not this one. - Called once per subscribe attempt, never on a tick. The admission runs at a first start, a restart, a pool replacement and a changed declaration — not on the 30s reconcile that finds the subscriber running and matching. Nothing is cached in mcl_om: once the group is joined, a later epoch pull is macula's keyring's business.
Changed
- The declaration-equality check now compares
groupandadmission(mcl-om#41's rule, extended): changing either restarts that subscriber and no other. Adeclaration/2read-back of a subscription with neither reads exactly as it did before.
Fixed
- Fail closed throughout: an admission that refuses, answers something that is
not a token, or raises starts no subscriber, is recorded per topic, and
degrades
/healthnaming the topic and the reason. There is no fallback to a clear subscription. - A raise from
macula:subscribe/5is recorded as the fixed atomsubscribe_raised. Its own reason is afunction_clausewhose arguments are the options it was called with — the token among them — and that reason is logged with~pand kept for/health, so it is not passed on.
[1.6.0] - 2026-10-30
Serving openly stops being the default here too (macula-io/macula#147, mcl-om#41): a capability that names a handler must name who may call it, and a subscription must name who may deliver to it. Both are refused by mcl_om, naming what is missing, rather than by the SDK later. This is why the minor moves and not the patch — a service that declares neither will not boot until it does.
Added
{callers, members | role | {nodes, [NodeId]}}(macula 18): the call class a capability'sauthmay name, resolved against the realm key the pool pinned.membersadmits any realm member,roleonly a caller whose realm role names the procedure, and{nodes, Ids}exactly those identities with no lookup at all. Named bymcl_om_service:capability()and forwarded untouched bymcl_om_capabilities:auth_opts/1.mcl_om_service:sources()and the subscription map (macula 18, macula#147):subscriptions/0now returns#{topic := Topic, module := Mod, args => Args, sources := Sources}, wheresourcesismembers,{org, Organisation},{nodes, [NodeId]}, or{open, Reason}. The subscriber's own SDK enforces it on every fact before the handler runs;{open, Reason}is the opt-out mcl_om requires be written down, in the same spirit asguard => none.mcl_om_pubsub_subscriptions:validate/1, pure, and called bymcl_om:boot/2BEFORE the service's ownstart/1: a declaration mclom cannot wire — nosources, an unknown source class, anopenwith no reason or an empty one, an empty or malformed `{nodes, }/{org, _}, a non-binary topic, a non-atom module, one topic declared twice — raises{mcl_om_subscription_invalid, #{topic, reason}}` naming the topic, and no half-built supervision tree is left behind.mcl_om_pubsub_subscriptions:report/0andverdict/1, and asubscriptionskey on/healthin every state: the declared topics, the running ones, and the last start failure per topic. A subscription that will not start now degrades the verdict instead of hiding behindok— the facts that subscriber exists to react to are not arriving. The failure is logged once atwarningand cleared when the same topic next starts.mcl_om_wire_test:deliver/3andcall/4deliver ahandler_authorizescapability's request with the call'sucan_tokenandproofsbeside its fields, the way macula 18'smacula_station_link:with_call_token/3delivers them: under the atom keys, a payload's own text-keyed pair of those names dropped first, and<<>>/[]when the request carried none — never an absent key. Without this the helper handed such a handler no token at all, so a test of the check that is the only gate on that policy could not pass, and a handler that trusted a token it never received agreed with its test and refused every live caller (the mcl-chess#10 fault this module exists to catch). A capability under any other policy is delivered exactly as before, with neither key: that is what a station sends.- A whole declaration is reconciled, not just its topic. The running set is
read back from
supervisor:get_childspec/2, so changing one subscription'ssources,moduleorargsrestarts that subscriber and no other, and a child under the subscription supervisor that mcl_om did not start is stopped rather than kept.
Changed
- The base library is macula 18 (
~> 17.0→~> 18.0, mcl-om#41). - A handler-bearing capability must name
auth.register/1refuses the set as{error, {auth_required, [Name]}}, naming every capability that omitted it, instead of letting each advertise be refused by the SDK. A capability with nohandleris a discovery record only, which macula does not gate, and is not asked: requiring a policy for something nothing can call would refuse a boot over nothing. The synthetic<service>.describe_capabilitiescapability namesauth => open, which is a decision, not a default. auth_opts/1has no default. It has no clause for a capability withoutauth; the refusal happens earlier, inauth_verdict/1.
Removed
mcl_om_capabilities:unguarded_capabilities/1and the boot warning it fed. Both existed to say "this will be served open, and nobody decided that"; macula 18 makes that unrepresentable, and the refusal takes its place.mcl_om_health_handler:body/6: the body gained the subscription report, so it isbody/7.
[1.5.0] - 2026-10-27
Added
auth => handler_authorizes(macula 17, macula-io/macula#129) is named bymcl_om_service:capability()and documented inmcl_om_capabilities. The link runs no gate for such a procedure and checks nothing: it hands the handler the call'sucan_token— the token the caller put on the request, unverified, and<<>>when it carried none — andproofsbesidecaller, a payload's own fields of those names dropped first, so the handler makes the check where no gate can see what decides it (a group prefix inside a sealed payload, say), withmacula_ucan:authorize/3. The option was already forwarded untouched; the type and the boot warning's list of policies now name it.info()may carry keys of the service's own, reported verbatim in the/healthbody while the verdict isok. A normal setup wait — an org key id its operator has not filled yet, say — is named there while the node stays healthy, so the wait is visible without failing a canary for a state that is not a fault (mcl-distributor#5).Org/infokeeps its fixed shape. A value must be whatjsxencodes (json_value()says which), and a key whose name is one/healthsets itself —status,provider_grants,advertise_liveness,claim,failed_publishes, atom or binary — refuses the boot rather than ride beside the verdict as a second JSON key.
Changed
- The base library is macula 17 (mcl-om#36). The requirement moves from
~> 16.0to~> 17.0, which resolves 17.1.0. 17 keeps wire 1.0, so a node on this release still speaks to every wire 1.0 box; what it brings is group read control (macula#129) and the realm rights of macula#128, both of which a service opts into — nothing here changes for a service that gates its procedures as it did before. Minor rather than patch for the same reason the cowboy move was: this is the base dependency of every generated service.
[1.4.0] - 2026-10-22
Changed
The base library is macula 16 (macula-codebase-checks#4). The requirement moves from
~> 15.6to~> 16.0, which resolves 16.0.0. 16.0 keeps wire 1.0, so a node on this release still speaks to every wire 1.0 box; what it brings is the revocation bound from macula#118: a realm endorsement admits its holder for at most 24 hours, and a gated overlay context must passmember_standingor it admits nobody. mcl_om gates no overlay context and issues no endorsement, so nothing here changes for it; a service that does is fixed in that service. Minor rather than patch for the same reason the cowboy move was: this is the base dependency of every generated service.The service template's
mcl_omfloor moves with the release,~> 1.3to~> 1.4, which is whatgenerated_service_floor_is_this_releaseexists to enforce: a service generated from this release declares the minor it came from.
[1.3.0] - 2026-10-21
Changed
- Cowboy is past its four, and the package ends two cowboy minors of the pack
(macula-codebase-checks#11). The requirement moves from
~> 2.12.0to~> 2.18, which resolves to cowboy 2.20.0 and cowlib 2.21.0. What that buys: GHSA-32p9-57cr-4x65 (8.7, uncontrolled resource consumption incow_http_te), GHSA-84f2-rp86-235p (8.2, decompression bomb incow_spdy), GHSA-hv23-4qp7-8c8r (6.3, CRLF injection in SSE) and GHSA-g2wm-735q-3f56 (3.2, cookie header injection) are all gone. This is the base dependency of every generated service, so it is a minor release rather than a patch. One advisory has no released fix yet, EEF-CVE-2026-43966 in cowlib'scow_http_struct_hd:escape_string/2: it is waived, dated and owned, in.github/advisories-waivers.txt.
Added
- The scaffolded service carries its C4 model (macula-codebase-checks#10):
architecture/README.mdis generated from the service's own name and description, stating what the scaffold talks to and what it is made of, and the house scaffold's.github/workflows/build-push.ymlgains the sharedc4-modeljob, pinned to a full commit sha. The scaffold draws neither diagram: a diagram generated from a template is a placeholder, so the job is red until the service draws its own. IT IS NOT IN THE IMAGE'S PATH: nothing needs it, so the service publishes its first image while it still owes its readers a model. It sits at the workflow's level rather than in lint.yml because build-and-push's test job IS lint.yml, and every job there is part of what the image waits for. A scaffold outside our orgs gets the page and no job, as withattest: the check is ours and pinning it to a stranger's CI names us.
Fixed
- The guides' Erlang examples compile against the package and call only what
exists (macula-codebase-checks#8): the read-model listener called
macula_record:verify/1, which takes the crypto profile too (verify/2), andmesh_handles/0's spec named apool()type nobody defines. Every fence names its language. - A v* tag publishes to hex only when its tests are green (mcl-om#34).
publish-hex.ymlnow callslint-and-test.yml(workflow_call) on the tagged commit as itstestjob, andpublishneeds[verify, test]. Before this the two ran side by side on a tag, and 1.1.0 and 1.2.0 reached hex from commits whoserebar3 cthad failed. A red suite now leaves the tag with no package. A manual dispatch is still a dry run ofverifyand skipstest. - A generated service pushes no image while its tests are red (mcl-om#34). The scaffold's
build-push.ymlcalls its ownlint.yml(now alsoworkflow_call) as atestjob, andbuild-and-pushneeds it, on main and on a v* tag alike.mcl_service_template_SUITE:image_publishes_only_after_the_tests_passholds the shape. - A generated house service publishes no image for a release tag the guard refuses (macula-codebase-checks#3). The house scaffold's
build-push.ymlgets aguardjob calling macula-ci-images'release-guard.ymlon the build's runner, andbuild-and-pushneeds[guard, test]: a v* tag off main, or whose version is not the release's, now stops before anything is pushed, instead of leaving an unsigned:<semver>image behind. The attest call moves from 601c719, which predates the guard, to the same commit (b4c41ab). The stranger's scaffold is unchanged.
Added
docs.ymlchecks every Erlang block in the README and guides on every change, doc-only ones included;publish-hex.ymlwaits on it.
[1.2.2] - 2026-10-20
Fixed
- The generated service floor follows the release again (mcl-om#33).
priv/templates/mcl_service/rebar.configstill emitted{mcl_om, "~> 1.0"}, whilemcl_service_template_SUITEderives the expected floor from mcl_om's own version, sorebar3 cthas been red on main since 1.1.0: at 1.1.0 and again at 1.2.0 the job failed withexpected: "~> 1.2", got: "~> 1.0"and hex published anyway, because the publish workflow does not depend on the test job. The template now emits~> 1.2. A generated service is unaffected in practice, since~> 1.0also resolves the newest release, but the floor is meant to name the release a scaffold came from, and it now does. Whether a tag should be able to publish while that job is red is a separate decision, noted on #33.
[1.2.1] - 2026-10-20
Fixed
mcl_om_wire_test: a reply's CBOR byte string no longer reads as text (mcl-om#32).reply/1, andcall/3which ends in the same client view, ran the decoded reply throughmcl_om_wire:unwrap/1, which maps{text, Bin}toBinand passes a plain binary through unchanged. A reply carrying{text, <<"x">>}and one carrying<<"x">>therefore both read as<<"x">>, andmacula_frame:check_payload/1accepts bytes, so a responder that regressed a field to a bare binary kept every test green and its clients got a blob where they expected a string. The strict decoder already tells the two apart ({text, Bin}for CBOR text, a plainBinfor CBOR bytes); the client view now keeps that apart too, naming a byte string{bytes, Bin}and unwrapping text as before. An existing assertion such as?assertEqual(<<"checkmate">>, Field)fails on a bytes field with no change to a consumer's tests. Found in the review of the mcl-chess responder tests moving onto the helper.
[1.2.0] - 2026-10-20
Added
mcl_om_wire_test: a service's capability test sends its request in the shape the mesh delivers, and reads the reply as a client (mcl-om#31). A test that builds the request map itself tests the handler against the shape the handler expects, which is how mcl-chess 0.7.1 passed 206 eunit tests and then refused every real caller on the live mesh (mcl-chess#10). The wire delivers text keys as{text, Bin}and the verified caller under the atom key as a raw 32-byte node id; on the way back a plain binary is a CBOR byte string, and a raw node id tagged as text is refused outright.mcl_om_wire_test:call/3closes that gap for any service's suite: it encodes the request with macula's own codec, decodes it through the provider's ownmacula_frame:plain_payload/1path, merges the caller the waymacula_station_link:with_caller/2does (a peer that names itself is dropped), runs the handler, puts the reply throughmacula_frame:check_payload/1before anything else, and answers the client's view. The two directions convert differently on purpose: a request is authored by a JSON client, so strings are text, while a reply is the provider's terms, so a plain binary stays a byte string, because smoothing that over would hide the very fault the helper exists to catch. A boolean in a request is refused rather than translated to 1/0. The handler runs inside the request's caller context, asmacula_station_linkruns it, so a handler readingmacula_response:caller/0is tested on the path a station gives it. A handler that refuses with the behaviour's own{error, Reason, State}comes back as the{error, Detail}its caller would see, rather than crashing the test. The service template's capability test now goes through it.
[1.1.0] - 2026-10-20
Added
mcl_om_wire:caller_hex/1: the verified caller as lowercase 64-character hex, orundefined(mcl-om#30).caller/1returns the caller exactly as macula injects it, the raw 32-byte node id, and a service that stores that value and sends it back as CBOR text has its reply refused by macula's reply check — 32 random bytes are not valid UTF-8, so the caller seesunknown_errorinstead of an answer (mcl-chess#10, caught in review). Every service needing the text form had written its own conversion, and not all of them agreed: mcl-rag encoded uppercase, mcl-graph, mcl-sec-guard andmcl_om_guardlowercase.caller_hex/1is the one form: lowercase, andundefinedfor the same cases ascaller/1plus any value that is not a 32-byte node id.
Changed
mcl_om_wire:caller/1's documentation and spec name the wire shape: the raw 32-byte node id, not text. The spec still admits any binary, because a payload built in process can carry one and the reader does not validate; the doc says which shape the mesh actually injects and points atcaller_hex/1for anything stored, compared or sent back.
[1.0.0] - 2026-10-17
Changed
- mcl_om runs on macula 15, wire 1.0 (macula-io/macula#105, macula-io/macula-fleet#27). The dependency moves from
~> 14.11to~> 15.6. A wire 1.0 node neither reads a 14 node's frames nor completes a handshake with it, so this is a major release: every service pinsmcl_om ~> 0.x, and none of them can float onto it. A service moves to wire 1.0 by pinning~> 1.0on purpose, on the flag day. - An advertisement names its serving stations as a list (macula-io/macula-station#55). Wire 1.0 carries the 1 to 8 stations a provider serves through, where 14.x carried one.
build_advertisement/5publishes the one station this node serves through as a one-element list.decode_resolved/1andlookup/1return one#{advertiser, serving_station}per station the record names, so an advertisement another SDK publishes with several stations gives the caller every route. Without this, every advertise crashed and every resolve came back empty on macula 15. list_org_capabilities/1returns each advertisement as macula reads it, so its station field is nowserving_stations. Its documentation already named the wrong fields and now names the real ones.- The service template's
mcl_omfloor is~> 1.0, this release.
[0.42.0] - 2026-10-15
Changed
- Advertisements renew less often, cutting the renewal bytes every station relays (macula-services/mcl-om#26, macula-io/macula-station#106).
- The republish interval goes from 30 s to 70 s.
ADVERTISEMENT_TTL_MSis four republish intervals, so the TTL goes from 120 s to 280 s, kept under macula's 300 s procedure-advertisement record cap (which macula enforces as a refusal, not a silent clamp). - After macula-station#106 a station forwards each publisher renewal to its peers, so the renewal traffic a station relays is proportional to 1/interval. At 70 s it drops about 2.3x (measured floor was 6.76 of 11.62 Mbit/s out on a live station). This is the single largest advertise lever; store and event are separate (macula-station#107, #108).
- The go-dark margin is unchanged: the TTL stays four intervals, so one or two missed re-asserts still never age a record out, and the SDK's own half-life renewal remains a backstop. The one cost is that a provider that dies stays listed up to 280 s (vs 120 s) before its advertisement lapses: slower liveness, callers fail at connect and re-resolve. Authorization is re-checked per advertise admission and per caller resolve and the advertisement is bounded by the delegation's own expiry, so a longer TTL is not a wider revocation window.
/health's advertise-staleness and grace windows (mcl_om_advertise_liveness) now derive from the one republish knob (mcl_om_capabilities:advertisement_ttl_ms/0andrepublish_interval_ms/0) instead of a second hard-coded copy of the TTL, so they move with the cadence and a single missed tick does not flap /health. An operator'sadvertise_stale_after_ms/advertise_grace_msoverrides still win.- No wire change:
ttl_msis an existing field and every node already accepts an advertisement up to the 300 s cap.
- The republish interval goes from 30 s to 70 s.
- The service template's
mcl_omfloor is~> 0.42, this release.
[0.41.0] - 2026-10-15
Added
mcl_om:org_member/2: is the node that published this an admitted member of this org? (macula-services/mcl-agora#1).- macula verifies who signed a publication, not who may publish on a topic. Any node in the realm can publish on any topic, whatever org its name carries. A subscriber that must hear only an org's own nodes asks this about the delivery's
publisher. - The answer is the realm's own:
macula:org_member/4(macula 14.11) reads the chain a Providers-desk admission publishes and a revocation tombstones. - A member is cached until its chain expires (at most 30 minutes, the bound on how long a revoked node is still heard). A refusal is cached for one minute, so a stranger publishing in a loop does not become two DHT lookups per fact, and at most 10,000 entries are held. "Could not find out" (
{error, {unavailable, _}}) is never cached and is not a refusal, so a station roll does not read as a revocation.
- macula verifies who signed a publication, not who may publish on a topic. Any node in the realm can publish on any topic, whatever org its name carries. A subscriber that must hear only an org's own nodes asks this about the delivery's
Changed
- The macula floor is
~> 14.11, the first release withmacula:org_member/4. - The service template's
mcl_omfloor is~> 0.41, this release.
[0.40.0] - 2026-10-14
Added
- A service whose delegation lapses claims again and comes back without a restart (#25, macula-realm#81).
- Until now an
issuedclaim was never sent again. When the realm lapsed the delegation and tombstoned it, every resolution answered{procedure_delegation, not_found}and the service stayed dark until restarted. - Now, while the claim is issued, a resolution that finds the delegation or the org directory gone sends the claim again, at most once a minute, with one warning line.
- A live member is re-issued at once (realm 0.3.13). An ended membership answers
not_admitted, and the claim showspending.
- Until now an
/healthsays when each authorization ends, and warns before it does (#25).- Every
provider_grantsentry with a chain carriesnot_after_ms: the chain's bound, the earlierexpires_atof the org directory and the delegation, which macula bounds advertisements by. - With a third or less of the binding record's life left, the state is
expiring(causerealm_has_not_renewed): /health is degraded and a warning is logged once. Past the bound it isexpired(causechain_expired), logged as an error. - A failed re-resolve keeps the bound of the chain the registration still carries.
- A healthy realm reissues every 10 min, so a 30-min delegation never reaches
expiring. The realm's operator notice fires at the same moment. mcl_om_provider_grant:verdict/3andreport/3take a clock (#{mono, sys}) instead of a monotonic time, andobserved/4takes the chain's window.
- Every
Changed
- The
mcl_servicetemplate generates{mcl_om, "~> 0.40"}, so a new service starts on the release that recovers from a lapsed delegation.
Fixed
- Advertising no longer blocks every other call to
mcl_om_capabilities(#11). The advertise loop (register/1after its reply,publish/0, and every 30 s republish tick) ran inside the gen_server, solist/0andpublish/0waited behind it on their 5 s default andlookup/1on its 15 s: a service with many capabilities or slow stations could time out callers right after boot and on each tick. A run now happens in a monitored worker -- one at a time, and a trigger that arrives mid-run is coalesced into a single follow-up run -- so no call to the server waits on advertise network I/O. The grants and liveness tables stay this server's; they are cleared at the start of the first run after a capability set changes, so a row for a procedure no longer advertised cannot outlive the change.
[0.39.0] - 2026-10-07
Added
/healthon a Unix socket (#23).health_socket(a path such as/run/mcl/health.sock) serves/healthon that socket and opens no TCP health listener, whateverhealth_portsays, so no service listens on a port just to be health-checked. A stale socket file left by a previous container is replaced, and the socket is mode 0600: only the service's own user may connect. Unset,health_portis the fallback, as before. Themcl_servicetemplate generates the socket: its sys.config sets it, the image's HEALTHCHECK usescurl --unix-socket, nothing exposes or passes a health port, andscripts/health.shasks the running container.scaffold-service.shand the template take no health port any more.
Fixed
- The house build-push signs every image it pushes (#9). A newer push to a branch or tag queues behind a
run in flight now, instead of cancelling it (
cancel-in-progressis true only for pull requests): a cancelled run could already have pushed its image and not signed it. The template's test also guards the digest step'sid: digestandid-token: write, without which the attest job is skipped and the run is green with an unsigned image. The attest comment no longer names macula-fleet, which not every service is deployed by. - The template pins attest-image.yml at 601c719, which installs cosign per job: the earlier pin raced
concurrent attest jobs on one
$HOME/.cosign(macula-io/macula-ci-images#2).
[0.38.0] - 2026-10-06
Changed
mcl_om builds on macula 14 (
~> 14.0, was~> 13.3). macula 14.0.0 stores a node identity per user account at<identity_dir>/<name>.<profile>.keyand refuses the removednode_identity_pathsetting (macula-io/macula#76). mcl_om hands its pool the service's own node key, so services see no change at run time; the test config moves to anidentity_dirunder_build/test. A service that setsnode_identity_pathin its own config must move it toidentity_dirwith this release. (macula-services/mcl-om#21)The service cert's default path is
/etc/mcl/secrets/service-cert.pem(was/etc/hecate/secrets/service-cert.pem): inside the identity volume the deploy mounts at/etc/mcl/secrets, the path mcl-corpus documents. No code in mcl_om or a service readsservice_cert_pathtoday, so nothing moves on a box. The README names the fleet's reconcile timermacula-reconcileand its secrets~/.macula/secrets/, as macula-fleet does. (macula-services/mcl-om#17)
Fixed
- A pending provider claim is asked again until it is issued. The claim
went out once at boot; when the realm filed it as pending, nothing asked
again, so after an operator admitted the node
/healthstill readclaim.state: pendinguntil a restart (measured on mcl-graph and mcl-kanban). A pending claim is now re-sent every 60 s, as an undelivered one already was: the realm answersnot_admittedwhile the row is pending and issues at once after the admission, so/healthreadsissuedwithin a minute. An issued claim is never re-sent. (macula-services/mcl-om#12)
[0.37.6] - 2026-10-05
Added
max_distinct_callersbounds the guard's table. A caller is a distinct node id, and the bucket was allocated BEFORE the rate check: a Sybil flood (fresh identities, a few calls each) grew the ETS table regardless ofglobal_max— memory scaled with attacker-chosen distinct callers within the retention window. Once a window has seenmax_distinct_callers(default 1024, a validated limit key like the others), a NEW caller is denied before its bucket exists; known callers keep their per-caller budget. The'$distinct'counter rides the same windowed sweep. (macula-services/mcl-om#15)
[0.37.5] - 2026-10-05
Fixed
- The denial counters are windowed. They were cumulative since
boot: one denial ever made every later window read as denied, so
should_reportpublished a fact every tick forever — the quiet service became the fact amplifier the design exists to prevent — and the fact'sdenied_rate/denied_sizewere lifetime totals. The counters now key by window start like the caller buckets, the sweep ages them out, and a quiet window reads zero.
[0.37.4] - 2026-10-05
Added
- The alert fact names the offenders.
alert_payload/3now carriesdistinct_callersandtop_callers(the wire-safe list of maps with hex-encoded caller ids the stats already computed) so the guardian's rule can propose against the actual offenders instead of a blind floor, and the payload still passescheck_payload/1outright.
[0.37.3] - 2026-10-04
Fixed
- Caller ids on the wire are hex-encoded.
to_wireturns binaries into text, which must be valid UTF-8, and node ids are arbitrary bytes: a stats reply or audit entry carrying a real caller was unsendable (unknown_error).top_callersand audit entries now carry lowercase hex, and a regression test asserts the stats reply passesmacula_frame:check_payload/1outright.
[0.37.2] - 2026-10-04
Fixed
top_callersis a list of maps, not tuples. The wire codec refuses tuples in payloads, so everyget_limitsreply carrying an over-limit caller was unsendable (unknown_erroron the caller side). Stats now ride the wire cleanly.
[0.37.1] - 2026-10-04
Changed
- The control surface is named per the house rule, and the operator capability is gone.
limits.get/limits.set/limits.set_operatorbecomeget_limits(open) andset_limits(guardian tier, envelope-bound). The operator-tier mesh procedure is dropped: humans set limits and the envelope through deploy config and the service's own admin surface, never over the mesh.inbound_guard.guardianconfig namesrealm_didandguardian_tieronly. - Window starts use the wall clock. OTP 28's
monotonic_timeis signed (negative), and the wire codec refuses negative integers — everylimits.getreply was unsendable (unknown_erroron the caller side). Guard window keys, stats and thedenials_observedfacts now carrysystem_time-based windows, which also lets the guardian correlate across services.
[0.37.0] - 2026-10-04
Added
- The inbound guard (mcl-om#13). Every response-kind capability advertised through
mcl_om_capabilitiesnow flows through an inbound guard pipeline (mcl_om_guard_pipeline, amacula_response): a payload-size stage, then a fixed-window rate stage, then the handler. Framework defaults are roomy (64 KiB payload cap, 10 s window, 600 per caller, 6000 global); a capability overrides them with alimitskey (plus a per-keyenvelopeof min/max clamps, changed only by the operator tier) or opts out deliberately withguard => none. Streamers are unaffected. Denials are counted, and once per window per procedure the service publishes adenials_observedalert fact (topic configurable, defaultdenials_observed) for a mcl-sec-guard to subscribe to.mcl_om_guard:stats/1reports limits, window fill, denial counters and recent audit entries; every applied limits change lands on the audit ring and in the log. - The guardian control surface (mcl-om#13). Every service exposes
limits.get(open: limits + stats for one procedure, or every declared one) and — wheninbound_guard.guardianconfig names the realm DID and the two tiers — the gatedlimits.set(guardian tier, envelope-bound) andlimits.set_operator(operator tier, may exceed and set the envelope). Every applied change lands on the audit ring with caller and tier; an unchanged set is a no-op. Themcl_servicetemplate's sys.config.src documents the block.
[0.36.0]
Changed (breaking)
- Requires macula 13.3 (
~> 13.3), up from~> 13.0.1, so a service on mcl_om gets handshake v5 (one authentication per connection, bound to its TLS session; a client dials 5 and falls back to 4 once onunsupported_version) and thestation_versionfield of the station endpoint record. No mcl_om call changes: every macula function it uses keeps its arity and result in 13.3.0 (call_stationreturns a report only when asked for one). Breaking for a service pinned~> 0.35.0: it stays on 0.35 until it moves. A service that pins macula itself keeps that pin, since rebar3 lets the top-level pin win. - The
mcl_servicetemplate pins{mcl_om, "~> 0.36"}. - Constraints on our own libraries float at
~> MAJOR.MINOR(Raf's dev rule, 2026-09-30): released versions only, and a build takes the newest one, so a service rebuilds onto a moved SDK without a constraint edit. macula~> 13.3here; in the template's store variant evoq~> 1.26and reckon_evoq~> 2.7replace the>= X.Y.Z and < N.0.0floors (the same in mcl_om's test profile).
[0.35.0]
Fixed
- A service with many capabilities boots (also shipped as 0.33.3).
register/1, whichmcl_om:boot/1calls with the gen_server default of 5 s, advertised every capability over the network before it replied; mcl-rag's 18 (17 of its own plusinfo) ran past it and crash-looped on msi00, 2026-09-29. It now records the set, replies at once and advertises right after in the same process, so every capability is still advertised and a later call to the server finds it done.publish/0(mcl_om:advertise_capabilities/0) had the same shape and does the same now (Neptunus). Calls that arrive while the advertising runs still wait behind it: mcl-om#11.
Removed
- mcl_om opens no store and starts no reckon-db or evoq application (mcl-om#10, decided by
Raf). mcl_om is the basis for on-mesh services; each service chooses its own persistence. Gone:
the
reckon_db,evoqandreckon_evoqdependencies and applications (so khepri, ra and reckon_gater no longer start in every service), themcl_om_storemodule, the optionalstore_id/0,data_dir/0,store_indexes/0,store_mode/0andstore_integrity/0callbacks ofmcl_om_service, and the store wiring inmcl_om:boot/1. The evoq and reckon_evoq version floors go with them, into the services that use them.
Changed
- An event-sourced service owns its store. It declares
reckon_db(~> 5.4),evoq(>= 1.26.1 and < 2.0.0) andreckon_evoq(>= 2.7.2 and < 3.0.0) in its own rebar.config and app.src, and opens its store in its application'sstart/2BEFOREmcl_om:boot/1: start the store (reckon_db_sup:start_store/1), wait untilreckon_db_sup:which_stores/0lists it, startevoq_store_subscription:start_link/1.rebar3 new mcl_service store=1generates that wiring in<name>_app, the store's id, directory, indexes, mode and integrity in<name>_service:event_store/0, and the three dependencies; a storeless scaffold names none of them. - A service still exporting the old callbacks boots without a store, and is told so. When
its service module exports
store_id/0anddata_dir/0together (the old contract's activation),mcl_om:boot/1logs a warning,mcl_om_no_longer_opens_a_store, naming the service, the old callbacks it still exports and the way out, rather than letting its projections fail later where nobody connects them to this release (mcl_om:leftover_store_callbacks/1,mcl_om:warn_leftover_store/1). A service that opens its own store therefore exports neither name; adata_dir/0alone warns about nothing.
[0.34.0] - 2026-09-28
Added
confidential => off | preferred | requiredon a capability: macula 13's provider modes for end-to-end sealing, forwarded intoadvertise_direct'sOptsfor response and streamer capabilities alike.offkeeps a procedure keyless even with macula'skem_advertiseenabled;preferrednames the KEM key whenkem_advertiseis enabled, so callers seal;requiredalso refuses a clear call. Absent, theOptsare exactly what they were (macula reads it aspreferred).- A misconfiguration refuses to boot, by name, instead of running green and unreachable.
Each of these would otherwise fail inside the republish loop, which logs a warning per tick and
never advertises the capability.
register/1checks them in the caller, before its server call, and fails the boot:{mcl_om_confidential_not_a_provider_mode, #{capabilities => [{Name, Value}], ...}}for any value other thanoff,preferredorrequired(a typo);{mcl_om_kem_advertise_not_a_switch, #{kem_advertise => Value, ...}}when macula'skem_advertiseis neitherenablednordisabled;{mcl_om_confidential_required_without_kem_advertise, #{capabilities => [...], ...}}for arequiredcapability whilekem_advertiseis notenabled(macula refuses such an advertisement askem_advertise_disabled).
[0.33.2]
Fixed
Every image a house service pushes is signed. The scaffold's
build-push.ymlhad no attest job, so mcl-mail, like any service scaffolded since, shipped unsigned (M6). With the newattesttemplate variable, whichscaffold-service.shsets for the macula-services, macula-internal and macula-io orgs, the build reads the pushed digest back from ghcr and anattestjob signs it by digest, keyless, with SBOM and provenance attestations, via macula-ci-images'attest-image.ymlpinned by full commit sha, on the build's own runner. A stranger's scaffold has no such job.runs_onis now a JSON array (["ubuntu-latest"],["self-hosted", "msi00", "pq"]), which is valid YAML afterruns-on:and what the attest workflow'sruns-oninput takes.A pending boot claim is recognised under macula 13, and says so. The realm refuses a node it has not admitted yet, and files its claim as pending. Under macula 13 that refusal arrives as a bare
{error, <<"not_admitted">>}; 0.33.1 knew only the older{error, {call_error, Code, <<"not_admitted">>}}, so on macula 13 a claim the realm had on file was taken for "not delivered", re-sent every minute forever and logged only at debug, while macula's direct-dial telemetry reported it asnot_answered.mcl_om_claimnow settles on both shapes, and each change of the claim's state (not delivered, pending, issued) is one log line naming the realm and the org: a warning for pending and not delivered, a notice for issued./healthcarries the state underclaim(unsent,not_deliveredwith its reason,pending,issued, orno_mesh), with the org and how long it has held. The worker publishes that state when it changes and/healthreads it, never calling the worker, which may be inside a claim call of up to 15 s. Found on mcl-fovea's first boot, 2026-09-28.scaffold-service.shrefuses anMCL_RUNS_ONthat is not a JSON array of labels, which would pass as YAML and then break the attest job'sruns-oninput at run time.
[0.33.1]
Fixed
- A service that needs the mesh refuses to boot without it, naming what is missing. New app env
mesh,optional(the default, unchanged behaviour) orrequired. Withrequired,mcl_om_identitystops the boot with{mcl_om_mesh_unconfigured, #{missing => [...]}}, listing each ofMCL_REALM,MCL_REALM_KEY,MACULA_STATION_SEEDSandMACULA_STATION_NODE_IDSthat is unset, empty (relx expands an unset variable to nothing) or left unexpanded. An unset seed list used to boot a green service with no pool, answering/healthand nothing else. Whatever the mode, a realm that is set but is neither 32 bytes nor 64 hex is refused as{mcl_om_realm_malformed, #{setting => <<"MCL_REALM">>, bytes => N}}; an emptyMCL_REALMused to stop the process with{case_clause, {ok, <<>>}}, naming nothing. The check runs before the node key is loaded or generated. - The scaffold sets
{mesh, required}, and its mcl_om floor is~> 0.33(it was~> 0.26). The template suite now requires the floor to be the minor the template was released with. scaffold-service.shasks whether the service is private or public (MCL_VISIBILITY, refused when unset or anything else) instead of printinggh repo create --publicfor every service. The choice sets the licence (proprietary notice and["Proprietary"], or Apache-2.0), the CI runner (the org's own[self-hosted, msi00, pq]for a private service in macula-services or macula-internal,ubuntu-latestotherwise; a self-hosted runner for a public repository is refused) and thegh repo createflag. New template variablesproprietary,runs_onandholder(the copyright holder, which the Apache LICENSE hardcoded);MCL_RUNS_ONandMCL_HOLDERoverride.- The script's closing text is true of what it generated: a tag publishes only its own version (it said
:latestand the semver tag), the fleet deploys from macula-fleet (it said watchtower rolls the beams), the remote isorigin, and a private package needs a registry login where a public one needs checking that it is public. - The scaffold's image build runs on a podman runner too.
build-push.ymluseddocker/login-actionanddocker/build-push-action; the house's self-hosted runners have no docker, only a shim that hands thedockerCLI to podman, whosebuildxis buildah, so a private house service could never publish an image. It is now plaindockerCLI steps, which run on GitHub's runners and ours alike. The login goes toDOCKER_CONFIGandREGISTRY_AUTH_FILEunder$RUNNER_TEMP, since runners on one box can share one podman and its default auth file. The image is built under a tag unique to the run and removed by name afterwards, never pruned.BUILDAH_FORMAT=dockeris set because podman's default OCI format drops the Containerfile'sHEALTHCHECK. - Only main publishes
:latestand only av*tag publishes a version. The scaffold'sbuild-push.ymlcan be run by hand, and every ref that was not av*tag fell through to:latest, so a branch build overwrote the deploy channel. Any other ref is now refused, naming it. - The generated suite guards the
-behaviour(mcl_om_service)attribute, as the generated README and service module already said. Only the export check existed, and it survives the attribute's removal. - The scaffold and mcl-om's own CI move to the current image pair, 20260928-1800 (
macula-ci-otpsha256:7318a443…,macula-pq-runtimesha256:a1d18c6a…), which macula-ci-images republished with every download checked against a pinned checksum. One pair across the template, the CI that tests it and the services it releases. guides/container_deployment.md: rollback text matched to the two channels.
[0.33.0]
Changed (breaking)
- Requires macula 13.0.1 (
~> 13.0.1), whose calls are sealed end to end when the provider names a KEM key (E2E payload confidentiality, macula's Amendment A1), and whosecall_stationrefuses a call that carries no signed state.call_capability/5,7hands macula the provider's advertisement its own resolve verified, so a capability call is sealed to that provider's key when it names one and sent in the clear when it names none. A station can withhold the advertisement (no call), but can't downgrade the call. Services that pin mcl_om~> 0.33move to macula 13 with it. 13.0.1, not 13.0.0: 13.0.0'sseed()type leaves outexpected_node_id, so every service that dials a pinned seed breaks the contract ofmacula:connect/2in its own dialyzer.
[0.32.2] - 2026-09-27
A patch: the mcl_service scaffold template and the CI build image only. No
module in src/ changes, so a service depending on mcl_om sees no difference.
Besides the template (priv/templates/), the release touches
scripts/scaffold-service.sh, a new scripts/is_image_published.sh, the
template suite, mcl-om's own lint-and-test.yml (its build image and the
template-lint-image job), and the README's scaffold section.
Fixed
- A scaffolded service starts on the fleet's image pair. The template
built on
hexpm/erlang:28.4.3-alpine-3.22.6and ran onalpine:3.22.6, while the services that had moved (mcl-tube, mcl-sentinel, mcl-warden, and most others) build inmacula-ci-otp:20260923-1444and run onmacula-pq-runtime:20260923-1444, so each new service was born on the images being retired. mcl-echo is still on the Alpine pair, and the rocksdb services use the rocksdb pair. The generatedContainerfilenow matches the moved services stage by stage:- The builder is
builder_imageand the runtimeruntime_image, two new scaffold variables pinned by digest. Their defaults, named once inpriv/templates/mcl_service.template, are the fleet pair. - The builder installs nothing: no
apk add, no rustup (which floated onstable), no rebar3 download. The image carries all of it, pinned. Its first step refuses any OTP but 28.4.3 withmldsa87, the same check as lint's. MACULA_FORCE_SOURCE_BUILDandRUSTFLAGS=-crt-staticare gone. They existed for musl; the pair is Debian trixie on both sides.- A Debian builder is also what lets lint run in the build image: JavaScript
actions such as
actions/checkoutcannot run inside an Alpine container. - The runtime stage installs nothing: the runtime image carries OpenSSL with ML-DSA, libstdc++, ncurses and curl.
- The builder is
- The generated lint job runs in
builder_image, as the fleet's do, instead ofhexpm/erlang:28.4.3-debian-trixieplus an apt toolchain and a rustup install. Its toolchain step checks git, openssl, rebar3, rustc, cargo, and OTP 28.4.3 withmldsa87. - The generated service's guards follow. The runtime test compares the
release the builder and lint each assert with
.tool-versionsand the VM; a new test asserts lint runs in the builder image and bothFROMlines carry a digest. scripts/scaffold-service.shpassesMCL_BUILDER_IMAGEandMCL_RUNTIME_IMAGEthrough when both are set, and refuses when only one is, naming both: half a pair builds a release against one libc and runs it on another.mcl_service_template_SUITEalso scaffolds throughscaffold-service.shwith the house defaults and checks the result buildsFROMthe manifest's pair, which must be themacula-ci-otpandmacula-pq-runtimeimages of one dated build. The stranger generation passes its own pair and must name nomacula-ioimage. The lint toolchain case now runs the house generation's lint job in its real image.- CI's
template-lint-imagejob scaffolds a house service in thecheckjob's image first (read by its path,jobs.check.container.image), since the template'slint.ymlnow names its image as a variable. It then asks ghcr, anonymously and by digest, whether the house pair is still published (scripts/is_image_published.sh), so a deleted digest or a package turned private fails CI instead of the next service's first build. - One build image in this repository. mcl-om's own
checkjob moves frommacula-ci-otp:20260923-1347to20260923-1444, the scaffold's builder, and the template suite fails when the two differ. - The scaffold also refuses an exported but empty
MCL_BUILDER_IMAGEorMCL_RUNTIME_IMAGE, which used to fall back to the house pair silently. - The generated
Containerfilenames what goes wrong on the plain pair for a service that adds rocksdb: CMake silently drops a compression backend whose-devpackage is missing, and barrel's snappy blob compression fails atdb_open.
[0.32.1]
Fixed
- An ownership proof never signs
caller. From macula 12.11.1,macula_station_link:with_caller/2removes a caller-sent text"caller"before the handler reads the payload, so a signer that included one was refusedbad_signature.make/5,6and the verifier now dropcallerin every key form, as they already droppedasserted_by, which gives the same result on any macula version. The test helper that delivers a payload now mirrorswith_caller/2(the text caller removed, then the authenticated one merged), and a test pins that step. Found by Neptunus's macula-go interop through Fable. - The cross-SDK vector is repinned to macula-go
ownershipproofd48601b: the fields carry no caller, anderlang_payload.hex(amake/6payload in wire form) is checked: its proof verifies over the message rebuilt from its fields. mcl_om_wire's moduledoc described pre-12 key atomisation; it now describes macula 12's strict decode and warns against unwrapping a payload that is about to be re-encoded for a signature check.
[0.32.0]
Changed (breaking)
mcl_om_ownership_proofv2: a proof binds every field it authorises (mcl-om#7,plans/PLAN_OWNERSHIP_PROOF_V2.md). v1 signed only identity, timestamp and procedure, so a relay holding a captured proof could make the same identity assert anything within 60 s, and replay it identically.- The signed message is now deterministic CBOR (
macula_record_cbor:encode/1) with a domain tag, version 2, the identity, the realm, the procedure, a nonce, and the payload's fields as the handler receives them (minusasserted_byand the station-mergedcaller, a decoded null as null, everything else raw, never unwrapped). make/5,6builds theasserted_byblock, applying macula_frame's own wire conversion to the fields, so the signer encodes what the verifier rebuilds.verify/5andverify_asserted_by/3replaceverify/3, which is removed along withmessage/3; a proof withoutv2 isunsupported_version.mcl_om_ownership_proof_replay, a supervised ETS table, takes a proof's nonce only after the signature verifies, so an identical proof is accepted once (replayedafter that). The cache is per instance and empty after a restart.- The realm-join proof (macula-realm's device request proof) is a separate format, fixed in macula-realm#29.
- The signed message is now deterministic CBOR (
[0.31.1]
Fixed
- Every mcl service's store now loads its snapshots. reckon_evoq
>= 2.7.2: 2.7.0 read snapshots back empty (reckon-db 5.5.2 already unwraps them and reckon_evoq unwrapped again), so an aggregate reloaded past a snapshot rebuilt its state from nothing. The floor lives here because most services get reckon_evoq only through mcl_om. - evoq
>= 1.26.1: telemetry durations come from the monotonic clock, in native units. mcl_om_dependency_floors_testsasserts both floors against the versions actually built.
[0.31.0]
Changed
- Registration goes to the serving station through macula's own
stationsoption. A capability is advertised withstations => [Station], this node's serving station (choose_serving_station/2), so the SDK registers the handler on that station's link only and names it in the DHT record (macula 12.7.0). It replaces mcl_om'sadvertiseandpublish_advertisementoverrides, which called the internalmacula_station_link:advertise/6. A streamer capability is now registered on its serving station only too, like a response capability (it used to fan out to every link), so the one advertiser per station rule holds for both (issue #5). - With no connected station, nothing is advertised; the next republish tick
tries again and /health records the failure (
no_station). - macula
>= 12.7.0, which also brings the pool's renewal of an advertised chain (D32) to every mcl service, and the content calls the guide's chapter 4 shows. README status and the guide say so.
Removed
publish_advertisement/5,advertisement_opts/1andadvertise_on_serving_station/6(exported for the overrides above).
[0.30.0]
Removed
mcl_om_content, withmcl_om_content_feederandmcl_om_content_downloader(breaking:put/1,2,get/1,2,start_feeder/2,3,4,start_downloader/2,3,4). No mcl service used it, and macula 12.6.0 (D27) made its ownshare_content/get_content/unshare_contentthe calls a service wants: share with#{org => Org}so the content is served under the service's org. The guide's chapter 4 shows how.mcl_omstill requires macula~> 12.2; a service that shares content requires 12.6.0 itself.
[0.29.1]
Fixed
- The wire registration now goes ONLY to the serving station. 0.29.0
spread the DHT records across stations but left the ADVERTISE frame on the
SDK's default fanout to every connected link -- so two providers on
overlapping station sets still fought over every shared station's registry
(one advertiser per (realm, procedure), last direct ADVERTISE wins), and
the pinned calls kept flapping live on beam03. A response capability's
advertise now registers its handler only on the link of the station its
record names (the SDK's
advertiseopt, replicated with the same realm-key authorization check), which gives each station's registry exactly its own providers. Streamer capabilities keep the default advertise. (Issue #5, the second half of the root cause.)
[0.29.0]
Fixed
{error, no_provider}no longer masquerades a dial failure as a resolve miss. When the pin matched a provider (or providers) and every dial failed,call_capability/5,7returned{error, no_provider}-- the same answer as a stale pin, so a dead provider was indistinguishable from a resolve problem. The two are split now:no_providermeans exactly "nothing to dial" (nothing resolved, or the pin matched none); a provider that WAS dialed reports its own failure ({error, timeout},{error, {station_endpoint, Reason}}, a call error, ...). (Issue #5: on the first two-provider fleet deployment the pinned call for one club failed this way, and the collapsed error sent the diagnosis into the resolve path while the real failure was the dial timing out.)- Co-org providers spread across the serving stations, so they do
not clobber each other. A station's advertise registry holds ONE
advertiser per
(realm, procedure)-- last direct ADVERTISE wins -- so two providers of one procedure that name the same serving station are not both dialable. The record's serving station was the SDK's own choice (the pool's first-connected link, map-term order over the seed set -- alphabetical host name, nothing a deploy could steer), which put both bookclubs on one station. advertise now passes advertise_direct apublish_advertisementthat names the stationchoose_serving_station/2picked for THIS node (phash2of the node id over the sorted connected stations), so providers spread whenever there are stations to spare. (Issue #5's root cause, root-caused live: the station is macula-station'smacula_remote_advertise_registry, single-provider by design.) - A slow DHT can no longer wedge the capabilities gen_server for
minutes.
lookup/1ran a resolve whose retry budget counted only its sleeps (50 x 100 ms) and ignored the time eachfind_recordsRPC itself took -- up to its 5 s internal timeout each -- so one slow resolve blocked the gen_server for up to ~255 s while every caller timed out at the 5 s gen_server default. The resolve is now bounded by a 5 s wall-clock deadline (each attempt asks for only the time left), andlookup/1/list_org_capabilities/1wait up to 15 s, past that bound. (Issue #5, secondary symptom.)
Added
- Advertise-liveness in
/health. Every state now listsadvertise_liveness: per org-namespaced procedure, the last successful advertise's age and the last failure (reason + age). A procedure whose last success is older than the advertisement's own TTL degrades/health(advertise_stale), and one that has never succeeded degrades once its failure run outlasts a grace window -- before this,/health ok+failed_publishes: 0was indistinguishable from a dead advertise loop, because zero is exactly what a loop that makes no attempts produces. (Issue #5.) - A live two-provider fixture (
test_live/ mcl_om_capabilities_two_providers_tests.erl): two providers under one org on the real PQ station. It asserts both org-key records resolve, the pin dials the named provider, a stale pin fails closed withno_provider, and the displaced provider (the station's single-provider invariant: one advertiser per (realm, procedure) per station, last direct ADVERTISE wins) fails with a real dial error, neverno_provider. This is the fixture issue #5 named the gap: the first two-provider fleet deployment is what found the bug, because nothing exercised two providers of one org procedure at once.
[0.28.2]
Added
mcl_om:call_capability/5with anadvertiserpin: one org procedure with many providers -- a thousand book clubs, oneget_bookclub_by_id-- is addressable. The caller names the node whose advertisement to dial; a stale pin fails closed with{error, no_provider}.
Fixed
boot/2registers capabilities and subscriptions only AFTERServiceMod:start/1returns{ok, Pid}: a procedure is advertised only once the service can answer it, and a service that refuses to start leaves no advertisement behind. (Issue #2.)
[0.28.1]
Retired on hex
- 0.27.0 and 0.27.1 are retired (reason
other: "incompatible with macula 12.2 (publisher and pool faults): use mcl_om >= 0.28"). Under macula 12.2 they let a failed publish announcement kill the publishing process, and with 0.27.1 on macula 12.2 an mcl_om service's pool never came up (macula_client()answered{error, no_client}in mcl-echo's pool suite). A service on~> 0.27resolves 0.28 once hex serves it; state the floor as~> 0.28so no build can pair macula 12.2 with an older mcl_om.
Fixed
- The scaffold pins what runs, not only what builds. The
mcl_servicetemplate's runtime stage wasFROM docker.io/alpine:3.22, a moving tag, so two builds of one commit could run on different bases with nothing saying so. It is nowdocker.io/alpine:3.22.6@sha256:5291449c…, the release the builder compiles against. The generated runtime guard requires the digest and refuses the builder's and the runtime's Alpine releases drifting apart; the template suite asserts both. A service scaffolded earlier keeps its own Containerfile: pin its runtime the same way. (#4)
[0.28.0]
Anything built against macula 12.2 needs mcl_om 0.28.0 or later. Under
macula 12.2, mcl_om 0.27.x lets a failed publish announcement KILL the
service process that published (below). This release requires macula
~> 12.2.
Additive for existing callers: no function, callback or return value changed
shape. /health gains a field, and every service gains an advertised
procedure, Org/info.
Added
Org/infoon every service. mcl_om:boot/2 adds aninfocapability, open to any mesh caller, answering public facts: name, version, description, the claim labels, org, node id, macula and mcl_om versions, uptime, the health word and the procedures the service advertises. The health word is the verdict /health last computed, never a fresh probe. It also makes a publish-only service count as online on the realm's Providers desk, which only counts a node that advertises something. A service that declares its owninforefuses to boot with{mcl_om_capability_name_reserved, <<"info">>}.handler_timeout_msper capability (macula 12.2): how long macula_response waits for the handler before answering the callertemporary_relay_failure, 1 to 600000, default 30000. A streamer capability that sets it is refused, since macula_streamer has no such option.publisher_optsonmcl_om_pubsub:publish/3, passed to macula_publisher:announce => falsepublishes the payload without the two fact frames.failed_publisheson /health andmcl_om_pubsub:failed_publishes/0.mcl_om_pubsub:publish_on/5, the publish path with an explicit pool and realm.- The template labels its image with the commit it was built from
(
org.opencontainers.image.revision).
Fixed
- A publisher that dies no longer kills its caller. mcl_om_pubsub
started each publisher with
start_linkfrom the calling process. macula 12.2 returns{ok, Pid}before announcing, so a failed announcement ends the publisher after the start, and a crashed publish worker always did: the link took the calling service process down with it. Each publisher now runs under a watcher that traps its exit, logs and counts it, and answers asynccaller{error, {publisher_exited, Reason}}at once rather than after its timeout.
[0.27.1]
Fixed
- A service without an org refuses to boot. Every procedure is
Org/Nameand the realm grants per org, so a service with no usable org offers nothing. It used to boot anyway, log "advertise skipped, no org configured" and run green without advertising or claiming; a bot on beam01 ran like that unnoticed.mcl_om:boot/2now raises{mcl_om_org_not_configured, #{got => Org, setting => ...}}before anything is wired when the org is unset, empty,_, an unexpanded${MCL_ORG}, or not a wire segment (mcl_om_identity:checked_org/1). A deployed service without an org will crash-loop at its next rebuild instead of running silently: setMCL_ORG, or theorgapp env. - An empty claim label counts as unset. A sys.config line such as
{box, <<"${MCL_BOX}">>}leaves an empty app env value when the variable is unset, and 0.27.0 sent that empty value instead of falling back toMCL_BOX/MCL_SERVICE_NAMEand the service's name. Better still, drop such lines: the fallback reads the variables itself.
Migration note, 0.27.0 step 3
barrel_docdb's data_dir default is "data/barrel_docdb" from its app env,
and /tmp/barrel_data in its code when the app env is not loaded; neither is
on a service's volume. Set it explicitly under the service's data directory
either way.
[0.27.0]
Breaking. mcl_om no longer depends on barrel_docdb, and so not on rocksdb.
Removed
- The read-model wiring. The optional
read_model_id/0andread_model_ttl_sweep/0callbacks,mcl_om:read_model/0, andmcl_om_read_modelare gone, with thebarrel_docdbdependency. barrel brings the erlangrocksdbbinding, whose C++ build every service paid for, in CI, image builds and local tests, whether it had a read model or not; three services use one.data_dir/0stays: the reckon-db store still uses it.
Migrating a service that had a read model
- Declare
{barrel_docdb, "~> 1.5"}inrebar.configandbarrel_docdbin the.app.srcapplications. - Open the database in the service's own
start/1, before the supervisor whose processes write it:barrel_docdb:create_db(Name, #{data_dir => filename:join(DataDir, Name)}), treating{error, already_exists}as success (a restart reopens it). - Set barrel's
data_dirapp env under the service's data directory first. Its default is the relative"data/barrel_docdb", where barrel keeps the system database recording each database's location: in a container, /app/data, outside any volume. - Replace
mcl_om:read_model()with the service's own database name, and dropread_model_id/0/read_model_ttl_sweep/0from the service module (pass the TTL sweep options tocreate_db/2directly). - On the macula-services fleet, link rocksdb against the system library
rather than compiling it: an
overridesentry for rocksdb'spre_hooksadding-DWITH_SYSTEM_ROCKSDB=ON, built inghcr.io/macula-io/macula-ci-otp-rocksdband run onghcr.io/macula-io/macula-pq-runtime-rocksdb.macula-services/mcl-stationsis the worked example.
A service without a read model needs no change beyond the version.
Fixed
- Boot claims carry their labels. The
service_nameandboxa claim shows the realm's operator came only from mcl_om's app env, which two services set and the template did not, so most claims arrived unlabelled.mcl_om_claim:labels/0now falls back to theMCL_SERVICE_NAMEandMCL_BOXOS variables, andservice_namefinally to the service's own name frominfo/0. The template's compose file sets both. - The scaffold. Generated services run dialyzer in CI with macula in the
PLT, ignore the
data/directory barrel_docdb writes during tests, and say in their CHANGELOG what build-push does (av*tag publishes its own version only). The template's rocksdb build packages now say they are there for a service that adds a read model. - The template suite tests this checkout's templates. It rendered whatever
was installed in
~/.config/rebar3/templates, which from a worktree is another checkout's, and passed or failed on files it never read. It now refuses unless the installed templates are its own. - The
mcl_om_servicemoduledoc namedrebar3 new hecate_service; it ismcl_service. The guides' running examples are mcl-stations and mcl-tube.
Changed
- lint-and-test runs dialyzer, and no longer installs rocksdb's codec libs.
[0.26.6]
Fixed
- An ownership proof sent by a real caller verifies.
mcl_om_ownership_proof:verify/3readtimestamp,signatureandpublicwithmaps:find/2on atom keys, but a proof decoded by macula's codec carries every key as{text, Key}, so every proof a caller actually sent was refused asmissing_proof: forged and genuine alike, before any signature was checked. It reads the three fields throughmcl_om_wire:field/2now. The suite's "shaped exactly like the wire" test built that shape by hand, with atom keys, and passed throughout; two new tests send the proof inside a CALL throughmacula_frameand verify what comes out. Found porting hecate-graph'sasserted_byprovenance to mcl-graph.
[0.26.5]
There is no 0.26.4 on hex. The tag v0.26.4 (on 164456c) exists, but
its publish stopped at the key preflight, which refused a working key (the
first entry below), so nothing was published. 0.26.5 is that release plus the
preflight fix. The tag is left in place rather than moved.
Fixed
The publish preflight asks whether the key may write. It asked hex.pm
/api/users/me, which answers 404 for a key with no user behind it. This package publishes with an organisation key, so the check refused a key that had published 0.26.1 to 0.26.3 the same day, and the firstv0.26.4run published nothing. It now asks/api/auth?domain=api&resource=write: 200 or 204 accepts, 401 and 403 and anything else refuse, and the key is never printed. Tested against a fake hex API for every answer.No org, no advertisement.
mcl_om_identity:org/0answers_when no org is configured, andmcl_om_capabilitiesadvertised under it anyway:_/Name, a procedure in no org that no realm grants, from a service that looked healthy. It now advertises nothing unless the org is a wire segment (^[a-z0-9][a-z0-9._-]*$;_and an unsubstituted${MCL_ORG}are not), logs it once, and records each handler-bearing procedure as not granted with{org_unset, Org}, which /health reports as degraded at once (operator_must_set_org).The service scaffold sets its org:
{org, <<"<repo>">>}inconfig/sys.config.src, one org per service named after the repository, fixed in the release rather than an environment variable someone can forget.What the scaffold says is current. Its README, compose file and
sys.config.srcdescribed "the 11.x dial" and "11.x client model", said a missing crypto profile falls back to a classical one (macula 12 refuses:crypto_profile_missing), and said CI publishes:latestplus the semver tag. The README now states the two channels (mainpublishes:latest, av*tag publishes its own version and nothing else, a docs-only push builds nothing) and where the org comes from. Comments no longer name obsolete services; the house-specifics test now forbids that prefix in generated output.A service generated from the scaffold passes its first CI run. The pinned lint image (
hexpm/erlang:28.4.3-debian-trixie) is OTP and little else: no rebar3, git, curl, C toolchain or OpenSSL headers, so a generated service's first push died onrebar3 version, and checkout without git made no real clone. A toolchain step now runs before checkout: it installs git, curl, cmake, build-essential, libssl-dev and the codec libs, and rebar3 3.27.0 verified by sha256, then checks OTP 28.4.3 with mldsa87. The image build installs the same rebar3, same checksum, instead of whatever the S3 URL served. The image stays public on purpose: the scaffold depends on nothing of ours.The template suite RUNS the generated lint job's toolchain step in its image (
scripts/is_lint_toolchain_runnable.sh, podman or docker), instead of only reading the workflow's text, which was correct while the image could not run it. mcl-om's own CI job is a container without a runtime, so there the case skips by name and atemplate-lint-imagejob on the runner runs the script. Verified once end to end on a freshly generated service in the pinned image: lint passes, its 10 tests pass, its image builds on 28.4.3.The service scaffold is pinned to one OTP, 28.4.3, everywhere. The builder was
erlang:28-alpineand linterlang:28, both floating; when Docker Hub moved them on 2026-09-22, mcl-echo (generated from this) shipped OTP 28.5 without anyone choosing it. The builder is nowhexpm/erlang:28.4.3-alpine-3.22.6(the runtime stage's Alpine) and linthexpm/erlang:28.4.3-debian-trixie-20260918, each pinned by digest, and lint's first step refuses anything but exactly 28.4.3 with mldsa87. Public images, so a stranger's generated service depends on nothing of ours (Docker's ownerlangpublishes no 28.4.3).The generated service's runtime guard compares full releases, not majors, and requires the builder and lint digests; it passed on 28 vs 28.5. It also could not parse a pinned lint image, which would have failed every newly scaffolded service's first
rebar3 eunit. The template suite now RUNS the generated guard instead of only compiling it, which is how that was caught before release. A service generated earlier keeps its own pins.mcl-om's own CI runs in
macula-ci-otp:20260923-1347(OTP 28.4.3) pinned by digest, and the hex publish uses OTP 28.4.3.
[0.26.3]
Added
- /health reports whether each org-namespaced procedure holds its D25
provider grant. A provider without one used to look healthy while
serving nothing: the advertise path asked
macula:provider_authorization/3on every republish tick, dropped the refusal and retried quietly. The answer is kept per procedure now (mcl_om_capabilities:provider_grants/0) and judged bymcl_om_provider_grant:- no
procedure_delegationnaming this node: degraded at once, because an operator has to grant it; - no
org_directory, or any other refusal:waitingforprovider_grant_grace_ms(default 60 s) from the first failure, then degraded. The realm republishes an absent chain within seconds, so a gap past the window is a real fault, and a failed lookup does not flap /health. macula's reason is reported as given. Every /health body, ok included, carries aprovider_grantslist, so a service inside its window says why it is not granted yet. A degraded service answers 503 as before, so the image HEALTHCHECK marks it unhealthy.
- no
Fixed
- The service scaffold's
build-pushno longer lets a release tag move:latest. It published:lateston every push, tags included, and watchtower rolls every box on:latest, so cutting a release deployed it. Av*tag now publishes its own version and nothing else. - A docs-only push no longer rebuilds the image, and a new branch always
does. The generated
scripts/is_image_push.shdecides from the pushed range and printsbuild=true|false; the image steps wait on it. It builds whenever it cannot show that every changed path is documentation: a new branch or tag (the all-zeros before sha), a manual run, a before sha not in the history, an empty diff. It replacespaths-ignorerather than adding it: on the push that creates a branch GitHub evaluates that filter on the head commit alone, so a first push ending in a README edit built no image (hit on mcl-warden). A service generated earlier keeps its old workflow.
[0.26.2]
Fixed
- A first-boot key that could not be saved ran the service on a throwaway
identity. When
identity_key_pathnames a missing file, mcl_om generates the key and saves it. If the save failed (a read-only secrets directory, for one), it carried on with the unsaved key, so the next start generated another: a new node id on every restart, nothing stable to attribute the service's records to, and nothing reporting it. It now stops with{identity_key_unsaveable, Path, Reason}, the same way an unloadable key file already did. - The service scaffold's compose file now mounts a named volume at
/etc/mcl/secrets, called<repo>-secrets, and names it itself so a differentdocker compose -pcannot fork it. The image declares that path a VOLUME, and with nothing mounted docker gave each recreated container a fresh anonymous volume, which is a new identity per watchtower roll. A service generated earlier needs the same two lines added to its own compose file.
[0.26.1]
Fixed
- A service with no seeds configured booted nothing.
mcl_om_claim:init/1returned{stop, normal}when there was nothing to claim, and a supervisor treats any stop frominit/1as a failed start, so the whole application went down with{failed_to_start_child, mcl_om_claim, normal}instead of degrading to the documented no-mesh contract. It now returnsignore. Deployed services all configure seeds, so none was affected. mcl_om_mesh_pool_SUITEcan pass again, and it is the only test that starts a real macula pool through mcl-om. Its seeded cases never configured realm trust, which mcl-om has required since it stopped falling through to an empty map, so they failed on configuration before reaching macula. They now pin a freshly generated realm key. Checked by mutation: puttingverify => noneback intobase_pool_opts/0turns the suite red with{refused, {verify, one_verification_mode}}.
Both failures were already on main before the macula 12 port and went unseen because the lint-and-test workflow only runs when started by hand.
[0.26.0]
The version follows 0.4.0 directly. It jumps to 0.26.0 because this repo
already carries tags v0.5.0 to v0.25.0 from its hecate_om days, and those
tags are kept as they are. The service scaffold now asks for
{mcl_om, "~> 0.26"}, so a new service cannot resolve a pre-macula-12 mcl_om.
Changed
Ported to macula 12 (
{macula, "~> 12.0"}).The pool no longer composes a
verifyentry at all, andmcl_om_identity:verify_mode/0,verify_mode_of/1and theMCL_OM_VERIFYenvironment variable are gone with it. macula 12 has ONE verification mode: a client verifies the station's own ML-DSA-87 certificate and nothing else. It refusesverifyin any value, on a seed, atconnectand incall_stationopts, with{error, {refused, {verify, one_verification_mode}}}. So this is not a changed default: a pool that still passed one would fail to start.The three-way choice 0.4.0 documented (
none,webpki, and a named error for anything else) existed because 11.4.0 ignored the option and 11.5.0 honoured it, which made a stalewebpkia live hazard. One mode removes that class of drift. Nothing is lost, for the reason 0.4.0 already gave: what binds a station link to the node it dialled is the D16 handshake pin,expected_node_id, still required on every seed.mcl_om_capabilitiesno longer passesverify => nonetomacula:call_station/8. In 12 that call keepsmaps:with([expected_node_id], Opts)and refusesverifyandpin_tls_certby name.{macula, puzzle_difficulty, _}removed fromconfig/test.sys.configand from the service scaffoldpriv/templates/mcl_service/sys.config.src. macula 12 (D30) makes the difficulty one constant for the fleet,macula_node_keys:puzzle_difficulty()(currently 8, unchanged), and raises{bad_config, {macula, puzzle_difficulty, {not_a_setting, Value}}}at application start when the setting is present, WHATEVER its value: a node that set one would believe it had chosen a difficulty nothing reads. The scaffold change matters most, because every mcl-* service yet to be written inherits it. The#{puzzle_difficulty => N}OPTION tomacula_node_keys:generate/3is untouched and still valid; tests still pass0there to skip the grind.config/test.sys.confignow setsnode_identity_path. Raf's ruling of 2026-09-23 gives a machine ONE stored identity, soconnect/2with nonode_identityloads~/.local/share/macula/identity.keyinstead of grinding a fresh key per pool. A suite that leaves the path unset reads, and on a fresh machine writes, the identity of whatever is running it, and fails outright when that file's profile differs from the suite's.
Testing
- The three
pool_verify_*tests are replaced bypool_opts_carry_no_verify_entry_test_, which asserts the new contract directly: noverifykey, and the realm trust anchor still composed in. The second assertion is there because the absence check alone would pass on an empty map.
[0.4.0]
Changed
The pool's
verifynow defaults tonone, notwebpki(mcl_om_identity:verify_mode/0).webpkiwas only ever harmless by accident: macula 11.4.0'smacula_peering_conn:start_dial/1discarded the caller's value and passed a literal{verify, none}, so the option was decorative. macula 11.5.0 fixes that bug and honours the target's value, which would have turned a default nobody chose into a real X.509 chain check against the built-in public roots on every station dial.Nothing is lost. What binds a station link to the node it dialled is the D16 handshake pin:
expected_node_idis required and a link without one refuses to start. 11.5.0's owndial_opts/1states it plainly, that a station's leaf is self-signed or issued by an unrelated PKI and the signed handshake binds the connection rather than the chain. Checking the chain as well adds nothing the pin does not give, and it makes reaching the mesh depend on a public CA and on a renewal nobody is watching: a lapsed or rotated certificate would take every mcl-* pool offline for a reason with nothing to do with the mesh, and nobody would look there first. macula-station reached the same conclusion for its own outbound links ine07010d; this is the consumer-side equivalent.This fixes every mcl-* service nobody has written yet. The service scaffold's
sys.config.srcsets noverifyat all, so the library default is what each of them silently inherits.MCL_OM_VERIFY=webpkiremains the opt-in for a caller that genuinely has a chain worth checking, which is the shapedial_opts/1documents. Any other value now names the variable with{mcl_om_verify, {unknown_mode, V}}instead of silently selecting a mode.verify => truewas the 10.x spelling and still appears in this repo's older guides, so a stale deploy carrying it is not hypothetical, and under a silent fallback it would get whichever mode the fallback happened to be while its operator believed they had asked for the other.base_pool_opts/0is exported for the test suite. Theverifyentry of the composed map is what reachesmacula:connect/2, so asserting on that rather than onverify_mode/0alone catches a regression in either half.
[0.3.0]
Changed
⚠ BREAKING: the realm trust anchor is required, and its absence now stops the pool from starting.
realm_trust_opts/0used to fall through to#{}when nothing was configured, so a service with no trust anchor started normally, went green and answered/healthwhile being permanently unable to resolve anything org-namespaced. Configurerealmandrealm_key, or the node does not boot.The failure this replaces, traced off a deployed box: with no realm key pinned,
macula_client:realm_key/2answersnone,macula_record:verify_authorization/3refuses every advertisement withno_realm_key, andmacula_direct_dialreports{unresolved, no_trusted_advertisement}. The boot claim therefore never reached the realm, so there was no pending row for an operator to approve, no delegation, and nothing callable. Every symptom was downstream of one unset variable, and nothing anywhere said so.Note for whoever meets that atom next:
trusted_stations/2filters on the authorization check AND a readableserving_stationin the record. A record missing the latter is dropped silently and produces the IDENTICALno_trusted_advertisement. Do not assume it is this cause.
Added
realm_key, a new app env: the realm's public signing key, hex encoded.mcl_omdecodes it and pins#{RealmId => RealmKey}asmacula:connect/2'srealm_trust.The decode lives here rather than in a service or in the SDK.
macula:connect/2takesrealm_trustas raw bytes and deliberately refuses anything else, being a typed in-memory contract; a deploy environment can only carry text. Translating between the two is what this module already does forrealm(64-hex to 32 bytes) and for every seed'sexpected_node_id. Anywhere else means everymcl-*service doing it again, which is the duplication that produced the outage.A malformed value names the variable (
{mcl_om_realm_trust, {realm_key_not_hex, _}}) rather than raising a barebadargout of the hex decoder.
Fixed
- The scaffold taught the bug.
priv/templates/mcl_service/sys.config.srccarriedrealm_trustcommented out, described as needed only by a service that CALLS org-namespaced capabilities, and claimed "the realm's key comes from its ownfoundation_realm_trust_listDHT record, not from this file". That last part is wrong for this path:macula_direct_dialnever supplies the foundation form, so the pinned key is the only way an advertisement is ever trusted. Every service generated from this template inherited an optional-looking setting that is mandatory. The template now requiresMCL_REALM_KEY, in its config, its compose file and its README.
[0.2.2] - 2026-09-20
Fixed
- The claim settle accepts the realm's actual refusal: the refusal arrives as
call_errorwith codehandler_errorORunknown_error(measured live); the worker now settles on the<<"not_admitted">>text so it stops retrying once the claim is on file.
[0.2.1] - 2026-09-19
Fixed
- mcl_om_claim boot crash:
claim/1passedcancel/1's return instead of the state into the retry path, crashing the worker's init ({badrecord, undefined}) the first time the pool was not ready yet — the claim never went out. Found in the live demo.
[0.2.0] - 2026-09-19
Added
- The boot-time claim (
mcl_om_claim, a sup child): once the pool is connected, the service requests its provider authorization from the realm over the mesh (io.macula/_realm/_realm/identity/request_provider_authorization_v1), by its own wire-authenticated identity — no credentials. The realm either issues the D25 delegation or records the request as a pending row for its operator; either reply ends the retries, and the advertise path resolves the delegation independently. Stops normally when no seeds are configured;service_name/boxapp envs are informational labels the operator sees.
[0.1.0] - 2026-09-18
Changed
- The hard break. Forked from hecate-om 0.25.0 into the PQ-only
mcl_omline; the version resets to 0.1.0 because the API and the wire are incompatible with every hecate-om release. Everything below is the inherited hecate-om history. - The 11.x port. Identity is a puzzle-hardened pq_hybrid node key
(
macula_node_keys,identity_key/0replaces the 10.x keypair + service cert); seeds are pinned by station node id (D5,MACULA_STATION_SEEDSindex-paired withMACULA_STATION_NODE_IDS); capabilities advertise the org-qualified procedure with the D25 authorization resolved from the DHT (macula:provider_authorization/3, macula >= 11.4.0) and call with the provider's node id as the CALL target; the cert-chain accessors and the bare-name/cert forms are deleted with the 10.x authorization model. - The service scaffold is the
mcl_servicerebar3 template (renamed off the hecate lineage), carrying the mandatory PQ crypto block and the pinned seed pair; CI builds OpenSSL 3.6.4 + OTP 28.1 from source for the ML-DSA tests, and the release pipeline (publish-hex.yml) verifies the tag and publishes to hex behind thehex-publishenvironment gate. - The live smoke (test_live/, run manually against the PQ pair) proves the whole path end to end: D25 chain publish, org-namespaced advertise, authorized direct-dial record, pinned dial, CALL, org-scoped calls and the org-capability browse. The content live test is gone: the PQ fleet serves no content procedures.
[0.25.0] - 2026-09-11
Added
health_ip(optional): the address the/healthlistener binds, as a string such as"127.0.0.1"or an address tuple. Unset or empty, the listener binds every interface, as before. A service whose health is only probed from inside its own container or host sets"127.0.0.1". New eunit tests (hecate_om_health_listener_tests) cover the socket options and a loopback listener refusing a connection on another interface.t:hecate_om_service:capability/0'sauthfield now includes{realm_member_required, RealmDid, RequiredCan}--maculaadded this policy afterPLAN_UCAN_GATED_CAPABILITIES.mdwas written and called the realm-membership case unbuilt;hecate_om_capabilities:auth_opts/1needed no code change at all (it was already policy-agnostic), only the stale type and moduledoc did. New eunit test (auth_opts_carries_a_realm_member_required_policy_test) pins the round-trip. See the plan doc's own 2026-09-08 update.c:hecate_om_service:describe_rpc_capabilities/0+describe_pubsub_capabilities/0(both optional): human-facing documentation for a service's capabilities/topics, distinct fromcapabilities/0's/subscriptions/0's own dispatch-wiring-only metadata. When either is exported,hecate_om:boot/2advertises a synthetic<service-name>.describe_capabilitiesRPC (hecate_om_describe, stateless -- readshecate_om:service_module/0) that returns both lists live. Motivating cost this closes:macula-lazymesh'sMeshServicescatalog hand-maintains a hardcoded description list today purely because there was nowhere on the mesh to pull this metadata from.c:hecate_om_service:read_model_ttl_sweep/0(optional callback): a service can now arm barrel_docdb's native per-document TTL sweeper on its own read model --disabled(default, unchanged behavior for every existing service) or#{interval_ms := pos_integer(), batch := pos_integer()}.hecate_om:boot/1threads it into the database'screate_dbconfig viahecate_om_read_model:ensure/3(ensure/2still works, now a thin wrapper defaulting todisabled). Arming the sweeper only reclaims disk for documents that already carryexpires_atin their ownput_doc/3options -- barrel_docdb treats those as gone on read unconditionally regardless of this config (seebarrel_docdb_reader:expired/1's own doc comment); this setting only controls whether the background timer exists to turn that lazy expiry into a real, space-reclaiming tombstone. Motivated by hecate-agora's storage-retention design, where hand-rolling scan-and-delete would have duplicated a primitive barrel_docdb (~> 1.3, already the pinned dependency) already provides natively.
Fixed
hecate_om_wire:field/2,3now also finds a key that arrives as{text, Bin}. macula encodes every map key as CBOR text, and its frame decoder turns a key back into an atom only when that atom already exists in the receiving VM, so a key can arrive as{text, Bin}andfield/2,3returned the default as if the field were absent. The lookup order is now the atom form, the binary form, then{text, Bin}. Releases that boot in embedded mode hid this, because every module a service names is loaded, and so every atom exists, before the first call arrives.hecate_om_identitygenerates a keypair only when the configuredidentity_key_pathfile is missing ({error, enoent}). Any other load failure now stops the service with{identity_key_unloadable, Path, Reason}and leaves the file untouched: a corrupt file, a directory or unreadable file at the path, or a key file readable by group or others, which the next macula release refuses to load. Before, every load error generated a new keypair and saved it over the old file, so the service silently came back under a new node id and its real key was gone.Documentation.
hecate_om_service's module doc never reached the generated docs (a module with-docattributes takes its docs from the compiler, which ignores edoc comments); it is now a-moduledoc, updated to the current callbacks. Its callback docs used edoc quoting inside markdown and rendered as broken code spans. The read-model services guide is now published (the mesh-native services guide already linked to it), with its advertisement TTL section corrected to whathecate_om_capabilitiesdoes today, and the README no longer describes the removedtemplates/directory. References to private macula functions and to functions that do not exist are no longer written as links, sorebar3 ex_docbuilds without warnings.
[0.24.0] - 2026-09-05
Fixed
hecate_servicescaffold now generates a.tool-versionspinningerlang 28.4.2, matching the OTP major (28)Containerfileandlint.ymlalready pinned. Without it, a generated repo built on a dev machine whose asdf/rebar3 global points at a newer OTP (29) compiles a dependency's deprecated bare-catchsyntax under a version that turns it into a hard build failure viawarnings_as_errors-- unrelated to the generated service's own code, and reproducing nowhere the pin is honored (CI, the container build, or a machine that has this file). Hit the same missing-pin symptom in four repos in one day before landing the fix here (reckon-db and evoq, unrelated to this scaffold but the same root cause; then two realhecate_service-generated services, hecate-sentinel and hecate-echo). This repo itself was a fifth, having no.tool-versionsof its own despite depending on the same 28-pinned toolchain -- fixed alongside the template.
Added
hecate_om_capabilities:unguarded_capabilities/1(exported, pure): names every capability in a list with no explicitauthkey -- i.e. every one that will silently advertiseopenviaauth_opts/1's own default, whether that's a real decision or nobody set it yet.register/1now logs exactly this list, once, whenever a service (re-)registers its capabilities -- free, per-boot visibility into fleet-wideauthadoption for every service that routes through this module. Phase 1 of rolling out{ucan_required, Issuer}fleet-wide without silently missing a service (the concernPLAN_UCAN_GATED_CAPABILITIES.md's own "What's open" flagged: adoption is per-service, per-capability, opt-in, with nothing catching an omission). 3 new eunit tests.scripts/audit-fleet-ucan-adoption.sh: the other half of that same concern, since the runtime check above can only see what a service's owncapabilities/0reports. A service that callsmacula:advertise/5,macula_response:advertise_direct/7ormacula_streamer:advertise_direct/7directly -- bypassinghecate_om_capabilities:register/1entirely, the pre-migrationhecate-ragpattern this repo's own history already documents fixing for one service -- is advertising something the in-process audit never sees at all. This script greps every siblinghecate-services/*repo's real source (umbrella-app-aware: recursive, not a literal top-levelsrc/glob, which silently missed every umbrella-structured repo the first time this was written) for that bypass pattern, excluding test fixtures. Run 2026-09-03 against the real fleet: 7 services (hecate-dns,hecate-dronex,hecate-embedder,hecate-git,hecate-llm,hecate-tom-ocean,hecate-tom-world) still advertise at least one capability outside this module's own registration path -- flagged for manual review, not fixed here; each needs its own migration decision, not a blind sweep.
Fixed
- The
hecate_servicescaffold'slint.ymlnow installs a Rust toolchain beforerebar3 lint/eunit, and its header no longer claims none is needed on the glibc image.macula_cbor_nif(macula >= 10.14, so every service on hecate_om >= 0.20) has no Erlang fallback and refuses to be skipped, so a freshly scaffolded service's very first CI run failed in the compile hook before a single test ran -- hit by hecate-agora on 2026-09-02; hecate-stations had already patched its own copy by hand. Template-only change, no library code touched. - The scaffold's
build-push.ymlnow carries a per-refconcurrencygroup withcancel-in-progress, so quick successive pushes tomaincannot race to overwrite:latestwith whichever build happened to finish last (hecate-rag hit that live; hecate-agora nearly did on its first morning).
[0.23.0] - 2026-09-02
Added
hecate_om_ownership_proof:verify/3-- proves a caller holds the private key for the Ed25519 identity (raw 32-byte pubkey) they claim to be asserting on behalf of, inside an otherwise-open mesh payload: a signature over{identity, timestamp, procedure}, procedure-bound so a proof minted for one gated capability can't be replayed against another. Extracted after the identical ~40-line verifier was written twice independently -- hecate-citizens'citizen_ownership_proofand hecate-mail'smailbox_ownership_proof, each one's own moduledoc naming the exact trigger for consolidating: "a third, unrelated consumer." hecate-graph needing the same mechanism to make itslearn_linkprovenance mind-grained (an individual caller's own signed identity, not just the wire-level connection identity) is that third consumer. A DIFFERENT mechanism from{ucan_required, Issuer}capability gating (plans/PLAN_UCAN_GATED_CAPABILITIES.md): that controls who may call a procedure at all; this proves who asserted a specific claim inside one. Also exportsmessage/3(the exact signed byte layout, for a caller building a proof) anddecode_identity/1/decode_text/1(the same wire-shape-tolerant unwrap both existing consumers already needed). 10 new tests.- Existing consumers (
hecate-citizens,hecate-mail) keep their own local copies for now -- not migrated here, no bug in either, out of scope for this extraction. Worth doing later so there's one verifier instead of three.
[0.22.0] - 2026-09-01
Added
hecate_om_wire:caller/1-- reads the RPC caller's wire-authenticated identity out of a decoded payload (field(caller, Payload)under one well-known name, same reasoningfield/2,3itself already gives for existing as a shared helper). Only populated by macula >= 10.15.0, which is the version that first mergescallerintoPayloadwhen macula's station link handles an inbound call -- on an older macula this readsundefined, same as any other absent field.
[0.21.0] - 2026-09-01
Fixed
- One capability's
advertise_directcall raising during a republish tick used to crash the wholehecate_om_capabilitiesgen_server before it could register any other capability in the same batch -- and, becausemacula_response/macula_streamerlink each factory supervisor they create to whoever calls them (this process), the crash killed every OTHER, already-healthy capability's supervisor too, turning one transient timeout into an outage for every capability this node serves. Found live 2026-09-01 via hecate-rag:hecate_om_capabilitiescrashed on a timed-out advertise call foringest_documentand, minutes later, unrelated capabilities (search_chunks_semantic/answer_query/add_knowledge) started failing every inbound call withnoproc.advertise_one/7is now called throughadvertise_one_safely/7, which catches per-capability and logs which one failed and why -- the documented exception to this org's let-it-crash default, since the alternative (a single opaque supervisor-exit report) erases exactly that distinction along with every sibling capability's live registration. A failed capability's previous registration is left in place and retried on the next ~30s republish tick. See alsomacula10.14.5, which independently hardens the same failure class one layer down (existing_or_new_sup/1no longer trusts a deadreuse_suppid).
[0.20.0] - 2026-09-01
Added
hecate_om_wire:unwrap/1(exported, pure): recursively convertsmacula_record_cbor's wire-level value representation into plain Erlang terms --{text, Bin}(CBOR text string, major type 3) toBin,nulltoundefined, through list elements and map values.
Fixed
hecate_om_wire:field/2,3returned the wire-level CBOR value representation unchanged, not the plain Erlang term a caller'sis_binary/1guard or:: binary()field spec actually needs. A JSON string sent as an RPC arg is encoded as a CBOR text string, which decodes to{text, binary()}, not a barebinary()-- a plain binary is reserved for a CBOR BYTE string (major type 2), a different wire type (seemacula_record_cbor's own moduledoc for the full value() table). Every consumer offield/2,3-- this module's own fix for the atom/binary KEY hazard notwithstanding -- was still silently failing every VALUE-shape check on a real mesh caller's payload, indistinguishable from a missing field. Found live 2026-09-01 diagnosing hecate-rag'sget_document_verbatim: a temporary diagnostic log showed the actual payload as#{source_path => {text, <<"...">>}}-- the key lookup was already correct, the value never was.field/2,3now runs whatever it finds (or the caller's ownDefault) throughunwrap/1before returning.
[0.19.0] - 2026-09-01
Added
hecate_om_capabilities:republish_delay_ms/0(exported, pure): the periodic re-advertise tick (?REPUBLISH_INTERVAL_MS) now schedules itself with +/- 3s of uniform jitter around the nominal 30s instead of a perfectly fixed interval.
Fixed
- A fixed-period republish timer can permanently lose a race against a
station-side cooldown of the same length:
macula-station'smacula_remote_advertise_registrytombstones a re-registration for?TOMBSTONE_TTL_MS(30s, deliberately bumped from 10s inea95857for its own gossip-convergence reasons) whenever it is unregistered, and only the same advertiser node-id may re-register during that window. Found live 2026-09-01:hecate-rag'sget_document_verbatimcapability stayedunknown_methodfor 45+ minutes across roughly 90 identically-timed retries, while every sibling capability in the same advertise batch (registered moments earlier or later, landing just outside whatever tombstone it individually raced) self-healed on its next tick. Neither side's 30s value was wrong on its own -- the bug was the two periods being exactly equal, which gives a losing retry no drift to ever land outside the window again. Root cause traced throughhecate_om_capabilities,macula_response:advertise_direct/7, andmacula_remote_advertise_registrybefore landing here: this is the one client-side fix that protects against ANY station's cooldown period, known or not, rather than tuning to one station's specific constant.
[0.18.0] - 2026-09-01
Added
hecate_om_service:capability()may now carrykind => streamer(defaultresponse) andstream_opts => #{mode => server_stream | client_stream}. The internal advertise dispatch inhecate_om_capabilitiesnow sends the twoadvertise_directcalls (bare + org-qualified) throughmacula_streamerinstead ofmacula_responsefor a streamer-kind capability -- both provider modules publish the identicalprocedure_advertisementDHT record and read the sameOptskeys (ttl_ms,reuse_sup,cert_chain), so this changes only which module gets called. Newprovider_module/1andstream_opts/1(exported, pure).call_capability/5,7(the direct-dial CALL path) stays response-only, unchanged -- a streamer capability is consumed viamacula_stream_sink:start_link_direct/5,6, a genuinely different client-side API, not a gap in this change.- Motivated by
hecate-tube'stube_mesh_providers.erl: three of its four hand-rolledmacula_response:advertise_directcalls migrated ontocapabilities/0when this module already existed (0.17.0's own hand-rolled-loop migration story, above, forhecate-rag), but the fourth (tube.watch_video_clip) ismacula_streamer-backed and had nothing to migrate onto until now.
[0.17.0] - 2026-09-01
Added
- A capability passed to
hecate_om_capabilities:register/1may now carryauth => {ucan_required, IssuerPubkey}(default, and every existing caller's behavior:open), forwarded through bothadvertise_directcalls intomacula:advertise/5and enforced on every inbound call bymacula's ownauthorize_policy/2. The primitive already existed one layer down (macula's{ucan_required, Issuer}auth policy); nothing inhecate_omused it, so no hecate-service could gate a capability without bypassinghecate_om_capabilitiesentirely. Newauth_opts/1(exported, pure). This is a direct-signature check against one pre-known issuer, not a delegation-chain walk to a realm root -- seeplans/PLAN_UCAN_GATED_CAPABILITIES.mdfor the full scope and that boundary. hecate_om_simple_handler: bridges a stateless one-arity{Module, Function}handler (macula's own native calling convention) intomacula_response's per-requestinit/1+handle_request/2contract, so a hecate-service migrating a capability ontohecate_om_capabilities:register/1doesn't need to hand-write that pair itself. Unwraps an{ok, Value}reply so the wire payload matches what the bare{Module, Function}path already produced -- migrating a capability changes nothing a caller can observe. First real user:hecate-rag, migrating all 15 of its capabilities off a hand-rolledmacula:advertise/5loop onto this path in the same release cycle.
[0.16.5] - 2026-09-01
Changed
- Picked up
reckon_db5.11.1 (already permitted by this repo's own~> 5.4constraint; no rebar.config change needed, just a fresh resolve + this release marking it verified). Fixesread_all_global/3re-scanning and re-sorting the ENTIRE store on every paginated call -- every evoq-based service's catch-up-on-restart replay is affected, not just the one (hecate-sentinel) that surfaced it. See reckon_db's own CHANGELOG for the full writeup (a secondary index was tried first and measured to make it WORSE; fixed with aglobal_event_count/1- fingerprinted cache instead -- ~5.6x on a realistic 10k-event catch-up burst). 82/82 eunit + 15/15 CT pass against the new version.
[0.16.4] - 2026-08-31
Fixed
hecate_om_capabilities:procedure_uri/3,discovery_key/2, andorg_capability_pattern/2usedbinary:encode_hex(Realm)(lowercase) while the live fleet's DHTprocedure_advertisementrecords carry uppercase hex. SinceSHA-256(uppercase) != SHA-256(lowercase), direct-dial resolvers looked up the wrong DHT key. Changed all three call sites tobinary:encode_hex(Realm, uppercase), matching the discovery URImacula_direct_dialbuilds (fixed in macula 10.14.4) and macula-go/macula-rust/macula-dotnet.
[0.16.3] - 2026-08-31
Fixed
- The actual root cause, found by deploying 0.16.2's new logging to
hecate-stations(beam03) and reading it:{ok, no_keypair, ok}-- pool and realm were both fine, but no stable signing keypair.identity_key_pathwas simply absent fromhecate-stations' ownconfig/sys.config.src(and, worse, from the scaffold template every service is generated from --priv/templates/hecate_service/sys.config.src, fixed here too). Without it,hecate_om_identity:load_keypair/0returnsundefinedforever (the self-heal, auto-generate-and-persist path only fires when a path IS configured but the file at it fails to load), sokeypair/0stays{error, no_keypair}permanently, andhecate_om_capabilities:advertise_with/7no-ops on every republish tick by design ("an ephemeral service cannot sign and is correctly not advertised"). This is the exact failure mode this module's own comment already named as a known recurring issue (hecate-tube hit it before) -- it just wasn't caught at generation time. Both the template andhecate-stations' own config now setidentity_key_pathto/etc/hecate/secrets/identity.key, the same already-mounted secrets volumeservice_cert_pathuses -- no new infrastructure needed. Addedsys_config_configures_a_stable_identitytohecate_service_template_SUITEso a future template regeneration can't silently drop this again; confirmed RED without the template fix, GREEN with it. 82/82 eunit + 15/15 CT pass, dialyzer clean.
[0.16.2] - 2026-08-31
Fixed
- Second silent-failure path in the same area as 0.16.1:
advertise_with/7's fallback clause (pool/keypair/realm not all ready) had NO logging at all -- worse than 0.16.1's bug, since that one at least impliesadvertise_directgot called. This clause's own comment assumed a "transient mesh gap" resolved within a few republish ticks; a genuinely stuck pool or identity means this clause fires forever, silently, with capabilities never advertised and nothing anywhere to say why. Deployed 0.16.1 tohecate-stations(beam03) specifically to observe this in production and found exactly this: 0.16.1's new logging never fired at all, andhecate_stations.list_stationsstill wasn't in the DHT (confirmed viamacula-cli dht find-records-by-type) -- meaning the failure was happening one level earlier than 0.16.1 could see. Now logs the specific reason for each of pool/keypair/realm (hecate_om_capabilities: advertise skipped, not all of pool/keypair/ realm are ready yet: {PoolError, KeyPairError, RealmError}), throttled to once per distinct reason triple (a process-dictionary-scoped gate) so a persistent boot problem doesn't spam a warning every 30s forever. 30/30 capabilities tests + 82/82 full suite pass, dialyzer clean.
[0.16.1] - 2026-08-31
Fixed
- Silent advertise failures:
hecate_om_capabilities:advertised/3discardedadvertise_direct's{error, Reason}outright, andput_advertisement/2'stry ... catch _:_ -> ok enddiscarded BOTH a plain{error, _}return frommacula:put_record/2(never pattern-matched at all, not just the exception guard) and any real exception, all with no logging anywhere. Combined withregister/1'shandle_callalways replyingokregardless of whatdo_advertiseactually did, a service could run "healthy" indefinitely with its capability never actually reaching the mesh's DHT and nothing anywhere to indicate why. Also a correctness gap against this repo's own CLAUDE.md: atry/catchhere is only justified when it adds monitoring value neither branch did. Both paths nowlogger:warning/2the real reason (hecate_om_capabilities: advertise_direct for ~s failed: ~p/... put_record (record-only advertisement) failed: ~p). Found live investigating whyhecate_stations.list_stationswas unreachable through the mesh: confirmed viamacula-cli dht find-records-by-typethat its advertisement genuinely never reached the DHT, but nothing in the service's own logs said why until this fix — existing tests already exercise the failure path and now show a real reason (no_healthy_stationin the test fixture's case) instead of silence. 30/30 existing tests still pass.
[0.16.0] - 2026-08-29
Fixed
- Shared-station capability dispatch: two orgs advertising the same bare
capability name from the same relay station collided on
macula_remote_advertise_registry's single-provider-per-bare-name invariant — whichever org's 30s republish landed last silently answered every targetedcall_capability, regardless ofOrg.advertise_one/7now makes two independentadvertise_directregistrations per handler-bearing capability (bare name, plusOrg/Nameas a genuinely distinct wire-level registration);resolve_full/4tags each resolved provider with the wire-level procedure string that actually matched, andcall_capabilityCALLs with that string, not the raw capability name. Live-verified againststation-de-frankfurt.macula.io. find/2's DHT resolution had no retry margin against write-propagation lag, unlikemacula_direct_dial's own internal resolution — mirrored its retry budget (50 x 100ms).- Advertisements now carry a
ttl_msproportioned to the 30s republish interval instead of the ~48h envelope default, live effect confirmed after bumping themaculadependency past theadv_opts/1fix below.
Added
list_org_capabilities/1/resolve_org_capabilities/3— browse every capability an org has advertised, without knowing any capability name in advance. Client-side filter overmacula:find_records_by_type/2(matched viamacula's newmacula_topic_pattern), same local-relay-view, warm-start-only semanticsread_model_services.mdalready documents for that call.
Changed
- Bumped
maculadependency 10.10.0 -> 10.13.1:adv_opts/1inmacula_direct_dialno longer silently dropsttl_ms;macula_client's connection pool no longer dials a redundant duplicate connection to a station it already holds a live link to under a different seed spelling (was reproducible, live, as literally the secondcall_stationfrom one pool to the same station);macula_topic_patternand station-local wildcard pubsub subscriptions added. See macula's own CHANGELOG [10.11.1]-[10.13.1].
[0.15.1] - 2026-08-27
Fixed
- Bumped
maculadependency 10.0.0 -> 10.10.0. Had drifted 10 releases behind the fleet (currently 10.10.0), including the domain-filter fix that was silently dropping everymacula_diagnostics:event/2,3call on any consumer of this library (see macula CHANGELOG [10.10.0]). Confirmed no use of anything removed in 10.0.0's macula-net deletion; full eunit + CT suite clean at the new version. rebar3 dialyzerfailed the release gate with 3 "Callback info about the X behaviour is not available" warnings (macula_publisher, macula_feeder, macula_download) — confirmed pre-existing at macula 10.0.0 too, not caused by the bump above. Root cause:exclude_appsdropsmaculafrom the PLT entirely (it ships withoutdebug_info, a NIF-heavy lib, which otherwise hard-fails dialyzer), so the three behaviours this module implements have no callback info to check against.no_unknowndoesn't cover this — the warning is tagged?WARN_UNDEFINED_CALLBACKinternally (dialyzer_behaviours.erl), not?WARN_UNKNOWN, andno_behaviours(?WARN_BEHAVIOUR) is also the wrong option, verified against dialyzer 5.4's own source before pickingno_undefined_callbacks. Clean run confirmed on a fully fresh PLT.
[0.15.0] - 2026-08-24
Added
read_model_id/0optionalhecate_om_servicecallback (alongsidedata_dir/0):hecate_om:boot/1opens abarrel_docdbdatabase at<data_dir>/<read_model_id>/before the service's ownstart/1runs, the same shape as the existingstore_id/0reckon-db wiring but for a persistent, queryable read model instead of an event store. Newhecate_om_read_model:ensure/2helper, newhecate_om:read_model/0facade accessor.barrel_docdbis now a hard dependency (same "everyone pays, only starts if declared" shape as reckon_db/evoq — note this one carries a real native build cost too, rocksdb's C++ library, not a free dep). Onlybarrel_docdb, not the fullbarrel/barrel_vectordbumbrella; a service that wants vector or hybrid search in its read model adds that itself. Meant to replace the class of bug where an ETS-backed read model silently loses its contents on every restart (see hecate-spartan's registry/inbox history) — barrel_docdb reopens from its on-disk RocksDB directory, nothing to rebuild.
[0.14.2] - 2026-08-23
Fixed
- Self-healed keypairs are now puzzle-hardened (
macula_identity:generate(#{puzzle => true})), mirroring macula-realm's own mesh identity. Every station in this fleet enforces S/Kademlia puzzle validation on CONNECT/HELLO; a plain identity's handshake completes and is then closed withpuzzle_invalid— a graceful drain, thendrained— on every single connection, forever. Confirmed live: this is the full explanation for whytube_mesh_providerscould reportadvertised => true(its own local, client-side bookkeeping) while no station's DHT-facing advertise registry ever actually held the advertisement — a ~96-second reject/reconnect loop, invisible until the underlying station logged its disconnect reason at all (a separate fix,macula-station4188a1d).
[0.14.1] - 2026-08-23
Fixed
hecate_om_identity's stable keypair now self-heals instead of silently staying unconfigured.load_keypair/0previously only ever loaded fromidentity_key_path— a service deployed with the env pointed at a path with nothing there yet (the common case: nobody's provisioned it out-of-band) gotkeypair() -> {error, no_keypair}forever, every single boot, with no error logged anywhere. Confirmed live on hecate-tube: itstube_mesh_providersretries advertisingtube.watch_video_clip/tube.lookup_channel/tube.lookup_video_clipevery 5s pending bothmesh_handles/0andkeypair/0—mesh_handles/0resolved fine (the service peers and calls just fine on an ephemeral identity),keypair/0never did, so the service silently never advertised any of its three direct-dial providers, ever, since its first deployment. No amount of local testing catches this — it only surfaces against a real deployment that actually tries to be called, not just to call out.Now: any load failure (missing file — the common case — or a corrupt one) generates a fresh keypair via
macula_identity:generate/0and persists it to the configured path viamacula_identity:save/2(whichensure_dirs it), same self-provisioning pattern macula-realm's own mesh identity already uses. Falls back toundefined(ephemeral, prior behavior) only if the save itself fails, e.g. a read-only filesystem.identity_key_pathleft unconfigured is unaffected — still ephemeral by design, unchanged.
[0.14.0] - 2026-08-22
Added
hecate_om:mesh_handles/0— the shared{Pool, Realm}fetch every PubSub/RPC-consumer/Content call needs together, replacing the hand-rolledcase {macula_client(), realm()} of {{ok,P},{ok,R}} -> ...pairing four independent hecate-services repos each wrote for themselves because hecate_om gave them nothing to build on.hecate_om:realm/0andhecate_om:keypair/0— re-exported on the public facade. Both already existed onhecate_om_identity; a service previously had to reach past the facade to get them.keypair/0is needed by every direct-dial PROVIDER desk (macula_response:advertise_direct/6,7,macula_streamer:advertise_direct/6,7, ...), which sign their own DHT advertisement record with it.
Changed
- Bumped macula dependency
~> 9.0→~> 10.0. macula 10.0.0 removed the dormant macula-net L3 substrate; greppedsrc//include/first — hecate-om never called any of it. Verified against a genuine fresh fetch off hex (not a local checkout): clean compile, 13/13 eunit. - Bumped macula dependency to
~> 9.0, pulling in direct-dial across all four SDK primitive pairs (RPC/PubSub/Content/Streaming). - Slice 7c verify switched to Direction B (managed-realm X.509 cert chain),
replacing the Ed25519 delegation-record chain that could never go live (the realm
tag is a keyless
SHA-256(name)and the realm holds no signing key). Requires macula~> 8.7.- Advertise:
hecate_om_capabilities:build_advertisement/6embeds the service's cert chain (leaf ++ org CA) in theprocedure_advertisement, fromhecate_om_identity:cert_chain/0. Services with no provisioned chain advertise without one (open-mode only). - Verify: under
verify => true, providers are kept only if their embedded chain verifies to the realm CA (macula_record:verify_advertisement_cert_chain/3, org-scoped) instead of resolvingorg_directory/procedure_delegationrecords. No realm CA provisioned → every provider dropped. hecate_om_identityloads the org CA (org_ca_cert_path, default/etc/hecate/secrets/org-ca.pem) and realm CA (realm_ca_cert_path, default/etc/hecate/secrets/realm-ca.pem); exposescert_chain/0andrealm_ca/0.
- Advertise:
Fixed
priv/templates/hecate_service/rebar.configpinned{hecate_om, "~> 0.8"}, six major versions stale — every service scaffolded viarebar3 new hecate_serviceinherited it. Now~> 0.13.
[0.13.0] - 2026-08-19
Added
- Slice 7c consumer side + org-namespaced addressing:
- Capabilities are addressed by
(realm, org, name):procedure_uri/3and the advertisements carry the<org>segment.hecate_om_identity:org/0reads theorgapp env (default<<"_">>). hecate_om:call_capability/4(Org, CapName, Payload, Timeout)andhecate_om_capabilities:call_capability/5withOpts:verify => truedrops providers whose realm → org → server delegation chain does not verify (7c);ucan_token => Binpresents a token to a gated provider (7b). Default is open (no verify, no token).
- Capabilities are addressed by
Changed
- Requires macula
~> 8.6, which also FIXES capability publishing. SDKput_recordof aprocedure_advertisementcrashed the station's store handler on wire-decoded records before macula 8.6.0 (it had only been exercised via direct erpc puts). On this release publishing works end-to-end.
Note
- The verifying-consumer path (
verify => true) needs the realm and org to have publishedorg_directory/procedure_delegationrecords (realm/org infrastructure, not the service). Until that exists, use the default open mode; the verification mechanism is proven in macula-station's delegation e2e.
[0.12.0] - 2026-08-19
Added
call_capability/3inhecate_om— call a capability by name over the direct-dial data path: resolve a provider from the DHT (procedure_advertisement), resolve its serving station to a dialable endpoint (station_endpoint), dial it directly and CALL the rawCapNamethere, failing over to the next provider on error.
Fixed
- Capability RESOLUTION now works over the real SDK path. On macula 8.2.0-8.4.0 a
consumer resolving via
find_records/2gotundefinedfields (the record readers did not handle the atomised payload keys the SDK path returns), so discovery silently returned no usable providers. macula 8.4.1 fixes the readers.
Changed
- Requires macula
~> 8.4(was~> 8.2):call_station+station_endpointreaders (8.3.0), TLS-policy forwarding (8.4.0), and the reader atom-key fix (8.4.1).
[0.11.0] - 2026-08-19
Changed
- Capability discovery is now DHT record-based, replacing the pubsub
_mesh.cap.announcebroadcast. On capability register (and a 30s republish tick) a service writes one signedprocedure_advertisementper capability to the mesh DHT (advertiser = the service's key, serving_station = a connected station, procedure_uri = realm-namespaced capability name).lookup/1resolves by reading those records viamacula:find_records/2, verifying each signature, and returns{ok, [#{advertiser, serving_station}]}— a consumer then dials one of those stations directly (direct-dial discovery, no multi-hop). - Requires macula
~> 8.2(was~> 8.0): usesfind_records/2,read_procedure_advertisement/1,procedure_key/1from macula 8.2.0.
Added
hecate_om_identity:keypair/0— the service's retained stable signing keypair, or{error, no_keypair}for an ephemeral service (which is then not advertised and stays invisible to DHT discovery, by design).
Removed
- The pubsub
_mesh.cap.announcepublish/subscribe path andpeers/0. There were no callers of the oldlookup/1summary shape.
[0.10.0] - 2026-08-13
Changed
Requires macula
~> 8.0(was~> 7.0). This is the release that lets a hecate-om service say WHY it refused.macula 8.0.0 stopped answering
{error, {call_error, 16#0F, unknown_error}}when a handler returns{error, Reason}and now returns the handler's own reason.0x0Fis the code the SDK stamps when a handler says no, so it never meant "unknown error" in practice — it meant a service had refused and could not tell you why. Every refusal in the world arrived as the same three words.%% handler handle(_) -> {error, <<"hold_full">>}. %% caller, on 7.x {error, {call_error, 15, unknown_error}} %% caller, on 8.x {error, <<"hold_full">>}Measured rather than assumed: a two-service torture across two live stations with no direct edge fails this on 7.0.0 with exactly the old constant and passes on 8.0.0 with the reason intact.
Consumer impact. Nothing in this library matches the old shape — there is no
call_errororunknown_erroranywhere insrc/,priv/ortest/. A consumer that pattern-matches{error, {call_error, _, _}}on a REFUSAL will stop matching; one that matches{error, _}is unaffected. Transport failures keep the{call_error, Code, Name}shape, so only the handler-refusal case changes.⚠ A binary reason now crosses the wire verbatim; non-binary reasons arrive as printed binaries. See macula CHANGELOG 8.0.0.
Added
storevariable onrebar3 new hecate_service, off by default. Empty generates a storeless service exactly as before, which is what most services want.store=1generates the whole thing at once:store_id/0anddata_dir/0, a store named<name>_store, theevoqadapter block inconfig/sys.config.src, a data volume andHECATE_DATA_DIRin the compose file, and three boundary guards keeping them in step.It exists because adding a store by hand is three things and not one, and omitting the third crash-loops the node before any service code runs. A sibling service put two of three fleet nodes into a boot loop by exporting the callbacks without adding the
evoqblock, which raises{not_configured, event_store_adapter}at release boot. The generated README says the same thing in both branches, so a service scaffolded without a store is told what adding one really costs.⚠ The value must be exactly one character, so
1and notyes. rebar3 passes template variables as strings and mustache iterates a string as a list, so a longer value repeats every conditional block once per character. That is a limitation of the template engine rather than a preference, it is documented on the variable itself, and it fails loudly at the firstrebar3 compilewithspec for store_id/0 already definedrather than shipping anything.The generated suite now checks that the two OTP pins agree, and that you are running what they name.
rebar3 new hecate_servicehas always pinned the release in two files, theContainerfileand.github/workflows/lint.yml, and 0.9.0's own commit message said they must agree. Nothing enforced it.A sibling service shipped with its
Containerfileon 27 while development ran on 28, so a localrebar3 eunitmeant "passing on 28" and nothing more, CI failed for three commits on a crash that does not occur on 28 at all, and because the image build is a separate workflow the image reached the fleet regardless.The generated
*_service_tests.erlnow reads both files and compares them againsterlang:system_info(otp_release). It fails rather than warns when the running VM differs, because developing on a release you do not ship makes a green suite mean less than it appears to. Moving to another release means moving both pins, which is the point of having them.No change to
src/.
Fixed
README no longer claims services never run on user laptops. It said Layer-2 services "run on realm infrastructure nodes ... not on user laptops. They are institutions, not user agents", in the opening paragraph and again in the layering diagram. That is a deployment policy for the realm's own shared services, stated as if it were a property of this substrate, and it is the wrong way round: a hecate-om service is edge-first. It dials out to a
macula-stationover QUIC, needs no inbound port and no public address, and reaches its peers through the station. Running one on a laptop is the ordinary case, not an exception.What the sentence was reaching for is the identity rule, which stands and is now stated on its own: a service answers with its own service-principal credential chaining to a realm root, never as the human whose machine it runs on. Placement is a deployment decision; identity is not.
No change to
src/.
[0.9.0] - 2026-07-31
No change to src/. This release is the scaffold, its guard, and a
documentation pass; consumers of the library itself get the same behaviour
they had on 0.8.0.
Added
rebar3 new hecate_service, a real rebar3 template inpriv/templates, generating a repository that compiles, tests and deploys: the OTP application and supervisor, the six-callback service module, a eunit suite asserting the contract, a relx release, aContainerfile, both CI workflows, an executablescripts/health.sh,deploy/docker-compose.yml, and the usual documentation.scripts/install-templates.sh, because rebar3 only finds custom templates under~/.config/rebar3/templatesand an empty directory has no dependency to carry them there.hecate_service_template_SUITE, which generates a service for real throughrebar3 newand then compiles it against this library, so the-behaviour(hecate_om_service)attribute checks all six callbacks. It also asserts the file set, thathealth.shis executable, that no unrendered variable survives, and that GitHub Actions expressions are intact..github/workflows/lint-and-test.yml. This repository had no CI at all, which is how the old templates drifted unnoticed.
Changed
scripts/scaffold-service.shis now a wrapper over the template and takes the service name once, deriving the snake_case application name from the kebab-case repository name. It previously rendered a handful of files with sed and left you to writerebar.config, the.app.srcand the supervisor by hand, so a scaffolded service did not compile.
Fixed
- The hex package links and the ex_doc
source_urlpointed at Codeberg. GitHub has been canonical since 2026-07-26. guides/container_deployment.mddescribed a deployment that does not exist: system-wide Podman Quadlets reconciled byhecate-gitops, ahecate-realm-adminCLI, a loopback-published health port. It referenced three template files that no longer exist. Rewritten to describe what the generated service actually does, with a closing section naming what is intended rather than built.guides/service_anatomy.mdshowed a repository layout withquadlet/, amanifest.jsonand a flatsrc/, none of which the scaffold produces.- The README's status line claimed v0.5.0.
Removed
- The old
templates/directory. It had drifted from the estate it was meant to serve: a Quadlet unit that nothing on the fleet uses (the beam nodes run docker compose under a pull-based reconciler),TODOcomments in place of two callbacks, a store-backed service as the default in a mostly producer-only estate, anidentity_specclaiming two actions and a wildcard resource for a service that could exercise none of them, and no test file at all. Nothing consumed it: thehecate-om scaffoldCLI its own README documented was never written.
[0.8.0] - 2026-07-26
Changed
Requires macula
~> 7.0(was~> 6.0). macula 7.0.0 teaches the canonical encoder floats (IEEE 754 binary64, RFC 8949 major type 7), so services publish raw float telemetry again and stop scaling to integers to get a number past our own codec.This is a WIRE change upstream: a peer on macula 6.x finds no clause for major 7 and rejects a frame carrying a float. Both ends of any topic that will carry floats must be on 7.x, so roll stations and services together rather than piecemeal.
0.7.0 was the stopgap that made the old restriction loud instead of silent. This is the release that removes the restriction. See macula CHANGELOG 7.0.0.
[0.7.0] - 2026-07-26
Changed
Requires macula
~> 6.0(was~> 5.1). BREAKING for consumers, because macula 6.0.0 changed publish behaviour and that passes straight through:macula:publish/4,5now returns{error, {unsupported_payload_type, Type, Path}}where it previously returnedok, for raw floats, tuples, colliding map keys, out-of-range integers and oversized payloads.Those publishes were not working before. A float was silently rewritten as a six-decimal text string, and an unrepresentable term killed the shared peering connection while its sender was told
ok. Services publishing raw floats must scale to integers (micro-units) or send binary strings.No wire-format change, so a service on 0.7.0 interoperates with stations and peers on older macula; the guard is entirely sender-side.
See macula CHANGELOG 6.0.0.
[0.6.0] - 2026-07-14
Fixed
GET /healthis now actually served.hecate_om_health_handlerdefined the route but nothing ever mounted it on a listener, so/healthwas dead code and every hecate_om service reported unhealthy to Podman/k8s (nothing boundhealth_port).hecate_om_supnow starts a Cowboy listener onhealth_port, dispatching to the handler — gated on a validhealth_port, so a service that wants no HTTP health endpoint simply omits the config.snapshot/0already calls the registered service'shealth/0live, so a healthy service returns 200.
Changed
maculadependency bumped to~> 5.1(connect-hang fix).
[0.5.0] - 2026-07-04
Added
- Optional
store_integrity/0service callback. When exported,hecate_om:boot/1threads its value (disabled, or#{enabled => true, key_source => ...}) into the reckon-db store config, enabling per-store HMAC event tamper-resistance. Defaults todisabled(backward compatible).hecate_om_store:ensure/5+ensure_store/5accept the integrity config explicitly.
[0.4.0] - 2026-07-02
Added
- Optional
store_mode/0service callback —single(default) orcluster. When a service exports it,hecate_om:boot/1auto-starts its reckon-db store in that mode;clusterenables reckon-db discovery + Ra clustering so the store spans every node that starts the samestore_id. Newhecate_om_store:ensure/4+ensure_store/4carry the mode; the/2and/3arities keep defaulting tosingle(backward compatible). Previously the auto-started store was alwayssingle, with no override.
[0.3.4] - 2026-06-24
Fixed
hecate_om_store:ensure/3andensure_store/3were not exported in 0.3.3, sohecate_om:boot/1's cross-module call crashed withundefat boot ({hecate_om_store_failed, ..., undef}). The store-index wiring added in 0.3.3 was therefore dead on arrival. Added both to-export.
[0.3.3] - 2026-06-24
Added
- Optional
store_indexes/0service callback. When a service exports it alongsidestore_id/0+data_dir/0,hecate_om:boot/1installs the returned reckon-db secondary index declarations (e.g.{payload, Key},{payload_hash, [Keys]}) on the auto-started store. Previously the auto-wired store was created with no indexes, so a service that also declared indexes via its ownstart_storecall hit{already_started}and its declarations were silently dropped — CCC payload indexes never got registered.hecate_om_store:ensure/3andensure_store/3carry the index list; the/2arities delegate with[].
Changed
- Bumped the reckon-db stack pins to the current ecosystem:
reckon_db ~> 5.4(was~> 2.3— needed for the#store_config.indexesfield),evoq ~> 1.21(was~> 1.15),reckon_evoq ~> 2.6(was~> 2.1).
[0.3.2] - 2026-06-03
Added
MACULA_STATION_SEEDSenv override for station seeds. When set (comma-separated station URLs), it takes precedence over thestation_seedsapp env inhecate_om_identity:configured_seeds/0; empty/unset falls back to the app env. Lets one deployed image dial a distinct station per instance without a rebuild (e.g. one bot per node, one station each), matching the existing seed-via-env convention.
[0.3.1] - 2026-06-01
Fixed
- Mesh connect no longer gated on the service-principal cert.
hecate_om_identity:attach_client/1 previously short-circuited to
undefined(never calling macula:connect/2) whenever the cert file was absent, leaving every cert-less service permanentlyno_client. The cert was a spurious gate: it is never passed toconnect(the SDK auto-generates an ephemeral peering identity for empty opts), only loaded and held forservice_cert/0/ the v2 realm-membership swap-in. Connect now keys off configuredstation_seeds, not cert presence. - Connect is deferred off the init path and retried. At boot
hecate_omcould start before the macula SDK app was fully up; a single inline connect raced it and lost.init/1now schedulesself() ! connect, retries every?RECONNECT_MSuntil a pool attaches, monitors the pool, and re-attaches if it later dies.
Added
- Optional
identity_key_pathenv: when set + loadable, the service peers under a stable on-disk macula-native keypair (consistent node id across restarts) via#{identity => KeyPair}; otherwise the SDK auto-generates an ephemeral identity. Identity is for peering, not authorization.
[0.3.0] - 2026-05-19
Added
hecate_om_storemodule: canonical reckon-db + evoq wiring helper. Encapsulatesreckon_db_sup:start_store/1+ 30s readiness wait +evoq_store_subscription:start_link/1. The pattern documented as mandatory inhecate-corpus/skills/ANTIPATTERNS_EVENT_SOURCING.mdnow lives in one place.- Optional callbacks on
hecate_om_service:store_id/0anddata_dir/0. When a service module exports both,hecate_om:boot/1auto-runs the canonical wiring beforeServiceMod:start/1. - New template
templates/sys.config.src.tmplwith the canonical reckon_db + evoq blocks. scripts/scaffold-service.shnow rendersconfig/sys.config.srcalongside the service modules.
Changed
_service.erl.tmplincludes the optionalstore_id/0+data_dir/0callbacks by default; producer-only services remove both.rebar.configadds reckon_db, evoq, reckon_evoq as deps so services usinghecate_omget the store-wiring stack for free. Producer-only services inherit the image-size cost but not the runtime cost (nothing starts unless the service module declaresstore_id/0).
Why
Each new CMD/PRJ service was rediscovering the canonical reckon-db
wiring (or, more often, missing pieces of it). The parksim trio
shipped without {evoq, [{event_store_adapter, ...}]} and without
any reckon_db_sup:start_store/1 call, leaving evoq in default
in-memory mode despite being configured as event-sourced. This
release moves the pattern into the library so future services pick
it up just by exporting two callbacks.
[0.2.0]
Added
- Initial scaffold:
hecate_om_servicebehaviour, helpers for identity claim, capability advertise, and/healthendpoint. - Templates for
Containerfile, Quadlet unit,manifest.json, and CI workflow. - Guides: service anatomy, identity model, container deployment.
Planned
- UCAN-delegated identity wiring once
hecate-realmissues service principals - Common Test framework helpers for service test suites
[0.1.0] - YYYY-MM-DD
Not yet released.