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

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

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.