Skip to main content

Module compiler

Module compiler 

Source
Expand description

UAR-AGENT-MD Compiler

This module implements the PMPO-driven compilation pipeline that transforms UAR-AGENT-MD Markdown specification documents into signed, runnable agent descriptors. It supports two operating modes:

  • Single-shot: A complete document is parsed and compiled in one call via the CompilerAgentSkill NativeSkill (uar.compile).
  • Conversational: A multi-turn session incrementally builds a partial IR, determines completeness, and compiles when ready via session tools:
    • uar.session.update_section
    • uar.session.check_completeness
    • uar.session.compile

Re-exports§

pub use cli::run_compile;
pub use compiler_skill::CompilerAgentSkill;
pub use conformance::CheckResult;
pub use conformance::ConformanceReport;
pub use conformance::check_conformance;
pub use conversational::CheckCompletenessTool;
pub use conversational::CompileSessionTool;
pub use conversational::CompilerSessionStore;
pub use conversational::UpdateSectionTool;
pub use error::CompileError;
pub use ir::AgentDescriptorIR;
pub use ir::PartialAgentDescriptorIR;
pub use parser::parse;
pub use pipeline::CompileContext;
pub use pipeline::CompileOutput;
pub use pipeline::compile;
pub use report::CompileReport;
pub use service::CompilerService;
pub use session::CompilerSession;
pub use storage::InMemorySpecStorage;
pub use storage::SpecStorage;

Modules§

cli
Compiler CLI surface (CH-15): the compile subcommand.
compiler_skill
Single-shot compiler skill — a NativeSkill that compiles a complete UAR-AGENT-MD document in one call.
completeness
Completeness analysis for partial agent descriptor IRs.
conformance
CH-14 conformance harness.
conversational
Conversational compiler tools — NativeSkill implementations that power the multi-turn compiler agent.
error
ir
Intermediate Representation (IR) for UAR-AGENT-MD documents.
parser
UAR-AGENT-MD Markdown parser.
pipeline
8-stage compilation pipeline orchestrator.
registries
Trait-based registries for schema resolution and endpoint routing.
report
Compile report types.
service
Compiler service — orchestrates spec storage, pipeline execution, and sessions.
session
Compiler session state for conversational mode.
signing
Key provider abstraction for descriptor signing.
stages
Compilation pipeline stages.
storage
Spec storage abstraction for persisting agent specifications and compile reports.
to_artifact
Conversion from the compiler’s AgentDescriptorIR to the runtime AgentArtifact.