Skip to main content

Crate canwu_api

Crate canwu_api 

Source
Expand description

Public programmatic, query, semantic-agent, explanation, and debug interfaces.

Structs§

ActorKnowledge
AgentContext
AgentIdentity
ArchivedEvidenceLocator
ArchivedEvidenceReceipt
ArchivedSegmentHeader
Army
ArmyId
ArmyKnowledge
ArtifactManifest
Stable identity for a scenario, ruleset, content pack, run policy, localization contract, or source ledger.
AvailableAction
BoundaryChange
BoundaryContext
BoundaryEmission
BoundaryId
BoundaryIngressGeneration
BoundaryKnowledgeChange
BoundaryProposal
BoundaryReceipt
BoundaryRecord
BoundaryRequest
BoundarySystemContract
Canwu
Main in-process API. All returned world values are detached snapshots.
CanwuError
CanwuViewer
Restricted player/agent/observer facade. It deliberately exposes no raw snapshot, event, boundary, domain-record, or audit-origin access.
CapabilityDescription
CapacityBooking
CapacityBookingId
CheckpointJournal
Portable full-save bundle built from a current-state checkpoint and journal segments.
CommandAttemptId
CommandAttemptRecord
CommandAuthority
CommandContext
CommandEnvelope
CommandId
CommandReceipt
CommandRecord
CommandRejection
CommandRequest
CommandRequestId
CommitmentRoots
Canonical roots for independent authoritative state and evidence domains.
CompactedCanwu
Public facade for a live runtime whose sealed evidence segments are stored by the caller.
CompactedSimulation
A live simulation whose sealed evidence prefixes are owned by the caller.
DecisionAttemptRecord
DecisionContext
DecisionController
DecisionControllerBinding
DecisionError
DecisionExternalEvidence
DecisionFactorContribution
DecisionIngressRequest
DecisionOption
DecisionOptionEvaluation
DecisionPolicyIdentity
DecisionRequestId
DecisionState
DecisionTicket
DecisionTicketDraft
DecisionTicketId
DecisionTrace
DecisionTraceId
DeliveryCompletionRequest
DeliverySaga
DemoIds
DepartureSlot
DomainRecord
DomainRecordChange
DomainRecordDraft
DomainRecordKind
Stable application-defined record kind. Namespaces and names are validated by the simulation package registry before authoritative use.
DomainRecordRef
Stable string identity for an application-defined entity or record.
DomainRecordSchema
DomainRecordVersionRef
Exact historical identity for an application-defined record version.
DomainReference
DomainReferenceSchema
DurationSample
EstimateRange
EventId
EvidenceArchiveIndex
EvidenceCursor
Monotonic cuts through every append-only evidence journal.
EvidenceIndexEntry
EvidenceItemLocator
EvidenceJournalRoots
EvidenceJournalSegment
One contiguous append-only evidence range for incremental archival.
EvidenceSealToken
Explanation
ExplanationStep
ExternalDecisionOption
ExternalDecisionRequest
ExternalDecisionResponse
Government
GovernmentId
Handoff
HandoffId
HolderKnowledgeRecordId
HumanDecisionResponse
IngressId
IngressReceipt
IngressRecord
Inspection
ItineraryRevision
ItineraryRevisionId
KnowledgeCursor
KnowledgeLimitsV1
KnowledgeOrigin
KnowledgeQuery
KnowledgeQueryResult
KnowledgeReadCut
KnowledgeRecord
KnowledgeRecordDraft
KnowledgeRecordId
KnowledgeRecordKind
Stable namespace and kind for a holder-relative knowledge record.
KnowledgeRecordView
KnowledgeSchemaId
Exact version of one registered knowledge schema.
KnowledgeSnapshot
KnowledgeSubject
KnowledgeSubjectSchema
KnowledgeWriteGrant
KnownArmyView
LegExecution
LegExecutionId
LetterCargo
LetterId
LlmModelIdentity
MapPoint
MovementOrder
Immutable, admitted intent shared by transport movement domains.
MovementOrderId
Stable identity for an admitted transport-domain movement intent.
MovementSubject
One typed identity in a movement manifest.
ObserveRequest
OrderedRulePolicy
PayloadProperty
PayloadRequiredEvidenceContinuationV1
Authoritative pending-continuation contract for rules that must inspect old payload bytes.
PendingCommitment
Person
PersonId
PersonTransitState
PlanningSnapshot
PluginActionDescriptor
PluginComponentRecord
PluginDescriptor
PluginIngressDescriptor
PluginIngressRequest
PluginIngressTarget
PluginKnowledgeSchema
PluginRegistrar
PluginRegistry
PolicyDecision
PreparedDecisionIngress
PreparedEvidenceSeal
Query
QueryFilter
QueryResult
QueuedExternalPolicy
QueuedHumanPolicy
QueuedLlmPolicy
RandomDrawId
RandomDrawRecord
RandomOperationAddressV1
Version-one stable entropy address for a future keyed random draw.
RandomStreamKey
RandomStreamState
ReplayJournal
Complete recorded environment and input journal for exact replay.
ReservationAllocation
ReservationOffer
ReservationOfferRecord
ReservationPoolKey
ReservationRef
ReservationRequest
ReservationRequestRecord
Route
RouteCost
RouteId
RouteLeg
RoutePlan
RoutingCache
RoutingConnection
RoutingConnectionRef
RoutingEndpoint
RoutingNetwork
RoutingNodeRef
RoutingPolicy
RoutingRequest
RunConfiguration
Scenario
SchemaRegistry
SeatBinding
SimDuration
SimEvent
SimTime
SimulationCheckpoint
Current authoritative state plus the journal cut required to validate it.
SimulationSnapshot
SimulationView
StateKey
SystemContract
Territory
TerritoryId
TransitState
TransportExecution
TransportExecutionId
TypeSchema
TypedDomainRecordRef
Typed façade over a stable application-defined record identity.
UtilityProfile
ViewerContext
VisibleChange
WeightedUtilityEvaluator
WeightedUtilityPolicy
WorldDiff
WorldSnapshot

Enums§

ArchiveStoreOutcome
BoundaryDirective
BoundaryEmissionKind
BoundaryPhase
CapacityBookingStatus
CauseRef
Command
CommandAttemptOutcome
CommandIngress
CommandOutcome
CommandPolicyContext
Command-relevant policy deliberately omits run purpose, observation, and trace so authoritative handlers cannot branch on presentation-only inputs.
ControllerDecision
ControllerPolicy
CoreEntityKind
DecisionAction
DecisionAttemptErrorCode
DecisionAttemptOutcome
DecisionAuthority
DecisionErrorCode
DecisionEvaluation
DecisionMutation
DecisionOrigin
DecisionOutcome
DecisionPolicyKind
DecisionTicketState
DetailLevel
DomainEntityKindClass
Type-level class for domain kinds whose instances are entity identities.
DomainRecordClass
DomainRecordLifecycle
DomainRecordMutation
DomainRecordMutationPolicy
DomainRecordOperation
DomainRecordVersionSource
Persisted identity of the operation that established one domain-record version. Version zero is reserved and rejected by runtime validation.
DomainReferenceTarget
DomainReferenceTargetKind
DomainValueKindClass
Type-level class for domain kinds whose instances are non-entity records.
EntityRef
Serializable entity reference used by events, queries, and generic tools.
ErrorCode
EventAudience
Declarative audience for a persisted event projection.
EventKind
EvidenceJournalKind
EvidenceNestedLocator
EvidenceRef
Shared persisted-evidence identity used by knowledge, decisions, random operations, replay, and compact archive receipts.
ExplanationRequest
FilterOperator
IngressClass
IngressPayload
InteractionPolicy
Issuer
ItineraryRevisionReason
KnowledgeHistoryView
KnowledgeHolderPolicy
Whether a domain entity schema may receive holder-relative knowledge.
KnowledgeHolderRef
Stable holder identity shared by people and eligible institutional entities.
KnowledgeQueryError
KnowledgeSource
KnowledgeSubjectTarget
KnowledgeSubjectTargetKind
LegExecutionStatus
LetterStatus
MovementInitiative
Who initiated a movement intent. The runtime must derive this from the admitted authority and never trust an unvalidated caller-supplied label.
MovementOrderError
MovementSubjectRole
The physical role of a subject in a movement manifest.
ObservationFocus
ObservationPolicy
ObservationPrincipal
An observation identity authorized by the run’s persisted observation policy. This type is intentionally constructed through Canwu::viewer_context so an observation request cannot self-escalate.
PayloadSchema
PayloadValueType
QueryEntity
RandomAlgorithm
RandomDrawAddress
Persisted address of a random draw.
RandomDrawOutcome
RandomDrawProducer
RandomOperationTarget
Stable application target for an operation-addressed random draw.
ReservationDisposition
RoutingAlgorithm
RoutingEndpointKind
RoutingError
RuleChoice
RunConfigurationSnapshot
RunManifest
The exact non-executable environment bound to a simulation run.
RunPurpose
SagaState
SeatPolicy
SemanticAction
StateVisibility
SystemCadence
SystemDirective
TracePolicy
TransferMode
TransportError
TransportExecutionState
TraversalModel

Constants§

ADMISSION_CURSOR_FORMAT_VERSION
Version of persisted monotonic boundary-admission cursors.
CHECKPOINT_JOURNAL_FORMAT_VERSION
Version of current-state checkpoints plus append-only evidence segments.
COMMITMENT_FORMAT_VERSION
Version of the domain-separated checkpoint commitment contract.
ENGINE_VERSION
PAYLOAD_REQUIRED_EVIDENCE_CONTINUATION_FIELD
Reserved domain-record payload field declaring a payload-reading continuation.
PAYLOAD_REQUIRED_EVIDENCE_CONTINUATION_FORMAT_VERSION
Current wire version of PayloadRequiredEvidenceContinuationV1.
ROUTING_ALGORITHM_VERSION
RUN_CONFIGURATION_FORMAT_VERSION
RUN_MANIFEST_FORMAT_VERSION
SNAPSHOT_FORMAT_VERSION
STATE_REVISION_FORMAT_VERSION
Version of the independently migrated authoritative revision commitment.
TRANSPORT_SEMANTIC_VERSION

Traits§

ArchiveProvider
ArchiveStore
DecisionPolicy
DecisionRule
DomainEntityType
Marker implemented automatically for entity-class domain record types.
DomainKindClass
Sealed type-level classification for application-defined record kinds.
DomainRecordType
Compile-time identity for one namespaced application-defined record kind.
DomainValueType
Marker implemented automatically for non-entity domain record types.
ExternalPolicy
HumanPolicy
LlmPolicy
RulePolicy
SimulationPlugin
A stateless executable package whose persisted identity must change whenever its authoritative behavior changes.
UtilityEvaluator
UtilityPolicy

Functions§

canonical_byte_hash
Computes a domain-separated BLAKE3 commitment over an already canonical byte payload.
canonical_hash
Computes the engine’s canonical JSON commitment for plugin-owned data.
delivery_completion_operation_key
payload_required_evidence_continuation_property_v1
Returns the reserved property a domain-record schema must declare to authoritatively produce PayloadRequired dependencies.
plan_route
planning_snapshot_from_world

Type Aliases§

BoundarySystemHandler
PluginCommandHandler
SimulationSystemHandler
Compatibility-only synchronous event reactor.