Package-level declarations

Types

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
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 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 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
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 — the mid-session transport death, the membership drain, the self-dial.

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
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
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.