Crate fleetforge_runtime

Crate fleetforge_runtime 

Source
Expand description

FleetForge runtime state machine and orchestrator components.

Re-exports§

pub use adapters::AgentRunAction;
pub use adapters::AgentRunAdapter;
pub use adapters::AgentRunContext;
pub use adapters::AgentRunEnvelope;
pub use executor::BudgetCtx;
pub use executor::DeterministicReplayExecutor;
pub use executor::DockerToolExecutor;
pub use executor::ExecutorRegistry;
pub use executor::FirecrackerToolExecutor;
pub use executor::HttpProxyExecutor;
pub use executor::LangGraphAgentExecutor;
pub use executor::LlmExecutor;
pub use executor::ResourceUsage;
pub use executor::StepCtx;
pub use executor::StepExecutionResult;
pub use executor::StepExecutor;
pub use executor::ToolRouterExecutor;
pub use features::set_trust_mesh_alpha;
pub use features::trust_mesh_alpha_enabled;
pub use gateway::speech::NoopStt;
pub use gateway::speech::NoopTts;
pub use gateway::speech::SpeechToText;
pub use gateway::speech::TextToSpeech;
pub use gateway::anthropic::AnthropicConfig;
pub use gateway::anthropic::AnthropicLanguageModel;
pub use gateway::openai::OpenAiConfig;
pub use gateway::openai::OpenAiLanguageModel;
pub use gateway::GatewayRegistry;
pub use gateway::LanguageModel;
pub use gateway::ToolAdapter;
pub use guardrails::OutputGuardPolicy;
pub use guardrails::PolicyBundle;
pub use guardrails::PromptInjectionFallbackPolicy;
pub use memory::InMemoryAdapter;
pub use memory::MemoryAdapter;
pub use memory::MemoryRecord;
pub use memory::VectorMatch;
pub use memory::VectorMemoryAdapter;
pub use model::ChatMessage;
pub use model::ChatRole;
pub use model::ContextSource;
pub use model::LlmInputs;
pub use model::QueuedStep;
pub use model::ResponseSchema;
pub use model::RunId;
pub use model::RunStatus;
pub use model::StepId;
pub use model::StepSpec;
pub use model::StepStatus;
pub use model::StepType;
pub use model::ToolChoice;
pub use model::ToolSpec;
pub use policy::enforce_policy;
pub use policy::PolicyOutcome;
pub use policy::RuntimePolicyPack;
pub use replay::DriftTolerance;
pub use replay::ReplayExecutor;
pub use replay::ReplayOutcome;
pub use replay::ReplayStrategy;
pub use replay::StepDrift;
pub use replay::StepReplay;
pub use scheduler::Scheduler;
pub use scheduler::SchedulerConfig;

Modules§

adapters
Adapter scaffolding for bridging authoring frameworks (LangGraph, AutoGen, CrewAI) into FleetForge’s delivery/policy/replay kernel.
aibom
executor
features
gateway
Gateway traits that abstract external language models and tools.
guardrails
memory
model
otel
policy
replay
Time-travel replay executor for deterministic verification and evals.
scheduler

Macros§

event_policy
span_run
span_step
span_tool

Structs§

AllowAllPolicy
Attestation
Placeholder attestation envelope attached to trust decisions and replay events.
BasicPiiPolicy
Regex-based PII detector and redactor.
CompiledPrompt
Result of compiling a prompt reference with variables and context.
InMemoryAttestationVault
In-memory attestation vault used for tests and local development.
ModelResponse
Canonical response returned from chat invocations.
ModelUsage
Provider usage metrics returned by language model adapters.
ObjectStoreAttestationVault
Object store backed attestation vault with a Postgres index.
PolicyDecision
Policy decision produced by evaluating a policy.
PolicyRequest
PromptCompiler
Filesystem-backed prompt registry that compiles reusable packs.
RegulatedPack
SchemaErrorDetail
Details about a generic schema validation failure.
SchemaValidationError
Error returned when validating instances against embedded schemas.
StepSpecError
Error returned when validating step specifications.
StepSpecErrorDetail
Schema validation failure details.
TrustDecision
Outcome of evaluating a policy against a subject.
TrustOrigin
Describes how the runtime obtained an untrusted or derived value.
Trusted
Strongly-typed wrapper for trusted values.
Untrusted
Strongly-typed wrapper for untrusted values.

Enums§

RegulatedVertical
Regulated verticals supported by the policy pack.
Trust
High-level trust classification.
TrustBoundary
Boundary within the runtime where trust is assessed.
TrustSource
Source system that produced the value.
TrustSubject
Identifies what entity an attestation or trust decision covers.
TrustVerdict
Placeholder for future detailed policy verdict information.

Constants§

AGENT_RUN_SCHEMA_JSON
ARTIFACT_SCHEMA_JSON
RUN_EVENT_SCHEMA_JSON
RUN_SCHEMA_JSON
RUN_SPEC_SCHEMA_JSON
STEP_SCHEMA_JSON
Embedded JSON schemas shared across FleetForge surfaces.
TRUST_MESH_ALPHA_FLAG
Environment flag that gates Trust Mesh alpha capabilities.

Traits§

AttestationVault
PolicyEngine
PromptRegistry
Registry contract that resolves reusable prompt references into compiled prompts.

Functions§

bootstrap
Bootstraps the FleetForge runtime components.
digest_bytes
Computes a deterministic SHA256 digest for a byte slice.
digest_json
Computes a deterministic SHA256 digest for the supplied JSON value.
shared_default_pack
validate_agent_run
Validates an AgentRun adapter envelope.
validate_artifact
Validates artifact metadata.
validate_run
Validates a stored run record.
validate_run_event
Validates a run event envelope.
validate_run_spec
Validates a run specification instance.
validate_step_spec
Validates a step specification against the FleetForge step schema.