appcore-types
appcore-types supplies the validated vocabulary shared by AppCore contracts
and Runtime components. It replaces unchecked strings at process, storage, and
wire boundaries with small types that enforce the same rules everywhere.
Main contracts
- application, tenant, cluster, node, Core, instance, capability, command, query, event, state, and sync-group identifiers;
RuntimeIdentityandCoreIdentity, including compatibility policy and status;CapabilityDescriptor, distributed Core manifests, and peer endpoints;TraceContextfor tenant-aware trace, span, parent, command, and origin correlation;RuntimeErrorandRuntimeResultfor controlled foundational failures.
Create identifiers at the first untrusted boundary and pass the typed value afterward. A trace child preserves its trace, tenant, origin, and command correlation while receiving a new span and current Core.
use ;
Boundaries and failures
This crate owns no I/O, mutable Runtime state, provider behavior, or business model. Invalid length, character set, reserved spelling, or inconsistent identity is rejected during construction instead of crossing into another subsystem. Protocol and contract versions remain explicit values; they are not inferred from a network peer.
See the basic example, the intermediate example, and the crate guide. Run:
Stable documentation
Stable ID: ACR-003. See the supplemental architecture and integration guide. This permanent ID remains valid if the wiki page moves.