Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
identity_manager.cpp File Reference

IdentityManager implementation – CRUD, validation, MCP key lifecycle. More...

#include <entropic/core/identity_manager.h>
#include <entropic/types/logging.h>
#include <algorithm>
#include <filesystem>
#include <regex>
Include dependency graph for identity_manager.cpp:

Go to the source code of this file.

Namespaces

namespace  entropic
 Activate model on GPU (WARM → ACTIVE).
 

Functions

static const std::regex entropic::s_name_regex ("^[a-z][a-z0-9_-]{0,63}$")
 Compiled regex for identity name validation.
 
static std::string entropic::validate_phases (const std::unordered_map< std::string, PhaseConfig > &phases)
 Validate all phases in an identity config.
 
static std::string entropic::validate_fields (const IdentityConfig &config)
 Validate phases and adapter_path fields.
 
static entropic_error_t entropic::check_create_preconditions (const IdentityConfig &config, const IdentityManagerConfig &mgr_config, const std::unordered_map< std::string, IdentityConfig > &identities)
 Check create preconditions before validation.
 
static entropic_error_t entropic::check_mutable (const std::string &name, const std::unordered_map< std::string, IdentityConfig > &identities, std::unordered_map< std::string, IdentityConfig >::const_iterator &out_it)
 Check that a mutable identity exists and is dynamic.
 

Variables

static auto entropic::logger = log::get("identity_manager")
 
static const std::vector< std::string > entropic::s_reserved_names
 Reserved identity names that cannot be used.
 

Detailed Description

IdentityManager implementation – CRUD, validation, MCP key lifecycle.

Version
1.9.6

Definition in file identity_manager.cpp.