46class ModelOrchestrator;
50class MCPAuthorizationManager;
52class SqliteStorageBackend;
54class ConstitutionalValidator;
55class CompactorRegistry;
58struct InterfaceContext;
101 std::unique_ptr<entropic::MCPAuthorizationManager>
mcp_auth;
104 std::unique_ptr<entropic::AgentEngine>
engine;
105 std::unique_ptr<entropic::SqliteStorageBackend>
storage;
110 std::unique_ptr<entropic::ConstitutionalValidator>
validator;
132 void* state_observer_data =
nullptr;
139 void* queue_observer_data =
nullptr;
176 : lock_(h->api_mutex), log_scope_(h->log_id) {}
182 std::lock_guard<std::mutex> lock_;
JSONL audit logger for MCP tool calls.
Bundled model registry — resolves keys to filesystem paths.
gh#59 (v2.3.1): RAII guard combining api_mutex + log scope.
HandleApiLock(entropic_handle_t h)
Lock handle mutex + enter log scope.
Thread-safe hook registration and dispatch.
Bundled model registry loaded from bundled_models.yaml.
gh#59 (v2.3.1): RAII guard — sets thread's current handle_id.
Per-identity compactor registration and dispatch.
Configuration structs with defaults.
Post-generation constitutional compliance validator.
Core agent execution engine.
Error types for cross-.so error reporting.
Unix socket MCP bridge — exposes a running engine to external clients.
Thread-safe hook registration and dispatch.
IdentityManager – lifecycle management for static and dynamic identities.
spdlog initialization and logger access.
Per-identity MCP authorization with runtime grant/revoke.
Activate model on GPU (WARM → ACTIVE).
ModelOrchestrator — multi-model lifecycle and routing.
MCP server lifecycle management and tool routing.
Session model log — raw streaming transcript.
SqliteStorageBackend — conversation persistence via SQLite.
Holds orchestrator + tier for C callback user_data.
Full parsed configuration.
Engine handle struct — owns all subsystems.
std::unique_ptr< entropic::ConstitutionalValidator > validator
Constitutional validation.
std::unique_ptr< entropic::ToolExecutor > tool_executor
Tool dispatch.
void(* critique_end_cb)(void *)
Fires after the critique generate returns.
int log_id
gh#59 (v2.3.1): unique handle id for per-handle log routing via entropic::log::HandleAwareSink.
std::atomic< bool > running
True during run()
std::unordered_map< std::string, std::vector< std::string > > tier_validation_rules
Per-tier validation_rules from identity frontmatter (v2.0.6).
std::unique_ptr< entropic::SqliteStorageBackend > storage
SQLite persistence.
entropic::InferenceInterface inference_iface
Stable copy for validator lifetime.
std::unique_ptr< entropic::AuditLogger > audit_logger
Audit log.
std::unique_ptr< entropic::SessionLogger > session_logger
Model transcript log.
std::unordered_map< std::string, std::vector< std::string > > tier_allowed_tools
Per-tier allowed_tools from identity frontmatter.
std::unique_ptr< entropic::CompactorRegistry > compactor_registry
Compaction strategies.
std::atomic< bool > configured
True after configure()
std::unique_ptr< entropic::ExternalBridge > external_bridge
Unix socket MCP bridge.
void(* state_observer)(int, void *)
Observer for engine state transitions.
entropic::config::BundledModels bundled_models
Model registry.
void * stream_observer_data
Observer user_data.
std::unique_ptr< entropic::IdentityManager > identity_manager
Identity lifecycle.
std::string last_error
Per-handle error message.
std::unique_ptr< entropic::AgentEngine > engine
Agentic loop (owns conversation state)
void * critique_cb_data
Forwarded to both callbacks.
std::unique_ptr< entropic::MCPAuthorizationManager > mcp_auth
Per-identity tool auth.
std::unique_ptr< entropic::ModelOrchestrator > orchestrator
Model pool + routing.
entropic::ParsedConfig config
Parsed config.
void(* stream_observer)(const char *, size_t, void *)
Global stream observer — fires for all streaming output.
void(* queue_observer)(const char *, size_t, void *)
Observer fired when a queued mid-gen user message is consumed and seeded as the next turn.
std::unique_ptr< entropic::ServerManager > server_manager
MCP server lifecycle.
entropic::InterfaceContext * inference_iface_ctx
Per-handle owned context backing inference_iface.user_data.
std::mutex api_mutex
Serializes API calls.
void(* critique_start_cb)(void *)
Fires before the constitutional validator's critique generate begins.
entropic::HookRegistry hook_registry
Hook dispatch.