Skip to the content.

comm: the lane lease as a communicator split

This maps three shipped fak coordination surfaces onto the MPI communicator primitives they are shaped like, so the analogy is documented in one place instead of inferred from terse inline comments. It is part of the MPI-shaped message-passing epic (#639).

Honesty caveat (read first). This is structural analogy, not a message-passing transport. A lane lease is a coordination decision enforced by refusal (two overlapping leases serialize; one is denied), deterministic and dos-verifiable — no collective moves bytes between agents at this layer. topobench’s “savings” are MEASURED replay token counts capped at the corpus divergence frontier, never an HPC throughput/latency number. And the agent-layer rank/size here is not the tensor-layer rank/size of internal/model’s DistComm serving collective — see “What this is NOT”.


1. dos arbitrate + dos.toml [lanes]MPI_Comm_split

MPI_Comm_split(comm, color, key) partitions a communicator: every rank passing the same color lands in the same sub-communicator, disjoint from the others. fak’s lane lease is the same partition, decided by admission rather than rendezvous:

The load-bearing difference from MPI_Comm_split: a communicator split is a collective all ranks call together; a lane lease is an asymmetric admission one worker requests and the arbiter grants or refuses. No bytes cross between the workers in the same lane — the lease coordinates who may write which files, it does not transport a message.

2. abi.ShareScope ≈ the communicator isolation scope

abi.ShareScope (internal/abi/types.go:93) is the CLOSED, additive isolation scope a shared resource (a Ref) carries — the analogue of which communicator a name is visible within:

ShareScope meaning communicator analogue
ScopeAgent private to one agent (the fail-closed default) a rank-private buffer (no communicator)
ScopeFleet shareable across the fleet’s trusted partition the fleet communicator
ScopeTenant shareable within a tenant boundary a tenant sub-communicator

The default ScopeAgent is fail-closed (private): a value is shared only when its scope is explicitly widened, the same discipline that keeps a name from leaking across a communicator boundary it was never published to. This is visibility scope, not a broadcast — widening a scope authorizes a later share, it does not move data.

3. topobench TopologyGenomeMPI_Cart_create / MPI_Graph_create — but it SEARCHES

MPI_Cart_create / MPI_Graph_create impose a topology a caller declares. fak has both halves, and the distinction is the point of this section:

So: agenttopo is “here is my graph” (MPI_Graph_create); topobench is “find me a good graph, and prove the win is measured, not extrapolated” — the search counterpart to a declared topology. The “savings” are token counts off RunFanoutCell’s measured halves, capped at the divergence frontier — not an HPC metric.


What this is NOT


See also