Distributed Sync

triblespace-net synchronizes collections rather than exposing one ambient store inventory. Its protocol follows the same decomposition as the collection model:

  1. one QUIC connection per peer pair carries typed streams: one long-lived recon/1 stream for the grant exchange and for every collection's peering, a walk/1 stream for each push of a collection's tree or walk of a resource's grants, and short dht/1 and blob/1 request streams;
  2. for each collection both sides select, each peered neighbour pushes the other the collection's trees, its foundation records (and, between two Full neighbours, its held blobs), as Merkle walks pruned by what the receiver already holds; the receiver pulls the values it lacks and lands them as they arrive;
  3. the grants over any resource R, a collection or not, reach every node that takes part in R by one passive mechanism, grant gossip: each connection lists the root of R's grants for every R the peer takes part in, and the two walk R's grants where the roots differ; and
  4. exact blob handles fetch only the immutable bytes a resolver actually chooses through a collection-independent, mutually authenticated bearer protocol.

No global team, mutable roster, gossip topic, durable OFFER/GOSSIP bit, or second replicated inventory is needed, and no list of peers. Which collections a host syncs is a register in its own pile, and whom it syncs them with comes from the same pile: the keys its records and grants name. Held sets are local observations, not durable claims merged into a collection. The descriptor already states independent READ and WRITE policy, and iroh authenticates the endpoint key on each direct connection.

Four independent capabilities

The boundaries are deliberately small:

know C           -> find holders of C's descriptor and ask them to peer for C
prove READ(C)    -> be pushed C's records and held set, and shown C's grants
know H           -> derive its opaque locator, discover providers, and fetch H
satisfy WRITE(C) -> make a signed COMMIT or DERIVE active in C, and send C to a reader

C is the exact 32-byte collection descriptor handle. H is an exact blob handle. Knowing C permits discovery of its ordinary descriptor-blob providers (H=C). They are peering candidates, not certified collection participants, and a peering request tells them only that the asker selects C and which credentials it holds for C. H is the bearer capability and private discovery secret for one exact immutable value. The provider directory sees only blob-locator KDF images and endpoint-bound tokens, never raw handles or a collection-participant namespace.

READ and WRITE are independent AdmissionPolicy values embedded in the descriptor. Each is either Open or a canonical quorum over Ed25519 roots with one semantic threshold. A derived collection chooses its own policies. Source ancestry, routing knowledge, and possession of a blob do not silently supply collection authority. Downstream delegation is a restriction signed into each proof path, not a second descriptor threshold.

A node takes part in a resource R when one of its keys is a root of R (from any resource_policy binding in R's descriptor), when its key is named on a delegation-valid grant over R, or when it is peered for R with R flowing to it; merely asking does not count, and neither does a peering on which it only sends R, as a peer admitted to WRITE(C) but not READ(C) does. Every node that takes part in R is shown every grant over R, which is how grants spread from participant to participant, and a node that takes no part in R is shown nothing about R, whatever else the pile it shares holds. A peer admitted to READ(C) and peered for C therefore sees C's grants, and so does a WRITE grantee of C: its key is named on one.

Local stores remain permissive grow-only ledgers. They may contain a COMMIT whose signer does not currently satisfy WRITE(C), or a proof irrelevant to any resident collection. Admission is applied when a snapshot is observed. Later proof evidence may activate an old commit without rewriting or retracting it. WRITE never activates a MERGE: each store believes only the MERGEs its own host key signed, so another host's MERGEs stay in the ledger and fold into nothing.

The collection repair product

For one collection, sync pushes two kinds of PATCH component and keeps a third as admission input:

  • every structurally valid foundation record naming exact C: signed COMMIT and DERIVE records independent of current WRITE(C) admission. A collection is a set of foundations; a MERGE is its signing host's own lattice node, is never served, and a MERGE value fails the push that received it;
  • C's held-blob set: the resident blobs reachable from C's descriptor, its foundations' direct references and its proofs' capability definitions (see Held blobs below). Only a host that replicates C in full keeps one; and
  • C's authorization evidence: every signature-valid native proof over exact resource C beginning at a root named by C's supported policy bindings, without requiring its grant handles to match those bindings. A proof over any other resource is never C's evidence, whatever that resource's descriptor names. The evidence is what admission reads. It is never walked, summarised into a frontier or compared: the grants over C travel by grant gossip from the grant index (Grant exchange), like those over any resource.

Each set is represented by an immutable BLAKE3-Merkle PATCH. Collection records are keyed physically by the full 32-byte fingerprint of their exact canonical value; authorization evidence uses a collection | proof_hash PATCH whose values share ownership of the original proof bytes, one per collection overlay, not a shared global inventory. The grants that are walked come from the host's grant index, an R | proof_hash PATCH per resource R of the same shape: a grant walk exposes only R's prefix, its wire leaf key is the 32-byte proof hash and its value the complete native proof body. Resident-blob leaves use exact H as their 32-byte key and have an empty value. There is no companion claim blob or authorization closure to transfer.

The record root (record_root) commits to C and to the COMMIT and DERIVE summaries, including their leaf counts, under a versioned domain (version 6; version 5 also hashed the authorization evidence). It discloses no record, count or component root. Grants are no part of it, so a new grant moves no record walk. The held set is not part of it: the held set's Merkle root, all zeros when the set is empty, is the root of its own tree, which only two neighbours that both replicate C in full push each other.

The authorization projection authenticates proof bytes rather than taking a snapshot of who is admitted. Unavailable definitions, delegate-only grants, and quorum-incomplete paths remain evidence. Admission separately interprets the definitions' invocation and delegation action sets under the requested action's policy roots. Generic authority has no clock. Each root path is evaluated independently; no fixed-point over sibling paths can create delegation support.

A grant reaches the nodes that take part in its resource through the grant exchange (below): whenever two hosts are connected, for whatever reason, each lists the root of R's grants for every R the other takes part in, and the two walk R's grants where the roots differ. Nobody dials on a grant's behalf. That is the capability delivery boundary, and it is the same for every kind of resource: a collection's grants and, say, a Secrets version's delivery grants travel alike, with no test of the resource's kind. Interpretation needs any referenced capability definitions to be resident; walks carry proof bytes, never definition bodies, which travel by hash over blob/1. An application may use the same proof kernel for another resource, such as Secrets key delivery, without treating collection READ as decryption authority.

There is no backlink from a resource to a collection. The retired resource_collection attribute (anchor 62E951EC3ABB7F9B7F123BB7DE2F9F99) once routed a resource's proofs as a collection's evidence; descriptors that carry it keep it, every reader ignores it, and the anchor is never reused. Open action policies remain explicitly non-enumerable.

This product matters. Synchronizing only collection records would miss the case where a newly arrived proof activates an old COMMIT. Synchronizing a whole proof store would disclose unrelated capability structure. The admission algebra remains Record × AuthorizationEvidence, scoped to C, while the evidence's proofs arrive by grant gossip, scoped to C's participants. The held component is different: it observes physical availability and may shrink or be rebuilt. It does not create semantic membership or change WRITE admission. The receiver always derives its admitted view locally; record and proof arrival therefore commute, and a publisher need not possess or present its own WRITE grant merely to replicate an inert signed record.

The host also updates these components independently. When a store snapshot reports unchanged collection records, its existing record PATCH is shared into the next overlay without re-enumeration or Merkle hashing. Changed collections apply selected record additions and removals to that retained PATCH. Native stores obtain the difference from persistent indexes; cold activation still constructs the initial full overlay. Blob arrival still refreshes the authorization observation: a newly resident capability definition or resource descriptor can enable admission, or let a waiting grant be indexed, without changing any record. The held set comes from the store's own index, fixed by the same snapshot; it can change the held set's root, never the record root.

A DERIVE is a foundation of its derived collection and is pushed like a COMMIT. A MERGE never replicates: each host builds its own merge lattice over the foundations it holds, and believes only the MERGEs its own key signed. Another host's MERGE records may sit inert in a pile, but they are neither exported nor accepted, and their result blobs are never held for sync. Signature verification happens when decoding foreign record bytes, not when rebuilding the local PATCH or observing the local store again. Dense record tag 7 carries a 224-byte DERIVE body; each wire value has one additional tag byte. COMMIT's 192-byte body and signature transcript are unchanged.

A records push still carries only records naming exact C. A DERIVE's source witness does not authorize disclosing another collection's records to a READ(C)-only recipient. The witness fingerprint is not a blob handle and is not fetched through the blob DHT. A replica lacking that record closure cannot claim exact support merely because it received the output endorsement; source-record provisioning remains a separately authorized concern. In particular, the current protocol does not automatically transport a cross-collection witness closure.

Choosing what to sync

A host syncs exactly the collections its pile selects. The selection is one register per collection in the pile's own configuration collection: the collection named config under private_policy of the pile's signing key. Its handle is a function of that key (selection::config_handle), so nothing has to remember it, and a pile that was never configured reads as an empty configuration in which nothing is selected.

A register state names its collection (sync_collection) and says whether it is selected (sync_selected). States are ordered by metadata::supersedes: every write mints a fresh id and supersedes every head it saw, so a change needs no clock and the history stays readable. sync_selection reports the heads rather than choosing among them: heads that agree give their value, heads that disagree give Conflicted, and a head the reader cannot decode is skipped. Only Selected selects; an unset, unselected or conflicted register selects nothing. The schema lives in triblespace_core::collection::selection, so the daemon and every program that writes the selection share it. Its anchors were minted with trible genid on 2026-10-05: 99D9A2B7C5636FEFDE482DB3A6D01EE6 for sync_collection and 24EB46425226C0025A3C85D34F8919CE for sync_selected.

An operator writes and reads it with the CLI, under the daemon's key resolution:

trible pile net select DATA.pile [--key KEY] COLLECTION_HANDLE [COLLECTION_HANDLE ...]
trible pile net unselect DATA.pile [--key KEY] COLLECTION_HANDLE [COLLECTION_HANDLE ...]
trible pile net selection DATA.pile [--key KEY]

select and unselect write one state per handle that supersedes every head, so they also settle a conflict between earlier writers. Unselecting is a state, not a removal, and a later select supersedes it. Each line names the handle and the collection's name, or says that no descriptor is resident yet: the selection stands and applies once the descriptor arrives. selection lists every collection the configuration names with its value (selected, unselected, unset, or conflicted between N heads) and its name; it writes nothing and probes nothing.

The host reads the register from each serving snapshot, so peering follows a change at the next store observation. pile net sync also reads it at startup and before each reconcile pass, about once a second, to activate newly selected collections. An unselected collection stays active until the process exits, but its peerings end with UNPEER frames and it is no longer pushed. A selected collection whose descriptor is not resident is fetched by its handle through the DHT (the descriptor warmup under Live request scheduling), and peering for it begins once the descriptor validates. A node that does not select C never asks to peer for C and refuses every request for it.

Where the sync daemon listens

The same configuration holds one more register per endpoint key: the addresses the sync daemon running as that key is bound to. A state names the endpoint (sync_endpoint) and lists every address (sync_address, a SocketAddress); a state that lists none says the endpoint is bound to nothing. States supersede each other like selection states, with a fresh id per write. pile net sync writes the register (selection::write_sync_addresses) on its first pass and whenever the sockets its endpoint is bound to change, unless the register already holds exactly them. A socket bound on every interface is recorded as loopback, because the reader is a process on the same machine that opens the same pile. A reader (selection::sync_addresses) takes every head's addresses: they are hints for a dial, so heads that disagree are tried together rather than reported as a conflict. The anchors were minted with trible genid on 2026-10-06: 0F1FE7641D8246229EDAB3C2FF3E152C for sync_endpoint and 55C20BF071C57CAA74D0481ED4C3077A for sync_address.

This register is where the daemon's endpoint ticket went. Nothing copies a ticket from one daemon into another's command line any more: a process reaches its own pile's daemon through the pile, and every other peer through the pile's content (Where peers come from).

One connection per peer

A ConnectionTable holds the connections of both directions, keyed by the remote's TLS-authenticated endpoint key. Every connection, dialled or accepted, runs one accept loop, and the first byte of every stream is its type tag, read before any permit is taken:

TagStreamCarries
0x10recon/1the connection's one long-lived stream: grant exchange, and every collection's peering
0x12walk/1one bidirectional delta exchange of one collection kind
0x11dht/1one DHT operation byte and its exchange: FIND_VALUE or PROVIDER_PUT
0x02blob/1one locator-addressed bearer exact GET

An unknown tag, or an unknown dht/1 operation, resets only its own stream (RESET_UNKNOWN), and a stream that sends no tag within ten seconds is dropped. recon/1 and walk/1 take no permit. A request stream (dht/1 or blob/1) does: an opener keeps at most 16 open per connection, the accepting side holds at most 32 per connection and resets the rest (RESET_BUSY), and at most 16 are served at once across the host, each within 300 seconds. A stream first takes one of 8 permits its connection has. On a connection that carries no peering it then takes one of 8 permits that every such connection shares, and then one of the host's; a stream on a neighbour connection then takes only the host's. Keys cost nothing, so for strangers a share per key or per connection would bound nothing: strangers that hold their requests open until their deadline, on however many connections, occupy at most half the host, and the other half stays for the peers it syncs a collection with. Those take nothing from the strangers' share, so the connection's own share is what keeps one neighbour that holds its requests open from occupying the whole host.

The dialler opens recon/1 as it connects, and its first frame, OPEN, carries the dialler's sequence number. The counter starts at the wall clock in nanoseconds, so a restarted node's dials outrank the ones it made before. When a pair holds two connections, both sides keep the same one: of crossed dials, the one dialled by the lower key; of two dials by one side, the one with the higher sequence number. The loser drains: nothing new is opened on it, and it closes once no request stream is in flight on it and two seconds have passed since it was retired or last used. What this side had asked to peer for on it, it asks for again on the connection kept.

A close notification names the connection that ended, even if it waited in the walk task's queue while a replacement started. It cancels only that connection's walks and forgets only its Prefix agreements. A Prefix base is never reused on a replacement connection: the same authenticated peer may have restarted and lost it. Queued grant requests and unknown-resource charges remain peer-scoped while a current connection survives; the last close clears them and marks receive-completion evidence disconnected. No wire negotiation is involved.

A connection closes after 120 seconds without use: bytes, sent or received, on any of its streams but recon/1 (the first byte a peer sends on a stream, which says which it is, counts on any). Frames on recon/1 are the connection's own bookkeeping, not its use, so grant listings can repeat as often as records do and hold nothing open (Grant exchange), and a peer that writes only there holds nothing open either. Becoming a neighbour connection, below, is use; a request to peer and a refusal are not. Pushes are: in each interval of at most 60 seconds both sides of a peering open theirs, which carry at least the stream's opening frame, whatever flows, however equal the trees, and though the other side refuses them. So two opportunities of one side are at most 90 seconds apart, and a connection that carries a peering does not go idle unless every walk on it stalls. Other requests are use too, DHT lookups of a node that looks for neighbours among them. A peer built before this rule counts its recon/1 frames as use and does not close first; this side does. Above 64 connections in one direction the least recently used one is evicted, draining and unused connections first. A neighbour connection, one that carries a peering, is never evicted.

A connection carries exactly one recon/1 stream, the dialler's. One opened by the accepting side, or a second one, is a protocol violation and closes the connection. Frames go both ways at once, and both directions are read concurrently. When the stream ends, for any reason, the connection closes with it: the peer finished or reset it, it failed, or a writer waited 60 seconds for stream credit because the peer stopped reading. Every push on the connection, sent or received, and every peering ends, frames still queued for it are dropped, and nothing is reopened on it. What replaces it is a later dial, which the candidate order governs (see Neighbours): a peer whose stream ended comes back only through a fresh dial when a collection's order next reaches it. A peer that ends every stream as it arrives therefore costs a collection one dial per redraw of its order, at most one a minute, rather than a loop of streams.

A connection's frame queue refuses no frame, so what it holds is bounded by what is put on it. A side reads recon/1 no further while it queues 1,024 frames for the peer, at most 64 KiB each, and the grant exchange sends an entry of its listing only when that root changes, and all of it again every minute, which it leaves out while the connection has frames queued; a peer that asks faster than it reads therefore waits rather than growing the queue, its other requests on the connection with it, and each request is answered, in order, or the connection ends. Should both sides stop reading at once, with more queued than the stream's window takes, the first writer to wait 60 seconds for credit closes the connection. A push is not on this queue: it has a stream of its own, and QUIC's flow control holds a sender whose receiver stops reading (Walk streams).

A recon/1 frame is its kind (one byte), a big-endian u32 payload length, and a payload of at most 64 KiB. Every frame about a collection starts with the collection's 32-byte handle, so the frames of every collection share the stream:

KindFramePayload
0x01OPENdialler sequence number, u64
0x06GRANT_ROOTSresource, grant root, count; repeated
0x10PEER_REQUESTcollection, flags, credentials
0x11PEER_ACCEPTcollection, flags
0x12PEER_REFUSEcollection
0x13PEER_FLAGScollection, flags
0x14CREDENTIALcollection, credentials
0x15UNPEERcollection

Peering flags are one byte: bit 0 is the send flag, bit 1 the full flag, and in a PEER_REQUEST bit 2 marks an invitation. A GRANT_ROOTS entry is 72 bytes: the resource's 32-byte handle, the Merkle root of the sender's grants over it (zeros for the empty set) and a big-endian u64 count; a frame holds at most 910 entries, a root of zeros with a nonzero count or a root with a zero count is malformed, and so is a payload that is not whole entries. The kinds 0x02 to 0x05 of the retired digest exchange are skipped like any unknown kind. Credentials are a big-endian u16 count followed by that many proofs, each a big-endian u16 length and its bytes. A reader skips a frame kind it does not know and a proof whose bytes do not decode; a known frame whose payload does not parse is a protocol violation and closes the connection.

Peering

Peering for C is two keys' wish to sync C over the one connection between them, and C is the unit of everything that follows: each collection has its own neighbours, pushes and timer, multiplexed on the connection. A side asks a key to peer for C only if it selects C. The PEER_REQUEST names C and carries the asker's flags and credentials:

  • the send flag says the asker admits the peer, which passes READ for C under the asker's evidence;
  • the full flag says the asker replicates C in full; and
  • the credentials are the asker's own proofs for C naming itself, truncated at its prefix, READ and WRITE alike, at most 1,024 of them. Those that do not fit the request travel first in CREDENTIAL frames.

Apart from the grant exchange, which shows each node that takes part in a resource every grant over it and a node that takes no part nothing about it, these credentials are the only collection data a side sends before it is admitted. Its other frames before admission carry only handles, hashes, flags and grant roots.

The key asked accepts only if it has C active with its descriptor resident, selects C, and has room for the peering (at most 16 per collection that others asked for or that it invited, unless this connection is already peered for C), and only if the asker passes READ for C under its evidence and the presented credentials, or the asker set its send flag and passes WRITE. PEER_ACCEPT carries the acceptor's own flags. C flows only in a direction whose sender set its send flag. A writer that cannot read therefore asks a reader with its send flag set, the reader accepts with its own flag unset, and records flow from the writer to the reader only. A refusal is a PEER_REFUSE frame; recon/1 stays open.

An answer names no request, so a side sends its next request or invitation for C on a connection only once the last one was answered, also if it withdrew that one with an UNPEER. What arrives before the answer was sent before the peer took the request up: an UNPEER leaves a standing request as it is, and a request that crosses a withdrawal is refused.

Admission is evaluated again whenever its inputs change: a store observation that changes C's evidence or brings a missing definition, a CREDENTIAL frame, a change of replication mode. A peering's send flag follows READ admission and its full flag the replication mode; a changed flag goes out as PEER_FLAGS, and a peering whose two send flags are both unset ends. When a node's own proofs for C change, it sends CREDENTIAL frames to C's neighbours and to keys that refused it. Credentials a peer presents are kept only if they name the peer and are evidence for C. Unselecting C sends UNPEER to each of C's neighbours, and a closed connection ends its peerings.

Two Full neighbours are the two sides of a peering in which both set the full flag and each counts the other as a reader or writer of C: this side sends C to the peer, or the peer passes WRITE under this side's evidence. Only they push each other their held sets. A DHT provider that may neither read nor write C is never a Full neighbour, whatever its flag says, so it cannot make this side fetch the blobs it names and pass them on; changed evidence re-evaluates which peerings count.

A side remembers, per connection, the requests it refused and the capability definitions whose arrival could admit them: admission names missing definitions (QuorumOutcome::Undefined) rather than collapsing to a refusal. Those definitions are fetched over blob/1 from the asker, then from its credentials' root and delegated keys among connected peers. When a credential, a fetched definition, a new proof or the refuser's own selection admits a refused request, the refuser sends an invitation: a PEER_REQUEST with the invitation bit, which counts against the receiver's room for inbound peerings. The asker asks again as Neighbours says. A request that was admitted and refused only for want of room is invited once a place is free, at the next refill of the neighbour sets, if it is still admitted. The invitation holds that place until it is answered, and each remembered request is invited once.

Neighbours

Each selected collection has up to five neighbours this side asked for, plus the peerings others asked for. The candidates come in three tiers:

  1. C's participants in the grant index (its policy roots and the keys named on its indexed grants) and owners (signers of C's records who pass WRITE) that pass READ under local evidence;
  2. the other participants and owners; and
  3. DHT providers of blob_locator(C), the holders of C's descriptor blob.

Within a tier keys are ranked by blake3(salt || key) under a salt drawn fresh for each order. Readers come first because a signer that cannot read does not relay; free DHT keys come last. The position in that order is the only retry state: a refusal, a failed dial or an ended peering (its connection closed, as it does when its recon/1 ends) moves on to the next candidate. A key that refused is passed over for two minutes, and then is a candidate again on the same connection, without which a refuser that keeps no note of the request, because it does not hold C, could not be reached. So a refuser is asked at most 30 times an hour for a collection while a place is free, and only by the swaps, at most six times, while all are taken; nothing it sends shortens that. Otherwise candidates come round again only when the order is redrawn. Reaching the end redraws it with a new salt, no sooner than 60 seconds after the last draw unless the candidates changed. A redraw that is not merely of changed candidates also looks up C's DHT providers again, at most three such lookups at once per host, each with a three-second lookup window. Neighbour sets are refilled every second.

Every ten minutes, when a collection's five asked-for places are full and another candidate is available, a swap asks that candidate past the five. Once it has peered, one healthy neighbour of the five, chosen at random, is unpeered, so neighbour groups that formed separately during a partition meet again after it heals. A candidate that refuses or cannot be dialled is followed by the next of the same draw, one at a time, and the end of the draw ends the swap with nobody gone. A place of the five that frees meanwhile is the candidate's. While none of the five is healthy nobody leaves and no swap begins; a candidate that peered by then waits. The holder of the reserved place, below, is not one of the five and never leaves for a swap. So a node asks for at most seven neighbours per collection: the five, the holder and one candidate.

Nothing holds a place by not answering. When a collection's swap comes due, whether its places are full or not, every request and invitation for it that is still unanswered is taken back with an UNPEER on the connection that stands: an asked-for place, the reserved one, the swap's candidate and an invited inbound place are free again within ten minutes, for others the same second. The peer still owes its answer, and is sent no other request for C on that connection before it.

One more place per collection is reserved for participants of C that no open connection reaches, walked in the same tiers and redrawn on the same terms, with no provider lookup. Its holder keeps it while it is being dialled or its asked-for peering or request stands; once the holder has been peered for 60 seconds it is unpeered when another such participant waits, so the place rotates, and the five asked-for places never shrink for it. This is how a new grantee is reached when every neighbour set that could reach it is full: nobody dials on a grant's behalf, but the grant makes the grantee a participant, a reserved place at any participant dials it like any candidate, and the grant exchange lists C to it on that connection. A grantee that selects nothing refuses the peering and still holds its grant; HealthSnapshot::named_unselected then tells it that it was granted C.

HealthSnapshot::peerings lists every peering on an open connection: its collection and peer, whether this side asked for it, whether both sides accepted, which way C flows, and which side refused the other.

Pushes

Each neighbour exchanges one kind of one selected collection on a bidirectional walk/1 stream: COMMIT records, DERIVE records, or (between Full neighbours) held references. Grants are not pushed on this timer, which is one per selected collection, while grants go to nodes that select nothing too; they travel by grant walks, which grant gossip opens where listed roots differ (Grant exchange). Either side may open it. Each sends its own immutable delta against the last agreement on this connection; both directions share the stream. Nothing is broadcast or forwarded merely because it arrived.

Each selected collection retains its existing Trickle-style timer: two to sixty seconds, doubling while quiet, with one transmit opportunity in the second half. A local records change restarts the minimum interval unless an incoming exchange is landing it; a new grant restarts nothing. A successful changed receive resets it once, not for each intermediate snapshot. Held-set changes wait for the ordinary timer. A successful exchange followed by genuinely new local keys starts another immediately; a lagging published subset of the agreement does not. Failed exchanges wait for the timer. Timer inputs are physical serving observations, not delta roots.

The walks task uses only current connections and never dials. At most one exchange per peer, collection and kind runs at a time. Simultaneous opens preserve the stream opened by the smaller peer id and reset the other as a duplicate; a newer incoming stream can replace an existing incoming one. Both Open and Incoming require local selection and an active descriptor (a grant walk requires neither). Active peering flags determine send/receive directions; credentials provide fallback admission only when there is no active peering. A false send flag cannot be widened by another grant.

An agreement G is immutable PATCH state scoped to peer, collection, kind and connection. Prefix retains it only after both LANDEDs and successful actual writes and stream finish. Cached mode uses the verified union transiently after both gated FINs, then releases it. Failure clears local G without retracting landed values; close/deselection clears it and retires running drivers, so a stale completion cannot restore it. G is not durable. Fresh connections may compare full sets again, with equal-prefix pruning.

Successful symmetric exchanges compute the same union. An asymmetric final finish failure may clear G on only one side: these sound common-held lower bounds can temporarily differ, particularly while publication lags. Delta commitments remain independent and valid; ordinary publication and later exchanges can converge the bookkeeping. There is no base-negotiation or distributed durable receipt added here.

Walk streams

The opener writes the stream tag and OPEN naming collection, kind (COMMIT 0, authorization 1 for the grants over any resource R, whose handle the OPEN names in the collection's place, references 2, DERIVE 3) and profile (0 pull Prefix, 1 cached RIBLT, 2 offer Prefix with opener sending, 3 offer Prefix with opener receiving). OPEN remains 34 bytes. Profiles 2/3 require Records or AUTH and the opposite locally authorized one-way role before driver registration. Profile 0 is pull Prefix: a grant walk, or a References walk the receiver takes part in one way only. Profile 0 on COMMIT or DERIVE, or on References where the receiver both sends and receives, would be a two-way Prefix walk of data; it is refused with a logged warning (One path per direction). Unknown profiles and inconsistent offer roles are refused, not guessed from data frames. The accept loop hands both halves to the walks task. Missing OPEN within ten seconds, or no task, resets the stream. Frames have a one-byte kind, big-endian u32 payload length, then at most 64 KiB. Keys are 32 bytes relative to the kind's base; a grant walk's hashes bind the full resource32 || proof-id32 key. Integers are big-endian.

KindFramePayload
0x01OPENcollection32, kind:u8, algorithm:u8
0x03SUBTREEdepth:u8, prefix32, hash32, leaf-count:u64
0x05VALUE_REQUESTkey32
0x06VALUEkey32, nonempty encoded bytes
0x07DONEempty
0x08LANDEDempty
0x09RIBLT_ROOThash32, leaf-count:u64, resume:u8
0x0aRIBLT_CELLindex:u32, symbol32, checksum:u64, count:i64
0x0bHAVEexact offered depth:u8, prefix32, hash32, leaf-count:u64
0x0cRIBLT_RESUMEheld:u32, hash32, leaf-count:u64
0x0dPROGRESSempty

DONE/LANDED are Prefix-only; cached RIBLT refuses them and uses the gated FIN semantics below. RIBLT_ROOT has 41 payload bytes (46 framed): the exact summary and a resume flag (0 or 1), with no repeated profile key. RIBLT_RESUME has 44 payload bytes. Both belong to the unreleased ALPN36 boundary (see Resuming a cut-off exchange), not compatibility with 35, the private33 variants, the deployed and rejected 34, or deployed32.

Every SUBTREE payload is 73 bytes, 78 including the frame header, regardless of fanout. Depth is 0..32; all prefix bytes outside depth must be zero. Depth0 is the ordinary empty-prefix delta-root announcement; an empty delta has zero hash and count. There is no ROOT, LEAF, NODE child array, HELD or reply bitmap. Unknown kinds are skipped; known malformed payloads fail only the exchange. The retired 0x02 and 0x04 kinds are not compatibility paths.

For the prefix algorithm, freeze native PATCH difference Δ = pinned minus G, or empty if not sending. Announce [] and then visit its actual compressed trie nodes continuously FIFO, putting children at the back in ascending edge order. Children are separate later announcements, never embedded metadata. A nonempty compressed root prefix is announced after [], including a singleton's full-depth key. FIFO concerns logical trie levels; compressed byte-prefix lengths need not be monotonic. There is no level barrier in pull mode. Offer mode additionally obeys its bounded receipt window below. DONE follows this traversal.

A peer announcement matching our own delta at that prefix prunes its queued proper descendants. If we have not announced the prefix yet, our own matching announcement still goes out exactly once; if already sent, it is not duplicated. That statement concerns work remaining when the match arrives: network delay and unequal frontiers permit earlier in-flight descendants. FIFO alone supplies no universal one-level overshoot bound. Previously agreed siblings cost no frames because difference construction omits their keys. Independently acquired overlap uses the same prefix-matching rule.

The receiver reconstructs ONLY the peer's delta in a separate typed PATCH, initially empty. An exact locally held subtree commitment can populate that portion; otherwise full-depth key announcements authenticate their own leaf digest, and values are pulled by key or reused from the latest live observation. Unknown intermediate hashes are provisional. At DONE, after all requested values, fetches and inserts finish, the reconstructed peer root/count AND every received prefix/hash/count must match, with canonical compressed prefixes. Count sums, frame counts and the local union are not membership proofs. Omitted leaves, foreign replacements at equal count, duplicate prefixes, wrong hashes and wrong prefixes cannot close. Exact non-root subtree inclusion currently enumerates its keys; only empty-prefix whole-tree inclusion uses a shared clone.

Records must decode with valid signatures to COMMIT/DERIVE for the collection under the requested fingerprint. A grant must decode and match its id, or the exchange fails; otherwise it goes through the grant walk's gate (Grant exchange), which lands it, holds it pending or skips it, and none of those fails the walk. References have no VALUE payload: resident blobs are noted held, absent ones fetched by hash and landed with their held note. All actual landing/fetch outcomes precede LANDED. A value request is served only from the immutable advertised delta. A receive-only side announces empty and cannot advertise its private pinned tree or serve ordinary values. Offer-mode receipts only repeat commitments the sender already offered.

One-way typed offers

Locally opened one-way Records and AUTH exchanges select offer profile 2/3. References retain their existing exact-fetch/landing path; two-way CachedRiblt is unchanged. Each generated SUBTREE commitment is registered under its exact prefix/hash/count on this stream, before writer completion. A nonempty HAVE must match such a registered commitment; not-yet-generated or mismatched receipts fail the exchange. Registration is neither a completed-write receipt nor cryptographic proof that the peer observed the offer. Duplicate receipts are idempotent. HAVE prunes queued descendants and suppresses unqueued eager bodies, but cannot recall already queued/written frames.

The receiver acknowledges an explicit offered leaf if its immutable typed value is already held, or after its validated VALUE has actually landed. A grant the gate skips or holds pending is acknowledged at once: it returns credit without landing, and it never enters the walk's agreement, so a later walk offers it again.

A whole offered subtree is acknowledged by one coarse HAVE, repeating its exact prefix/hash/count, when the receiver's custody evidence holds exactly that subtree: retained sound G, or the exchange's original typed pin. That pin holds COMMIT/DERIVE record bodies, and for AUTH the proofs the grant index judged and indexed; proof bytes merely stored, skipped or pending certify nothing. The writer prunes on the exact commitment alone, with or without an agreement, so a cold one-way offer to a receiver that already holds it all ends after the root. An already queued descendant after a coarse HAVE creates no new body debt and no second receipt. The peer delta proof is never custody evidence: its private-prefix grafts, unlanded VALUEs and grant stand-ins are proof-only. The latest serving snapshot decides single leaves only; the older pin decides subtrees, and neither speaks for the other. A coarse HAVE acknowledges typed bodies, never the blobs they reference: References carry no offer role and never send or accept HAVE.

What is protected is contents, not membership. A receiver able to build an offered subtree already holds its data, so acknowledging it discloses nothing the writer did not send. A coarse HAVE says that one retained custody view (G or the original pin) equals the offered subtree; it does not say the receiver holds nothing else under that prefix now, since a shared G can match while private extras exist beside it. Positive leaf feedback discloses possession of already-offered identities. Neither is hidden, and no claim of timing or traffic-analysis secrecy is made. Where the original pin holds unrelated private siblings and no G matches, the subtree hashes differ and receipts fall back to finer prefixes and leaves.

At most 64 offered leaves await possession receipts. Their bodies are sent speculatively without VALUE_REQUEST, before waiting for those receipts; an all-missing transfer can progress beyond the window through ordinary landing ACKs. Authenticated offered keys alone admit eager VALUEs, with the existing signature, collection, fingerprint and proof checks. Racing duplicate bodies are validated but land at most once. A missing receipt eventually fails under the walk's rule for standing still; there is no silent pull fallback. Offer/receipt indexes and admitted-body identities share the explicit 1,048,576 entry ceiling. This window bounds instantaneous speculation, not cumulative duplicate bytes over an entire cold high-overlap stream, and makes no universal speedup claim.

HAVE releases speculative credit only. Exact peer delta reconstruction, all fetch/landing obligations, final LANDED and successful actual writes/finish remain necessary for G. The driver drains queued receipts before finishing; failed/retired streams cannot be revived by late landing callbacks.

After both LANDEDs, propose G' = G union Δlocal union Δpeer. The driver retains it only after actual queued writes and successful finish; an enqueue is not a receipt. The peer's LANDED separately acknowledges our send, even if our receive fails. Successful LANDED write separately acknowledges what landed here. Failures reset/stop the exchange and clear reusable G, while already landed data remains. Publication lag cannot shrink G: pinned subsets produce empty differences.

Budgets grow on demand: FIFO positions, received prefix commitments and matched announcement indexes each allow 1,048,576 entries; the peer delta proof permits at most 1,048,576 leaves. Its advertised count is checked before exact-root reuse, so even a fresh identical larger set is refused. This is a real honest-large-delta limit, not just a hostile frontier bound or a claim of unbounded synchronization. Withheld-value demand has a separate 32,768-entry ceiling. Requests and blob fetches share 64 slots; at most 1,024 unacknowledged values go to landing before reading pauses and stream flow control applies.

A walk in which nothing moves ends, whatever it waits for: each side by itself looks every 20 seconds, and at the third look in a row at which nothing moved it resets the stream, so between 60 and 80 seconds after the last movement while its runtime runs. Movement is a byte of the walk's stream that crossed either way, a value of this walk that landed, and a blob, or a byte of one, that this walk fetches. A fetch that still waits for one of the connection's 16 request permits, or then for its stream, moves while that line does: permits are given in order, and bytes arrive for the requests ahead. Work that is only under way is no movement: not a value that waits to land, not a fetch behind 16 requests that receive nothing, and once a fetch has its stream only its own bytes are, whatever else arrives on the connection. So the bound holds after the peer's DONE or FIN, while reading pauses for landing, and for a landing that never answers. There is no limit on how long a landing or a fetch may take, only on its standing still: a side whose landing or fetch moved on tells the peer so in the next PROGRESS frame, at most one every 20 seconds. PROGRESS is a sign of life only. It settles nothing, hearing one is no reason to send one, and writing one is no movement, so two sides cannot keep each other alive. A side that resets still keeps what landed, and its next exchange offers the rest; its blob fetches end with the walk. A walk whose driver is lost to a panic ends as unconfirmed.

Blob fetches have a 60-second progress deadline of their own, not a total one, which starts once they have their permit. Actual outgoing byte writes and final finish are separately progress-bounded/cancellable, including when a driver is retired. A walk takes no request permit but uses transport stream credit and counts as connection use. Opening it, with its tag and OPEN, and opening a request stream once it has its permit, end after 60 seconds: a live peer may allow no further stream. Small and scratch/sim gates do not establish many-collection live stream-credit liveness or throughput.

Cached full-component discovery

One path per direction

How a data tree (COMMIT, DERIVE, References) is walked is not configured and not chosen by either side: the directions decide it. Where this side both sends a collection to the peer and receives it from the peer, every data walk is cached RIBLT; where it only sends or only receives, the walk is Prefix, as a one-way offer (profile 2/3) for COMMIT and DERIVE and as profile 0 for References. There is no PeerConfig field, CLI flag or environment variable for it. An incoming OPEN asking for a two-way Prefix walk of data is refused and the refusal logged, never silently accepted. With simultaneous opens, the existing lower-peer-id survivor keeps its stream; both name the same profile. Cached symmetric RIBLT is refused unless both send and receive are authorized for this collection, so receive-only holdings never enter symmetric equations. Collection/component admission and reference eligibility are otherwise unchanged.

Grant walks are the one deliberate Prefix exception for a two-way exchange. This is a current choice, not a limitation of RIBLT: the grant Prefix walk consumes the incrementally maintained, structurally shared grant PATCH directly, and the grant path has no prepared-cell integration of the kind data RIBLT uses (the data cell cache below already reuses its encoding incrementally). It is a reasoned constant, not a configuration point.

Each published collection observation owns three separate latest cache Arcs: COMMIT, DERIVE and positive resident References. Grant walks are Prefix only and keep no cache: an Authorization OPEN that names cached RIBLT is refused. A generation binds the immutable native source, collection, component and profile to one flat grow-only Vec<CodedSymbol<KeySymbol>>. Running exchanges retain that generation; they have residual decoders, not full per-peer encoders or cell caches. Normal local publication and incoming landing use the same owner update. An unchanged key set reuses its cache Arc, while the exchange still pins the current typed observation for body serving and authorization. Actual native PATCH differences new \\ old and old \\ new update the already-prepared prefix by checksum/symbol XOR and signed membership count. Publication copies the entire prepared vector first: update cost includes O(prepared cells) copy, PATCH differences and sparse scatter, not merely the small edit. Old leased buffers remain separately resident. Completed cached exchanges use the agreed native union only transiently for health, receipts and moved-source checks, then release it instead of retaining per-peer G. They also discard any older Prefix G for that component. Prefix exchanges continue retaining their reusable agreement as before.

Preparation is lazy, initially 1,024 cells, doubling up to 1,048,576 cells. Growth and an update's prepared-prefix snapshot are serialized; the new generation is then updated privately. Growth scatters the entire frozen source only into a private new tail; existing cells never change. This avoids adding symbols to an already-advanced upstream encoder. Old leases can grow their own generation without becoming the latest owner. There is no retained reverse-membership index; the public mapping reconstructs each changed symbol's memberships. A prepared cell is stored as nothing but its canonical RIBLT_CELL frame: the exact 57 bytes the wire carries for it, framing and index included (it was 48 bytes of native-endian cell before; an inherited 65,536-cell prefix grew from 3 MiB to about 3.56 MiB). Chunks are file-backed and fully written before they are mapped, so a full disk is an error, never a later SIGBUS. A contiguous run of cells leaves the cache as one immutable anybytes::Bytes view of its mapped chunk and is written with one owned-buffer write, so the sender neither re-encodes nor copies a cell. Views never change: a full chunk is frozen read-only in place before it is viewed, and the still-growing partial chunk, once viewed, is copied before the next write to it (copy on write); a new generation scatters its difference into its own copy. The receiver's residual rows keep their 48-byte native records. Plus native PATCH sharing and decoder state. Exhaustion, poisoning or count overflow fails the exchange or publication; none is a success or silent prefix fallback. Each decoded local-only or remote-only set and the eager-body deduplication set have a 1,048,576-key ceiling. Unlike Prefix's materialized delta proof, the cached COW proof does not cap absolute source cardinality at that value: source counts must fit i64, while newly retained difference state is bounded independently. A transient typed frontier may exceed either final source's cardinality while eager bodies arrive. Cursors into those difference vectors drain at most 32,768 queued body keys and 64 active owed bodies/fetches; the queue bound is not a lifetime delta bound. The decoded-support ceiling and prepared-cell ceiling are separate limits: fitting the former does not guarantee decoding within the latter. This candidate does not support unbounded cold synchronization. Local exhaustion is reported as a resource limit, separately from malformed peer frames; cache poisoning/count-invariant failures are separately unavailable, never success.

Profile 1 uses exact 32-byte symbols, including trailing zeros. SipHash-2-4 hashes precisely those raw bytes, with no Rust Hash length prefix. Its public 16-byte key is the first 16 bytes of BLAKE3(domain || collection32 || component-byte), where domain 2D1743DA8080C9DBDAEB886FEE34089C was minted with trible genid. The checksum u64 is also the mapping seed. Mapping is pinned upstream ngerakines/riblt-rs commit d0737aeeac0f705ea0f26ebf7421a8b9f307b7d0: every symbol contributes to cell 0; advance the u64 PRNG by wrapping multiply by 0xda942042e4dd58b5, then compute gap = max(1, ceil((f64(index) + 1.5) * (4294967296 / sqrt(f64(prng) + 1) - 1))) and saturating-add that integer gap to the index. Operations use IEEE754 binary64 in the stated order, matching RandomMapping; cross-platform profile parity is a requirement, not a Rust-layout assumption. This is a public deterministic map, not authentication or adversarial-workload protection. The key is derived locally from OPEN's collection, kind and fixed selected profile; it is not repeated in ROOT.

Cells describe the whole component, never source \\ G. The sender emits its root immediately but deliberately waits for the peer's root before preparing or sending any cells. This initial feedback barrier avoids both cold preparation and coded oversend for equal roots; it does add startup latency and is not a feedback-free root-plus-cells stream. After that exchange, cells proceed without cell-by-cell request rounds. A bounded residual-only decoder receives peer cells minus cached local cells: XOR symbol and checksum, subtract signed count. Indices are contiguous and bounded. Before admission, the residual count must fit the signed decoded-support bound, independently of source size. Count arithmetic is checked throughout peeling. Upstream's unbounded try_decode is not used on network input: the local boundary adapter reuses its public mapping and keeps its Encoder as an oracle. The adapter charges mapping, cell updates and queue work inside every cascade loop, with a total budget of 64 times the maximum cell count. This is an explicit work budget, not a latency guarantee. Queue membership is deduplicated and bounded by the received prefix; purity is rechecked at dequeue, the recovered key must map to the triggering cell, and repeated or cross-sign recovery is rejected. Exact zero includes all symbol bytes, not merely count/checksum. Incremental mapping heaps retain only recovered difference keys, never a full-source inventory. Peeling reveals local-only bodies, which are pushed eagerly from the pinned typed source; remote-only bodies are owed pushes, not an additional VALUE_REQUEST round trip. References continue through the ordinary exact-blob fetch/held-note path. Bodies never enter decoder windows. Duplicate bodies are admitted at most once.

After complete peeling, local-only keys must exist in the original source, remote-only keys must not, and both recovered sets must be unique. A sparse native Merkle union summary combines the COW source minus local-only keys with the remote-only key PATCH, sharing all unchanged native subtree summaries. It checks the exact peer root/count without waiting for unknown typed bodies and without a copied full-source key inventory. Typed peer reconstruction and canonical signature admission independently guard final landing.

Once this exact proof holds, stop coded output only when the complete locally written cell prefix reaches the decoded incoming prefix. Opposite residual counts and identical XOR equations then give the peer the same solvable prefix. Equal root/count with the same locally derived profile/domain can stop at zero cells; the upstream decoder's initially true decoded() alone cannot. A full ROOT write receipt is still required. Eager bodies take priority over unqueued cells; one active write, one queued frame and a single deferred cell bound coded lookahead independently of prepared megabytes. Cells go out in runs: one cell first, then runs as long as the cells already generated, up to 64 cells (3.6 KiB) per view, never across a chunk. Each run is one owned buffer handed to the transport seam's SendStream::write_owned, which the QUIC adapter passes to the stream's write_many_chunks as it is; write receipts count whole frames only, a reset abandons the rest of a run, and FIN follows the last owned write as it follows any other. This removes our own per-cell encoding and copies. noq may copy and coalesce small chunks into its send buffer and can retain larger owned chunks as they are (above 1,452 bytes in noq 1.0.1, so a whole 64-cell run), keeping the mapped chunk alive until it releases them; freezing and copy-on-write keep that sound. Kernel zero-copy (sendfile) is not possible: QUIC encrypts each packet in user space. The bytes on the wire are unchanged: 52 payload bytes, 57 framed bytes per cell. Root, OPEN, control frames and bodies are additional traffic.

Resuming a cut-off exchange

A peer's cell stream is a pure function of the profile (domain, collection, component) and the peer's record set, and the peer's ROOT names that set exactly; there is no per-peer or per-connection randomness in the mapping or checksum key. Cells [0, N) received from a peer therefore stay valid for exactly as long as the peer announces the same root, whoever the peer is.

Each host keeps a cache of such prefixes, keyed by (profile key, the PEER's announced root) and never by peer identity, so two peers with the same root may share an entry. An entry is the raw received cells, verbatim in their 57-byte RIBLT_CELL frame bytes, contiguous from index 0; never residual decoder state, which also depends on our own set and may change between connections.

  • A ROOT carries resume = 1 when the cache holds any entry for this profile; that is the only bit it discloses. It promises exactly one RIBLT_RESUME on any stream that is not reset, sent once the peer's ROOT is heard and never before our own ROOT: also when the roots are equal and no cell follows, and even after a peer FIN has confirmed the exchange; local readiness to finish waits for it. The peer sends no cell before it arrives. A walk in which that never comes ends like any in which nothing moves, also when replayed cells have already proved the difference, and a peer FIN while it still holds our cells back fails the exchange.
  • RIBLT_RESUME says "I hold your first held cells for your root R", R being the root the peer just announced. The claimant takes the entry for (profile, R) out of the cache and claims its length only when R differs from its own root and the length is below the cell bound of the two ROOT counts; otherwise it claims 0 and drops the entry.
  • The cell sender starts at held exactly when held > 0, R equals its own current root and held is below the bound, and at 0 otherwise. Both sides apply this one rule, so the receiver knows the first index it must see and still rejects any other. The root still precedes every cell disclosure.
  • On resuming, the receiver rebuilds its residual from the cached cells against its own CURRENT cells (peeling may already finish there), then continues with the cells that arrive from held on. The sender's written prefix starts at held, so the stop rule (exact proof plus the complete written prefix reaching the decoded prefix) is unchanged: the peer holds cells below held already.
  • An exchange records the cells it receives while undecoded. It keeps them in the cache only when it was cut off: it ended without an outcome of its own (reset, deadline, connection loss, replacement), short of decoding, with a peer root different from ours. A confirmed exchange drops its entry, and one that failed for a reason of its own (proof, protocol, limits, or a malformed or truncated frame from the peer) drops it too, so cells that failed a proof are never offered again.
  • The kept entries hold at most 64 MiB of mapped chunk file per host (about 1.1 million cells), evicting the oldest first; an entry larger than the whole budget is not kept. The budget counts kept entries only: each running cached exchange may additionally hold the entry it took and its own recording. A recording stops once its logical size reaches the budget, but chunks are reserved whole, so it may reserve up to one more 912 KiB chunk: the total is at most the budget times one plus the number of running cached exchanges, plus one chunk per running exchange. A stale root (a peer whose set changed) cannot be attributed to its old entry without a peer identity, so such an entry ages out under the budget. A miss of any kind means the stream starts from 0, never a failure.
  • Accepted limit: kept cells are not verified against the root until decoding completes. Entries are keyed by root and shared across peers, so a dishonest peer can plant a structurally valid but wrong prefix under an honest peer's root and cut the stream; an honest reconnect with that root then fails or redoes work. The final exact root proof still prevents any false confirmation, and the failed exchange discards the entry it took, so integrity holds and poisoning again needs another planted prefix.

Cached mode uses clean write-half FIN for completion, not DONE/LANDED. Local eligibility requires exact decoding/proof, the complete-written matching cell prefix and ROOT, all decoded receive work scheduled, no missing typed bodies, and successful completion of local fetches and actual insertions. It does NOT require peer FIN. The writer drains every queued/owed frame before successful shutdown; enqueue and eager-cursor advancement are not write receipts.

The read direction remains alive after local half-close. Clean EOF supplies the peer's directional completion promise but never cancels local insertion/fetch debt. Missing typed bodies or undecoded proof at EOF fail; References have no VALUE frames, so their unscheduled local fetch cursor may legitimately remain beyond the 64-slot window. A newer live snapshot can satisfy a decoded key before its first eager VALUE arrives: that late body may create new insertion debt after local FIN, and final confirmation rechecks it. Both peers can half-close independently; neither waits for peer FIN to become locally eligible.

The finished send handle retains reset ownership until task retirement. Failed writes/finish, truncation, reset, replacement and failed/deferred landing cannot produce shared agreement. Only successful local half-close, valid peer FIN, current semantic completion and the current Task generation establish success. Post-FIN reset is best-effort cancellation, not retraction of already received or landed data. A successful local finish is not a peer transport ACK. Peer-FIN waiting alone has no frame-progress timeout, just as Prefix LANDED waiting does not; missing incoming frames and blob fetches retain their progress deadlines. These are protocol/landing receipts, not disk durability or hydration acknowledgements. Ordinary pull Prefix still serves VALUE_REQUEST after DONE and keeps LANDED; no Prefix half-close rule is inferred from cached completion.

Landing

One landing task per host lands the values of every push in arrival order. It takes up to 4,096 waiting values at a time, inserts them in one pass, publishes one serving snapshot, and then tells each push how many of its values landed and how many inserts failed. Record publication builds operation-local typed PATCH deltas and applies one native difference and union per batch, rather than rehashing the retained large tree after each record. Structural/collection and exact attached-value checks still precede the key-only set operations; old snapshots retain their unchanged native subtrees. A group whose snapshot cannot be published counts as failed and withdraws serving. Later leaves of every push are therefore checked against what already landed. The task also reobserves the store every two seconds, so appends by other processes reach the serving snapshot, and from there pushes. Landing does not flush: explicit close remains the persistence boundary.

Serving snapshots are a latest-value handoff. The peering, scheduling and walks tasks each read the newest observation, never a queue of them. Evidence that arrives outside walks (pending grants whose descriptor arrived, fetched definitions, descriptor warmups) crosses the bounded admission bridge and lands at the next Peer::refresh, which also reobserves the store at once.

Grant exchange

Grants gossip by participation, with one passive mechanism for every resource. A grant over a resource R is shown to every node that takes part in R (Four independent capabilities above: R's roots, the keys named on its delegation-valid grants, and the nodes peered for R that are sent R), and to no other.

Each host keeps one grow-only grant index of every grant it holds, keyed by R and proof id, with R's participants. A grant is indexed once R's descriptor and every definition it names are resident, it starts at one of R's roots (descriptor::resource_grant_policies, every resource_policy binding in the descriptor, whatever the resource's kind), its delegation is valid, and every step's definition names an action, every later step's parent a delegable one. A grant that fails one of these is not indexed, offered or counted as naming a participant; it stays in the store, and a collection's evidence keeps what admission reads. A grant whose blobs are missing waits, naming every missing handle at once. The index is the only grant tree that is walked, listed or reported; it is built incrementally, one judgement per new grant, and not filtered by local selection: participation decides what is offered.

On every connection, when it opens and whenever a listed root changes, each side sends on recon/1 a GRANT_ROOTS listing: for every R the peer takes part in, the root and count of this side's grants over R. Like records, grants are anti-entropy: 45 to 60 seconds after it opened or last repeated, at a moment drawn afresh, each side has an opportunity to list everything again on the connection, so an entry the other side skipped or lost is heard without a new connection. An opportunity is passed over while the connection has frames queued, so a peer that reads slowly hears a repeat only once one finds the queue empty; changed roots are queued at once as ever. An entry that says what already stands does nothing at the receiver: it opens no walk, leaves a failed one on its backoff, and asks for no blob. A repeat is not suppressed by an equal listing of the peer's, which says what the peer holds and not what it heard. Repeats are no use of their connection (One connection per peer), so one that nothing else crosses closes; it is listed on afresh when it is dialled again. Where the peer's listed root differs from this side's, and differs from what this side last opened a walk for, it opens one grant walk over R on that connection: the Authorization kind of walk/1, Prefix only, over any R. A side takes listings of at most 256 resources it takes no part in per connection, so a grantee that syncs nothing still learns its grants, and a stranger cannot make it walk more. At most eight grant walks with one peer run at once, and the rest wait in order.

Before its first store observation a node cannot tell what it takes part in, so every listed resource counts against that bound, and one skipped there is heard at the peer's next repeat. A node assumes that its peers repeat: against a build that does not, what was skipped is heard only on a new connection. What was kept of such a listing needs no repeat: at the observation the node lists what it holds, and the peer walks where that differs; and the node's own walks, which could not start before it, are retried at most a minute later. The observation gives back, once, the slots charged for resources the node turns out to take part in; those charged for unknown ones, then or later, stay charged until the connection closes, so repeats neither evict nor add anything.

The sender of a walk is a participant of R, and the receiver receives. A side joins at most sixteen grant walks one peer opened at once, and charges a walk a peer opens over an R it takes no part in, on a link not peered for R, to that peer's budget of 256 such resources, the same bound its listings meet, until the connection closes; past either it refuses the stream. Each received grant goes through the walk's gate: a grant over another resource is skipped, and so is one that does not name this node when this node takes no part in R and the link is not peered for R, before any signature is checked. A kept grant lands only once R's descriptor is resident and the grant starts at one of R's roots; until the descriptor arrives it waits, its signatures checked, in bounded memory (256 grants per sender, 1,024 and 1 MiB in all; a sender over its share loses its oldest, and when all are over, the sender holding the most does), and one whose descriptor turns out not to validate it is dropped. Skipped and pending grants neither fail the walk nor enter its agreement, so the next walk offers them again, and the walk keeps each as a leaf of its membership proof without its bytes; nothing negative is recorded, and absence of a grant revokes nothing. A waiting grant is forgotten when the last connection of its sender closes.

A pending grant has only R's descriptor fetched, over blob/1 from its sender first. What a grant stored here still needs, R's descriptor (with R's name, once the descriptor is resident) and every definition it names, is fetched in one request, from the peers that listed R first, then from the grant's root and delegated keys among connected peers, whenever the grant is relevant here: it names this node, this node takes part in R, or a connection is peered for R. A grant landed through that gate therefore remains eligible for completion, and a connection newly peered for R asks that peer first. A refused peering request's definitions are fetched the same way. For remote walk arrivals, including grants settled from Pending, nothing a grant's steps name is fetched before it starts at one of R's roots. Local imports and pile merges sit outside that network acquisition gate: relevant grants already stored here may have definitions fetched before root validation, but confer no authority before validation. Definitions and descriptors are policy metadata, fetched under the same 1 MiB bound.

Every grant walk's end reaches the grant exchange, including one that never started. A walk that failed, was refused or could not start, because one over R with the peer was running among other reasons, opens again on the same connection after a backoff of one second, doubling to sixty, while the peer's listed root still differs; a confirmed walk or a root change resets the backoff, except that a confirmed walk keeps a retry already due and the backoff of a walk whose pending grant may still be given up. A pending grant given up (evicted, or its descriptor found nowhere) reopens its walk the same way, and a definition found nowhere is asked for again on the same backoff, so neither repeats faster than it. A node that becomes a participant of R walks R again with every peer whose listed root differs, so the grants it skipped while it took no part arrive. Nobody dials on a grant's behalf: a grantee no connection reaches is reached by discovery (Neighbours).

Credentials remain the peering request's: each is a prefix of the asker's own evidence naming itself, computed when sent. The grant exchange does not land them.

Blob transfer is lazy and bearer-addressed

A records push does not carry descriptor dependencies, payloads, metadata, attachments, or derived artifacts. It transfers lattice evidence, not those bytes; only a references push between two Full neighbours fetches blobs, and only those the sender holds in that collection. The separate bounded host metadata warmup described below is not part of a push. A resolver can then select the cheapest resident support-equivalent cover and request only the missing immutable handles that matter to that computation.

Knowledge of a full content hash H is the read capability for those exact bytes and the secret needed to discover them. Publication and lookup derive a full-width opaque locator under a random 32-byte context key:

L = BLAKE3(LOCATOR_CONTEXT || H)

The input is exactly one 64-byte BLAKE3 block, so a locator costs one compression. Until generation 27 it was a derive_key over a context string, which cost two; the locator is computed for every resident blob on every index build, so the difference is paid many times.

This is not encryption or protection against guessing the exact blob content. Someone who can guess those bytes can compute both H and L and confirm a matching provider token. Confidential low-entropy content needs encryption; the additional locator hash prevents disclosure of H from a copied L, not reconstruction of H from already-known or guessed bytes.

Every served resident blob may renew a soft lease at L on nearby XOR-DHT nodes. The lease carries the token keyed(provider; H || TOKEN_CONTEXT): keyed by the provider's authenticated endpoint ID, over H and a random 32-byte context, one block. A requester who knows H rejects forged candidate entries before dialing; the directory learns neither H nor collection membership.

An exact GET sends only L. The provider first proves knowledge of H with keyed(provider; H || requester); only then does the requester answer with keyed(requester; provider || H), and only then do bytes flow, checked against H on arrival. Each proof is one block and binds both authenticated endpoints. H sits on opposite sides of the two messages, so while H is secret a requester that knows only L cannot echo the provider's proof back, and the proof a provider hands out is not the requester proof of the reversed connection. The separation rests on H being secret, not on algebra: an H equal to an endpoint identity would make the swapped pair coincide, but such an H is public anyway. An exchange whose two endpoints are the same identity authenticates nothing and is refused.

When a DHT node answers FIND_VALUE(L), it also consults its already-installed, snapshot-coherent L→H index. If L is resident there, it returns its own endpoint-bound token without waiting for a PROVIDER_PUT. This deliberately extends the old lease-only answer: one reply slot is reserved for the resident self hint and any stored self entry is deduplicated. At most 63 other live leases follow in peer-ID order; when 64 are available, one chosen uniformly at random makes room. Without a resident self hint, the usual limit remains 64 leases.

Each directory node keeps a bottom-k sample of every key's publishers rather than its first arrivals. It ranks each (key, provider) pair by BLAKE3 keyed with a salt it draws once at start-up and never sends. A key may store an even share of the remaining membership budget, never less than one 64-entry reply and never more than 1024, which bounds what one request walks. A newcomer to a key at that cap is kept only if it ranks below the key's largest-ranked member, which it replaces. A shrinking cap trims a key's largest-ranked members when the key is next touched. A renewal keeps its place. Arrival order therefore does not decide membership, renewals cause no churn, and the K replicas of a key keep independent samples. Because the salt is secret, a publisher cannot choose identities that rank well. A key storing more than 64 members answers each request with a fresh uniform sample of 64, so repeated requests reach every member.

This is a query-time answer, not a new lease or publication attempt. It reads no payload, creates no WANT or collection authority, and still works with a zero announcement budget. A missing or withdrawn serving snapshot supplies no self hint; independently stored leases remain ordinary soft hints. The blob locator namespace does not synthesize collection-participant hints from a resident descriptor. Client replica selection, token verification, and the mutual bearer GET are unchanged: a known holder outside the selected DHT replicas is not probed as a fallback. Remote publication is still needed when the holder is not itself one of the selected replicas.

A returned self token therefore does not demonstrate that any publication occurred. Foreign entries in this host's replies still come from retained advertisements. The blob_directory diagnostic reports valid self and foreign token counts separately, alongside its existing totals, without logging handles or tokens. These classify hint sources, not cryptographic publication receipts; neither category proves that a subsequent GET will succeed.

A lookup is one FIND_VALUE(L) per hop. Each authenticated reply carries the responder's K closest verified routes and its hints for L, so no directory round follows routing: every replica the lookup reaches has already answered with its hints. Named referrals remain unverified candidates until they answer in turn. The requester checks every token and drops a hint whose token does not prove knowledge of H before any dial. The local directory answers like a replica's when the first authenticated reply, or the closed lookup, places this endpoint among the key's closest K; no cold lookup starts from a retained local provider lease before routing progress. Publication runs the whole lookup and puts to the closest K responders, ignoring their hints. Collection discovery, which supplies the last tier of a collection's peering candidates under the descriptor's own locator blob_locator(C), runs the whole lookup and takes the union of every verified hint.

An exact-H fetch starts a verified provider as soon as a reply names it, rather than waiting for the lookup to finish. Lookup requests and exact provider GETs share three concurrent request slots. While routing is open, provider GETs occupy at most two, leaving capacity for fresh routing; a usable provider takes the next such slot. Two progressing acquisitions leave only one routing slot in the same unchanged routing window; this is not a proof of equal discovery coverage under every timing pattern. Empty early hints do not end a lookup whose routing remains open. At most 64 distinct providers can be attempted per fetch. Duplicate hints never spend another attempt. Pending providers are ranked among the hints received so far, bounded by the remaining attempt allowance, by keyed(salt; L || provider) under a salt the requester draws once and never sends; collection discovery ranks its union the same way. A public rank such as the provider's XOR distance from L would let a provider grind an identity that every requester tries first. A later better-ranked hint can replace pending work, not an already-started request. The transient attempt subset is therefore deliberately arrival-sensitive; it need not equal the closest 64 in the final reply union. Collection discovery still waits for its canonical, reply-order-independent union.

This removes routing's final barrier when early evidence is useful, not every possible head-of-line delay. Three stalled requests can still occupy the shared slots; in particular, two stalled provider GETs and a stalled lookup request keep a later replica's hint from arriving within a shorter caller deadline. An early large set of valid but unavailable hints can also exhaust the 64-attempt cap before a later useful hint arrives. The caller's existing end-to-end timeout, per-operation deadlines, pooled-connection cancellation rules, provider-token checks, mutual bearer proof, body-receive memory bound, and final hash check are unchanged. Routing expiry drops only issued lookup requests; their hints are then unknown, so a fetch that found no verified hint reports the lookup incomplete rather than the blob absent. A progressing body continues within the original caller deadline. Early verified success or caller cancellation drops all owned futures without fabricating protocol failures or closing healthy pooled connections. No provider hint or result is persisted by this scheduling step.

The direct stream also keeps H off the wire. The requester sends only L. The provider resolves L in its resident locator index and proves knowledge of H first, binding the proof to both authenticated endpoint IDs. Only after verifying that proof does the requester send its role-separated proof of H. The provider then returns bytes, which the requester hashes and compares with H. A party which merely copied L therefore cannot learn H from a requester or successfully serve bytes for it.

Exact body reception admits at most sixteen active body futures. They share one 1 MiB scratch buffer, held only for a bounded ready-read batch and its local write, never while awaiting the network. Each batch also has a read-poll limit so a stream yielding tiny fragments cannot monopolize one executor turn. Received bytes grow a temporary file; one immutable mapping backs the completed Bytes. An idle or partial stream therefore does not block a healthy body from using the scratch buffer.

The existing per-body bound is 64 GiB. A separate process-wide 64 GiB temporary backing budget accounts in rounded 1 MiB units, including partial files and completed Bytes until their last owner drops. Retaining many tiny completed bodies can exhaust this budget too. Body-slot and backing-budget exhaustion are local, immediate errors, not evidence against the provider: they preserve its pooled connection for a later attempt. Cancellation, truncation and other failures return their resources. Network waits remain inside the caller's deadline; synchronous local file writes cannot themselves be preempted by that async deadline. These limits neither guarantee throughput nor replace the final comparison of the received bytes' hash with H.

Fetching neither asserts collection membership nor activates a commit. It does not consult C or READ(C), and creates a durable WANT only when the caller asks the WantStore to record Blob(H). Provider leases are bounded soft state and may disappear without changing semantic data or local retention.

Directory proof-node reuse experiment

provider/directory_model.rs is a wire-free comparison of signed entry leases and signed immutable inventory roots. Its shared_proofs.rs extension retains the same membership/lease PATCH repair and the same final inclusion verifier. Only the proof transfer changes: each root-bound membership carries an ordered list of node digests; a receiver fetches missing native PatchNode bodies from that selected support's proof and retains at most 4,096 validated nodes in a PATCH<32>. It neither asks for a full inventory nor consults a global member registry. The parent's complete-topology placement oracle remains an explicitly synthetic comparison, not an implementation of distributed responsibility.

Node presence supplies bytes, never authority. An all-hit proof must still match the provider, member, signed range, exact inventory root and live lease, and must pass the entire canonical node walk. The cache is populated only after successful membership admission. Original signed absolute expiry survives forwarding and cache reuse; changing the inventory requires new root-to-member associations. The model assumes one trusted zero-skew absolute clock and already-selected first-byte responsibility ranges; it does not solve either clock recovery or dynamic ownership discovery.

The first Stars run (2026-09-07 23:24 UTC, base d0db6da2, rustc 1.98.0, unoptimized tests with debug information disabled) used 256 deterministic opaque members and then added one member. The partial receiver selected 132 of the original members, then 133. Both representations produced identical content and lease roots, active sets, signature counts, repair-request counts and complete proof-validation work:

PhaseNew root/member bindingsVerified nodes / shared referencesShared node bodiesShared body bytesInline proof bytesShared proof bytes
Cold25667332346,7511,779,93678,879
Unchanged renewal000000
One-member growth25767737,0071,787,13729,024
Partial cold13235016827,587918,47444,295
Partial growth13335437,007925,67518,564

These are concrete model field bytes, not measured network traffic. Each visited node contributes its actual key/representative width and fanout using the existing collection node response field layout; a test cross-checks actual codec output for its supported 32-byte keys. The model's inventory keys are 64 bytes. Inline paths send one body per verified node. Shared paths send one 32-byte reference per node, one explicit 32-byte request per missing body, and that body; both include one path-length byte per support. Common signed lease, root/member, membership/lease repair and transport framing bytes are excluded, as are latency and any cache-miss request scheduling effects.

Every phase admitted one signed lease. Even unchanged renewal verified that new signature, though it sent no membership support. Growth still checked 41,806 child summaries across the complete 677-node proofs and stored 257 new root-bound entries; the three new bodies are a byte-reuse result, not reduced validation or membership churn. Reconstructing the original independent Vec paths also makes no resident-memory or allocation saving claim. A partial receiver retains only selected leaf bodies, but branch representatives and sibling summaries still disclose information outside its responsibility.

Run cargo test --locked --offline -p triblespace-net --lib provider::directory_model -- --nocapture for the eleven focused tests. Lease expiry despite cache hits, root grafting, malformed miss bodies, eviction, and the original budget invariants are covered. There is no production wire, host, routing, persistence, or deployment change in this experiment.

Routing is process state

Peer::new(store, key, config) starts a production host immediately, as a long-running sync daemon needs. Peer::lazy(store, key, config) keeps the same store API but defers its host until the first absent-handle acquisition, explicit network fetch, or collection activation. Resident reads, snapshots, local writes, flush, and close start no thread or endpoint and build no serving/bearer index. Its snapshots are still exactly the backing store's resident snapshot type. Acquisition returns local observation errors rather than treating them as misses, and a host startup failure leaves resident operations usable. Startup is attempted once per peer; opening a new peer is an explicit retry. Activation logs startup failures without activating the collection, while acquisition returns the error.

A foreground H-only reader need not activate any collection. It can use a distinct ephemeral transport key, its pile daemon's key as its first contact (PeerConfig::daemon), and a zero provider-publication budget without borrowing its authorship signer's or the running daemon's endpoint identity. Network acquisition requires an enabled Tokio runtime at the calling async boundary; local-only operations need no runtime. Puts and landed walk values become visible in a fresh local observation without an automatic disk flush. Explicit close withdraws host snapshots and closes the backend at the final persistence boundary; manual flush remains available at an application's chosen durability boundary. Neither operation starts networking or authors WANT. Failure to obtain a fresh store snapshot is returned by try_refresh and withdraws the previous serving observation; existing frozen readers stay frozen.

Where peers come from

A host's peers come from its pile, never from configuration; there is no list of peers to give it. The keys a selected collection's content names, the signers of its records and its participants in the grant index, are its first peering candidates (tiers 1 and 2 under Neighbours), dialled by key through iroh's address discovery. TLS authenticates every connection, so each connection a host dials makes the key it dialled a verified DHT route, and the provider lookup at the collection's next draw has a contact: a host whose only route is the signer of a record it holds finds the collection's other providers, tier 3, through that signer. A connection a host accepts makes no route, by opening or by the requests it carries: anybody can dial with a fresh key, as a process that asks its pile's daemon with a key per call does.

On each peering tick, a live connection whose key already occurs in a currently selected collection's candidate order is re-noted as an unverified DHT candidate, irrespective of which side dialled. This reuses the existing peering order without rescanning records or keeping another peer inventory. Re-noting respects the routing failure cooldown and does not mark a peer verified; normal direct-response promotion still applies. An unsolicited inbound caller absent from those orders still makes no route. Thus an inbound reconnection to a peer the pile already selected can restore publication after a disconnected lookup removed its route.

A process whose pile names no peer, such as a foreground reader, has one first contact: the pile's sync daemon. PeerConfig::daemon names it by its key, the key the pile's configuration is written under; the daemon itself leaves it unset. The host notes that key as a candidate route and teaches its endpoint the addresses the daemon recorded (Where the sync daemon listens), which Peer::new reads at once and a lazy peer reads when its host starts; with no addresses recorded, iroh's discovery finds the daemon by key. From there the daemon's DHT replies lead on.

A lookup request that fails or goes unanswered within the routing window removes its route and cools the identity for a minute, so gossip cannot restore it at once. If the connection to that peer is still up, the route only cools: a responder that has fallen behind under load is slow, not gone, and the route returns when the cooldown lapses. Routes otherwise come back through a lookup, a provider PUT or fetch, a newly dialled connection, or re-noting a selected peering candidate whose live connection remains. When a lookup finds no eligible route at all, the host first notes its daemon again, subject to the daemon's own cooldown. If there is still no seed, the cooling routes of its live connections are queried as fallback seeds; each route is selected as a fallback at most once per ten seconds. That spaces selections, not requests: a fetch or a lookup waiting for its first response can outlast ten seconds, so two fallback requests to one route may overlap. A fallback route keeps cooling: it is not advertised in this host's replies and is not offered as an ordinary seed until it answers directly, which clears the cooldown, or until its ordinary 60 s cooldown lapses. The fallback only uses routes the table already holds, so an accepted connection still makes no route. Without the fallback, a burst that timed out every route would leave provider publication paused until something dialled a new connection, while recon kept syncing over the connections that were still open.

Endpoint addresses and relay URLs only provide iroh transport paths; they are not peering candidates, collection participants or collection rendezvous identities. DHT referrals and the peers a host reaches itself may become live routing candidates, but there is no synchronized PEER roster and no durable peer record in the current protocol. Liveness, connections, peerings, candidate orders, DHT buckets, and provider leases are operational soft state; restarting may forget them without losing semantic data, and each selected collection draws its candidate order afresh. The pile already holds what a restart needs to find its peers again: the keys its content names and, for a process beside the daemon, the daemon's addresses.

Restart contact experiment

routing/warm_start.rs is a test-only experiment, not enabled host persistence. It runs the real RoutingTable and IterativeLookup with synthetic lookup responses. Its one durable relation is a bounded set of previously authenticated endpoint identities, canonicalized with PATCH<32> and packed into ordinary RawBytes. A temporary-file write, sync, reopen and restore exercise the byte boundary. The test makes no new pile record, replicated roster, schema identity, JSON catalog, or provider advertisement. The host currently has no learned-peer persistence to reuse: a fresh route table holds at most the pile daemon's key and grows from the connections the pile's content opens; retired PEER records remain inert. The experiment's fixtures still seed the table with a fixed bootstrap identity, which stands for whichever first contact a restart has.

The maximum payload is 256 * K * 32 = 163,840 bytes, before any filesystem overhead. Parsing reads at most that bound plus one byte and validates the whole canonical endpoint set before admission. Restore uses ordinary candidate admission, so self, bucket bounds and existing local failure cooldowns still apply. Neither an old authenticated contact nor a content-addressed cache blob is current authentication, honest routing behavior, or collection/blob authority. Unqueried referrals and failed routes are not exported. Restored candidates do not re-export themselves as fresh evidence. No H, locator, token, lease deadline, or process-local monotonic timestamp appears in the packed relation.

Here, "authenticated" follows the table's existing Verified state, not a new serving-longevity claim. The production host promotes only peers it reached itself, a key it dialled or one that answered its request, and never an inbound caller such as an ephemeral foreground client. The experiment does not change that provenance.

The adverse fixtures distinguish three things: a dead configured bootstrap can make cold discovery impossible while surviving hints still find a route; stale closest-K hints can exclude a healthy configured seed; authenticated peers can answer successfully while retaining a closed, unhelpful topology. Existing failure cooldowns help a second lookup only in the dead-peer case and do not survive another restart. A test-only first wave reserves one configured DHT seed alongside at most ALPHA - 1 warm candidates, then admits the deferred closest-K set into the same lookup. This is DHT discovery, never direct-peer blob fallback. It adds at most K deferred identities and one admission phase, not durable state.

The first-wave fixture has one configured seed and instantaneous synthetic responses/failures. It does not settle multi-seed scheduling, the real three- and ten-second budgets, transport address rediscovery, snapshot replacement cadence, or handling a crash during replacement. Node churn and warm knowledge must be measured before selecting those policies. Endpoint IDs alone cannot help when no address discovery/direct route remains. Provider-directory deadlines and publication cursors are deliberately excluded: restarting put would renew a lease, and a saved publication cursor does not prove remote leases survived. An immutable cached answer needs its original expiry and provenance separately; reusing a serialized Mono or snapshot generation as freshness is invalid.

Run the focused tests with cargo test -p triblespace-net --lib warm_start -- --nocapture; add --ignored after -- for the 1,024-node, 64-target measurement. Reported requests and logical waves describe routing work, not elapsed network latency, successful provider acquisition, or live-network availability.

The first Stars run (2026-09-07 23:04 UTC, base d0db6da2, rustc 1.97.1, unoptimized net/lib tests) trained one client on 32 targets, saved 100 endpoints in 3,200 bytes, then independently restarted it for each of 64 other targets. The 1,024-node fixture gives remote peers established XOR-bucket views; only the measured client restarts. The totals were:

Restart stateTargets reachedFIND_NODE requestsLogical waves
Cold, bootstrap live64/641,610601
Warm, closest-K64/641,521529
Warm, bootstrap first wave64/641,528529
Cold, bootstrap dead0/646464
Warm, bootstrap dead, first-wave policy64/641,589549

This is a 5.5% request reduction for the healthy closest-K fixture, not a universal cache speedup. A deliberately sparse 64-node line improved from 64 requests/64 waves to 20/7 with 1,568 saved bytes. Conversely, 20 dead cached contacts suppressed a healthy seed: cold reached the target in two requests, whereas warm closest-K failed after 20. The first-wave policy reached it in wave two but still spent 22 requests/eight waves completing the lookup. Twenty authenticated closed-view peers also suppressed discovery without any failed requests; the first-wave policy recovered that fixture in 21 requests/seven waves. These counterexamples make independent bootstrap opportunity a condition of future integration, not an optional cache optimization.

Live request scheduling

Inbound request streams wait for the process-wide permit while their connection holds them, within the per-connection bound of One connection per peer. Saturation resets only the excess stream and never closes the connection, whose recon/1 stream and other requests carry on.

The one connection per peer carries collection sync and bearer/DHT operations alike. Iroh's transport authentication binds each connection to its endpoint ID. There is no generic AUTH or SYNC_TEAM exchange: collection evidence goes only to a peer that passes READ(C) under the sender's evidence, and WRITE(C) only lets a writer that cannot read have its peering accepted so it can deliver. Exact bytes are gated only by the endpoint-bound mutual proof of H.

A refused peering is a frame, and a refused push is a reset of its walk/1 stream. Either ends only that request or push, not the connection, and cancels nothing unrelated. A malformed recon/1 frame closes the connection; a malformed walk/1 frame ends its push. A failed request stream invalidates the connection unless the failure stayed on that stream: the peer reset or stopped it, or the connection was already lost.

Concurrent callers for one peer share a single dial. Pending dial ownership is cancellation-safe: the final departing waiter removes a dial nobody completed, while the others keep it and can take over its cancelled initializer. This cleans up abandoned dials, not a new limit on simultaneous requests or detached transport handshakes.

For an active collection with a missing descriptor, the host owns one independent bearer fetch until its result reaches the bounded admission bridge. Later warmup rounds cannot spawn additional copies while that handoff is blocked. Removing the interest or dropping the host cancels the pending fetch; a completed miss or failed attempt permits a later retry.

That same owner performs best-effort metadata warmup for active collections, even before their descriptor is admitted and when they have no records. From a descriptor of at most 1 MiB it queries only UTF-8 name handles on tagged descriptor entities and typed definition handles linked by their resource-policy bindings. The warmup does not interpret the binding's authority or require it to be supported by this consumer. Unknown annotations, source descriptors, mapping parameters, proof paths, and record payloads are not traversed. This is acquisition, not READ or WRITE authority, and introduces no durable WANT.

At most four collection attempts run at once, in round-robin order over the active collections. Each warmup round examines at most 256 of them; ready resident-only attempts release their slot immediately instead of waiting for the next 30-second round, and a newly activated collection starts a round at once. Each owns a 30-second end-to-end deadline including admission-channel handoff; the descriptor read gets at most ten seconds. Extraction examines at most 256 typed rows and admits at most 64 distinct direct dependencies, with names first. Up to four children per owner run concurrently (sixteen child requests across these owners), each with a one-second end-to-end deadline. Every remote response is limited to 1 MiB before receiving its body; resident descriptor bytes are also size-checked before decoding. Existing exact receive-slot and global staging quotas still apply.

These are warmup limits, not schema validity rules or assertions of absence. An oversized descriptor or dependency, excess fanout, slow provider, or blocked handoff can leave metadata unprepared. No completion catalogue is retained; later rounds reobserve the store and retry. Ordinary foreground exact-H acquisition retains its existing larger byte allowance and deadline, and passive snapshots and resident-only stores do not acquire anything.

Foreground exact-H acquisition has one end-to-end deadline, normally ten seconds, including capability readiness, the cold dial of a first contact such as the pile's daemon, DHT lookup, and bearer GET. Its three-second routing window begins with the first authenticated replica response, not before that cold dial. This lets a healthy delayed first contact connect while a stalled secondary route cannot consume the whole remaining budget before GET. Background publication, collection provider lookups and descriptor warmups start their three-second lookup window immediately. A caller's shorter deadline still wins; progress does not reset either deadline, and no failed lookup starts an unbounded retry loop. When the routing window expires, issued requests still awaiting a reply count as failed learned routes. They cannot occupy every slot again on the next background attempt merely because cancellation preceded the dial deadline. Unissued candidates and partial authenticated responders are preserved; the daemon's route fails like any other. Each routing bucket also retains at most K local learned-route failures for sixty seconds, separately from its positive routes. Repeated third-party referrals cannot erase or extend that cooldown: it gates both seeds and reply candidates even when positive bucket retention differs from the lookup-local shortlist. Direct authenticated success clears a cooldown immediately; expiry permits a new probe. This is bounded, disposable liveness state, not authority or a permanent blacklist. This does not make a cold dial to a sole first contact that takes longer than three seconds fit the background window: if each attempt starts equally cold, background retries can still miss that endpoint. Foreground acquisition retains its separate end-to-end bound. Diagnostics distinguish a successful lookup with no provider hint from failure to reach a replica, a provider transport/protocol failure, or exhaustion of the end-to-end budget. A directory miss is an observation, not proof that H does not exist. Diagnostics do not log the bearer handle.

Lattice-aware sparse replication

The network does not force every replica to mirror every blob. Pushes of records carry foundations only; each host joins them into its own lattice:

COMMIT(C, a)       COMMIT(C, b)       replicated
       \             /
        MERGE(C, a, b, c)             this host's own node, never replicated

DERIVE(D, x, d)                       replicated: a foundation of D

A node receives the small semantic overlay and plans covers over its own resident merge results. Missing derived results are computed by the ordinary live ensure path, which may acquire exact missing dependencies and publishes missing DERIVE work only. maintain additionally writes this host's size-tiered MERGE work, which stays local. These operations take an explicit signing key; newly required derivation work needs target WRITE. Evidence and computation still converge by union; no central scheduler or query planner is required.

Durable WANT remains orthogonal operational policy. WantRequest::Blob(H) is the sole exact-content request. The reconciler performs KDF(H) discovery and the mutual bearer proof directly from its coherent store snapshot; no collection descriptor, repair overlay, or proof is involved. A successful landing satisfies the request, while a DHT miss or failed proof leaves it pending. Merge(C,a,b) and Derive(D,input) let one process state demand while a network or worker process fulfills it. WANT grants no READ, WRITE, or collection membership. Retained WANT records do keep their resident direct blob references alive through the normal record-root GC rules. GC never fetches missing references merely to retain them; dropping WANT records is an explicit rewrite/retention-policy choice.

Held blobs and replication policy

A collection replicated shallowly or in full has a held set: a positive PATCH of resident handles, kept by the store itself (triblespace_core::collection::held) for the collections Peer::set_replication selects in Shallow or Full mode. Building it reads every blob in the collection's closure, so it is also the scrub that finds a corrupt copy. Only Full publishes it: outside Full the serving snapshot reports it unknown, so no References exchange is admitted for it. A Demand selection, or an empty one, tracks nothing and starts no held-set thread. Tracking only grows: a collection tracked under an earlier Shallow or Full selection stays tracked after a move to Demand, but is no longer published. A mode change governs new admissions; References walks already admitted run to their end. Seeds are the blobs C's replicated records name -- the descriptor, each COMMIT's data and metadata archive, each DERIVE's output -- and the capability definitions named by the proofs C's authorization evidence keeps. That is the predicate the evidence applies (descriptor::validate_proof_evidence): a proof over exact C from one of C's policy roots. A proof over any other resource seeds nothing in C, whatever that resource's descriptor names. A descriptor that arrives after its proof lets the proof be judged on arrival; one that is resident but cannot be read judges nothing. A MERGE result is never a seed, and neither is a blob no record names. Reachability is conservative: an aligned 32-byte word is a child when that exact H is resident. It issues no network request, creates no WANT and remembers no absent word.

A blob is read for each collection that reaches it, and its children are those resident at that read; nothing remembers them. A blob C holds is read again only when a note reports it in C. A seed whose bytes arrive after its record is read on arrival. The late child -- resident only after its parent was read for C -- is caught three ways:

  • it is itself a seed of C;
  • a note reports its parent in C, which reads the parent again (a note that lands while the parent is being read reads it once more, against the snapshot that took the note); or
  • a Full neighbour holds it in C: its references push notes it held in C here too, however it arrived, and the receiver fetches it first when it is not resident. A note is routing evidence kept in memory: a reopened store forgets it unless one of C's records reaches H, and a note of a blob that is not resident when the next snapshot is taken is dropped.

Otherwise it stays out of held(C) until the index resets or the store is reopened, though it stays readable by its hash. Another collection that reads the same parent later holds the child, and C's set does not gain it from that. That is a stated limitation: there is no periodic rescan. Between two Full neighbours, a late child that one side holds through a seed or a note reaches the other side's held set by its next references push.

Every snapshot carries the held sets as they stood when it was taken, and they never change afterwards. Taking a store snapshot reads no blob for the held sets. (A peer's snapshot still reads blobs after it releases the store mutex, when it rebuilds the serving view: collection descriptors, configuration and capability definitions. Those reads do not repair.) The held sets are a semi-naive fixpoint over the roots (seeds and notes), kept by differences: each snapshot writes what arrived since the previous one into the collection's frontier, the set of blobs reached and not yet applied -- every seed of a new record that C does not hold yet, blobs that could not be read and have become resident, notes from references pushes -- selects the seeds of newly tracked collections from their records, and notes whose proofs are to be judged. The driver (HeldWork, a peer's held-set thread) does every held-set read, in steps against the latest observed snapshot, never holding the index across a read. Its time budget is cooperative: it is checked between steps, and a blob read or a judgement of proofs runs to its end first. It judges proofs, which reads the collection descriptors they name, and computes closures, which reads every blob they reach. It extends built collections first, and building collections take turns, one budget's worth of steps each, so a small collection is not held back by a large one. A newly tracked collection is unknown until its first closure is whole and its proofs are judged; a built collection's set grows as the driver reaches what arrived, so an observation can be handed out ahead of its new records' closures. Nothing in sync needs it otherwise: held sets are allowed to lag. A store nobody drives builds nothing, and its tracked collections stay unknown. The driver applies each frontier entry once: a readable blob joins and its children not held enter the frontier; a blob that cannot be read, absent or resident and failing to read, stays out, and its parents may join. So a held set is closed under readable children only, and no consumer of it relies on more (the walk, the host, the References exchange and exact-H serving read it as positive inventory). A blob that could not be read is read again only on positive new evidence: it became resident, or a note names it or a parent of it, a held parent included. Residency alone is not evidence, since it cannot tell persistent corruption from a new valid copy, so a corrupt blob costs one read per collection and never a loop; a valid copy that lands beside a corrupt one by any path but the held-set thread's own repair waits for such a note. A read that fails while evidence for its blob arrives is applied after that evidence and reads the blob once more. A held blob whose second read fails stays held; what the note would have tried under it waits for another note. No held set is computed before the store has been observed whole once: a step of a climb observes a prefix, where a parent can precede its child and would make it a late child, so every held set is unknown until a step reaches the end. Because the driver reads a blob against the latest snapshot rather than the one that brought it, a child that lands after its parent but before the driver reaches the parent is not a late child. A collection whose records the store cannot select stays unsettled -- absent from the held sets, never published short -- and is selected again at the next observation. A snapshot that lost a blob its predecessor had resets the index: the held sets, frontiers and the blobs that could not be read are forgotten, and every collection is recomputed from its seeds and notes as if newly tracked. Short-lived readers of the same pile track nothing.

pile net sync repairs what its held-set thread reads. Its store is Covered<Repairing<PileFile>> (triblespace_net::peer::Repairing), and in Shallow or Full a read by the peer's held-set thread whose blob is resident but has no copy that validates fetches the blob by hash, waiting at most the interactive fetch deadline. The verified bytes land beside the corrupt copy under the store mutex and are read back from the snapshot that lands them, so the scan reads the pile's bytes, and the blob joins the held set. An absent blob is never fetched there, each handle is tried at most once per held-set thread (a failed attempt counts too, and a held-index reset does not clear that record), and no other thread repairs: a store snapshot reads no blob for the held sets, and every other reader of the same snapshot type may read with the store mutex held or inside an async runtime, where a landing would take the mutex again or block the runtime on the network. The fetch deadline bounds the network wait only, not the lock, the put or the read-back. A fresh Demand selection starts no held-set thread, so nothing changes there; a Demand read repairs at the point of read, through the peer snapshot's reader. A peer that moves to Demand after Shallow or Full keeps the held-set thread it already started.

Two Full neighbours push each other their held sets like any other tree (Walk streams). Prefix prunes independently held overlap with matching commitments and completes with DONE/LANDED; cached RIBLT proves the held-set difference and uses the gated FIN semantics above. Unchanged equal sets need no cached cells, but still require complete ROOT writes and both clean FINs.

This set is partial and conservative. A readable aligned word is not a typed semantic reference; an absent word says nothing about global residency. For encrypted blobs, H identifies the stored ciphertext; neither READ(C), this set, nor the exact-H protocol supplies an application's decryption keys.

Peer::set_replication(mode, collections) selects acquisition independently of activation and authority. pile net sync --replication applies one mode to every selected collection:

ModeBlob acquisition
Demand (default)Explicit WANTs only. No new held sets are tracked (collections tracked earlier stay tracked but unpublished), and peerings carry an unset full flag.
ShallowAlso direct blob references of the named collections' foundations. This side keeps held sets for them without publishing them.
FullAlso everything a Full neighbour holds in each named collection, by its references pushes. This side keeps held sets for them and peers with the full flag set.

These reconciler modes are separate from the bounded metadata warmup of active descriptors described above. Demand still does not hydrate record payloads without an exact WANT.

Naming a collection for replication does not grant READ or WRITE and does not activate it. Structurally valid but WRITE-inert records can name direct roots; acquiring their bytes does not admit those records. Full mode never sends aligned payload words to the DHT to choose speculative requests. Local aligned-word scanning builds the positive held set only, and a references push brings only handles a Full neighbour holds, fetched directly from that neighbour. Unavailable neighbours and failed fetches prevent a promise that Full has reached complete closure, and an equal held root says only that two neighbours hold the same set.

Exact WANTs and direct roots use the existing KDF(H) discovery, mutual bearer proof and final hash verification. A shared eight-wide fetch window serves one eligible class's finite round under its original deadline. Ready verified bodies land individually, without a per-body flush or serving rebuild; Peer::reconcile() publishes one snapshot after the completed batch. Cancellation drops owned network futures, leaving already landed bytes for the next refresh. Unstarted work is not falsely fulfilled, and failed exact requests retain bounded retry backoff.

Missing work is derived from known required handles and the current snapshot, not a retained mirror of durable answers. Selected direct roots are checked by presence: a root the snapshot's blob index holds counts as held, and hydration reads no payload. The handle in the index was computed when the bytes were written. So a root that is present but corrupt is not missing to hydration, and hydration does not fetch it. Validation stays at byte use. Ordinary reads keep corruption detection and valid-duplicate fallback. Exact WANTs, peer acquisition and Full References admission still check with a validated read, so they can still fetch a replacement for a corrupt copy. Explicit close remains the persistence boundary. None of these scheduling bounds is a measured throughput or end-to-end completion guarantee.

Wire surface

The ALPN is /triblespace/pile-sync/36, an unreleased generation: generation 35 plus resumable cached RIBLT (a resume flag on RIBLT_ROOT and the new RIBLT_RESUME frame, Resuming a cut-off exchange), which a generation-35 peer would reject as malformed; 35 is refused at the handshake. Generation 35 is the accepted semantics of generation 33 minus the two-way Prefix walk of data, which it refuses (One path per direction). Generation 34 is a different, deployed and rejected profile (a carried agreed tree and asymmetric RIBLT roles), not an ancestor of 35; both 33 and 34 are refused at the handshake. Generation 33 separates the COMMIT and DERIVE trees, and replaces the grant digest exchange with grant gossip by participation: GRANT_ROOTS listings on recon/1 and a grant walk per resource on walk/1, Prefix only, whose receiver skips what it cannot use and lands a grant only once its descriptor validates it; the digest kinds 0x02 to 0x05 are skipped as unknown. Generation 32 added explicit one-way Prefix offer roles and HAVE/eager typed bodies; generation 32 and earlier are refused at the handshake. Generation 31 added the explicit OPEN algorithm discriminator and cached whole-component RIBLT profile. Generation 27 replaced the bearer locator, directory token and exact-GET proofs with one-block constructions, so a generation-26 peer cannot connect at all; generation 28 exports foundations only, so collection sync never carries a MERGE; generation 29 replaced the gossip wake plane and the repair/0 session with one connection per peer and its recon/1 stream; generation 30 moves collection sync off recon/1 onto walk/1 pushes, so a generation-29 peer, which announces and pulls on recon/1, is refused at the handshake like every older one. Within the ALPN, each stream's first byte selects its layout (One connection per peer): peerings and grant listings run on recon/1, and every collection tree and every resource's grants travel on walk/1 streams. Bytes that opened earlier layouts are not accepted: 0x0E was the collection repair session that pushes on walk/1 replaced, 0x0D its record/AUTH-only predecessor, and 0x06, 0x07 and 0x0C the DHT operations now under dht/1. A stream that opens with one of them is reset as an unknown tag. Mixed-version collection sync is not supported: deploy a cohort together.

OperationStreamByteMeaning
FIND_VALUEdht/10x0Fone iterative XOR-DHT lookup step: the K closest verified routes and bounded provider hints for one opaque key
PROVIDER_PUTdht/10x06renew this endpoint's opaque provider lease; the answer says stored (0x00) or not stored (0x01)
exact GETblob/1locator-addressed, mutual-proof exact bearer transport
pushwalk/1one bidirectional collection-kind delta, or one resource's grants, pruned by matching prefix commitments

FIND_VALUE answers in one reply what FIND_NODE and PROVIDER_GET (0x0C and 0x07) answered in two rounds. Every recon/1 frame is listed in One connection per peer, and every walk/1 frame in Walk streams.

There is deliberately no store manifest, global inventory authorization, push-broadcast record, receipt RPC, remote mutable head, or unpublish operation.

The CLI names local policy only. The collections come from the pile's selection (Choosing what to sync) and the peers from the pile's content (Where peers come from):

trible pile net sync DATA.pile \
    [--key EXISTING_SELF_KEY] \
    [--replication demand|shallow|full] [--bind IP:PORT] \
    [--provider-publication-budget ATTEMPTS] \
    [--health] [--health-collection HANDLE] \
    [--telemetry-collection HANDLE] [--telemetry-worker NAME] \
    [--duration SECS] [--quiescent-for SECS]

There is no --peers or --collection flag, and no direction flag: which way a collection flows between two keys follows the send flags of their peering, which follow admission. At startup the daemon prints its node id, its bound sockets and the number of selected collections, and prints that number again whenever the selection changes.

--bind binds the endpoint to exactly that local socket instead of iroh's default sockets. At startup the daemon prints bound: <ip:port>[ <ip:port>...] on stderr, the sockets it actually bound, and prints the line again whenever they change. It records the same sockets in the pile's configuration (Where the sync daemon listens) on its first pass and after every change, so a process that opens the pile and names the daemon's key reaches it with nothing copied by hand. trible pile net identity --key KEY prints node: <endpoint id>; there is no ticket to print, since nothing takes one. After each pass the daemon prints one plain line on stderr per peer with which at least one collection's last push was confirmed or last receive landed whole since the previous pass: reconciled with peer <endpoint id hex>: <n> collections.

The long-running daemon uses one existing durable key for its authenticated endpoint, the configuration that holds its sync selection and its addresses, health reports and telemetry. Key resolution is --key, then TRIBLESPACE_KEY, then self.key beside the pile's lexical path; select, unselect and selection resolve the key the same way. There is no independently configured network or reporting key. Maintenance uses that same local key for its work and telemetry; worker labels distinguish processes, not identities. This CLI convention does not change the separate ephemeral H-only foreground-reader use described above or grant any authority.

Whatever a node selects, it may publish provider leases for and serve resident exact blobs under bearer handle H, and may service durable Blob(H) WANTs through KDF(H). The replication mode does not participate in collection identity or change which evidence is semantically valid.

Before opening the writable pile or starting its peer, pile net sync registers Unix SIGINT and SIGTERM handlers; other platforms retain Ctrl-C handling. Stop drops in-flight awaited reconciliation or the idle wait, then withdraws the serving observation and explicitly closes the backend. It does not change request deadlines or the application's clocks. Synchronous work and close are not preemptible, so this cooperative boundary is not a shutdown-time bound.

Convergence and failure model

  • Concatenation, local insertion, and landing from pushes perform set union; held sets remain replaceable local observations.
  • Duplicate records collapse by their complete canonical value; fixed-width indexes and the wire use a full-width BLAKE3 fingerprint of that value. Native capability proofs continue to collapse by their cryptographic identity.
  • A lost push does not consume the only opportunity: in every interval of at most a minute, each collection's timer pushes its trees again to each neighbour it sends to, and a push that did not land forgets its confirmed agreement, so the next delta starts without that local base and matching prefix commitments prune what already landed. A neighbour lost to a failure is replaced by the next candidate in the collection's order.
  • An invalid record, proof, subtree commitment, or blob fails its push or fetch and cannot retract previously accepted evidence; a malformed recon/1 frame closes its connection, and a malformed walk/1 frame ends its push.
  • Missing selected output/dependency blobs leave that realization unavailable; complete finer members remain usable. Missing witness records leave support unknown, not empty, and do not authorize cross-collection disclosure.
  • A DHT miss says only that no live provider was found; it says nothing about whether H or its collection exists.
  • Concurrent writers and offline replicas reconverge without preserving pile byte order.

The result is two orthogonal elemental loops: per-collection timers plus admission-gated pushes say what changed in a collection and, between two Full neighbours, which blobs a peer holds in it, while KDF(H) discovery plus mutual bearer proof retrieves only the immutable bytes the local lattice resolver decides to use.

Observing replica health

Peer::health() and NetSender::health() expose a bounded immutable sample of work the host already performs. Sampling does not run a probe or advance the host's observation clock. For each collection and peer the sample keeps the ends of both directions, the pushes of this side's trees and the pushes of the peer's trees received here (when the last one ended, whether it ended well, and how many did either way), with the roots of the record trees the peer confirmed and the roots that landed whole here. Grant walks move none of these. Semantic health compares records and grant agreement, not blob cache equality: Demand and Full peers can legitimately cache different bytes, held sets are not part of the record root, and the references tree is in neither set of roots. Held-set churn neither creates semantic stalls nor extends their progress grace. HealthSnapshot::pair reads a pair as Current when, where this side sends, the peer confirmed the records this side serves now and has listed its root of C's grants, and, where it receives, the last COMMIT and DERIVE pushes from the peer landed whole within the age limit and the peer's listed root of C's grants is this side's; Behind names the direction that is not; and a stale sample, a changed local frontier, a withdrawn serving snapshot, an ended peering or no end within the age limit leaves it Unknown. Grant agreement carries no age: a listing is the peer's standing statement for the life of its connection, so two hosts that agree on grants stay Current without walking them again. Receiving records is progress evidence, not proof they have already become admitted. HealthSnapshot::peerings lists every peering on an open connection. HealthSnapshot::grants lists, per resource R (every active collection, and every R listed to or by a connected peer), this side's grant root and count and, per connected peer, its standing listing, the agreement of the last confirmed grant walk, its walk ends, and the grants it delivered that were skipped, waited for their descriptor, or were walked again after a failure. HealthSnapshot::named_unselected lists the collections an indexed grant names this node on that it does not select: what it was granted and does not sync yet. pile net sync prints a line per resource and peer while their listed roots differ, and once when they agree again.

The long-running CLI can publish these observations as native facts using pile net sync --health. Reports use the same key as the endpoint. An explicit --health-collection <HANDLE> also enables reporting into an existing admitted source collection; otherwise the node's private swarm-health collection is used. The health collection is deliberately not activated for sync, so a broken network cannot prevent the local reader from seeing its own warning. A new report is published every minute with created_at only: freshness is reader policy, not a producer-asserted lifetime. pile net health --max-age <SECONDS> accepts a maximum sample age (default 180 seconds, also configurable through TRIBLESPACE_HEALTH_MAX_AGE_SECS). Readers use the creation interval's upper bound plus that duration and ignore any legacy expires_at annotations; future-created reports remain unknown, and zero accepts no arrived sample as fresh. Conditions use stable episode identities until their state or attached quantitative evidence changes; a reader can acknowledge an unchanged alert once without acknowledging each heartbeat. When the reader's age limit is reached, the report itself supplies an attention event even when the daemon stops appending entirely.

These reports distinguish unknown, progressing, matching, and stalled work, with a ten-minute repair/publication grace period. A stale host loop is detected separately from a fresh reporter. An idle DHT awaiting its ordinary eight-hour renewal is not a failed availability probe. Publication acknowledgement says only that a provider advertisement was accepted, not that a remote blob fetch works. Neither the observed participant set nor a pairwise matching frontier proves whole-swarm convergence. pile net health reads the local observations; Orient can consume the same maintained facts and presentation ledger.

Colony work telemetry

pile net dashboard reads explicit resident telemetry collections and the private local health fallback. Terminal and embedded GORBIE views share that observation; neither scans the blob/native-record inventory, probes links, acquires missing bodies, maintains a target nor appends a descriptor. GUI refresh retains one sampler with explicit stop/join/close ownership. A read failure remains visible; it is not replaced with an empty healthy colony. Reader failures cross into the display as fixed categories, never backend error text or source chains: those may contain a full bearer blob handle. Control stripping and truncation alone do not redact a read capability.

The sampler retains its final display projection while every contributing collection observation remains dependency-current in a newly refreshed pile snapshot. It then ages a copy instead of querying historical report headers again. This is not a report catalogue or an alternative index: changed inputs run the same queries again. Wall time remains a separate dependency. Moving before the original projection time or reaching a previously future worker sample triggers a query, because either may enable a rate omitted earlier. Rate expiry also clears its prior-sample metadata; the original result stays unchanged so an in-range clock correction can restore a valid interval.

Partial or failed inputs never qualify for reuse and keep being retried. This first cut is deliberately all-source: an unreadable selected health collection also prevents telemetry reuse. A missing key disables the optional health source instead and does not have that effect. Scoped dependency checks, snapshot refresh, frame aging and rendering still cost work on unchanged ticks; no idle-CPU or whole-pile performance claim follows from skipping the queries.

Aggregate telemetry is ordinary relational data, not an external metrics database. triblespace_net::telemetry describes a subject (endpoint, operator worker label, role, optional stage/target/peer) and timestamped samples linked to it. Use an opaque subject ID; readers never recompute or validate it. For example, selection, certification, mapping and joining are separate stage subjects, so a slow unchanged-target pass cannot be mislabelled a slow mapping. Actual runtime-selected backend is a sample annotation, not a claim inferred from compiled features. Configured parallelism, active operations, process CPU and operation wall time are different measurements. parallel_compiled explicitly records whether the relevant parallel path is in this binary; compiled_backend records available build capabilities. A lazy pool with one observed thread cannot tell disabled code from unused code. Keep successful passes that publish no equations: their nonzero elapsed time can expose the cost of proving that there is no new work. They are not the same as skipped polls, failed observations, or zero computation.

Each sample carries a process session, explicit wall observation time and monotonic nanoseconds since that session began. Producers use entity! at the existing work boundary, then the normal signed collection commit:

use triblespace_net::{health_record as h, telemetry as t};

let subject = entity! {
    h::attrs::endpoint: node,
    t::attrs::worker: "rollups",
    t::attrs::role: "maintenance",
    t::attrs::stage: "mapping",
    h::attrs::collection: target,
};
let sample = entity! {
    metadata::tag: &t::KIND_SAMPLE,
    t::attrs::subject*: subject,
    h::attrs::session: &session,
    metadata::created_at: (now, now).try_to_inline()?,
    t::attrs::elapsed_ns: session_started.elapsed().as_nanos(),
    t::attrs::active: 1_u64,
    t::attrs::completed: completed_in_this_session,
    t::attrs::backend: "cuda",
};
store.commit(telemetry_collection, reporting_key, sample)?;

This example is a producer seam, not automatic instrumentation. Do not publish zero-filled counters after a failed observation. Counters describe completed work in that session, not distinct blob coverage; queued work describes the observed selection, not all unknown descendants. Received bytes count verified payload successfully landed, while sent bytes count payload successfully sent; neither includes transport overhead. A peer-scoped link sample reports an actually observed path and RTT, not a DHT candidate or an invented link speed. Process CPU nanoseconds are reported once in a process scope. work_ns sums completed operation wall durations; concurrent durations can overlap, so its rate is not CPU cores. Never duplicate process CPU across target rows and add them together.

The reader keeps two recent header witnesses per subject and queries metrics where needed. Unknown facts coexist; multiple observed values remain visible without invalidating the whole collection. A rate needs two fresh, distinct samples in the same session, increasing monotonic time and nondecreasing counters. Restart, reset, clock skew, missing or ambiguous data yields an unknown rate, not zero. The wall clock establishes sample age; it is not the rate denominator. Reported throughput is an interval average, not physical bandwidth capacity or proof that background hydration is keeping up.

Publication uses an explicit operator-selected collection and authority. The dashboard's --telemetry-collection may name one shared authorized source or separate node sources. Merely naming an endpoint in a sample is not a proof that endpoint authored it; trust comes from the selected collection's admitted writers. This feature issues no grant, activates no shared sync selection and changes no service. The private local health stream stays independent so broken telemetry replication cannot hide its own warning. Coverage is only the observed participants, never an implicit roster of the whole colony.

Sampling is aggregate and deliberately coarser than packet/operation tracing. The existing facade telemetry feature remains the explicit per-span profiling sink. Neither facility invents a retention policy for append-only evidence. No raw H bearer capability, payload, locator-to-H inventory or bearer proof belongs in these colony observations.

Sync producer

pile net sync opts in with --telemetry-collection <H>, optionally --telemetry-worker <NAME>. The node's existing key signs the samples and its public key identifies their endpoint. The destination must already be a resident SimpleArchive source collection admitting that writer. A derived SimpleArchive is not a source: its reader ignores root COMMITs. Reporting never creates a descriptor, key, grant, derived index or replication selection. To replicate these samples the operator separately selects their collection with trible pile net select.

The producer is triblespace_net::telemetry::sync::Publisher, which native applications use too. Publisher::open(store, signer, destination, worker) checks the destination and appends nothing. reconciled accounts each returned reconcile tick, and publish appends one sample per subject. The cadence belongs to the caller: custody attempts an ordinary signed append every sixty seconds (health_record::REPORT_EVERY) at the existing sync-loop boundary. Five subjects distinguish the measurements:

  • hydration: successful verified reconciler puts and their payload bytes; one landing shared by a WANT and a selected root counts once. Blobs a references push lands are not reconciler puts and are not counted. Local hits and failed puts add no received bytes. queued counts distinct unreadable known handles from exact WANTs and selected direct roots at the end of that tick's acquisition window. It excludes unknown descendants and is not a global blob inventory. A failed exact-set observation leaves it absent.
  • serve: actual accepted inbound GET exchanges in flight, successfully sent payloads/bytes and interrupted or failed exchanges. A payload counts only after its write and stream shutdown succeed, not merely after lookup. This is not a remote landing or persistence acknowledgement.
  • repair: no active count yet. Host health records the ends of pushes and receives, not the ones in flight, so the measurement stays absent rather than estimated.
  • publication: active and completed provider-advertisement operations, separate from body transfer; acknowledgement is not blob availability.
  • process: one cumulative user-plus-system CPU observation across all process threads, absent if unsupported or unavailable. Core's compiled parallel-path bit is separate from runtime pool size or actual CPU effort.

These are boundary observations, not a new timer task inside an awaited hydration tick. A long tick delays sampling; only returned ticks contribute their landing counters and completed wall duration. Direct foreground reader acquisitions are outside the hydration subject. Unmeasured hydration in-flight counts, transport path/RTT and internal stage timings stay absent. Stale host health contributes no invented activity zeros. work_ns sums completed or interrupted GET durations in the serving scope and returned-tick durations in hydration, never CPU time. Reporting errors discard backend cause chains and leave older samples to age. No reporting append flushes the pile; the owner's existing close remains its persistence boundary. Same-pile writes remain real changes: scoped disjoint reads ignore them, while broad name lookup can still observe the new records.

Maintenance producer

pile collection maintain and maintain-all can opt in with --telemetry-collection HANDLE --telemetry-worker LABEL. The existing maintenance key signs samples and its public key identifies the local endpoint, matching the daemon's durable identity. Neither the endpoint nor the telemetry signer has a separate override. The collection must already exist as a SimpleArchive source and admit that writer; a derived view ignores root COMMITs and is rejected. This option does not create keys, descriptors, grants, maintenance targets or sync selections. After configuration is validated, publication errors use finite, payload-free categories and do not turn successful maintenance into a failure. Choose distinct worker labels for simultaneously running processes on one endpoint; restarting the same worker keeps its scope identity but starts a new session, so a rate never bridges that restart.

Four scopes keep distinct quantities separate: process CPU, maintenance hops, passes, and successful passes with no merge/derive publication calls. Hop configuration reports outer-loop concurrency, not the size of a lazy Rayon pool; Core's compiled parallel-path capability is reported separately. The merge/derive counters increment after a local equation insertion succeeds. They include idempotent successful calls and multiple witness equations for one output. They are not counts of new physical records, unique outputs, kernel invocations, or changes in the collection census. Successful publications remain counted even if a later part of the pass fails.

Sampling uses existing loop/hop boundaries, with a shared attempt limit of 60 seconds by default (--telemetry-interval-secs) and one final close sample. There is no detached heartbeat or extra observer thread. A long synchronous hop can therefore leave a stale report; freshness must not be manufactured. Known merge/derive backlog and separate selection/certification/mapping/join timings are left absent until those operations provide measured seams.

Appending telemetry never advances or filters the maintenance baseline. Disjoint exact-collection interests ignore the append. Broad name/all-record interests may wake once after an emission; all boundary attempts, including failed publications, share the rate limit. Do not hide such a wake by moving the baseline across the write: concurrent source changes must remain visible. An unchanged-file poll which never enters a pass must not increment pass or no-publication counters, and must still reach the telemetry cadence check.

Schema anchors were minted with trible genid on 2026-09-16; their exact values and field meanings are pinned in triblespace-net/src/telemetry.rs.

Directory representation experiment

The live receiver-local ProviderDirectory uses four BTree indexes: membership values, member counts by exact locator, expiry order, and XOR responsibility then rank order. provider/patch_directory.rs is a test-only alternative with two PATCHes:

  • !(locator XOR local_endpoint) | !rank, segmented 32 | 32, owns the provider/deadline/token value. Segment counts answer membership and exact-locator cardinalities; the first ordered key identifies the farthest responsibility's largest-ranked member, and a locator's first suffix its own.
  • deadline_ns | locator | provider orders expiry. Keeping the original locator/provider order here preserves tie-breaking under the bounded prune budget, not merely the eventual set of live results.

No wire, lease, trust, publication, persistence or live-directory policy changes. Differential tests compare every retained value, deadline, capacity decision, exact-key result and farthest member against the existing implementation across 24,000 deterministic mixed operations and targeted expiry/fanout boundaries.

Stars measurements on 2026-09-07 used exact prototype 512513bf, rustc 1.98.0, and fresh processes for each representation. Each table cell is PATCH / BTree; times are seconds. GET traverses every locator once; insert and renewal visit every locator/provider pair. RSS is the post-insertion minus pre-insertion process reading, excluding the already-built deterministic input corpus.

Locators × providersRSS delta MiBInsertGETRenew
100,000 × 132.68 / 84.910.0647 / 0.12910.0370 / 0.04100.1752 / 0.0628
10,000 × 310.61 / 17.460.0321 / 0.02350.00686 / 0.004570.0512 / 0.00880
10,000 × 1647.84 / 79.640.2948 / 0.14880.0239 / 0.02190.2679 / 0.0486
1,000,000 × 1302.55 / 845.201.0831 / 2.28500.5901 / 0.76022.3755 / 1.4508

These are single samples, not confidence intervals or full release/network measurements. Only triblespace-core and triblespace-net received test-profile overrides opt-level=3, debug-assertions=false, overflow-checks=false; dependencies otherwise retained the same test profile. Both compared modes used those identical settings, eight build jobs, debug information disabled, incremental off, and no RUSTFLAGS. Debug-only timings were much worse for PATCH because its invariant audits are intentionally expensive; they are not a sound basis for the production comparison. Both profiles passed the differential tests.

The memory saving is substantial, but immutable membership replacement and deadline reindexing make renewal slower, and multi-provider insertion can also lose. This prototype is retained for evaluation, not promoted to the live directory. A proposed Cell lease-value shortcut was rejected before edits: shared PATCH leaves require Send + Sync for cross-thread ownership. Adding an unsafe ownership promise or per-leaf synchronization just to optimize these already-fast local operations would add a new tradeoff, not finish this one.

Reproduce with cargo test --locked --offline -p triblespace-net --lib --features sim provider::patch_directory; the ignored patch_directory_scale_probe accepts TRIBLESPACE_DIRECTORY_REPRESENTATION (patch or btree), TRIBLESPACE_DIRECTORY_KEYS, and TRIBLESPACE_DIRECTORY_PROVIDERS. Run each mode in its own process and state the profile settings with any result. Corpus shape, allocator state, CPU profile, and fanout matter; this is not a measurement of DHT announcement throughput.