Skip to main content

Crate batuta

Crate batuta 

Source
Expand description

batuta has moved to aprender-orchestrate.

This crate re-exports aprender-orchestrate for backward compatibility. New code should depend on aprender-orchestrate directly.

Modules§

agent
Autonomous Agent Runtime (perceive-reason-act loop).
analyzer
ansi_colors
ANSI Color Support
audit
Pipeline Audit Trail Integration
backend
bug_hunter
Proactive Bug Hunting Module
comply
Stack Compliance Engine - Cross-project consistency enforcement
config
content
Content Creation Tooling Module
data
Data Platforms Integration
experiment
Experiment Tracking Integration Module
falsification
Popperian Falsification Checklist Implementation
hf
HuggingFace Hub Integration
mcp
MCP (Model Context Protocol) Server Module
numpy_converter
NumPy to Trueno conversion module (BATUTA-008)
oracle
Oracle Mode - Intelligent query interface for the Sovereign AI Stack
parf
PARF (Pattern and Reference Finder) module (BATUTA-012)
pipeline
5-phase transpilation pipeline with Jidoka stop-on-error validation.
pipeline_analysis
Pipeline Library Analysis
playbook
Batuta Playbook — deterministic pipeline orchestration
plugin
pytorch_converter
PyTorch to Realizar conversion module (BATUTA-010)
recipes
Orchestration Recipes Module
report
serve
Model Serving Ecosystem
sklearn_converter
sklearn to Aprender conversion module (BATUTA-009)
stack
PAIML Stack Dependency Orchestration
timing
Centralized timing utilities.
tools
tui
TUI (Terminal User Interface) Module
types
viz
Data Visualization Frameworks Integration

Structs§

AnalysisStage
Analysis stage - detects languages and dependencies
Anomaly
Detected anomaly in the stack
AprenderAlgorithm
Aprender equivalent algorithm
ArtifactSignature
Cryptographic signature for artifacts
BackendSelector
Cost model for backend selection Based on spec section 2.2 lines 191-204
BuildStage
Build stage - compiles to final binary
Capability
A capability provided by a component
ChainVerification
Result of hash chain verification.
ChatMessage
A chat message with role and content
ChatTemplateEngine
Chat template engine for formatting prompts
CheckItem
A single checklist item result.
ChecklistResult
Complete checklist evaluation result.
CiCdBenchmarkRecipe
CI/CD integration recipe for cost-performance benchmarking
CircuitBreakerConfig
Cost circuit breaker configuration
CitationMetadata
Citation metadata for BibTeX/CFF generation
ComplyConfig
Main compliance configuration
ComplyReport
Stack compliance report
ComponentMetrics
Quality and performance metrics for a component
ComponentNode
A component in the stack knowledge graph
ComponentQuality
Quality assessment for a single component
ComponentRecommendation
Component recommendation with confidence
ComputeRecommendation
Compute recommendation
ContextManager
Context manager for handling token limits
ContextSnapshot
Snapshot of pipeline context for audit purposes.
ContextWindow
Known model context window sizes
CostCircuitBreaker
Cost circuit breaker
CostMetrics
Cost metrics for experiments
CostPerformanceBenchmark
Cost-performance benchmark with Pareto frontier analysis
CostPerformanceBenchmarkRecipe
Cost-performance benchmarking recipe
CostPerformancePoint
A point in the cost-performance space
DeadCode
Dead code analysis result
DistributionRecommendation
Distribution recommendation
EnergyMetrics
Energy consumption metrics
ErrorForecaster
Simple exponential smoothing for time series forecasting
Evidence
Evidence collected for a check.
ExperimentRun
Experiment run with full tracking metadata
ExperimentTrackingConfig
Experiment tracking recipe configuration
ExperimentTrackingRecipe
Experiment tracking recipe
FailoverConfig
Failover configuration
FailoverManager
Stateful failover manager
FileDependency
Dependency relationship between files
ForecastMetrics
Forecast error metrics
GraphMetrics
Computed graph-level metrics
HardwareSpec
Hardware specification for queries
HashChainEntry
Hash chain entry for tamper-evident audit trail.
HealthSummary
Summary of stack health for dashboard
HeroImageResult
Hero image detection result
InMemoryExperimentStorage
In-memory experiment storage for testing
IntegrationPattern
Integration pattern between components
IsolationForest
Isolation Forest for anomaly detection Implements a simplified version of the algorithm from Liu et al. (2008)
KnowledgeGraph
Knowledge graph containing all stack components and their relationships
MigrationReport
Migration report data
NumPyConverter
NumPy to Trueno converter
OfflineRegistryConfig
Offline model registry configuration
OptimizationStage
Optimization stage - applies performance optimizations using MoE routing
OracleQuery
Oracle query structure
OracleResponse
Complete Oracle response
Orcid
ORCID identifier (Open Researcher and Contributor ID)
ParfAnalyzer
PARF analyzer for cross-codebase analysis
PipelineAuditCollector
Collector for pipeline audit trails.
PipelinePath
Decision path representing a pipeline stage execution.
PipelineTrace
A single audit trace entry for pipeline execution.
PluginMetadata
Metadata describing a transpiler plugin
PluginRegistry
Plugin registry for managing transpiler plugins
PluginStage
Wrapper to integrate a plugin as a pipeline stage
PreRegistration
Pre-registration for reproducible research
ProjectAnalysis
Complete project analysis results
PyTorchConverter
PyTorch to Realizar converter
QualityChecker
Quality matrix checker for PAIML stack components
QualityIssue
A quality issue found during analysis
QualitySummary
Summary statistics for stack quality
QueryConstraints
Query constraints
QueryEngine
Query engine that processes queries and generates responses
QueryPreferences
Query preferences
RealizarOperation
Realizar equivalent operation
RecipeResult
Recipe execution result
Recommender
Oracle recommendation engine
ResearchArtifact
Research artifact with full academic metadata
ResearchArtifactRecipe
Academic research artifact recipe
ResearchContributor
Research contributor with ORCID and CRediT roles
RouterConfig
Spillover routing configuration
Score
Score with context
ServeBackendSelector
Backend selection configuration
SklearnConverter
sklearn to Aprender converter
SovereignArtifact
Artifact in a sovereign distribution
SovereignDeploymentConfig
Sovereign deployment recipe configuration
SovereignDeploymentRecipe
Sovereign deployment recipe
SovereignDistribution
Sovereign distribution manifest for air-gapped deployments
SpilloverRouter
Spillover router for hybrid cloud routing
StackComplyEngine
Stack Compliance Engine
StackComponent
A component in the Sovereign AI Stack
StackDiagnostics
Main diagnostics engine for stack analysis
StackQualityReport
Complete quality report for the stack
StageTimer
Timer for measuring stage execution duration.
StreamingContext
Cached streaming context for failover recovery
SymbolReference
A reference to a symbol in the codebase
TokenEstimator
Simple token estimator (approximation without full tokenizer)
TranspilationPipeline
Main transpilation pipeline
TranspilationStage
Transpilation stage - converts source to Rust
ValidationStage
Validation stage - verifies semantic equivalence
WorkflowState
Complete workflow state tracking

Enums§

AndonStatus
Andon board status for the entire stack
AnomalyCategory
Categories of anomalies
AppleChip
Apple Silicon chip variants
ArtifactType
Types of distributable artifacts
Backend
Compute backend options
CapabilityCategory
Category of capability
CheckStatus
Result status for a checklist item.
CitationType
Citation type
CodePattern
Code pattern detected in the codebase
ComplyReportFormat
Report output format
ComputeDevice
Compute device abstraction for heterogeneous hardware
ComputeIntensity
Compute intensity levels
CpuArchitecture
CPU architecture variants
CreditRole
CRediT (Contributor Roles Taxonomy) roles
DataSize
Data size specification
DependencyKind
Type of dependency between files
EvidenceType
Type of evidence collected.
ExperimentError
Errors that can occur during experiment tracking operations
GpuVendor
GPU vendor identification
HealthStatus
Health status for components (Andon-style visual control)
ImageFormat
Supported image formats for hero images
Language
Programming language detected in the project
ModelParadigm
Model training paradigm classification
NumPyOp
NumPy operation types
OpComplexity
Operation complexity for MoE (Mixture-of-Experts) routing
OptimizationTarget
Optimization target for queries
OracleBackend
Compute backend selection
OracleOpComplexity
Operation complexity classification
PhaseStatus
Status of a workflow phase
PlatformEfficiency
Platform efficiency classification
PrivacyTier
Privacy tier for backend selection
ProblemDomain
Problem domain for classification
PyTorchOperation
PyTorch operation types (inference-focused)
QualityGrade
Quality grade levels based on score percentages
QualityStackLayer
Layer in the PAIML stack architecture
RejectReason
Reason for rejection
ReportFormat
Role
Chat message role
RoutingDecision
Routing decision result
RunStatus
Run status
ServingBackend
Supported serving backends
Severity
Severity level for checklist items.
SignatureAlgorithm
Supported signature algorithms
SklearnAlgorithm
sklearn algorithm types
StackLayer
Layer in the Sovereign AI Stack hierarchy
SymbolKind
Symbol kind for reference finding
TemplateFormat
Chat template format
TpsGrade
TPS-aligned assessment grade.
TpuVersion
TPU version variants
TruncationStrategy
Truncation strategy when context is exceeded
ValidationStrategy
Validation strategy for pipeline stages
WorkflowPhase
Workflow phase in the 5-phase Batuta pipeline

Traits§

ExperimentStorage
Experiment storage backend trait
PipelineStage
Trait for pipeline stages
TranspilerPlugin
Core trait for transpiler plugins

Functions§

evaluate_critical_only
Run only the critical architectural invariants.
evaluate_project
Run the complete falsification checklist against a project.
new_audit_collector
Create a new pipeline audit collector with a generated run ID.
record_failure
Record a failed stage execution.
record_success
Record a successful stage execution.
render_dashboard
Render diagnostics as ASCII dashboard