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

IdentityManager – lifecycle management for static and dynamic identities. More...

#include <entropic/config/identity.h>
#include <entropic/types/error.h>
#include <atomic>
#include <shared_mutex>
#include <string>
#include <unordered_map>
#include <vector>
Include dependency graph for identity_manager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  entropic::IdentityManagerConfig
 Configuration for the identity manager. More...
 
struct  entropic::GrammarValidationInterface
 Grammar validation callbacks injected by the facade. More...
 
struct  entropic::MCPKeyInterface
 MCP key management callbacks injected by the facade. More...
 
class  entropic::IdentityManager
 Manages the lifecycle of all identities in the engine. More...
 

Namespaces

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

Detailed Description

IdentityManager – lifecycle management for static and dynamic identities.

Responsibilities:
  • Own all IdentityConfig instances (static and dynamic)
  • Enforce max_identities limit
  • Validate identity configs at creation time
  • Coordinate with GrammarRegistry and MCPAuthorizationManager via callbacks
  • Flag router classification prompt for rebuild when identities change
  • Provide identity lookup by name for engine, orchestrator, delegation
Thread safety:
  • get() and has() use shared_lock (concurrent reads)
  • create/update/destroy acquire unique_lock on identities_mutex_
  • Router dirty flag is std::atomic<bool> (lock-free)
Cross-.so design:
Core.so has zero dependencies on inference or mcp. Grammar validation and MCP key registration are injected as callback interfaces (same pattern as TierResolutionInterface, ToolExecutionInterface).
Ownership:
Owned by AgentEngine. One IdentityManager per engine instance.
Version
1.9.6

Definition in file identity_manager.h.