PassPlanting

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

The host must ignore a pass for another room, for another device's key, or from an issuer it does not trust. A device's room filters all three out before it sends its Proof: it presents only its host's passes for this room or for every room of that host's, and keeps only passes naming its own key. So a row driven through ReturnDevice alone never shows the host one, and stays green with the host's checks deleted. The planted-pass rows need the harness to forge one.

This is a forging tool in a published API, and that is accepted for this purpose (ruled on #3710): what it reaches is the host's own checks, which nothing else can. A harness over a real fabric that has no way to rewrite a Proof declares Unsupported rather than building one.

The same two-armed shape as ReturnFixture and RoomConformanceSuite.FaultInjection, for the same reason: declining has to name the issue that would have to close for the harness to say Supported, so a gap is declared rather than merely taken (#2306).

Inheritors

Types

Link copied to clipboard
data class Supported(val rig: PlantedPassRig) : PassPlanting

The harness can plant passes: the planted-pass rows run on rig.

Link copied to clipboard
data class Unsupported(val trackingUrl: String) : PassPlanting

The harness cannot rewrite a device's Proof, so the host's refusals of a pass for another room, another device or an untrusted issuer are unproven on it.