﻿# JAX addressable shards: local visibility is not the global array coverage contract

Interpret JAX addressable_shards and is_fully_addressable when exporting multi-process arrays, distinguishing local slices, replicas and the complete logical result.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-jax-addressable-shards-global-coverage/
Language: en

## Identify the result the exporter promises

A distributed feature job writes the shards visible to its coordinator and labels the file a complete embedding table. The [addressable_shards reference](https://docs.jax.dev/en/latest/_autosummary/jax.Array.addressable_shards.html) describes the list of addressable shards, not a universal gather of all global data. Before exporting, define whether the artifact should contain a local partition, a replicated copy or the complete logical array. The same loop can produce very different coverage under different multi-process placement arrangements.

## Keep addressability separate from replication

The [is_fully_addressable reference](https://docs.jax.dev/en/latest/_autosummary/jax.Array.is_fully_addressable.html) defines visibility through devices the current process can address. It explicitly distinguishes full replication from full addressability across hosts. Therefore a replicated global array can still include devices outside the current process's direct reach. Do not use a replication flag as an instruction to assume every participating device is locally accessible, or use a local device count as proof that the global operation involved no remote data.

## Describe each shard in logical coordinates

The [distributed array guide](https://docs.jax.dev/en/latest/201/sharding.html) connects logical layout to physical shards and illustrates inspection. Preserve each exported slice's logical position and distinguish repeated replicas from unique coverage. Concatenating device buffers in enumeration order is not a general reconstruction algorithm. A partitioned feature dimension may require a different assembly operation from a partitioned example dimension. Without coordinates, a plausible output shape can conceal swapped slices or repeated data from a replicated mesh axis.

## Design collection as a coordinated operation

If the consumer requires the global result, choose a supported collection or distributed-write design appropriate to the program. Establish participation and completion rules for all required processes instead of assuming local buffer access retrieves remote values. Document how failures and partial outputs are represented. A coordinator finishing its own writes does not establish that every global slice was durably produced. The artifact manifest should express actual coverage rather than infer completeness from a successfully closed local file.

## Test a layout that exposes omissions

Use an array whose logical regions contain recognizable values, with both partitioned and replicated dimensions where relevant. Verify that every required region appears exactly as intended. The guides on [distributed data-loader ownership](/journal/data-guide-distributed-shard-worker-overlap/) and [dataset removal lineage](/journal/data-guide-dataset-removal-lineage-tombstone/) provide related coverage and identity concepts. Correct export requires an explicit relationship between local visibility and global ownership. Successful numerical computation and successful local serialization are separate pieces of evidence.
