ggen-core 26.7.2

Core graph-aware code generation engine
Documentation
//! # ggen-domain - Domain Logic Layer
//!
//! This crate contains all domain/business logic for ggen, completely separated
//! from CLI concerns. It provides pure business logic functions that can be used
//! by CLI, web APIs, or other interfaces.
//!
//! ## Architecture
//!
//! - **No CLI dependencies**: This crate has ZERO dependencies on clap or clap-noun-verb
//! - **Infrastructure dependencies**: Uses ggen-core, ggen-ai, ggen-marketplace for operations
//! - **Async by default**: Domain functions are async for non-blocking operations
//!
//! ## Module Organization
//!
//! Domain logic is organized by functional area:
//! - `ai` - AI operations (code analysis, generation)
//! - `graph` - Graph operations (RDF loading, SPARQL queries)
//! - `template` - Template operations (generate, lint, render)
//! - `project` - Project operations (create, generate, plan)
//! - `rdf` - RDF metadata operations
//! - `audit` - Security auditing
//! - `ci` - CI/CD operations
//! - `shell` - Shell completion generation

#![deny(warnings)] // Poka-Yoke: Prevent warnings at compile time - compiler enforces correctness

pub mod audit;
pub mod ci;
pub mod config;
// pub mod domain; // Removed due to module inception warning
pub mod environment;
pub mod error;
pub mod generation;
pub mod graph;
pub mod mcp_config;
pub mod ontology;
pub mod packs;
pub mod project;
pub mod rdf;
pub mod shell;
pub mod sync_profile;
pub mod template;
pub mod utils;

// CISO governance scanners
pub mod capability_scanner;
pub mod template_scanner;

// Re-export audit types for convenience
pub use audit::security::{
    ConfigAuditor, ConfigIssue, ConfigIssueType, DependencyCheckResult, DependencyChecker,
    SecurityScanResult, SecurityScanner, Severity, SeveritySummary, Vulnerability,
    VulnerableDependency,
};

// AHI (Autonomic Hyper-Intelligence) subsystem - REMOVED (dead code)
// pub mod ahi_contract;
// pub mod auto_promotion_pipeline;
// pub mod doctrine_engine;
// pub mod marketplace_scorer;
// pub mod ontology_proposal_engine;
// pub mod proof_carrier;

// AHI Type-System Hardening (Phase 1-5) - REMOVED (dead code)
// Makes governance impossible-to-violate at compile time
// pub mod action_types; // Phase 1: Type-indexed actions (Risk, TickBudget, Mutation)
// pub mod capability_system; // Phase 3: Capability-based effects
// pub mod proof_types; // Phase 4: Proof-carrying decisions
// pub mod temporal_fabric; // Phase 2: MAPE-K typestate + causality // Phase 5: Lock-free snapshots + conflict-free aggregation

// Re-export commonly used types for convenience
pub use crate::utils::error::{Error, Result};