Skip to content

types

types

Shared data types for the Marianne daemon.

Defines request/response models and status types used across daemon components (server, service, CLI bridge). All models are Pydantic v2 BaseModel for serialization over IPC.

Classes

JobSubmitParams

Bases: TypedDict

Parameters for the job.submit IPC method.

JobIdentifyParams

Bases: TypedDict

Parameters for IPC methods that identify a job (status, pause, resume).

JobCancelParams

Bases: TypedDict

Parameters for the job.cancel IPC method.

DaemonShutdownParams

Bases: TypedDict

Parameters for the daemon.shutdown IPC method.

JobRequest

Bases: BaseModel

Request to submit a job to the daemon.

Sent by clients (CLI, dashboard) to the daemon over IPC. The daemon validates the config and either accepts or rejects.

JobResponse

Bases: BaseModel

Response from the daemon after a job submission.

Returned immediately — does not wait for job completion. Clients poll status separately via DaemonStatus or job-specific queries.

ScheduleStatus

Bases: BaseModel

Public recurring-score projection returned by status operations.

ScheduleVenueResult

Bases: BaseModel

Bound recurring-schedule observation from the local conductor.

JobTimeoutCleanupStatus

Bases: BaseModel

Truthful, secret-free evidence from Baton's timeout teardown.

JobDeadlineStatus

Bases: BaseModel

Public, secret-free projection of one job's timeout authority.

ObserverEvent

Bases: TypedDict

Structured event emitted by the baton and routed through the daemon.

Standard event types

sheet.started, sheet.completed, sheet.failed, sheet.retrying, sheet.validation_passed, sheet.validation_failed, job.cost_update, job.iteration

Profiler event types

monitor.anomaly — resource anomaly detected by the profiler. Data payload: {"anomaly_type": str, "severity": str, "description": str, "pid": int | None, "metric_value": float, "threshold": float}

ConfigReloadResult

Bases: BaseModel

Outcome of one reload_configuration cycle (#408).

Returned by the single reload path (SIGHUP, daemon.reload IPC, mzt conductor reload, and the file watcher all funnel through JobManager.reload_configuration). A failed reload applies nothing: the running config, instrument registry, and per-model caps are untouched and config_generation does not advance.

A partial reload applied the config and every loadable profile but at least one profile file exists on disk and failed to load: its previous registry entry and caps are retained and the file is reported in declined with a profile load failed (...) prefix. Three machine-distinguishable states: success / partial / failed.

DaemonStatus

Bases: BaseModel

Current status snapshot of the running daemon.

Returned by health check / status queries. Provides a lightweight overview without per-job detail.