AgentLeaseEvent
Typed workspace/Play lease lifecycle event.
type AgentLeaseEvent implements AgentEventBase {
protocolVersion: String!
eventId: String!
sessionId: String!
seq: BigInt!
type: CrowdyStudioAgentEventType!
runId: String
version: String!
createdAt: DateTime!
leaseId: String!
kind: CrowdyStudioAgentLeaseType!
status: CrowdyStudioAgentLeaseStatus!
clientEpoch: BigInt!
scopes: [String!]!
holder: String!
contextVersion: String!
controlledEntityId: String
hostCapabilityRevision: String
expectedProjectRevision: BigInt
grantedAt: DateTime!
expiresAt: DateTime!
reason: String
}
Fields
AgentLeaseEvent.protocolVersion ● String! non-null scalar
Event envelope version; always 'crowdy.agent-event/1'.
AgentLeaseEvent.eventId ● String! non-null scalar
Stable event UUID for deduplication.
AgentLeaseEvent.sessionId ● String! non-null scalar
Owning session UUID.
AgentLeaseEvent.seq ● BigInt! non-null scalar
Strictly increasing session sequence as a decimal BigInt.
AgentLeaseEvent.type ● CrowdyStudioAgentEventType! non-null enum
Stable version 1 event discriminator.
AgentLeaseEvent.runId ● String scalar
Related run UUID, or null for session-only facts.
AgentLeaseEvent.version ● String! non-null scalar
Versioned event payload contract.
AgentLeaseEvent.createdAt ● DateTime! non-null scalar
Commit timestamp.
AgentLeaseEvent.leaseId ● String! non-null scalar
Stable lease UUID.
AgentLeaseEvent.kind ● CrowdyStudioAgentLeaseType! non-null enum
WORKSPACE or PLAY.
AgentLeaseEvent.status ● CrowdyStudioAgentLeaseStatus! non-null enum
Required lease lifecycle status.
AgentLeaseEvent.clientEpoch ● BigInt! non-null scalar
Bound attached client epoch.
AgentLeaseEvent.scopes ● [String!]! non-null scalar
Explicit scopes carried when granted; empty otherwise.
AgentLeaseEvent.holder ● String! non-null scalar
Human-visible lease holder alias.
AgentLeaseEvent.contextVersion ● String! non-null scalar
Authoritative context version bound to this lease.
AgentLeaseEvent.controlledEntityId ● String scalar
Controlled entity identifier for PLAY, or null.
AgentLeaseEvent.hostCapabilityRevision ● String scalar
Host capability revision for PLAY, or null.
AgentLeaseEvent.expectedProjectRevision ● BigInt scalar
Expected project revision for WORKSPACE, or null.
AgentLeaseEvent.grantedAt ● DateTime! non-null scalar
Lease grant timestamp.
AgentLeaseEvent.expiresAt ● DateTime! non-null scalar
Hard lease expiry.
AgentLeaseEvent.reason ● String scalar
Stable revoke/expiry reason, or null.
Interfaces
AgentEventBase interface
Common identity/order fields on every typed durable agent event variant.
Implemented By
CrowdyStudioAgentEvent union