Package-level declarations

Types

Link copied to clipboard
sealed interface CancelledCallerFixture

What a transport's Connection.send does for a caller that is already cancelled.

Link copied to clipboard

Stable CapabilityGaps URLs for by-design capability limitations (see docs/architecture.md#capability-gaps-by-design).

Link copied to clipboard

Reusable lifecycle contract test suite for ScopedCloseable implementations.

Link copied to clipboard

What Connection.send owes its caller once the link behind it has died.

Link copied to clipboard
class DelayedWovenLoom(policy: DeliveryPolicy = DeliveryPolicy.Reliable) : Loom

A test Loom whose Seams start in SeamState.Weaving and only transition to SeamState.Woven when DelayedWovenSeam.markWoven is called explicitly.

Link copied to clipboard

A Seam produced by DelayedWovenLoom that starts SeamState.Weaving.

Link copied to clipboard
sealed interface DepartureFixture

What a source's leave signal is, for the one peer this suite drives through arrival and departure.

Link copied to clipboard

Reusable contract test suite for DeviceKeyStore implementations.

Link copied to clipboard
sealed interface DeviceKeyStoreFixture

How a DeviceKeyStoreConformanceSuite reaches the store under test, and what its medium can suffer.

Link copied to clipboard

Reusable contract test suite for PeerDiscoverySource implementations, aimed squarely at departures() — the half of the contract that used to carry an inherited emptyFlow() default and that four of this repo's implementations silently took.

Link copied to clipboard

Reusable contract test suite for DurableStore implementations.

Link copied to clipboard

The contract every file-backed DurableStore must satisfy about the filenames it addresses entries by. Subclass and implement newDirectory, newStore and plantRawFile.

Link copied to clipboard
class ExactWidthField(val name: String, val declaredWidth: Int, val encodeAtWidth: (width: Int) -> ByteArray)

One documented fixed-width field on a wire type, plus the rig that builds a frame carrying that field at an arbitrary width.

Link copied to clipboard
class FixedWidthHeader(val name: String, val headerBytes: Int, val encodeFrameOfSize: (totalBytes: Int) -> ByteArray)

A fixed-width header followed by an arbitrary payload — the other shape a documented width takes on a wire, and deliberately not an ExactWidthField.

Link copied to clipboard
sealed interface FlushFixture

What a conformance harness says about Seam.flush, and what it can do to test it.

Link copied to clipboard
sealed interface JoinerRosterOrigin

Where a conformance harness's joiner got the remote peer in its Seam.peers — the one fixture fact that decides whether the joiner half of SeamConformanceSuite.peersReportsSelfIdAndAtLeastTwoAfterJoin can fail at all.

Link copied to clipboard
data class MatrixEntry(val fabric: String, val capabilities: SeamCapabilities, val gaps: Map<String, String>, val meshEvidence: String? = null)

One fabric's row in the renderMatrix capability matrix.

Link copied to clipboard
sealed interface MediumFault

What DurableStoreConformanceSuite.faultMedium hands back: a broken medium and how to heal it, or an honest declaration that this backend has none.

Link copied to clipboard
abstract class MeshConformanceSuite

Reusable contract test suite for N-peer mesh Seam implementations.

Link copied to clipboard
sealed interface ObligationDeclaration

What a conformance harness says about one injectable obligation of SeamConformanceSuite — transport death, membership drain, self-dial, and duplicate or blank identity announcements.

Link copied to clipboard
fun interface PassPlanter

What a PlantedPassRig device puts into each Proof it sends, beside its room's own passes.

Link copied to clipboard
sealed interface PassPlanting

Whether a harness can put passes into the Proof a device sends that its room would never put there — and, when it cannot, where that is written down (#3710).

Link copied to clipboard
interface PlantedPassRig

The forging half of a ReturnHarness (#3710): devices whose Proof carries passes a row chose, and the passes to put there.

Link copied to clipboard

Reusable contract test suite for hub seams that carry a host-verified identity — any Seam that is also a PrincipalRoster.

Link copied to clipboard
abstract class QuiltedConformanceSuite<S : Quilted<S>>

Reusable contract test suite for Quilted (delta-state CRDT) implementations.

Link copied to clipboard

Reusable contract test suite for RaftStorage implementations.

Link copied to clipboard

A ReturnDevice whose link can lose the pass renewals its host sends, and that counts what it lost and what it carried (#3745).

Link copied to clipboard
sealed interface RenewalLoss

Whether a harness can lose a pass renewal on a device's link after its host sent it — and, when it cannot, where that is written down (#3745).

Link copied to clipboard
fun interface RenewalLossRig

The half of a ReturnHarness that makes RenewalLosingDevices (#3745).

Link copied to clipboard
sealed interface RestartFixture

What DurableStoreConformanceSuite.restart hands back: a store reopened onto the same medium, and what this backend claims about surviving a process exit.

Link copied to clipboard
class RetirementReAssertion<S : Quilted<S>>(val subject: String, val asserted: S, val retired: S, val reAsserted: S, val shows: (S) -> Boolean)

The assert → retire → re-assert shape a retiring binding names, plus the evidence that makes it a retirement rather than three unrelated writes.

Link copied to clipboard
interface ReturnDevice

One device in a ReturnHarness: a key that outlives its processes, and the link of the process running now.

Link copied to clipboard
sealed interface ReturnFixture

Whether a harness can make a device drop off and come back — and, when it cannot, where that is written down.

Link copied to clipboard
class ReturnHarness(val hostFactory: RoomFactory, val hostPattern: Pattern, val joinTag: Tag, val hostHeartbeat: HeartbeatConfig, val joinerHeartbeat: HeartbeatConfig, val passPlanting: PassPlanting, val reusedIdLaunch: ReusedIdLaunch, val renewalLoss: RenewalLoss, device: suspend () -> ReturnDevice, hostTab: suspend () -> RoomFactory)

The rig behind the return rows of RoomConformanceSuite (#3159, Task 1.9): one host, and as many devices as a row asks for, each of which can lose its link and get it back.

Link copied to clipboard

A ReturnDevice that can start a process under a peer id the row names (#3710).

Link copied to clipboard
sealed interface ReusedIdLaunch

Whether a harness can start a process under a peer id an earlier process of its device had, while a later one is running — and, when it cannot, where that is written down (#3710).

Link copied to clipboard
fun interface ReusedIdRig

The half of a ReturnHarness that makes ReusedIdDevices (#3710).

Link copied to clipboard
abstract class RoomConformanceSuite

Reusable contract test suite for RoomFactory implementations.

Link copied to clipboard

Reusable contract test suite for server-fanout Looms — a server-side Loom whose Loom.host returns a per-room star Seam that forwards broadcasts only to the connections admitted to that room.

Link copied to clipboard
class SampleEvidenceReport(val samples: Int, val distinctSamples: Int)

What a binding's QuiltedConformanceSuite.samples list actually offered the laws, measured by checkSampleEvidenceFloor.

Link copied to clipboard
data class SeamCapabilities(val reportsPeerLoss: Boolean, val terminatesIncomingOnClose: Boolean, val staysTornAfterClose: Boolean, val throwsOnSendToTorn: Boolean, val supportsSendTo: Boolean, val securesTransport: Boolean, val meshDelivery: Boolean, val reportsLiveCapability: Boolean, val collapsesPeersOnTear: Boolean)

A fabric's declared behaviour against the us.tractat.kuilt.core.Seam contract.

Link copied to clipboard
abstract class SeamConformanceSuite

Reusable contract test suite for Loom implementations.

Link copied to clipboard

The contract every wire codec fed by peer-controlled bytes must satisfy about the widths its own documentation fixes: a frame whose fixed-width field is short by one, or long by one, is rejected.

Link copied to clipboard

How a codec says no — part of its contract, not an implementation detail.

Properties

Link copied to clipboard
const val DISTINCT_SAMPLE_FLOOR: Int = 3

The least number of pairwise-distinct QuiltedConformanceSuite.samples the four laws need before any of them is a claim about the type rather than about one value.

Functions

Link copied to clipboard
fun <S> canonicalDigest(serializer: KSerializer<S>, value: S): Long

A 64-bit digest of value's canonical CBOR encoding — FNV-1a.

Link copied to clipboard

Measure samples and refuse a list too thin for QuiltedConformanceSuite's laws to have tested anything — fewer than DISTINCT_SAMPLE_FLOOR values distinct by ==.

Link copied to clipboard

Render the fabric capability matrix as a stable markdown table — the visibility artifact that makes every declared gap loud.