config
config
¶
Configuration models for the Marianne conductor (daemon).
Defines Pydantic v2 models for daemon-specific settings: socket configuration, resource limits, concurrency controls, and state backend selection.
Attributes¶
Classes¶
McpServerEntry
¶
Bases: BaseModel
A single MCP server in the shared pool.
For transport: stdio, the conductor starts the command and exposes it
through a multiplexed Unix socket bridge at socket. For other transport
values, the manager only owns process lifecycle.
McpPoolConfig
¶
Bases: BaseModel
Shared MCP server pool managed by the conductor.
One process per MCP server type, shared across agents. Stdio servers are proxied behind multiplexed Unix sockets with JSON-RPC request-id rewriting.
Example YAML::
mcp_pool:
servers:
github:
command: "github-mcp-server"
socket: "/tmp/mzt/mcp/github.sock"
filesystem:
command: "fs-mcp-server"
socket: "/tmp/mzt/mcp/filesystem.sock"
ResourceLimitConfig
¶
Bases: BaseModel
Resource constraints for the daemon process.
Prevents runaway resource consumption by capping memory, processes, and API call rates at the daemon level.
SocketConfig
¶
Bases: BaseModel
Unix domain socket configuration for daemon IPC.
Uses Unix sockets (not TCP) for security — no network exposure. The socket file is created on daemon start and removed on clean shutdown.
OrchestraConfig
¶
Bases: BaseModel
The orchestra view: a public-safe, replayable timeline of the fleet (GH #468).
ObserverConfig
¶
Bases: BaseModel
Configuration for the job observer and event bus.
DaemonLoggingConfig
¶
Bases: BaseModel
Conductor-owned logging root and rotation policy.
The conductor writes its durable event log under root. Legacy
DaemonConfig.log_file is accepted as compatibility input, but is
normalized into this model so the path contract has one authority.
SemanticLearningConfig
¶
Bases: BaseModel
Configuration for conductor-level semantic learning via LLM.
Controls how the conductor analyzes sheet completions using an LLM to produce semantic insights stored in the learning database.
Analysis runs through the instrument plugin system — any registered instrument profile can power semantic analysis.
HotReloadConfig
¶
Bases: BaseModel
Opt-in file watcher for conductor config + instrument profiles (#408).
When enabled, the conductor polls the config file and the instrument
profile source directories for content changes and applies them through
the same reload path as SIGHUP / mzt conductor reload — no restart.
Reloads themselves are always available (SIGHUP, IPC) regardless of
this setting; the watcher only automates the trigger.
CamEndpointConfig
¶
Bases: BaseModel
One CAM server the operator lets scores reach, by name.
Scores never carry an address or a credential: a system: cam attachment names one of
these endpoints (settings: {endpoint: <name>}, default default) and nothing else
about the connection. The address and the key source live only here, in the operator's
conductor configuration. api_key_env and api_key_file hold a NAME or a PATH, never
the key.
Methods:¶
as_settings
¶
The mapping cam_backend_factory takes (names and paths only).
Source code in src/marianne/daemon/config.py
MemoryBackendsConfig
¶
Bases: BaseModel
Operator-side memory backend endpoints, keyed by the name a score uses.
DaemonConfig
¶
Bases: BaseModel
Top-level configuration for the Marianne conductor.
Controls socket binding, PID file location, concurrency limits, resource constraints, and state backend selection. Follows the same Field() conventions as marianne.core.config.
Functions:¶
mzt_runtime_dir
¶
Directory for mzt runtime artifacts: socket, PID file, clone files.
227: ~/.config/mzt — durable across reboots (unlike /tmp) and¶
consistent with standard tooling conventions. Single source of truth; everything that places a runtime artifact derives from this.