LAN cluster: the realm crew standing through the bridge, on mcl_core (mcl-lan P5) #16

Open
opened 2026-12-02 13:06:07 +00:00 by uranus · 2 comments
Member

DECIDED 2026-12-02 "trust on sight. mcl-martha services should auto-cluster over LAN, no mcl-station required. Distributed Erlang offers us all we need." (Raf, LAN-first direction)
DECIDED 2026-12-02 "I have created and cloned macula-services/mcl-core. Let's build this properly. In the end I hope we keep a single repo: mcl-core that will replace both mcl-om and mcl-lan" (Raf)

Purpose (feature): a kanban board on any node of a LAN cluster keeps the realm's crew standing, through the cluster's bridge node, on mcl_core instead of mcl_om.

Refs macula-services/mcl-lan#1 (docs/DESIGN.md §5 and §7 P5), macula-services/mcl-core#7 (the bridge)

What changes

  • The library: {:mcl_om, "~> 1.9"} becomes mcl_core, in apps/mcl_kanban/mix.exs:41 and apps/guide_card_lifecycle/mix.exs:45. Until 1.0.0 is on hex it is built against mcl-core main 914650ae; the last commit pins ~> 1.0. Every :mcl_om* call in the 18 files that name it moves to its :mcl_core* name.
  • The one transport-bound call: crew_standing_reconciler.ex:105-108 dials the realm's identity/crew_standing with :macula.call on :mcl_om.mesh_handles(). On a cluster member there is no pool, so the reconcile asks nothing. It goes through mcl_core, which relays it to the bridge node on a member.
  • Crew facts: the declared subscriptions (crew_facts.ex:82-94) stay as they are. mcl_core delivers a mesh event only to the bridge's own subscribers (mcl-core/guides/lan_transport.md:127), so a board on a member learns a crew's standing from the 60 s reconcile (crew_standing_reconciler.ex:38), not from the topic. The README says so.

Open question, before code (Mars)

mcl_core has no relayed realm call. mcl_core_bridge relays only call_capability/5 (org-scoped DHT lookup) and publish/3 (mcl-core/src/bridge/mcl_core_bridge.erl:56-65); the realm's crew_standing is a direct-dial realm procedure, not an org capability. DESIGN.md §5 names "call_capability with a realm target, served by the bridge", which does not exist. That needs an mcl-core change (a relayed realm call) or a ruling that kanban runs on the bridge node.

Done-when

  • mcl_core replaces mcl_om in both apps; no :mcl_om name is left outside CHANGELOG history.
  • On a member node, the reconcile reaches the realm through the bridge: a test with a member and a bridge peer node, where the bridge's realm reply is a stand-in, shows the member's board acting on it.
  • With no bridge in the cluster, the reconcile keeps every crew (the failed call is not unknown_crew), as it does today when the mesh is down.
  • On a standalone node (LAN off) the behaviour is today's: the existing reconciler and crew-facts tests pass unchanged.
  • README: where crew facts arrive on a member, and that the standing then follows the reconcile.
  • The last commit pins mcl_core ~> 1.0 once 1.0.0 is on hex.

Not in scope

  • Republishing mesh events onto the LAN (a gap stated in mcl-core#7, not ruled on).
  • kanban#14 (A3 package 2, Juno): no commit here until it lands.
DECIDED 2026-12-02 "trust on sight. mcl-martha services should auto-cluster over LAN, no mcl-station required. Distributed Erlang offers us all we need." (Raf, LAN-first direction) DECIDED 2026-12-02 "I have created and cloned macula-services/mcl-core. Let's build this properly. In the end I hope we keep a single repo: mcl-core that will replace both mcl-om and mcl-lan" (Raf) Purpose (feature): a kanban board on any node of a LAN cluster keeps the realm's crew standing, through the cluster's bridge node, on mcl_core instead of mcl_om. Refs macula-services/mcl-lan#1 (docs/DESIGN.md §5 and §7 P5), macula-services/mcl-core#7 (the bridge) ## What changes - **The library:** `{:mcl_om, "~> 1.9"}` becomes mcl_core, in `apps/mcl_kanban/mix.exs:41` and `apps/guide_card_lifecycle/mix.exs:45`. Until 1.0.0 is on hex it is built against mcl-core main 914650ae; the last commit pins `~> 1.0`. Every `:mcl_om*` call in the 18 files that name it moves to its `:mcl_core*` name. - **The one transport-bound call:** `crew_standing_reconciler.ex:105-108` dials the realm's `identity/crew_standing` with `:macula.call` on `:mcl_om.mesh_handles()`. On a cluster member there is no pool, so the reconcile asks nothing. It goes through mcl_core, which relays it to the bridge node on a member. - **Crew facts:** the declared subscriptions (`crew_facts.ex:82-94`) stay as they are. mcl_core delivers a mesh event only to the bridge's own subscribers (`mcl-core/guides/lan_transport.md:127`), so a board on a member learns a crew's standing from the 60 s reconcile (`crew_standing_reconciler.ex:38`), not from the topic. The README says so. ## Open question, before code (Mars) mcl_core has no relayed realm call. `mcl_core_bridge` relays only `call_capability/5` (org-scoped DHT lookup) and `publish/3` (`mcl-core/src/bridge/mcl_core_bridge.erl:56-65`); the realm's crew_standing is a direct-dial realm procedure, not an org capability. DESIGN.md §5 names "`call_capability` with a realm target, served by the bridge", which does not exist. That needs an mcl-core change (a relayed realm call) or a ruling that kanban runs on the bridge node. ## Done-when - [ ] mcl_core replaces mcl_om in both apps; no `:mcl_om` name is left outside CHANGELOG history. - [ ] On a member node, the reconcile reaches the realm through the bridge: a test with a member and a bridge `peer` node, where the bridge's realm reply is a stand-in, shows the member's board acting on it. - [ ] With no bridge in the cluster, the reconcile keeps every crew (the failed call is not `unknown_crew`), as it does today when the mesh is down. - [ ] On a standalone node (LAN off) the behaviour is today's: the existing reconciler and crew-facts tests pass unchanged. - [ ] README: where crew facts arrive on a member, and that the standing then follows the reconcile. - [ ] The last commit pins `mcl_core ~> 1.0` once 1.0.0 is on hex. ## Not in scope - Republishing mesh events onto the LAN (a gap stated in mcl-core#7, not ruled on). - kanban#14 (A3 package 2, Juno): no commit here until it lands.
Author
Member

Supervisor ruling 2026-12-02 (relayed by Mars; Raf may overrule) on the open question: a relayed realm call goes into mcl-core as 1.1.0 (Venus builds it). This package builds against it after it lands, and after #14. The 60 s reconcile stays a member's path for crew facts; mesh events are not relayed onto the LAN.

Supervisor ruling 2026-12-02 (relayed by Mars; Raf may overrule) on the open question: **a relayed realm call goes into mcl-core as 1.1.0** (Venus builds it). This package builds against it after it lands, and after #14. The 60 s reconcile stays a member's path for crew facts; mesh events are not relayed onto the LAN.
Author
Member

Added to this package (DECIDED 2026-12-02 "we won't loose the mesh! I just don't want to pitch Martha as "mesh-only"", Raf, via Mars; and the Supervisor's ruling that whatever the mesh could call stays exported):

  • Every capability in apps/mcl_kanban/lib/mcl_kanban/service.ex capabilities/0 is marked export: :mesh, with a test that refuses one that is not.
  • The README describes the board on a LAN with no station and on the mesh, never one alone. Today it opens "Kanban boards for the mesh" (README.md:4).
Added to this package (DECIDED 2026-12-02 "we won't loose the mesh! I just don't want to pitch Martha as "mesh-only"", Raf, via Mars; and the Supervisor's ruling that whatever the mesh could call stays exported): - [ ] Every capability in `apps/mcl_kanban/lib/mcl_kanban/service.ex` `capabilities/0` is marked `export: :mesh`, with a test that refuses one that is not. - [ ] The README describes the board on a LAN with no station and on the mesh, never one alone. Today it opens "Kanban boards for the mesh" (`README.md:4`).
Sign in to join this conversation.
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-kanban#16
No description provided.