Changelog

View Source

The format is based on Keep a Changelog; this project adheres to Semantic Versioning.

[2.0.0] - 2026-11-05

Changed

  • On macula 18 (~> 18.0, was ~> 16.0), macula-rag#3. 18 keeps wire 1.0 and removed the four-argument macula:subscribe (macula#147). 1.1.0 still bound it, so a service whose own deps resolved macula 18 (rebar3 lets the top-level constraint win over this library's) crashed with undef the first time the directory subscribed, and the application stopped: mcl-rag restarted every few seconds on its canary box and served nothing.
  • The directory hears shard summaries only from the org's delegated nodes. It subscribes through subscribe/5 with sources => {org, Org}; macula checks every publisher against the org's delegation before delivering.
  • Breaking: configure/3 requires auth, who may call the shard procedure, in the form macula's advertise/5 takes. macula 18 has no default and refuses an advertisement without one; configure/3 now returns {error, {auth, required}} instead of a grant retried forever. A major, because a consumer's ~> 1.0 must not be handed a library its configure call no longer satisfies.

Added

  • default_io/0, the macula calls this library makes, and a floor test that fails when the macula in use does not export one of them. It fails on 1.1.0's four-argument subscribe against macula 18.

[1.1.0] - 2026-10-22

Added

  • CI checks every Erlang block in the README and guides (docs.yml, macula-codebase-checks#8), on every change including doc-only ones, and publish-hex.yml waits on it. The grant example matches macula_rag:status/0 instead of showing a term with := in a map construction.

Changed

  • On macula 16 (~> 16.0, was ~> 15.6). 16.0 keeps wire 1.0, the wire every deployed box speaks; what it adds is the revocation bound (macula#118). No code change was needed. A minor, not a major, because this library keeps to the rule it set for itself at 1.0.0: a consumer's ~> 1.0 already asks for macula 15 or newer, and the only consumer, mcl-rag, moves to 16 in the same batch.

[1.0.0] - 2026-10-17

Changed

  • On macula 15 (~> 15.6, was ~> 14.2): the stable wire, the SDK base the flag day (macula-fleet#27) moves every deployed service to. No code change was needed. Every macula function and type this library names is still exported and still behaves as it did, and the suite is green on 15.6.0 unchanged: the floor test is the only test that moved, and it went red against 14.11.0 first.
  • 1.0.0, not 0.6.0, because a two-part tilde floats. A consumer's ~> 0.5 accepts any 0.x, so a 0.6.0 would be taken by a service still on macula 14, which this release cannot serve: a 15 node and a 14 node do not interoperate. 1.0.0 is outside ~> 0.5, so nothing floats onto it. Consumers on macula 15 pin ~> 1.0.

[0.5.0] - 2026-10-08

Added

  • A confidential option for the shard procedure (off | preferred | required, macula's provider modes), passed to macula's advertise. required refuses a peer query to <org>/rag.query_shard_v1 in the clear, so shards only exchange sealed queries. configure/3 refuses a value that is not a mode, and required while macula's kem_advertise is not enabled, with macula's own reasons, rather than retrying a grant forever. Absent, nothing changes (macula's default, preferred). (macula-services/mcl-rag#16)

[0.4.0] - 2026-10-07

Changed

  • On macula 14 (~> 14.2, was ~> 13.0.1). A service on macula 14 could not use macula_rag 0.3, which pinned macula 13. No code change was needed: no macula function macula_rag calls changed between 13.0.1 and 14.2.0 (macula 14 drops node_identity_path, which this library never reads).

[0.3.0] - 2026-10-01

Added

  • The RAG service contract (guides/rag_service_contract.md, canonical, with frozen vectors in test/vectors/): the five procedures a provider serves, provenance on every hit, the corpus hash and the operator's optional signature.
  • macula_rag_corpus, through the facade: corpus_hash/1, sign_corpus/2, verify_corpus/3 (signed only by the pinned provider, from the verified key, over the recomputed hash) and verify_hit/1.
  • macula_rag_contract:plain/1 is exported: a received payload with text unwrapped and atom keys as binaries.

[0.2.0] - 2026-09-29

Changed

  • On macula 13 (~> 13.0.1, was ~> 12.1). A service on macula 13 could not use macula_rag 0.1, which pinned macula 12. No code change was needed: the facade calls it makes (advertise, unadvertise, call, providers, publish, subscribe, unsubscribe, status, provider_authorization) compile, pass xref and dialyzer, and the whole suite passes on 13.0.1.
  • A test holds the floor: macula 13.0.1 or later.

[0.1.0] - 2026-09-23

The first release. Everything before it was an unreleased scaffold on macula 10, which this replaces.

Added

  • Federated query across an org's shards: macula_rag:query/1,2 asks every shard in parallel and merges hits by score, returning {ok, Hits, #{answered, failed}}, where every shard that did not answer is listed with its reason.
  • The set of shards is macula's trust-checked provider list for <org>/rag.query_shard_v1 (macula:providers/4), so only nodes the org delegated (D25) are asked. Each is called by node id (macula:call/6 with provider).
  • Embeddings: configure/3 names this node's model and dim, summaries carry theirs, and a query asks only shards with the same embedding. Others are reported as {embedding_mismatch, Theirs}.
  • A shard: register_responder/1 answers the org's queries with a callback; advertise/2 publishes this shard's summary and republishes it until withdraw/0. A hit's minimum is a binary id and a numeric score.
  • status/0: whether this node's grant to provide the procedure is in place, with macula's reason when it is not, as mcl_om reports a provider grant. A refused grant is asked for again every grant_retry_ms.
  • shards/0: the shards this node has a live summary from.
  • The wire contract (macula_rag_contract), pinned by tests that read every payload back through macula's codec.
  • CI: lint, EUnit, xref and Dialyzer on OTP 28.4.3; a tag-driven hex publish that refuses anything but the clean, pushed release tag and checks hex serves the tagged files.

Not in this version

  • The summary's bloom filter is carried but not used to choose shards.