Skip to main content

Crates Overview

The Open Agentic Platform is heavily built on Rust. The crates/ directory contains the library crates that power the platform's core logic, orchestration, and desktop backend.

Key Library Crates

CrateDescription
factory-engineImplements the two-phase Factory pipeline logic and handles Governance Certificate emission.
factory-contractsDefines the shared types and schemas used across the factory ecosystem.
policy-kernelThe enforcement engine that evaluates safety tiers and policy rules against agent actions.
orchestratorExecutes multi-step DAG workflows with verify-and-retry logic and state persistence.
agentCore agent interaction traits and LLM provider abstractions.
tool-registryManages the registration, schema validation, and tier classification of tools available to agents.
axiomregentThe governed MCP server sidecar. It unifies Git context, semantic search, and policy enforcement into a single process.

Traceability

Because OAP enforces spec-first development, every crate is bound to a governing specification. This binding is declared in the crate's Cargo.toml file using the [package.metadata.oap] table.

For a complete, up-to-date mapping of every crate to its governing spec, consult the Codebase Index.