LAN cluster: the realm crew standing through the bridge, on mcl_core (mcl-lan P5) #16
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
{:mcl_om, "~> 1.9"}becomes mcl_core, inapps/mcl_kanban/mix.exs:41andapps/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.crew_standing_reconciler.ex:105-108dials the realm'sidentity/crew_standingwith:macula.callon: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.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_bridgerelays onlycall_capability/5(org-scoped DHT lookup) andpublish/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_capabilitywith 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_omname is left outside CHANGELOG history.peernode, where the bridge's realm reply is a stand-in, shows the member's board acting on it.unknown_crew), as it does today when the mesh is down.mcl_core ~> 1.0once 1.0.0 is on hex.Not in scope
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.
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):
apps/mcl_kanban/lib/mcl_kanban/service.excapabilities/0is markedexport: :mesh, with a test that refuses one that is not.README.md:4).