Crate Map
All crates in the SmartPoints workspace, organized by the ADR-088 six-layer protocol stack. Test counts reflect #[test] attributes in source and test files.
Layer 0: Kernel
The SPTOS microkernel provides the execution environment for agents and services.
| Crate | Description | Key Types | Tests |
|---|---|---|---|
sptos-nucleus | Kernel core: syscalls, scheduler, vector store, checkpoint | Kernel, KernelConfig, VectorStore | 157 |
sptos-cap | Capability-based access control: grants, revocation, derivation | CapabilityTable, CapabilityGrant, CapManager | 103 |
sptos-proof | Formal proof engine: witnesses, attestations, verification | ProofEngine, Witness, Verifier, Attestation | 73 |
sptos-boot | Secure boot chain: stages, signatures, attestation | BootLoader, BootManifest, WitnessLog | 61 |
sptos-queue | Lock-free ring buffer message queues | KernelQueue, Descriptor, RingBuffer | 80 |
sptos-sched | Task scheduler with novelty-aware priority | Scheduler, Task, Priority, Partition | 47 |
sptos-vecgraph | HNSW vector graph with coherence gating | GraphStore, VectorStore, CoherenceGate | 69 |
sptos-types | Shared type definitions across kernel crates | Capability, TaskId, RegionId, Handle | 63 |
sptos-region | Memory region management: slab allocation, append-only | RegionManager, Slab, AppendOnly, Immutable | 88 |
sptos-shell | Interactive kernel shell (spsh) | Parser, ShellCommand | 41 |
Layer 1: Host
The host daemon manages kernel instance lifecycles and platform-native integration.
| Crate | Description | Key Types | Tests |
|---|---|---|---|
sptos-host-core | Platform-agnostic host daemon library | InstanceManager, InstanceState, ResourceLimits | 57 |
sptos-host-macos | macOS: Secure Enclave, launchd, Bonjour | MacOsKeyStore, MacOsLifecycle, MacOsDiscovery | 47 |
sptos-host-linux | Linux: TPM 2.0, systemd, Avahi | LinuxKeyStore, LinuxLifecycle, LinuxDiscovery | 45 |
sptos-host-ios | iOS: Secure Enclave, XPC, satellite mode | IosKeyStore, IosLifecycle, Satellite | 73 |
sptos-host-visionos | visionOS: Secure Enclave, spatial feed | VisionOsKeyStore, SpatialFeed | 63 |
sptos-host-windows | Windows: TPM 2.0, SCM, WSD | WindowsKeyStore, WindowsLifecycle | 66 |
Layer 2: Wire
DID-addressed vector transport over QUIC with store-and-forward.
| Crate | Description | Key Types | Tests |
|---|---|---|---|
spt-wire | QUIC transport with DID routing, ConnectionCascade, pub/sub | TransportEndpoint, TransportChannel, ConnectionCascade, SubscriptionManager | 35 |
spt-wire-format | Binary segment codec (varint, delta, hash) | Segment, Codec | -- |
spt-wire-bridge | Bridges SmartPoint envelopes to QUIC transport | WireBridge, WireSession | 0 |
spt-crypto-provider | rustls CryptoProvider with DID auth and PQ crypto | SptCryptoProvider, DidVerifier | -- |
spt-nat | NAT-PMP, TURN (with 401 retry + IPv6) for NAT traversal | QuicNat, StunClient | 32 |
Layer 3: SmartPoint
The cryptographic core: asymmetric pairs, post-quantum crypto, identity.
| Crate | Description | Key Types | Tests |
|---|---|---|---|
spt-smartpoint | SmartPoint pairs and three-layer vector envelope | SmartPointPair, VectorEnvelope, CryptoSuite | 48 |
spt-pq-crypto | Post-quantum cryptography: ML-KEM, ML-DSA, HQC | MlKem768, MlDsaKeyPair, HybridKem | 56 |
spt-vault | Key storage with hardware integration | Vault, SmartPointKeys, Attestation | 74 |
spt-aid | Smart Agentic ID (SAID): DID generation and W3C compliance | Did, DidDocument, QuicCert, Federation | 60 |
Layer 4: Scope and Governance
Governance boundaries, policy enforcement, and external service connectors.
| Crate | Description | Key Types | Tests |
|---|---|---|---|
sptos-scope | Scope governance: policies, actors, connectors, rendezvous | Scope, ScopePolicy, ActorRegistry, Rendezvous | 48 |
spt-connectors-core | Connector framework: traits, lifecycle, manifests | ConnectorTrait, ConnectorManifest, Lifecycle | 29 |
spt-connector-github | GitHub connector: repos, PRs, issues | GitHubConnector, GitHubAuth, Operations | 52 |
spt-entra | Microsoft Entra ID connector: auth, groups, roles | EntraConnector, EntraConfig, RoleMapping | 114 |
spt-federation | Cross-scope federation: trust, negotiation, routing | FederationRegistry, TrustRelationship | 43 |
Layer 5: Marketplace
Service discovery, retention lifecycle, quarx metering, and privacy overlays.
| Crate | Description | Key Types | Tests |
|---|---|---|---|
spt-discovery | DHT-based service discovery and reputation | ServiceRegistry, DhtNode, ReputationTracker | 69 |
spt-marketplace | Retention lifecycle, escrow, quarx metering | RetentionManager, QuarxLedger, CircuitBreaker | 56 |
spt-aic | Agentic Identity Chain: Merkle DAG identity ledger | MerkleDag, Vertex, MerkleProof | 41 |
spt-dark | Dark overlay network: shadow addressing, validation | ShadowAddress, DarkRegistry, DomainResolver | 83 |
spt-p2p | Peer-to-peer networking: gossip, mesh, Kademlia | P2pNode, GossipProtocol, MeshTopology | 48 |
spt-onion | Multi-hop onion routing for traffic analysis resistance | OnionRouter, Circuit, Relay, Mixer | 69 |
spt-checkpoint | Incremental state checkpointing and transfer | CheckpointManifest, IncrementalCheckpoint | 36 |
Layer 6: Application
End-user functionality: appliance, telemetry, LLM routing, crews, spatial.
| Crate | Description | Key Types | Tests |
|---|---|---|---|
spt-appliance | Network appliance: bootstrap, configuration, invites | Appliance, BootstrapConfig, InviteManager | 20 |
spt-telemetry | Telemetry pipeline: OTLP, Splunk, webhooks, filters | TelemetryPipeline, Collector, Filter | 30 |
spt-llm-router | LLM request routing with tier-based model selection | LlmRouter, TierAssessment, BudgetTracker | 47 |
spt-llm-connector | LLM provider connectors: Azure, Anthropic, Bedrock, Vertex | LlmProvider, AzureConnector, AnthropicConnector | 40 |
spt-crew | Crew orchestration: agent teams, topics, sessions | Crew, Topic, Session, Roster | 66 |
spt-ops-agents | Operational agents: sentinel, alerting, recommendations | Sentinel, AlertManager, QuarxEconomist | 40 |
spt-spatial | Spatial computing: scene graph, animations, agent visualization | SceneGraph, Animation, AgentViz | 48 |
spt-spatial-macos | macOS spatial: SceneKit rendering, camera, input | MacOsRenderer, Camera, InputHandler | 39 |
spt-spatial-visionos | visionOS spatial: hand/eye tracking, immersive spaces | HandTracking, EyeTracking, ImmersiveSpace | 60 |
spt-dev-scope | Developer scope: tasks, workflows, agent pools, templates | DevScope, TaskRunner, AgentPool, Template | 42 |
Layer 7: Intelligence
Model inference, generative runtime, and model registry.
| Crate | Description | Key Types | Tests |
|---|---|---|---|
spt-inference | Micro-inference via tract: ONNX/GGUF models, batch prediction | InferenceEngine, ModelSession, TractBackend | 29 |
spt-llm-runtime | Generative LLM runtime via Candle: tokenization, sampling, KV-cache | LlmRuntime, CandleBackend, SamplingConfig | 34 |
spt-models | Model registry: download, verify, format detection, catalog | ModelRegistry, ModelCard, FormatDetector | 94 |
Layer 8: Orchestration
Agent orchestration, swarm coordination, and MCP tooling (Rust-native, replaces npm sptflo).
| Crate | Description | Key Types | Tests |
|---|---|---|---|
spt-flo | Wire publisher + ReasoningBank: swarm coordination, memory, hooks | FloEngine, ReasoningBank, WirePublisher, SwarmCoordinator | 89 |
spt-flo-mcp | MCP tool server: 13 tools for agent/swarm/memory operations | McpServer, ToolRegistry, McpHandler | 29 |
Bridges
Cross-layer integration and testing.
| Crate | Description | Key Types | Tests |
|---|---|---|---|
spt-apple-host-bridge | UniFFI bridge: Rust host to Swift/Apple APIs | AppleBridge, SwiftCallback | 16 |
spt-integration-tests | End-to-end tests across all layers | -- | 23 |
Summary
| Layer | Crate Count | Total Tests |
|---|---|---|
| 0 - Kernel | 10 | 782 |
| 1 - Host | 6 | 351 |
| 2 - Wire | 3 | 67 |
| 3 - SmartPoint | 4 | 238 |
| 4 - Scope | 5 | 286 |
| 5 - Marketplace | 7 | 402 |
| 6 - Application | 10 | 432 |
| 7 - Intelligence | 3 | 157 |
| 8 - Orchestration | 2 | 118 |
| Bridges | 2 | 39 |
| Total | 52 | 2,872 |
Note: This table covers the 52 crates in the ADR-088 architecture. The workspace contains additional crates for vector DB, neural architecture, reasoning, and other subsystems not part of the core protocol stack.