Changelog

View Source

Format: 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_* to mcl_core_*) take the new name, and the version starts again at 1.0.0. mcl_om 1.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 to mcl_core..., and -behaviour(mcl_om_service) to mcl_core_service;
    • its sys.config: the {mcl_om, [...]} block to {mcl_core, [...]};
    • a reader of /info or <org>/info: the mcl_om_version key is now mcl_core_version.
  • src/ is split by role (docs/DESIGN.md §1.2): src/contract/, src/bridge/ and src/lan/.

Added

  • The transport boundary, mcl_core_transport. mcl_core:call_capability/4,5 and mcl_core_pubsub:publish/2,3 reach 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 lan app env is set: #{data_dir => Dir, first => boolean(), gossip => map()}. See guides/lan_transport.md.
    • Cluster start. The first node (first => true) generates the Erlang cookie (.erlang.cookie, 0400) and the gossip secret (gossip.secret,
      1. 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.
    • Calls. A capability whose auth is open, {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. advertiser pins a node as on the mesh. The handler finds the calling node's id under caller (overwriting the payload's own) and in macula_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 realm option always means the mesh. The event meta names the publisher's node id, publisher_verified => true and delivered_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}}.
  • The mesh bridge (docs/DESIGN.md §3, macula-services/mcl-core#7). On a LAN cluster, one node is the bridge: {bridge, true} (default false). See guides/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 => mesh on a capability: the bridge advertises it, from any node of the cluster. It forwards each mesh call into the LAN, with the mesh caller as caller. The serving member's guard runs once, for that caller. An export other than mesh refuses 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_identity to mcl_core_bridge:start_mesh_pool/0. mcl_core_identity:macula_client/0 still answers.
  • 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 lan map has entry => #{address => Ip, port => Port}. See guides/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 /health is {degraded, {lan_entry, {not_private, Address}}}.
    • Who may take a token: a node id on lan_members in data_dir, one <hex node id> owner|member per line. A list that group or others may write names nobody. It is read again on every request.
    • POST /lan/v1/challenge, then POST /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 over mcl_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/call with the bearer token: made through mcl_core_lan:call_as/6 as the token's node id. A "caller" the client sends is dropped. With no LAN provider the answer is 404 no_lan_provider; the call is not relayed to the bridge, where it would carry the bridge's identity.
    • GET /lan/v1/events?topic=T with 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.
  • mcl_core_pubsub:mesh_publish/3: a publish on the mesh alone, what publish/3 was 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,2 now 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 whose start/1 refuses; that service is not hosted. A standalone release calls boot/1 once 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 the org key of its own info/0 when present, else mcl_om's org env 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>/info and <service>.describe_capabilities answer for their own service.
    • Health combines every hosted service's verdict. With several, a failing one is named: {degraded, {<<"mcl-mail">>, Reason}}. /health lists each one's info under services, which is now a key /health sets itself, so a service may not use it in its own info/0.
    • The boot claim is made once per distinct org (mcl_om_claim:add_org/1). /health's claim is today's map for one org and a list of those maps for several.
    • mcl_om:service_modules/0 lists the hosted services in boot order. service_module/0 stays: the first of them.
  • 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 the global name 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/1 finds 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 answers gate:design on a plan issue with macula-ci-images' shared gate: without the C4 Context and Container diagrams in assets/, 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.sh removes the empty render).
  • architecture/README.md in the scaffold now has a Level 2 containers table and names assets/c4-containers.svg beside the context and component diagrams.

Changed

  • The service template's mcl_om floor is ~> 1.9, this release.

  • The house's C4 pin moves from macula-ci-images 40c349d to b268b87, the commit with the Container rule and the Design gate. c4-model and c4-design-gate share the one pin in scripts/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.yml ran its guard and publish on github.com only; it is now ported the way evoq's was, and publish needs verify, test (lint-and-test.yml), advisories, release-guard and docs. The docs check runs in the forge's ci-otp image, so its gate is real (#5). The scaffold-lint job moved, unchanged, into template-lint-image.yml; it still cannot run on the forge (#2). The advisory scan moved, unchanged, into advisories.yml, and publish calls its stand-in directly: two calls deep, the forge drops the stand-in's OSV_SCANNER_VERSION.
  • A scaffold push that changes only assets/ rebuilds no image (mcl-om#63). The generated scripts/is_image_push.sh counted .md, docs/ and LICENSE as documentation but not assets/, so a commit carrying only a re-rendered assets/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@v4 is 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 drops actions/cache@v4 with 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 own limits and stays under runtime set_limits. The guard checks the whole block at boot (mcl_om_guard_limits:validate_config/0), so a bad entry, including one whose own per_caller_max exceeds its own global_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's sys.config.src shows the key, and a generated service now asks for mcl_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, a crew:<member> label for each member named with --crew or MCL_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) and v0.1.0 — each opening with the Purpose (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 what mcl_service_template_SUITE can assert: it runs the script with a stand-in gh on 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.sh now 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.yml and .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.sh decides every channel from GITHUB_REF in one place, scripts/is_newest_release.sh keeps :latest from moving backwards when an older tag finishes last, and scripts/promote_latest.sh copies a digest's own manifest bytes under :latest rather than re-serialising one nothing signed. Its test runs in CI against a registry of its own on every change.

  • scripts/check-service-drift.sh reports how a service differs from the template, and how it starts its Erlang node (mcl-om#56). Read-only, offline, and read at origin/main rather 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 from mcl_service.template rather 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-listener is the template's form, loopback binds 127.0.0.1 (or ::1) and nothing else — the directive naming any other address, {0,0,0,0} included, is open, since it is also how a node binds the world — open listens on every address with a cookie as its only defence, and unknown is a repository with no config/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 to main publishes :main and :<sha>, which nothing follows; a v* tag publishes its version; and :latest moves to that tag's digest once it is built — and, in the house, signed. Before this, a push to main published :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.src starts the node with -sname, -start_epmd false and -dist_listen false and sets no cookie; the Containerfile bakes no default MCL_COOKIE and 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.sh sorted with git's --sort=-v:refname, which puts v1.1.0-rc1 ABOVE v1.1.0: git reads the rc1 as text after the empty suffix a plain release has, where SemVer sorts a prerelease before the release it precedes. So cutting an rc moved :latest to a rehearsal, and the release cut after it — reading as not-newest against the rc — never reached :latest at all. Only plain vX.Y.Z tags are releases now. only_a_plain_release_moves_latest cuts both rows for real in a throwaway repository and reads the answer from the script, and the promotion step's own if: and the house's needs: [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

  • group and admission on mcl_om_service:subscription() (mcl-om#49): valid only together. group is the sealed group's prefix, which topic must be under on a segment boundary — a whole segment, so <realm>/tenders is a group of <realm>/tenders/wire/x_v1 and never of <realm>/tenders_archive/wire/x_v1. admission is {Module, Function, Args}, called as apply/3 with 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 missing sources already is: half of the pair, a group that is not a segment of its topic, a term that is not {atom, atom, list}, and an M:F/arity that 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 subscribe function of its own (macula_subscriber:start_link/6's subscribe option) that calls the admission and passes the token straight to macula:subscribe/5 beside the group. So the child spec carries the fun and the {M, F, A} and never the token, and macula_subscriber keeps 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 becomes admission_refused, and a raise admission_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, /health or a crash report. The tests look for a canary token in the child spec, in the read-back, in the recorded failure, in the /health report 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 and macula_node_keys:redacted/1 does not redact it, so a crash report or sys:get_status of 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 group and admission (mcl-om#41's rule, extended): changing either restarts that subscriber and no other. A declaration/2 read-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 /health naming the topic and the reason. There is no fallback to a clear subscription.
  • A raise from macula:subscribe/5 is recorded as the fixed atom subscribe_raised. Its own reason is a function_clause whose arguments are the options it was called with — the token among them — and that reason is logged with ~p and 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's auth may name, resolved against the realm key the pool pinned. members admits any realm member, role only a caller whose realm role names the procedure, and {nodes, Ids} exactly those identities with no lookup at all. Named by mcl_om_service:capability() and forwarded untouched by mcl_om_capabilities:auth_opts/1.

  • mcl_om_service:sources() and the subscription map (macula 18, macula#147): subscriptions/0 now returns #{topic := Topic, module := Mod, args => Args, sources := Sources}, where sources is members, {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 as guard => none.
  • mcl_om_pubsub_subscriptions:validate/1, pure, and called by mcl_om:boot/2 BEFORE the service's own start/1: a declaration mclom cannot wire — no sources, an unknown source class, an open with 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/0 and verdict/1, and a subscriptions key on /health in 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 behind ok — the facts that subscriber exists to react to are not arriving. The failure is logged once at warning and cleared when the same topic next starts.
  • mcl_om_wire_test:deliver/3 and call/4 deliver a handler_authorizes capability's request with the call's ucan_token and proofs beside its fields, the way macula 18's macula_station_link:with_call_token/3 delivers 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's sources, module or args restarts 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/1 refuses 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 no handler is 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_capabilities capability names auth => open, which is a decision, not a default.
  • auth_opts/1 has no default. It has no clause for a capability without auth; the refusal happens earlier, in auth_verdict/1.

Removed

  • mcl_om_capabilities:unguarded_capabilities/1 and 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 is body/7.

[1.5.0] - 2026-10-27

Added

  • auth => handler_authorizes (macula 17, macula-io/macula#129) is named by mcl_om_service:capability() and documented in mcl_om_capabilities. The link runs no gate for such a procedure and checks nothing: it hands the handler the call's ucan_token — the token the caller put on the request, unverified, and <<>> when it carried none — and proofs beside caller, 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), with macula_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 /health body while the verdict is ok. 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/info keeps its fixed shape. A value must be what jsx encodes (json_value() says which), and a key whose name is one /health sets 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.0 to ~> 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.6 to ~> 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 pass member_standing or 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_om floor moves with the release, ~> 1.3 to ~> 1.4, which is what generated_service_floor_is_this_release exists 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.0 to ~> 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 in cow_http_te), GHSA-84f2-rp86-235p (8.2, decompression bomb in cow_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's cow_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.md is 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.yml gains the shared c4-model job, 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 with attest: 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), and mesh_handles/0's spec named a pool() 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.yml now calls lint-and-test.yml (workflow_call) on the tagged commit as its test job, and publish needs [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 whose rebar3 ct had failed. A red suite now leaves the tag with no package. A manual dispatch is still a dry run of verify and skips test.
  • A generated service pushes no image while its tests are red (mcl-om#34). The scaffold's build-push.yml calls its own lint.yml (now also workflow_call) as a test job, and build-and-push needs it, on main and on a v* tag alike. mcl_service_template_SUITE:image_publishes_only_after_the_tests_pass holds 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.yml gets a guard job calling macula-ci-images' release-guard.yml on the build's runner, and build-and-push needs [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.yml checks every Erlang block in the README and guides on every change, doc-only ones included; publish-hex.yml waits 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.config still emitted {mcl_om, "~> 1.0"}, while mcl_service_template_SUITE derives the expected floor from mcl_om's own version, so rebar3 ct has been red on main since 1.1.0: at 1.1.0 and again at 1.2.0 the job failed with expected: "~> 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.0 also 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, and call/3 which ends in the same client view, ran the decoded reply through mcl_om_wire:unwrap/1, which maps {text, Bin} to Bin and passes a plain binary through unchanged. A reply carrying {text, <<"x">>} and one carrying <<"x">> therefore both read as <<"x">>, and macula_frame:check_payload/1 accepts 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 plain Bin for 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/3 closes that gap for any service's suite: it encodes the request with macula's own codec, decodes it through the provider's own macula_frame:plain_payload/1 path, merges the caller the way macula_station_link:with_caller/2 does (a peer that names itself is dropped), runs the handler, puts the reply through macula_frame:check_payload/1 before 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, as macula_station_link runs it, so a handler reading macula_response:caller/0 is 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, or undefined (mcl-om#30). caller/1 returns 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 sees unknown_error instead 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 and mcl_om_guard lowercase. caller_hex/1 is the one form: lowercase, and undefined for the same cases as caller/1 plus 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 at caller_hex/1 for 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.11 to ~> 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 pins mcl_om ~> 0.x, and none of them can float onto it. A service moves to wire 1.0 by pinning ~> 1.0 on 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/5 publishes the one station this node serves through as a one-element list. decode_resolved/1 and lookup/1 return 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/1 returns each advertisement as macula reads it, so its station field is now serving_stations. Its documentation already named the wrong fields and now names the real ones.
  • The service template's mcl_om floor 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_MS is 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/0 and republish_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's advertise_stale_after_ms / advertise_grace_ms overrides still win.
    • No wire change: ttl_ms is an existing field and every node already accepts an advertisement up to the 300 s cap.
  • The service template's mcl_om floor 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.

Changed

  • The macula floor is ~> 14.11, the first release with macula:org_member/4.
  • The service template's mcl_om floor 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 issued claim 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 shows pending.
  • /health says when each authorization ends, and warns before it does (#25).
    • Every provider_grants entry with a chain carries not_after_ms: the chain's bound, the earlier expires_at of 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 (cause realm_has_not_renewed): /health is degraded and a warning is logged once. Past the bound it is expired (cause chain_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/3 and report/3 take a clock (#{mono, sys}) instead of a monotonic time, and observed/4 takes the chain's window.

Changed

  • The mcl_service template 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/1 after its reply, publish/0, and every 30 s republish tick) ran inside the gen_server, so list/0 and publish/0 waited behind it on their 5 s default and lookup/1 on 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

  • /health on a Unix socket (#23). health_socket (a path such as /run/mcl/health.sock) serves /health on that socket and opens no TCP health listener, whatever health_port says, 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_port is the fallback, as before. The mcl_service template generates the socket: its sys.config sets it, the image's HEALTHCHECK uses curl --unix-socket, nothing exposes or passes a health port, and scripts/health.sh asks the running container. scaffold-service.sh and 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-progress is 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's id: digest and id-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>.key and refuses the removed node_identity_path setting (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 an identity_dir under _build/test. A service that sets node_identity_path in its own config must move it to identity_dir with 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 reads service_cert_path today, so nothing moves on a box. The README names the fleet's reconcile timer macula-reconcile and 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 /health still read claim.state: pending until 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 answers not_admitted while the row is pending and issues at once after the admission, so /health reads issued within a minute. An issued claim is never re-sent. (macula-services/mcl-om#12)

[0.37.6] - 2026-10-05

Added

  • max_distinct_callers bounds 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 of global_max — memory scaled with attacker-chosen distinct callers within the retention window. Once a window has seen max_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_report published a fact every tick forever — the quiet service became the fact amplifier the design exists to prevent — and the fact's denied_rate/denied_size were 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/3 now carries distinct_callers and top_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 passes check_payload/1 outright.

[0.37.3] - 2026-10-04

Fixed

  • Caller ids on the wire are hex-encoded. to_wire turns 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_callers and audit entries now carry lowercase hex, and a regression test asserts the stats reply passes macula_frame:check_payload/1 outright.

[0.37.2] - 2026-10-04

Fixed

  • top_callers is a list of maps, not tuples. The wire codec refuses tuples in payloads, so every get_limits reply carrying an over-limit caller was unsendable (unknown_error on 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_operator become get_limits (open) and set_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.guardian config names realm_did and guardian_tier only.
  • Window starts use the wall clock. OTP 28's monotonic_time is signed (negative), and the wire codec refuses negative integers — every limits.get reply was unsendable (unknown_error on the caller side). Guard window keys, stats and the denials_observed facts now carry system_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_capabilities now flows through an inbound guard pipeline (mcl_om_guard_pipeline, a macula_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 a limits key (plus a per-key envelope of min/max clamps, changed only by the operator tier) or opts out deliberately with guard => none. Streamers are unaffected. Denials are counted, and once per window per procedure the service publishes a denials_observed alert fact (topic configurable, default denials_observed) for a mcl-sec-guard to subscribe to. mcl_om_guard:stats/1 reports 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 — when inbound_guard.guardian config names the realm DID and the two tiers — the gated limits.set (guardian tier, envelope-bound) and limits.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. The mcl_service template'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 on unsupported_version) and the station_version field 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_station returns 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_service template 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.3 here; in the template's store variant evoq ~> 1.26 and reckon_evoq ~> 2.7 replace the >= X.Y.Z and < N.0.0 floors (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, which mcl_om:boot/1 calls 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 plus info) 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, evoq and reckon_evoq dependencies and applications (so khepri, ra and reckon_gater no longer start in every service), the mcl_om_store module, the optional store_id/0, data_dir/0, store_indexes/0, store_mode/0 and store_integrity/0 callbacks of mcl_om_service, and the store wiring in mcl_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) and reckon_evoq (>= 2.7.2 and < 3.0.0) in its own rebar.config and app.src, and opens its store in its application's start/2 BEFORE mcl_om:boot/1: start the store (reckon_db_sup:start_store/1), wait until reckon_db_sup:which_stores/0 lists it, start evoq_store_subscription:start_link/1. rebar3 new mcl_service store=1 generates 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/0 and data_dir/0 together (the old contract's activation), mcl_om:boot/1 logs 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; a data_dir/0 alone warns about nothing.

[0.34.0] - 2026-09-28

Added

  • confidential => off | preferred | required on a capability: macula 13's provider modes for end-to-end sealing, forwarded into advertise_direct's Opts for response and streamer capabilities alike. off keeps a procedure keyless even with macula's kem_advertise enabled; preferred names the KEM key when kem_advertise is enabled, so callers seal; required also refuses a clear call. Absent, the Opts are exactly what they were (macula reads it as preferred).

  • 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/1 checks 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 than off, preferred or required (a typo);
    • {mcl_om_kem_advertise_not_a_switch, #{kem_advertise => Value, ...}} when macula's kem_advertise is neither enabled nor disabled;
    • {mcl_om_confidential_required_without_kem_advertise, #{capabilities => [...], ...}} for a required capability while kem_advertise is not enabled (macula refuses such an advertisement as kem_advertise_disabled).

[0.33.2]

Fixed

  • Every image a house service pushes is signed. The scaffold's build-push.yml had no attest job, so mcl-mail, like any service scaffolded since, shipped unsigned (M6). With the new attest template variable, which scaffold-service.sh sets for the macula-services, macula-internal and macula-io orgs, the build reads the pushed digest back from ghcr and an attest job signs it by digest, keyless, with SBOM and provenance attestations, via macula-ci-images' attest-image.yml pinned by full commit sha, on the build's own runner. A stranger's scaffold has no such job. runs_on is now a JSON array (["ubuntu-latest"], ["self-hosted", "msi00", "pq"]), which is valid YAML after runs-on: and what the attest workflow's runs-on input 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 as not_answered. mcl_om_claim now 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. /health carries the state under claim (unsent, not_delivered with its reason, pending, issued, or no_mesh), with the org and how long it has held. The worker publishes that state when it changes and /health reads 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.sh refuses an MCL_RUNS_ON that is not a JSON array of labels, which would pass as YAML and then break the attest job's runs-on input 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) or required. With required, mcl_om_identity stops the boot with {mcl_om_mesh_unconfigured, #{missing => [...]}}, listing each of MCL_REALM, MCL_REALM_KEY, MACULA_STATION_SEEDS and MACULA_STATION_NODE_IDS that 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 /health and 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 empty MCL_REALM used 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.sh asks whether the service is private or public (MCL_VISIBILITY, refused when unset or anything else) instead of printing gh repo create --public for 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-latest otherwise; a self-hosted runner for a public repository is refused) and the gh repo create flag. New template variables proprietary, runs_on and holder (the copyright holder, which the Apache LICENSE hardcoded); MCL_RUNS_ON and MCL_HOLDER override.
  • The script's closing text is true of what it generated: a tag publishes only its own version (it said :latest and the semver tag), the fleet deploys from macula-fleet (it said watchtower rolls the beams), the remote is origin, 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.yml used docker/login-action and docker/build-push-action; the house's self-hosted runners have no docker, only a shim that hands the docker CLI to podman, whose buildx is buildah, so a private house service could never publish an image. It is now plain docker CLI steps, which run on GitHub's runners and ours alike. The login goes to DOCKER_CONFIG and REGISTRY_AUTH_FILE under $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=docker is set because podman's default OCI format drops the Containerfile's HEALTHCHECK.
  • Only main publishes :latest and only a v* tag publishes a version. The scaffold's build-push.yml can be run by hand, and every ref that was not a v* 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-otp sha256:7318a443…, macula-pq-runtime sha256: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 whose call_station refuses a call that carries no signed state. call_capability/5,7 hands 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.33 move to macula 13 with it. 13.0.1, not 13.0.0: 13.0.0's seed() type leaves out expected_node_id, so every service that dials a pinned seed breaks the contract of macula:connect/2 in 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.6 and ran on alpine:3.22.6, while the services that had moved (mcl-tube, mcl-sentinel, mcl-warden, and most others) build in macula-ci-otp:20260923-1444 and run on macula-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 generated Containerfile now matches the moved services stage by stage:
    • The builder is builder_image and the runtime runtime_image, two new scaffold variables pinned by digest. Their defaults, named once in priv/templates/mcl_service.template, are the fleet pair.
    • The builder installs nothing: no apk add, no rustup (which floated on stable), no rebar3 download. The image carries all of it, pinned. Its first step refuses any OTP but 28.4.3 with mldsa87, the same check as lint's.
    • MACULA_FORCE_SOURCE_BUILD and RUSTFLAGS=-crt-static are 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/checkout cannot run inside an Alpine container.
    • The runtime stage installs nothing: the runtime image carries OpenSSL with ML-DSA, libstdc++, ncurses and curl.
  • The generated lint job runs in builder_image, as the fleet's do, instead of hexpm/erlang:28.4.3-debian-trixie plus an apt toolchain and a rustup install. Its toolchain step checks git, openssl, rebar3, rustc, cargo, and OTP 28.4.3 with mldsa87.
  • The generated service's guards follow. The runtime test compares the release the builder and lint each assert with .tool-versions and the VM; a new test asserts lint runs in the builder image and both FROM lines carry a digest.
  • scripts/scaffold-service.sh passes MCL_BUILDER_IMAGE and MCL_RUNTIME_IMAGE through 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_SUITE also scaffolds through scaffold-service.sh with the house defaults and checks the result builds FROM the manifest's pair, which must be the macula-ci-otp and macula-pq-runtime images of one dated build. The stranger generation passes its own pair and must name no macula-io image. The lint toolchain case now runs the house generation's lint job in its real image.
  • CI's template-lint-image job scaffolds a house service in the check job's image first (read by its path, jobs.check.container.image), since the template's lint.yml now 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 check job moves from macula-ci-otp:20260923-1347 to 20260923-1444, the scaffold's builder, and the template suite fails when the two differ.
  • The scaffold also refuses an exported but empty MCL_BUILDER_IMAGE or MCL_RUNTIME_IMAGE, which used to fall back to the house pair silently.
  • The generated Containerfile names what goes wrong on the plain pair for a service that adds rocksdb: CMake silently drops a compression backend whose -dev package is missing, and barrel's snappy blob compression fails at db_open.

[0.32.1]

Fixed

  • An ownership proof never signs caller. From macula 12.11.1, macula_station_link:with_caller/2 removes a caller-sent text "caller" before the handler reads the payload, so a signer that included one was refused bad_signature. make/5,6 and the verifier now drop caller in every key form, as they already dropped asserted_by, which gives the same result on any macula version. The test helper that delivers a payload now mirrors with_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 ownershipproof d48601b: the fields carry no caller, and erlang_payload.hex (a make/6 payload 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_proof v2: 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 (minus asserted_by and the station-merged caller, a decoded null as null, everything else raw, never unwrapped).
    • make/5,6 builds the asserted_by block, applying macula_frame's own wire conversion to the fields, so the signer encodes what the verifier rebuilds.
    • verify/5 and verify_asserted_by/3 replace verify/3, which is removed along with message/3; a proof without v 2 is unsupported_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 (replayed after 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.

[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_tests asserts both floors against the versions actually built.

[0.31.0]

Changed

  • Registration goes to the serving station through macula's own stations option. A capability is advertised with stations => [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's advertise and publish_advertisement overrides, which called the internal macula_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/1 and advertise_on_serving_station/6 (exported for the overrides above).

[0.30.0]

Removed

  • mcl_om_content, with mcl_om_content_feeder and mcl_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 own share_content/get_content/ unshare_content the 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_om still 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 advertise opt, 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,7 returned {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_provider means 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 a publish_advertisement that names the station choose_serving_station/2 picked for THIS node (phash2 of 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's macula_remote_advertise_registry, single-provider by design.)
  • A slow DHT can no longer wedge the capabilities gen_server for minutes. lookup/1 ran a resolve whose retry budget counted only its sleeps (50 x 100 ms) and ignored the time each find_records RPC 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), and lookup/1/list_org_capabilities/1 wait up to 15 s, past that bound. (Issue #5, secondary symptom.)

Added

  • Advertise-liveness in /health. Every state now lists advertise_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: 0 was 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 with no_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, never no_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/5 with an advertiser pin: one org procedure with many providers -- a thousand book clubs, one get_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/2 registers capabilities and subscriptions only AFTER ServiceMod:start/1 returns {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.27 resolves 0.28 once hex serves it; state the floor as ~> 0.28 so no build can pair macula 12.2 with an older mcl_om.

Fixed

  • The scaffold pins what runs, not only what builds. The mcl_service template's runtime stage was FROM 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 now docker.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/info on every service. mcl_om:boot/2 adds an info capability, 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 own info refuses to boot with {mcl_om_capability_name_reserved, <<"info">>}.
  • handler_timeout_ms per capability (macula 12.2): how long macula_response waits for the handler before answering the caller temporary_relay_failure, 1 to 600000, default 30000. A streamer capability that sets it is refused, since macula_streamer has no such option.
  • publisher_opts on mcl_om_pubsub:publish/3, passed to macula_publisher: announce => false publishes the payload without the two fact frames.
  • failed_publishes on /health and mcl_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_link from 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 a sync caller {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/Name and 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/2 now 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: set MCL_ORG, or the org app 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 to MCL_BOX / MCL_SERVICE_NAME and 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/0 and read_model_ttl_sweep/0 callbacks, mcl_om:read_model/0, and mcl_om_read_model are gone, with the barrel_docdb dependency. barrel brings the erlang rocksdb binding, 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/0 stays: the reckon-db store still uses it.

Migrating a service that had a read model

  1. Declare {barrel_docdb, "~> 1.5"} in rebar.config and barrel_docdb in the .app.src applications.
  2. 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).
  3. Set barrel's data_dir app 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.
  4. Replace mcl_om:read_model() with the service's own database name, and drop read_model_id/0 / read_model_ttl_sweep/0 from the service module (pass the TTL sweep options to create_db/2 directly).
  5. On the macula-services fleet, link rocksdb against the system library rather than compiling it: an overrides entry for rocksdb's pre_hooks adding -DWITH_SYSTEM_ROCKSDB=ON, built in ghcr.io/macula-io/macula-ci-otp-rocksdb and run on ghcr.io/macula-io/macula-pq-runtime-rocksdb. macula-services/mcl-stations is the worked example.

A service without a read model needs no change beyond the version.

Fixed

  • Boot claims carry their labels. The service_name and box a 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/0 now falls back to the MCL_SERVICE_NAME and MCL_BOX OS variables, and service_name finally to the service's own name from info/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 (a v* 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_service moduledoc named rebar3 new hecate_service; it is mcl_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/3 read timestamp, signature and public with maps:find/2 on 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 as missing_proof: forged and genuine alike, before any signature was checked. It reads the three fields through mcl_om_wire:field/2 now. 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 through macula_frame and verify what comes out. Found porting hecate-graph's asserted_by provenance 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 first v0.26.4 run 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/0 answers _ when no org is configured, and mcl_om_capabilities advertised 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>">>} in config/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.src described "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 :latest plus the semver tag. The README now states the two channels (main publishes :latest, a v* 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 on rebar3 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 a template-lint-image job 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-alpine and lint erlang: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 now hexpm/erlang:28.4.3-alpine-3.22.6 (the runtime stage's Alpine) and lint hexpm/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 own erlang publishes 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/3 on every republish tick, dropped the refusal and retried quietly. The answer is kept per procedure now (mcl_om_capabilities:provider_grants/0) and judged by mcl_om_provider_grant:
    • no procedure_delegation naming this node: degraded at once, because an operator has to grant it;
    • no org_directory, or any other refusal: waiting for provider_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 a provider_grants list, 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.

Fixed

  • The service scaffold's build-push no longer lets a release tag move :latest. It published :latest on every push, tags included, and watchtower rolls every box on :latest, so cutting a release deployed it. A v* 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.sh decides from the pushed range and prints build=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 replaces paths-ignore rather 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_path names 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 different docker compose -p cannot 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/1 returned {stop, normal} when there was nothing to claim, and a supervisor treats any stop from init/1 as 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 returns ignore. Deployed services all configure seeds, so none was affected.
  • mcl_om_mesh_pool_SUITE can 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: putting verify => none back into base_pool_opts/0 turns 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 verify entry at all, and mcl_om_identity:verify_mode/0, verify_mode_of/1 and the MCL_OM_VERIFY environment 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 refuses verify in any value, on a seed, at connect and in call_station opts, 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 stale webpki a 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_capabilities no longer passes verify => none to macula:call_station/8. In 12 that call keeps maps:with([expected_node_id], Opts) and refuses verify and pin_tls_cert by name.

  • {macula, puzzle_difficulty, _} removed from config/test.sys.config and from the service scaffold priv/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 to macula_node_keys:generate/3 is untouched and still valid; tests still pass 0 there to skip the grind.

  • config/test.sys.config now sets node_identity_path. Raf's ruling of 2026-09-23 gives a machine ONE stored identity, so connect/2 with no node_identity loads ~/.local/share/macula/identity.key instead 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 by pool_opts_carry_no_verify_entry_test_, which asserts the new contract directly: no verify key, 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 verify now defaults to none, not webpki (mcl_om_identity:verify_mode/0). webpki was only ever harmless by accident: macula 11.4.0's macula_peering_conn:start_dial/1 discarded 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_id is required and a link without one refuses to start. 11.5.0's own dial_opts/1 states 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 in e07010d; this is the consumer-side equivalent.

    This fixes every mcl-* service nobody has written yet. The service scaffold's sys.config.src sets no verify at all, so the library default is what each of them silently inherits.

  • MCL_OM_VERIFY=webpki remains the opt-in for a caller that genuinely has a chain worth checking, which is the shape dial_opts/1 documents. Any other value now names the variable with {mcl_om_verify, {unknown_mode, V}} instead of silently selecting a mode. verify => true was 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/0 is exported for the test suite. The verify entry of the composed map is what reaches macula:connect/2, so asserting on that rather than on verify_mode/0 alone 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/0 used to fall through to #{} when nothing was configured, so a service with no trust anchor started normally, went green and answered /health while being permanently unable to resolve anything org-namespaced. Configure realm and realm_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/2 answers none, macula_record:verify_authorization/3 refuses every advertisement with no_realm_key, and macula_direct_dial reports {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/2 filters on the authorization check AND a readable serving_station in the record. A record missing the latter is dropped silently and produces the IDENTICAL no_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_om decodes it and pins #{RealmId => RealmKey} as macula:connect/2's realm_trust.

    The decode lives here rather than in a service or in the SDK. macula:connect/2 takes realm_trust as 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 for realm (64-hex to 32 bytes) and for every seed's expected_node_id. Anywhere else means every mcl-* 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 bare badarg out of the hex decoder.

Fixed

  • The scaffold taught the bug. priv/templates/mcl_service/sys.config.src carried realm_trust commented out, described as needed only by a service that CALLS org-namespaced capabilities, and claimed "the realm's key comes from its own foundation_realm_trust_list DHT record, not from this file". That last part is wrong for this path: macula_direct_dial never 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 requires MCL_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_error with code handler_error OR unknown_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/1 passed cancel/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/box app 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_om line; 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/0 replaces the 10.x keypair + service cert); seeds are pinned by station node id (D5, MACULA_STATION_SEEDS index-paired with MACULA_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_service rebar3 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 the hex-publish environment 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 /health listener 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's auth field now includes {realm_member_required, RealmDid, RequiredCan} -- macula added this policy after PLAN_UCAN_GATED_CAPABILITIES.md was written and called the realm-membership case unbuilt; hecate_om_capabilities:auth_opts/1 needed 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 from capabilities/0's/subscriptions/0's own dispatch-wiring-only metadata. When either is exported, hecate_om:boot/2 advertises a synthetic <service-name>.describe_capabilities RPC (hecate_om_describe, stateless -- reads hecate_om:service_module/0) that returns both lists live. Motivating cost this closes: macula-lazymesh's MeshServices catalog 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/1 threads it into the database's create_db config via hecate_om_read_model:ensure/3 (ensure/2 still works, now a thin wrapper defaulting to disabled). Arming the sweeper only reclaims disk for documents that already carry expires_at in their own put_doc/3 options -- barrel_docdb treats those as gone on read unconditionally regardless of this config (see barrel_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,3 now 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} and field/2,3 returned 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_identity generates a keypair only when the configured identity_key_path file 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 -doc attributes 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 what hecate_om_capabilities does today, and the README no longer describes the removed templates/ directory. References to private macula functions and to functions that do not exist are no longer written as links, so rebar3 ex_doc builds without warnings.

[0.24.0] - 2026-09-05

Fixed

  • hecate_service scaffold now generates a .tool-versions pinning erlang 28.4.2, matching the OTP major (28) Containerfile and lint.yml already 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-catch syntax under a version that turns it into a hard build failure via warnings_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 real hecate_service-generated services, hecate-sentinel and hecate-echo). This repo itself was a fifth, having no .tool-versions of 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 explicit auth key -- i.e. every one that will silently advertise open via auth_opts/1's own default, whether that's a real decision or nobody set it yet. register/1 now logs exactly this list, once, whenever a service (re-)registers its capabilities -- free, per-boot visibility into fleet-wide auth adoption for every service that routes through this module. Phase 1 of rolling out {ucan_required, Issuer} fleet-wide without silently missing a service (the concern PLAN_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 own capabilities/0 reports. A service that calls macula:advertise/5, macula_response:advertise_direct/7 or macula_streamer:advertise_direct/7 directly -- bypassing hecate_om_capabilities:register/1 entirely, the pre-migration hecate-rag pattern 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 sibling hecate-services/* repo's real source (umbrella-app-aware: recursive, not a literal top-level src/ 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_service scaffold's lint.yml now installs a Rust toolchain before rebar3 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.yml now carries a per-ref concurrency group with cancel-in-progress, so quick successive pushes to main cannot race to overwrite :latest with 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_proof and hecate-mail's mailbox_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 its learn_link provenance 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 exports message/3 (the exact signed byte layout, for a caller building a proof) and decode_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 reasoning field/2,3 itself already gives for existing as a shared helper). Only populated by macula >= 10.15.0, which is the version that first merges caller into Payload when macula's station link handles an inbound call -- on an older macula this reads undefined, same as any other absent field.

[0.21.0] - 2026-09-01

Fixed

  • One capability's advertise_direct call raising during a republish tick used to crash the whole hecate_om_capabilities gen_server before it could register any other capability in the same batch -- and, because macula_response/macula_streamer link 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_capabilities crashed on a timed-out advertise call for ingest_document and, minutes later, unrelated capabilities (search_chunks_semantic/answer_query/add_knowledge) started failing every inbound call with noproc. advertise_one/7 is now called through advertise_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 also macula 10.14.5, which independently hardens the same failure class one layer down (existing_or_new_sup/1 no longer trusts a dead reuse_sup pid).

[0.20.0] - 2026-09-01

Added

  • hecate_om_wire:unwrap/1 (exported, pure): recursively converts macula_record_cbor's wire-level value representation into plain Erlang terms -- {text, Bin} (CBOR text string, major type 3) to Bin, null to undefined, through list elements and map values.

Fixed

  • hecate_om_wire:field/2,3 returned the wire-level CBOR value representation unchanged, not the plain Erlang term a caller's is_binary/1 guard 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 bare binary() -- a plain binary is reserved for a CBOR BYTE string (major type 2), a different wire type (see macula_record_cbor's own moduledoc for the full value() table). Every consumer of field/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's get_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,3 now runs whatever it finds (or the caller's own Default) through unwrap/1 before 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's macula_remote_advertise_registry tombstones a re-registration for ?TOMBSTONE_TTL_MS (30s, deliberately bumped from 10s in ea95857 for 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's get_document_verbatim capability stayed unknown_method for 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 through hecate_om_capabilities, macula_response:advertise_direct/7, and macula_remote_advertise_registry before 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 carry kind => streamer (default response) and stream_opts => #{mode => server_stream | client_stream}. The internal advertise dispatch in hecate_om_capabilities now sends the two advertise_direct calls (bare + org-qualified) through macula_streamer instead of macula_response for a streamer-kind capability -- both provider modules publish the identical procedure_advertisement DHT record and read the same Opts keys (ttl_ms, reuse_sup, cert_chain), so this changes only which module gets called. New provider_module/1 and stream_opts/1 (exported, pure). call_capability/5,7 (the direct-dial CALL path) stays response-only, unchanged -- a streamer capability is consumed via macula_stream_sink:start_link_direct/5,6, a genuinely different client-side API, not a gap in this change.
  • Motivated by hecate-tube's tube_mesh_providers.erl: three of its four hand-rolled macula_response:advertise_direct calls migrated onto capabilities/0 when this module already existed (0.17.0's own hand-rolled-loop migration story, above, for hecate-rag), but the fourth (tube.watch_video_clip) is macula_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/1 may now carry auth => {ucan_required, IssuerPubkey} (default, and every existing caller's behavior: open), forwarded through both advertise_direct calls into macula:advertise/5 and enforced on every inbound call by macula's own authorize_policy/2. The primitive already existed one layer down (macula's {ucan_required, Issuer} auth policy); nothing in hecate_om used it, so no hecate-service could gate a capability without bypassing hecate_om_capabilities entirely. New auth_opts/1 (exported, pure). This is a direct-signature check against one pre-known issuer, not a delegation-chain walk to a realm root -- see plans/PLAN_UCAN_GATED_CAPABILITIES.md for the full scope and that boundary.
  • hecate_om_simple_handler: bridges a stateless one-arity {Module, Function} handler (macula's own native calling convention) into macula_response's per-request init/1 + handle_request/2 contract, so a hecate-service migrating a capability onto hecate_om_capabilities:register/1 doesn'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-rolled macula:advertise/5 loop onto this path in the same release cycle.

[0.16.5] - 2026-09-01

Changed

  • Picked up reckon_db 5.11.1 (already permitted by this repo's own ~> 5.4 constraint; no rebar.config change needed, just a fresh resolve + this release marking it verified). Fixes read_all_global/3 re-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 a global_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, and org_capability_pattern/2 used binary:encode_hex(Realm) (lowercase) while the live fleet's DHT procedure_advertisement records carry uppercase hex. Since SHA-256(uppercase) != SHA-256(lowercase), direct-dial resolvers looked up the wrong DHT key. Changed all three call sites to binary:encode_hex(Realm, uppercase), matching the discovery URI macula_direct_dial builds (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_path was simply absent from hecate-stations' own config/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/0 returns undefined forever (the self-heal, auto-generate-and-persist path only fires when a path IS configured but the file at it fails to load), so keypair/0 stays {error, no_keypair} permanently, and hecate_om_capabilities:advertise_with/7 no-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 and hecate-stations' own config now set identity_key_path to /etc/hecate/secrets/identity.key, the same already-mounted secrets volume service_cert_path uses -- no new infrastructure needed. Added sys_config_configures_a_stable_identity to hecate_service_template_SUITE so 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 implies advertise_direct got 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 to hecate-stations (beam03) specifically to observe this in production and found exactly this: 0.16.1's new logging never fired at all, and hecate_stations.list_stations still wasn't in the DHT (confirmed via macula-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/3 discarded advertise_direct's {error, Reason} outright, and put_advertisement/2's try ... catch _:_ -> ok end discarded BOTH a plain {error, _} return from macula:put_record/2 (never pattern-matched at all, not just the exception guard) and any real exception, all with no logging anywhere. Combined with register/1's handle_call always replying ok regardless of what do_advertise actually 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: a try/catch here is only justified when it adds monitoring value neither branch did. Both paths now logger:warning/2 the real reason (hecate_om_capabilities: advertise_direct for ~s failed: ~p / ... put_record (record-only advertisement) failed: ~p). Found live investigating why hecate_stations.list_stations was unreachable through the mesh: confirmed via macula-cli dht find-records-by-type that 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_station in 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 targeted call_capability, regardless of Org. advertise_one/7 now makes two independent advertise_direct registrations per handler-bearing capability (bare name, plus Org/Name as a genuinely distinct wire-level registration); resolve_full/4 tags each resolved provider with the wire-level procedure string that actually matched, and call_capability CALLs with that string, not the raw capability name. Live-verified against station-de-frankfurt.macula.io.
  • find/2's DHT resolution had no retry margin against write-propagation lag, unlike macula_direct_dial's own internal resolution — mirrored its retry budget (50 x 100ms).
  • Advertisements now carry a ttl_ms proportioned to the 30s republish interval instead of the ~48h envelope default, live effect confirmed after bumping the macula dependency past the adv_opts/1 fix 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 over macula:find_records_by_type/2 (matched via macula's new macula_topic_pattern), same local-relay-view, warm-start-only semantics read_model_services.md already documents for that call.

Changed

  • Bumped macula dependency 10.10.0 -> 10.13.1: adv_opts/1 in macula_direct_dial no longer silently drops ttl_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 second call_station from one pool to the same station); macula_topic_pattern and 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 macula dependency 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 every macula_diagnostics:event/2,3 call 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 dialyzer failed 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_apps drops macula from the PLT entirely (it ships without debug_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_unknown doesn't cover this — the warning is tagged ?WARN_UNDEFINED_CALLBACK internally (dialyzer_behaviours.erl), not ?WARN_UNKNOWN, and no_behaviours (?WARN_BEHAVIOUR) is also the wrong option, verified against dialyzer 5.4's own source before picking no_undefined_callbacks. Clean run confirmed on a fully fresh PLT.

[0.15.0] - 2026-08-24

Added

  • read_model_id/0 optional hecate_om_service callback (alongside data_dir/0): hecate_om:boot/1 opens a barrel_docdb database at <data_dir>/<read_model_id>/ before the service's own start/1 runs, the same shape as the existing store_id/0 reckon-db wiring but for a persistent, queryable read model instead of an event store. New hecate_om_read_model:ensure/2 helper, new hecate_om:read_model/0 facade accessor. barrel_docdb is 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). Only barrel_docdb, not the full barrel/barrel_vectordb umbrella; 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 with puzzle_invalid — a graceful drain, then drained — on every single connection, forever. Confirmed live: this is the full explanation for why tube_mesh_providers could report advertised => 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-station 4188a1d).

[0.14.1] - 2026-08-23

Fixed

  • hecate_om_identity's stable keypair now self-heals instead of silently staying unconfigured. load_keypair/0 previously only ever loaded from identity_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) got keypair() -> {error, no_keypair} forever, every single boot, with no error logged anywhere. Confirmed live on hecate-tube: its tube_mesh_providers retries advertising tube.watch_video_clip / tube.lookup_channel / tube.lookup_video_clip every 5s pending both mesh_handles/0 and keypair/0 — mesh_handles/0 resolved fine (the service peers and calls just fine on an ephemeral identity), keypair/0 never 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/0 and persists it to the configured path via macula_identity:save/2 (which ensure_dirs it), same self-provisioning pattern macula-realm's own mesh identity already uses. Falls back to undefined (ephemeral, prior behavior) only if the save itself fails, e.g. a read-only filesystem. identity_key_path left 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-rolled case {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/0 and hecate_om:keypair/0 — re-exported on the public facade. Both already existed on hecate_om_identity; a service previously had to reach past the facade to get them. keypair/0 is 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; grepped src//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/6 embeds the service's cert chain (leaf ++ org CA) in the procedure_advertisement, from hecate_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 resolving org_directory / procedure_delegation records. No realm CA provisioned → every provider dropped.
    • hecate_om_identity loads 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); exposes cert_chain/0 and realm_ca/0.

Fixed

  • priv/templates/hecate_service/rebar.config pinned {hecate_om, "~> 0.8"}, six major versions stale — every service scaffolded via rebar3 new hecate_service inherited 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/3 and the advertisements carry the <org> segment. hecate_om_identity:org/0 reads the org app env (default <<"_">>).
    • hecate_om:call_capability/4 (Org, CapName, Payload, Timeout) and hecate_om_capabilities:call_capability/5 with Opts: verify => true drops providers whose realm → org → server delegation chain does not verify (7c); ucan_token => Bin presents a token to a gated provider (7b). Default is open (no verify, no token).

Changed

  • Requires macula ~> 8.6, which also FIXES capability publishing. SDK put_record of a procedure_advertisement crashed 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 published org_directory / procedure_delegation records (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/3 in hecate_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 raw CapName there, 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/2 got undefined fields (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_endpoint readers (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.announce broadcast. On capability register (and a 30s republish tick) a service writes one signed procedure_advertisement per capability to the mesh DHT (advertiser = the service's key, serving_station = a connected station, procedure_uri = realm-namespaced capability name). lookup/1 resolves by reading those records via macula: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): uses find_records/2, read_procedure_advertisement/1, procedure_key/1 from 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.announce publish/subscribe path and peers/0. There were no callers of the old lookup/1 summary 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. 0x0F is 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_error or unknown_error anywhere in src/, priv/ or test/. 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

  • store variable on rebar3 new hecate_service, off by default. Empty generates a storeless service exactly as before, which is what most services want. store=1 generates the whole thing at once: store_id/0 and data_dir/0, a store named <name>_store, the evoq adapter block in config/sys.config.src, a data volume and HECATE_DATA_DIR in 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 evoq block, 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 1 and not yes. 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 first rebar3 compile with spec for store_id/0 already defined rather 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_service has always pinned the release in two files, the Containerfile and .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 Containerfile on 27 while development ran on 28, so a local rebar3 eunit meant "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.erl now reads both files and compares them against erlang: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-station over 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 in priv/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, a Containerfile, both CI workflows, an executable scripts/health.sh, deploy/docker-compose.yml, and the usual documentation.
  • scripts/install-templates.sh, because rebar3 only finds custom templates under ~/.config/rebar3/templates and an empty directory has no dependency to carry them there.
  • hecate_service_template_SUITE, which generates a service for real through rebar3 new and then compiles it against this library, so the -behaviour(hecate_om_service) attribute checks all six callbacks. It also asserts the file set, that health.sh is 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.sh is 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 write rebar.config, the .app.src and the supervisor by hand, so a scaffolded service did not compile.

Fixed

  • The hex package links and the ex_doc source_url pointed at Codeberg. GitHub has been canonical since 2026-07-26.
  • guides/container_deployment.md described a deployment that does not exist: system-wide Podman Quadlets reconciled by hecate-gitops, a hecate-realm-admin CLI, 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.md showed a repository layout with quadlet/, a manifest.json and a flat src/, 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), TODO comments in place of two callbacks, a store-backed service as the default in a mostly producer-only estate, an identity_spec claiming two actions and a wildcard resource for a service that could exercise none of them, and no test file at all. Nothing consumed it: the hecate-om scaffold CLI 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,5 now returns {error, {unsupported_payload_type, Type, Path}} where it previously returned ok, 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 /health is now actually served. hecate_om_health_handler defined the route but nothing ever mounted it on a listener, so /health was dead code and every hecate_om service reported unhealthy to Podman/k8s (nothing bound health_port). hecate_om_sup now starts a Cowboy listener on health_port, dispatching to the handler — gated on a valid health_port, so a service that wants no HTTP health endpoint simply omits the config. snapshot/0 already calls the registered service's health/0 live, so a healthy service returns 200.

Changed

  • macula dependency bumped to ~> 5.1 (connect-hang fix).

[0.5.0] - 2026-07-04

Added

  • Optional store_integrity/0 service callback. When exported, hecate_om:boot/1 threads its value (disabled, or #{enabled => true, key_source => ...}) into the reckon-db store config, enabling per-store HMAC event tamper-resistance. Defaults to disabled (backward compatible). hecate_om_store:ensure/5 + ensure_store/5 accept the integrity config explicitly.

[0.4.0] - 2026-07-02

Added

  • Optional store_mode/0 service callback — single (default) or cluster. When a service exports it, hecate_om:boot/1 auto-starts its reckon-db store in that mode; cluster enables reckon-db discovery + Ra clustering so the store spans every node that starts the same store_id. New hecate_om_store:ensure/4 + ensure_store/4 carry the mode; the /2 and /3 arities keep defaulting to single (backward compatible). Previously the auto-started store was always single, with no override.

[0.3.4] - 2026-06-24

Fixed

  • hecate_om_store:ensure/3 and ensure_store/3 were not exported in 0.3.3, so hecate_om:boot/1's cross-module call crashed with undef at 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/0 service callback. When a service exports it alongside store_id/0 + data_dir/0, hecate_om:boot/1 installs 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 own start_store call hit {already_started} and its declarations were silently dropped — CCC payload indexes never got registered. hecate_om_store:ensure/3 and ensure_store/3 carry the index list; the /2 arities 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.indexes field), evoq ~> 1.21 (was ~> 1.15), reckon_evoq ~> 2.6 (was ~> 2.1).

[0.3.2] - 2026-06-03

Added

  • MACULA_STATION_SEEDS env override for station seeds. When set (comma-separated station URLs), it takes precedence over the station_seeds app env in hecate_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 permanently no_client. The cert was a spurious gate: it is never passed to connect (the SDK auto-generates an ephemeral peering identity for empty opts), only loaded and held for service_cert/0 / the v2 realm-membership swap-in. Connect now keys off configured station_seeds, not cert presence.
  • Connect is deferred off the init path and retried. At boot hecate_om could start before the macula SDK app was fully up; a single inline connect raced it and lost. init/1 now schedules self() ! connect, retries every ?RECONNECT_MS until a pool attaches, monitors the pool, and re-attaches if it later dies.

Added

  • Optional identity_key_path env: 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_store module: canonical reckon-db + evoq wiring helper. Encapsulates reckon_db_sup:start_store/1 + 30s readiness wait + evoq_store_subscription:start_link/1. The pattern documented as mandatory in hecate-corpus/skills/ANTIPATTERNS_EVENT_SOURCING.md now lives in one place.
  • Optional callbacks on hecate_om_service: store_id/0 and data_dir/0. When a service module exports both, hecate_om:boot/1 auto-runs the canonical wiring before ServiceMod:start/1.
  • New template templates/sys.config.src.tmpl with the canonical reckon_db + evoq blocks.
  • scripts/scaffold-service.sh now renders config/sys.config.src alongside the service modules.

Changed

  • _service.erl.tmpl includes the optional store_id/0 + data_dir/0 callbacks by default; producer-only services remove both.
  • rebar.config adds reckon_db, evoq, reckon_evoq as deps so services using hecate_om get 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 declares store_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_service behaviour, helpers for identity claim, capability advertise, and /health endpoint.
  • Templates for Containerfile, Quadlet unit, manifest.json, and CI workflow.
  • Guides: service anatomy, identity model, container deployment.

Planned

  • UCAN-delegated identity wiring once hecate-realm issues service principals
  • Common Test framework helpers for service test suites

[0.1.0] - YYYY-MM-DD

Not yet released.