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
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
BoundaryProposal
BoundaryReceipt
BoundaryRecord
BoundaryRequest
BoundarySystemContract
Canwu
Main in-process API. All returned world values are detached snapshots.
CanwuError
CapabilityDescription
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.
DemoIds
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
DomainReference
DomainReferenceSchema
EstimateRange
EventId
EvidenceCursor
Monotonic cuts through every append-only evidence journal.
EvidenceJournalSegment
One contiguous append-only evidence range for incremental archival.
Explanation
ExplanationStep
Government
GovernmentId
IngressId
IngressReceipt
IngressRecord
Inspection
KnowledgeSnapshot
KnownArmyView
MapPoint
ObserveRequest
PayloadProperty
PendingCommitment
Person
PersonId
PluginActionDescriptor
PluginDescriptor
PluginIngressDescriptor
PluginIngressRequest
PluginRegistrar
PluginRegistry
Query
QueryFilter
QueryResult
RandomDrawId
RandomDrawRecord
RandomStreamKey
RandomStreamState
ReplayJournal
Complete recorded environment and input journal for exact replay.
ReservationAllocation
ReservationOffer
ReservationOfferRecord
ReservationPoolKey
ReservationRef
ReservationRequest
ReservationRequestRecord
Route
RouteId
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
TypeSchema
TypedDomainRecordRef
Typed façade over a stable application-defined record identity.
ViewerContext
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.
VisibleChange
WorldDiff
WorldSnapshot

Enums§

BoundaryDirective
BoundaryEmissionKind
BoundaryPhase
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.
ControllerPolicy
CoreEntityKind
DecisionOrigin
DetailLevel
DomainEntityKindClass
Type-level class for domain kinds whose instances are entity identities.
DomainRecordClass
DomainRecordLifecycle
DomainRecordMutation
DomainRecordOperation
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
ExplanationRequest
FilterOperator
IngressClass
IngressPayload
InteractionPolicy
Issuer
KnowledgeSource
ObservationFocus
ObservationPolicy
PayloadSchema
PayloadValueType
QueryEntity
RandomAlgorithm
RandomDrawOutcome
RandomDrawProducer
ReservationDisposition
RunConfigurationSnapshot
RunManifest
The exact non-executable environment bound to a simulation run.
RunPurpose
SeatPolicy
SemanticAction
StateVisibility
SystemCadence
SystemDirective
TracePolicy

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
RUN_CONFIGURATION_FORMAT_VERSION
RUN_MANIFEST_FORMAT_VERSION
SNAPSHOT_FORMAT_VERSION
STATE_REVISION_FORMAT_VERSION
Version of the independently migrated authoritative revision commitment.

Traits§

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.
SimulationPlugin
A stateless executable package whose persisted identity must change whenever its authoritative behavior changes.

Type Aliases§

BoundarySystemHandler
PluginCommandHandler
SimulationSystemHandler
Compatibility-only synchronous event reactor.