specs/trust_task_control/v0_1/payload library

Classes

Payload
The task-control request defined at SPEC.md §11: a producer withdrawing, pausing, or resuming work a consumer has already accepted. This is a REQUEST, not a response. A consumer that stops work on its own initiative does not send one of these — it returns a trust-task-error carrying cancelled, so that a withdrawal and a refusal remain distinguishable to every party and to any auditor reading the retained documents afterwards. The operation takes effect through SPEC.md §7.2 item 12: a valid, authorized control operation is one of the conditions a consumer re-evaluates immediately before each irreversible or externally visible effect. There is no separate race protocol.
PayloadTarget
The specific Trust Task document this operation applies to. Per SPEC.md §11.2, threadId, parentThreadId and ceremony membership MUST NOT identify the target on their own: more than one document can occur in a single exchange or enactment.
Response
What the consumer did. The outcome is the load-bearing member: it is what tells the producer whether a compensating action is required, since SPEC.md §11.4 declines to require rollback.
ResponseEffectsItem
ResponseEffectsItem, generated from its schema.
ResponseTarget
Echoed from the request.

Constants

payloadSchemaJson → const String
This specification's payload schema, as JSON text.
responsePayloadSchemaJson → const String
As payloadSchemaJson, for the success-response variant.
responseSpec → const SpecPolicy
The SPEC §7.2 policy for the success-response variant.
responseTypeUri → const String
The success-response form of typeUri (SPEC §4.4.1).
spec → const SpecPolicy
The SPEC §7.2 policy for the request variant, taken from this specification's front matter.
typeUri → const String
The Trust Task type URI this library's Payload is carried under.