mcl-rag#31: C6 own org, ~> 1.9 pin, store-fed processes on the holder #33

Open
pallas wants to merge 3 commits from pallas/31-wave2 into main
Member

C6: the service's own org (info/0 org from the mcl_rag env); join_federation reads mcl_rag_service:org(), not mcl_om's. The mcl_om block org stays as mcl_om's own fallback.

Pin mcl_om ~> 1.9 (mcl-om#8: service_org/1 reads info/0's org).

refresh_corpus_scheduler and join_federation run only where mcl_rag.holds_store is true, not as cluster-wide mcl_om singletons: both work the local store, which lives on one node (A3 package 6), so a singleton could land where the store is not. Only outbound side effects get the singleton wrap.

Also fixes describe_corpus_tests to pass through the real rag_store:data_dir/0 (the C8 read).

Refs #31

C6: the service's own org (info/0 `org` from the mcl_rag env); join_federation reads mcl_rag_service:org(), not mcl_om's. The mcl_om block org stays as mcl_om's own fallback. Pin mcl_om ~> 1.9 (mcl-om#8: service_org/1 reads info/0's org). refresh_corpus_scheduler and join_federation run only where mcl_rag.holds_store is true, not as cluster-wide mcl_om singletons: both work the local store, which lives on one node (A3 package 6), so a singleton could land where the store is not. Only outbound side effects get the singleton wrap. Also fixes describe_corpus_tests to pass through the real rag_store:data_dir/0 (the C8 read). Refs #31
C7: the app starts its own sup; bundled=true only skips mcl_om:boot; the
service module's start/1 is idempotent (returns the running sup's pid).

C8: rag_store:data_dir/0 is the one data root, read from mcl_rag's app env
with one fallback; corpus_repos_config and rag_reverse_export read it too.

ollama stays outside the release: embed_url and the topic-classifier endpoint
are env vars (MCL_RAG_EMBED_URL, MCL_RAG_TOPIC_CLASSIFIER_ENDPOINT), not
sys.config literals, with the image ENV defaulting to the local loopback.

A3 package 6: holds_store (default true) decides whether rag_sup starts
rag_store; a node without the store reports store_not_running.

Refs #31
mcl-rag#31: C6 own org, ~> 1.9 pin, store-fed processes on the holder
Some checks failed
c4 model / c4-model (pull_request) Has been cancelled
c4 model / c4-model-1 (pull_request) Has been cancelled
lint-and-test / check (pull_request) Has been cancelled
lint-and-test / The tested lock arrives whole (pull_request) Has been cancelled
90a874e9b9
C6: mcl_rag_service:info/0 now carries the org from the service's own
app env (mcl_rag.org), and join_federation reads mcl_rag_service:org()
instead of the mcl_om env. The mcl_om block org stays as mcl_om's own
fallback (mcl_om_identity:org() still seeds the claim).

Pin mcl_om ~> 1.9 (mcl-om#8): service_org/1 reads info/0's org.

refresh_corpus_scheduler and join_federation are NOT cluster-wide
mcl_om singletons. Both work the local store -- the scheduler writes
into it, the shard answers federated queries from it -- and the store
lives on one node (A3 package 6), so a singleton could land where the
store is not, leaving it stale and the holder deaf. They run only where
mcl_rag.holds_store is true, mirroring mcl-graph's store_holder. Only
outbound side effects get the singleton wrap.

Fix describe_corpus_tests to pass through the real rag_store:data_dir/0
(the C8 read), standing in only served_repos/0.
Merge remote-tracking branch 'origin/main' into pallas/31-wave2
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
lint-and-test / check (pull_request) Successful in 7m21s
lint-and-test / The tested lock arrives whole (pull_request) Successful in 1s
adb632633f
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
lint-and-test / check (pull_request) Successful in 7m21s
lint-and-test / The tested lock arrives whole (pull_request) Successful in 1s
This pull request has changes conflicting with the target branch.
  • apps/mcl_rag/src/mcl_rag_app.erl
  • apps/mcl_rag/src/serve_federated_query/join_federation.erl
  • apps/mcl_rag/test/serve_federated_query_tests.erl
  • rebar.config
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'pallas/31-wave2:pallas/31-wave2'
git switch 'pallas/31-wave2'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-services/mcl-rag!33
No description provided.