Skip to content

Joint Fabric

A Joint Fabric lets the administrators of several ecosystems share one fabric. One administrator is the anchor: its NOC carries the administrator CAT (0xFFFF) and the anchor CAT (0xFFFE), and it keeps the fabric's registry. Another ecosystem's administrator joins through Joint Commissioning (JCM). The commissioner checks the joining administrator's own fabric before it issues the NOC, and the host consents.

matter.js has no Joint Fabric logic at its pin db021da0: JointFabricDatastoreServer.ts:14 and JointFabricAdministratorServer.ts:14 are empty subclasses, and its commissioning flow has no JCM step. The module follows connectedhomeip at 6170af84, ahead of matter.js. The register rows are BD-chip-JointFabricDatastore-RulesInServer, BD-chip-JointFabricAdministrator-RulesInServer and BD-chip-JCM-Commissioner.

Part Package Source of the rules Host ports
JointFabricDatastore (0x0752) jointfabric.Datastore src/app/server/JointFabricDatastore.cpp, joint-fabric-datastore-server.cpp DatastoreSync (required), DatastoreStore
JointFabricAdministrator (0x0753) jointfabric.Administrator joint-fabric-administrator-server.cpp, JCMCommissionee.cpp AdministratorPort (required), CommissionerReach
The trust verification both roles share client/jcm src/credentials/jcm/ —
The commissioner's JCM controller/commissioner (Options.JointFabric) src/controller/jcm/ JointFabricOptions.Consent

The administrator device

The JointFabricAdministrator device type (0x0130) mandates both clusters. The kit mounts the module's servers when the declarations carry their ports. Without the ports, the generated servers stay.

jfa, err := device.NewJointFabricAdministrator(opts,
    dsdef.Declare{Sync: mySync, Store: myNode.Store()},
    jfadef.Declare{AdministratorPort: myKey, CommissionerReach: myReach})

The node gives the Administrator its fabric table, its commissioning window and its fail-safe when the endpoint joins the topology. With node.Config.Client on, it also gives an Administrator whose declaration names no CommissionerReach its own: the node opens a CASE session to the peer that invoked AnnounceJointFabricAdministrator (the jfadef.Peer every method takes: the invoking session's fabric index and node id), reads its AdministratorFabricIndex, Fabrics, TrustedRootCertificates and NOCs unfiltered, and sends it SignVIDVerificationRequest with that session's attestation challenge. The announcing node must grant this node Administer on that fabric; a refused read answers the announcement FAILURE. A host's own reach goes into the declaration as before. It tells both servers about a fabric's removal. When the Joint Fabric is removed, the datastore is wiped.

The datastore and its sync

The Datastore holds the fabric's registry: the anchor (root CA, node id, vendor id), the nodes, the administrators, the groups and group key sets, the endpoints with their group memberships and bindings, and the nodes' ACL entries. Each entry carries chip's state: Pending, Committed, DeletePending or CommitFailed. The 20 commands change the registry with chip's status codes. Examples: a duplicate is CONSTRAINT_ERROR, a group of the administrator or anchor CAT is CONSTRAINT_ERROR, and a missing key set is NOT_FOUND. A full table, a missing administrator and an operation without a DatastoreSync answer FAILURE, which is chip's answer for a plain CHIP_ERROR.

DatastoreSync is chip's delegate. Sync… writes an entry, or a node's whole binding or ACL list, to the member node. Fetch… reads a node's lists. A command answers once its change is in the registry. The push runs after the answer, and its entry is committed when the push returns, found again by its key. A push that fails leaves the entry Pending, and the next RefreshNode pushes it again. RefreshNode reconciles one node completely: endpoints, groups, bindings, key sets and ACLs, then the node goes Committed. A fetch that fails ends the refresh with the node still Pending. The host methods of the same names, such as Datastore.AddACLToNode, push before they return. Datastore.Wait waits for the pushes that commands started.

A binding's add or removal reaches the node through DatastoreSync.SyncEndpointBindings — chip's endpoint-scoped delegate overload SyncNode(nodeId, endpointId, bindingEntries) — as the endpoint's whole list: the datastore fetches the endpoint's current bindings (FetchEndpointBindingList), appends the entry or removes the entries whose target matches the one removed (the node's entries carry no list id), and writes the list, an empty list included. That is the merge chip's jf-admin-app delegate does with the one entry chip's datastore hands it — chip's datastore itself never calls the overload — moved into the module, so every host writes one Binding list and reads one (owner decision 2026-11-06: a required method, not an optional interface); chip's single-entry delegate overload has no counterpart in the port. A fetch that fails is the push's error and leaves the entry Pending for the next RefreshNode, where chip's example would write the one entry over an empty list.

The tables persist as one settings record under the device's StableKey when the declaration carries a DatastoreStore. The node's store is one. A change whose save fails is undone and answers FAILURE, as the TLS servers do. chip keeps the tables in memory only. Every attribute that a change touches is reported. chip reports only NodeList.

The administrator

  • AdministratorFabricIndex is set by the host. It is also set when a fabric whose NOC carries the administrator and anchor CATs completes commissioning. That fabric then becomes the datastore's anchor, as chip's administrator application records it (examples/jf-admin-app/linux/JFAManager.cpp:95-157). The application's other setup stays the host's: the default groups, the key set and the admin entry.
  • OpenJointCommissioningWindow opens the node's enhanced window as a joint commissioning window, advertised with CM=3. It requires the accessing fabric, an AdministratorFabricIndex, a disarmed fail-safe and no open window. These failures answer the cluster statuses.
  • AnnounceJointFabricAdministrator runs the JCMCommissionee. It reads the announcing commissioner's AdministratorFabricIndex, Fabrics, TrustedRootCertificates and NOCs through CommissionerReach, verifies the vendor id of its administrator fabric, and checks that fabric against the accessing one. On success the accessing fabric's VID is verified. A fail-safe expiry ends a verification in progress.
  • ICACCSRRequest returns the AdministratorPort's CSR. It works only over CASE, under the fail-safe and after the VID verification. AddICAC checks an ICAC against the accessing fabric's root and the CSR's key, once per fail-safe. As in chip, it keeps nothing; installing the ICAC is the host's job.
  • TransferAnchorRequest and TransferAnchorComplete answer SUCCESS without effect. chip's handlers are empty.

The global trust anchors of a vendor come from the DCL. AdministratorConfig.TrustAnchors and JointFabricOptions.TrustAnchors take that lookup. Without one, both sides fail the Vendor ID Verification (VENDOR_ID_VERIFICATION_FAILED, cause jcm.ErrNoTrustAnchor): the commissioner does not ask for consent, and the administrator answers an AnnounceJointFabricAdministrator with FAILURE. jcm.SelfAnchored is the explicit opt-in to chip's placeholder, the other side's own RCAC, for tests and examples. The device kit's administrator (device.NewJointFabricAdministrator) takes the lookup through its declaration's TrustAnchors port (jointfabricadministrator.Declare.TrustAnchors); without one it fails the verification.

The commissioner side

res, err := com.Commission(ctx, commissioner.Options{
    Fabric: jointFabric, Passcode: code, Addresses: addrs,
    CATs: []uint32{0xFFFF_0001}, // the administrator CAT for the joining administrator
    JointFabric: &commissioner.JointFabricOptions{
        TrustAnchors: dclTrustAnchors, // the vendor's root from the DCL
        Consent: func(ctx context.Context, info commissioner.TrustInfo) (bool, error) {
            return askTheUser(ctx, info)
        },
    },
})

With JointFabric set, the flow runs step 10.2 JointFabric.TrustVerification after OperationalCredentials.DeviceAttestation and before the certificates. chip runs the stage at the same place. The step reads the device's AdministratorFabricIndex and its Fabrics, NOCs and TrustedRootCertificates over the commissioning session. It then verifies the administrator's endpoint, fabric and administrator CAT, and verifies the vendor id: the device signs SignVIDVerificationRequest over the session's attestation challenge. Last, it asks Consent, which may take as long as the user needs: the flow keeps the fail-safe armed while it waits (up to the device's cumulative fail-safe limit), and when ctx ends the step fails at once; an error of Consent fails the step. The step fails with ErrJointFabric and a jcm.Failure that names the stage and chip's result, for example USER_DENIED_CONSENT. A device whose administrator fabric has no ICAC, or that carries a VID Verification Statement, is refused. JointFabricOptions.Progress reports each stage. Options.CATs sets the CATs of the issued NOC. Commissioning an anchor uses the administrator and anchor CATs without JointFabric.