Expand description
Core types for the RuVector Format (RVF).
This crate provides the foundational types shared across all RVF crates: segment headers, type enums, flags, error codes, and format constants.
All types are no_std compatible by default.
Re-exports§
pub use attestation::AttestationHeader;pub use attestation::AttestationWitnessType;pub use attestation::TeePlatform;pub use attestation::KEY_TYPE_TEE_BOUND;pub use ebpf::EbpfAttachType;pub use ebpf::EbpfHeader;pub use ebpf::EbpfProgramType;pub use ebpf::EBPF_MAGIC;pub use kernel::ApiTransport;pub use kernel::KernelArch;pub use kernel::KernelHeader;pub use kernel::KernelType;pub use kernel::KERNEL_MAGIC;pub use kernel::KERNEL_FLAG_SIGNED;pub use kernel::KERNEL_FLAG_COMPRESSED;pub use kernel::KERNEL_FLAG_REQUIRES_TEE;pub use kernel::KERNEL_FLAG_MEASURED;pub use kernel::KERNEL_FLAG_REQUIRES_KVM;pub use kernel::KERNEL_FLAG_REQUIRES_UEFI;pub use kernel::KERNEL_FLAG_HAS_NETWORKING;pub use kernel::KERNEL_FLAG_HAS_QUERY_API;pub use kernel::KERNEL_FLAG_HAS_INGEST_API;pub use kernel::KERNEL_FLAG_HAS_ADMIN_API;pub use kernel::KERNEL_FLAG_ATTESTATION_READY;pub use kernel::KERNEL_FLAG_RELOCATABLE;pub use kernel::KERNEL_FLAG_HAS_VIRTIO_NET;pub use kernel::KERNEL_FLAG_HAS_VIRTIO_BLK;pub use kernel::KERNEL_FLAG_HAS_VSOCK;pub use lineage::DerivationType;pub use lineage::FileIdentity;pub use lineage::LineageRecord;pub use lineage::LINEAGE_RECORD_SIZE;pub use lineage::WITNESS_DERIVATION;pub use lineage::WITNESS_LINEAGE_MERGE;pub use lineage::WITNESS_LINEAGE_SNAPSHOT;pub use lineage::WITNESS_LINEAGE_TRANSFORM;pub use lineage::WITNESS_LINEAGE_VERIFY;pub use cow_map::CowMapEntry;pub use cow_map::CowMapHeader;pub use cow_map::MapFormat;pub use cow_map::COWMAP_MAGIC;pub use delta::DeltaEncoding;pub use delta::DeltaHeader;pub use delta::DELTA_MAGIC;pub use kernel_binding::KernelBinding;pub use membership::FilterMode;pub use membership::FilterType;pub use membership::MembershipHeader;pub use membership::MEMBERSHIP_MAGIC;pub use refcount::RefcountHeader;pub use refcount::REFCOUNT_MAGIC;pub use checksum::ChecksumAlgo;pub use compression::CompressionAlgo;pub use data_type::DataType;pub use error::ErrorCode;pub use error::RvfError;pub use filter::FilterOp;pub use flags::SegmentFlags;pub use manifest::CentroidPtr;pub use manifest::EntrypointPtr;pub use manifest::HotCachePtr;pub use manifest::Level0Root;pub use manifest::PrefetchMapPtr;pub use manifest::QuantDictPtr;pub use manifest::TopLayerPtr;pub use profile::DomainProfile;pub use profile::ProfileId;pub use quant_type::QuantType;pub use segment::SegmentHeader;pub use segment_type::SegmentType;pub use signature::SignatureAlgo;pub use quality::BudgetReport;pub use quality::BudgetType;pub use quality::DegradationReason;pub use quality::DegradationReport;pub use quality::FallbackPath;pub use quality::IndexLayersUsed;pub use quality::QualityPreference;pub use quality::ResponseQuality;pub use quality::RetrievalQuality;pub use quality::SafetyNetBudget;pub use quality::SearchEvidenceSummary;pub use quality::derive_response_quality;pub use qr_seed::HostEntry;pub use qr_seed::LayerEntry;pub use qr_seed::SeedHeader;pub use qr_seed::SEED_MAGIC;pub use qr_seed::QR_MAX_BYTES;pub use qr_seed::SEED_HEADER_SIZE;pub use qr_seed::SEED_HAS_MICROKERNEL;pub use qr_seed::SEED_HAS_DOWNLOAD;pub use qr_seed::SEED_SIGNED;pub use qr_seed::SEED_OFFLINE_CAPABLE;pub use qr_seed::SEED_ENCRYPTED;pub use qr_seed::SEED_COMPRESSED;pub use qr_seed::SEED_HAS_VECTORS;pub use qr_seed::SEED_STREAM_UPGRADE;pub use security::HardeningFields;pub use security::SecurityError;pub use security::SecurityPolicy;pub use sha256::sha256;pub use sha256::hmac_sha256;pub use sha256::Sha256;pub use witness::GovernanceMode;pub use witness::PolicyCheck;pub use witness::Scorecard;pub use witness::TaskOutcome;pub use witness::WitnessHeader;pub use witness::WITNESS_MAGIC;pub use witness::WITNESS_HEADER_SIZE;pub use witness::WIT_SIGNED;pub use witness::WIT_HAS_SPEC;pub use witness::WIT_HAS_PLAN;pub use witness::WIT_HAS_TRACE;pub use witness::WIT_HAS_DIFF;pub use witness::WIT_HAS_TEST_LOG;pub use witness::WIT_HAS_POSTMORTEM;pub use witness::WIT_TAG_SPEC;pub use witness::WIT_TAG_PLAN;pub use witness::WIT_TAG_TRACE;pub use witness::WIT_TAG_DIFF;pub use witness::WIT_TAG_TEST_LOG;pub use witness::WIT_TAG_POSTMORTEM;pub use wasm_bootstrap::WasmHeader;pub use wasm_bootstrap::WasmRole;pub use wasm_bootstrap::WasmTarget;pub use wasm_bootstrap::WASM_MAGIC;pub use wasm_bootstrap::WASM_FEAT_SIMD;pub use wasm_bootstrap::WASM_FEAT_BULK_MEMORY;pub use wasm_bootstrap::WASM_FEAT_MULTI_VALUE;pub use wasm_bootstrap::WASM_FEAT_REFERENCE_TYPES;pub use wasm_bootstrap::WASM_FEAT_THREADS;pub use wasm_bootstrap::WASM_FEAT_TAIL_CALL;pub use wasm_bootstrap::WASM_FEAT_GC;pub use wasm_bootstrap::WASM_FEAT_EXCEPTION_HANDLING;pub use agi_container::AgiContainerHeader;pub use agi_container::ContainerSegments;pub use agi_container::ContainerError;pub use agi_container::ExecutionMode;pub use agi_container::AuthorityLevel;pub use agi_container::ResourceBudget;pub use agi_container::CoherenceThresholds;pub use agi_container::AGI_MAGIC;pub use agi_container::AGI_HEADER_SIZE;pub use agi_container::AGI_MAX_CONTAINER_SIZE;pub use agi_container::AGI_HAS_KERNEL;pub use agi_container::AGI_HAS_WASM;pub use agi_container::AGI_HAS_ORCHESTRATOR;pub use agi_container::AGI_HAS_WORLD_MODEL;pub use agi_container::AGI_HAS_EVAL;pub use agi_container::AGI_HAS_SKILLS;pub use agi_container::AGI_HAS_WITNESS;pub use agi_container::AGI_SIGNED;pub use agi_container::AGI_REPLAY_CAPABLE;pub use agi_container::AGI_OFFLINE_CAPABLE;pub use agi_container::AGI_HAS_TOOLS;pub use agi_container::AGI_HAS_COHERENCE_GATES;pub use agi_container::AGI_HAS_DOMAIN_EXPANSION;pub use agi_container::AGI_TAG_AUTHORITY_CONFIG;pub use agi_container::AGI_TAG_DOMAIN_PROFILE;pub use agi_container::AGI_TAG_TRANSFER_PRIOR;pub use agi_container::AGI_TAG_POLICY_KERNEL;pub use agi_container::AGI_TAG_COST_CURVE;pub use agi_container::AGI_TAG_COUNTEREXAMPLES;pub use constants::*;
Modules§
- agi_
container - AGI Cognitive Container types (ADR-036).
- attestation
- Attestation types for Confidential Computing integration.
- checksum
- Checksum / hash algorithm identifiers.
- compression
- Compression algorithm identifiers.
- constants
- Magic numbers, alignment requirements, and size limits for the RVF format.
- cow_map
- COW_MAP_SEG (0x20) types for the RVF computational container.
- data_
type - Vector data type discriminator.
- delta
- DELTA_SEG (0x23) types for the RVF computational container.
- ebpf
- EBPF_SEG (0x0F) types for the RVF computational container.
- error
- Error codes and error types for the RVF format.
- filter
- Filter operator types for metadata-filtered queries and deletes.
- flags
- Segment flags bitfield for the RVF format.
- kernel
- KERNEL_SEG (0x0E) types for the RVF computational container.
- kernel_
binding - Kernel binding types for the RVF computational container.
- lineage
- DNA-style lineage provenance types for RVF files.
- manifest
- Level 0 root manifest and hotset pointer types.
- membership
- MEMBERSHIP_SEG (0x22) types for the RVF computational container.
- profile
- Hardware and domain profile identifiers.
- qr_seed
- QR Cognitive Seed types for ADR-034.
- quality
- Quality envelope types for ADR-033 progressive indexing hardening.
- quant_
type - Quantization type discriminator for QUANT_SEG payloads.
- refcount
- REFCOUNT_SEG (0x21) types for the RVF computational container.
- security
- Security policy and error types for ADR-033 mandatory manifest signatures.
- segment
- 64-byte segment header for the RVF format.
- segment_
type - Segment type discriminator for the RVF format.
- sha256
- Pure no_std SHA-256 (FIPS 180-4) and HMAC-SHA256 (RFC 2104).
- signature
- Signature algorithm identifiers and the signature footer struct.
- wasm_
bootstrap - WASM_SEG (0x10) types for self-bootstrapping RVF files.
- witness
- Witness bundle types for ADR-035 capability reports.