Skip to main content

Crate starweft_protocol

Crate starweft_protocol 

Source
Expand description

Protocol message types, envelopes, and signature verification for Starweft.

Defines the complete set of typed message bodies exchanged between agents, the signed envelope format, wire serialization, and domain status enums.

Structs§

ApprovalApplied
Confirmation that an approval was applied and tasks may have been resumed.
ApprovalGranted
Notification that an approval has been granted.
ArtifactEncryption
Encryption metadata for an artifact.
ArtifactRef
A reference to a stored artifact produced by a task.
CapabilityAdvertisement
A node’s response advertising its identity and capabilities.
CapabilityQuery
A query announcing a node’s identity and requesting peer capabilities.
Envelope
A signed envelope carrying a typed message body.
EvaluationIssued
An evaluation certificate issued for a task result.
EvaluationPolicy
Weights for multi-dimensional task evaluation scoring.
JoinAccept
A worker’s acceptance of a join offer.
JoinOffer
An offer from a project owner to a worker to join and execute tasks.
JoinReject
A worker’s rejection of a join offer.
ParticipantPolicy
Policy controlling which agents may participate in a project.
ProjectCharter
A project charter establishing a new project from a vision.
PublishIntentProposed
A proposal to publish results to an external target.
PublishIntentSkipped
Notification that a publish intent was skipped.
PublishResultRecorded
Record of a completed publish operation.
SnapshotRequest
A request to take a state snapshot.
SnapshotResponse
A response containing a state snapshot.
StopAck
Acknowledgment that a stop order was received and is being processed.
StopComplete
Confirmation that all work has stopped for a given stop order.
StopOrder
An order to stop a project or task tree.
TaskDelegated
A task delegated from the project owner to a worker agent.
TaskProgress
A progress update from a worker for a running task.
TaskResultSubmitted
A task result submitted by a worker after execution.
UnsignedEnvelope
An envelope that has not yet been signed.
VisionConstraints
Constraints applied to a vision that guide task planning and execution.
VisionIntent
A vision intent submitted by a principal to initiate work.
WireEnvelope
A wire-format envelope where the body is untyped JSON for transport.

Enums§

ApprovalScopeType
The scope an approval applies to.
MsgType
Discriminator for protocol message types.
ProjectStatus
Lifecycle status of a project.
ProtocolError
Errors that can occur during protocol-level operations.
SnapshotScopeType
Scope type for snapshot requests and responses.
StopAckState
State in a stop acknowledgment.
StopFinalState
Final state in a stop completion message.
StopScopeType
Scope type for stop orders.
TaskExecutionStatus
Outcome status of a task execution.
TaskStatus
Lifecycle status of a task.

Constants§

PROTOCOL_VERSION
Current protocol version string used in all envelopes.

Traits§

RoutedBody
Trait implemented by all message body types to declare their MsgType.