cadet.config

CADET configuration package.

What this is for:

The typed configuration layer for CADET experiments: the schema, the typed per-app parameter models, the weather presets, and the loader that applies overrides, expands sweeps and derives run ids.

What it contains:

Re-exports the most-used names so callers can do from cadet.config import Config, load_run_configs, run_id.

How it fits into CADET:

Everything that needs to read an experiment definition (the cadet validate CLI, and later the runner/orchestrator and roles) depends on this package rather than on the legacy cadet/params.py module.

class cadet.config.Config(**data)

Bases: _Strict

A complete CADET experiment configuration.

Parameters:
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

experiment: Experiment
source: Annotated[Union[CarlaSource, ReplaySource, SyntheticSource, LiveSource, DatasetSource]]
models: Models
nodes: List[Node]
channels: List[Channel]
connectors: List[Connector]
routes: List[Route]
transport: TransportConfig
metrics: MetricsConfig
app: App
pipeline: Optional[PipelineConfig]
sweep: Sweep
outputs: Outputs
analysis: AnalysisConfig
exception cadet.config.ConfigError

Bases: Exception

Raised for unreadable/undecodable configs or bad override strings.

cadet.config.build_config(data)

Validate a mapping into a Config (raises ValidationError).

Return type:

Config

Parameters:

data (Dict[str, Any])

cadet.config.config_hash(config)

Short, stable digest of a resolved config, excluding IDENTITY_EXCLUDES.

Keys are sorted so the digest is order-independent.

Return type:

str

Parameters:

config (Config)

cadet.config.expand_sweep(data)

Expand sweep.axes into the cartesian product of concrete configs.

Each produced config has its swept paths set and an empty sweep. With no axes, this returns a single config. Validation happens per combination.

Return type:

List[Config]

Parameters:

data (Dict[str, Any])

cadet.config.format_validation_error(exc)

Render a pydantic ValidationError as readable loc: message lines.

Return type:

str

Parameters:

exc (ValidationError)

cadet.config.load_config_data(path, _seen=())

Load a YAML config, resolving any extends: base(s) by deep-merge.

extends may be a single path or a list of paths, each relative to the config file that declares it. Bases are merged left-to-right, then the current file is merged on top (so the child always wins). Supports nested extends and detects cycles.

Return type:

Dict[str, Any]

Parameters:
  • path (str)

  • _seen (Tuple[str, ...])

cadet.config.load_run_configs(path, overrides)

Load, override and expand a config file into concrete run configs.

Returns (run_configs, base_config) where base_config is the single pre-expansion config (useful for reporting).

Return type:

Tuple[List[Config], Config]

Parameters:
  • path (str)

  • overrides (List[str])

cadet.config.load_yaml(path)

Parse a YAML file into a mapping (raises ConfigError).

Return type:

Dict[str, Any]

Parameters:

path (str)

cadet.config.resolve_app_params(config)

Validate config.app.params against the registered plugin’s model.

The app plugin (registered via cadet.core.apps, typically by importing an examples/* module) declares params_model. This validates the raw params against it and returns the typed instance. Raises ConfigError if the plugin is not registered, or ValidationError if params are invalid.

Parameters:

config (Config)

cadet.config.run_id(config, rep)

Identifier for one repetition: <config-hash>-r<rep>.

Return type:

str

Parameters:
cadet.config.seed_for_rep(config, rep)

Per-repetition seed: experiment.seed + rep (or None if unset).

Return type:

Any

Parameters:
cadet.config.unimplemented_features(config, allow_experimental=False)

Return the requested features this codebase will not run.

Each string is a human-readable “<path>=<value>” plus the tier that refused it, so the reader can tell “there is no code for this” from “there is code but you did not opt in”.

allow_experimental accepts the experimental tier. It never accepts the planned tier: there is nothing behind a planned option, so allowing it could only replace a clear refusal with a crash.

Return type:

List[str]

Parameters:
  • config (Config)

  • allow_experimental (bool)

CADET experiment configuration schema (pydantic, Python 3.8 compatible).

Defines the single, typed shape of a CADET experiment config. A YAML file is parsed into Config; validation errors are turned into readable messages by the loader/CLI. Nothing here executes an experiment: this is the contract every runner, role and launcher reads.

Top-level sections of Config: experiment, source (discriminated union on kind), models, nodes, channels, links (with a typed network model), transport, metrics, app (generic plugin + raw params, validated against the registered plugin’s model by the loader), sweep, outputs, analysis. Plus the leaf models those sections use and the cross-field validators (app/plugin agreement, channel/link endpoints must name existing nodes).

Some options are declared here but not implemented yet (e.g. nodes.launcher: ssh_venv). They validate against the schema and are rejected with a “planned” message by cadet.config.implemented at cadet validate; they are never silently ignored.

cadet.config.loader builds Config from YAML + --set overrides, expands sweep into concrete per-run configs, and derives the run_id. cadet validate reports validation errors against this schema. Author a YAML with the sections above (see configs/*.yaml). Weather is a named preset (cadet.config.weather); model artifacts are per-device in models.registry; swept fields are dotted paths under sweep.axes.

class cadet.config.schema.Experiment(**data)

Bases: _Strict

Identity and repetition policy for a run family.

Parameters:
  • name (str)

  • app (str)

  • repetitions (int)

  • seed (int | None)

  • max_startup_s (float | None)

  • max_active_s (float | None)

  • end_on (Literal['client_report', 'sim_hook_exit', 'first'])

  • end_grace_s (float)

  • client_start (Literal['before_scenario', 'after_scenario'])

  • require_output (bool)

  • inter_run_pause_s (float)

  • resume (bool)

  • allow_experimental (bool)

name: str
app: str
repetitions: int
seed: Optional[int]
max_startup_s: Optional[float]
max_active_s: Optional[float]
end_on: Literal['client_report', 'sim_hook_exit', 'first']
end_grace_s: float
client_start: Literal['before_scenario', 'after_scenario']
require_output: bool
inter_run_pause_s: float
resume: bool
allow_experimental: bool
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.Camera(**data)

Bases: _Strict

Ego camera sensor geometry.

Parameters:
  • width (int)

  • height (int)

  • fov (float)

  • mount_x (float)

  • mount_z (float)

  • mount_pitch (float)

  • queue_size (int)

  • fixed_rate (bool)

width: int
height: int
fov: float
mount_x: float
mount_z: float
mount_pitch: float
queue_size: int
fixed_rate: bool
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.Spawn(**data)

Bases: _Strict

A world pose (metres, degrees) for spawning an actor.

Parameters:
  • x (float)

  • y (float)

  • z (float)

  • yaw (float)

x: float
y: float
z: float
yaw: float
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.Occluder(**data)

Bases: _Strict

A parked actor used to block the ego’s line of sight.

Parameters:
  • model (str)

  • spawn (Spawn)

model: str
spawn: Spawn
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.Pedestrian(**data)

Bases: _Strict

A pedestrian that holds, then crosses at speed_mps after t_start_s.

Parameters:
  • spawn (Spawn)

  • speed_mps (float)

  • t_start_s (float)

spawn: Spawn
speed_mps: float
t_start_s: float
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.CarlaClientEgg(**data)

Bases: _Strict

Which CARLA client egg a run must use, and where to find it.

name is the egg’s filename, and it is the pin: the Python and CARLA versions are read out of it and checked against the interpreter and the server image (see cadet.orchestrator.versions). host_path is a directory on the machine the role runs on; with it unset the image’s own baked path is used, which is not configurable because it is the image’s convention rather than a machine’s.

The two are separate because one earlier field had to mean both “which egg” and “where the egg is”, and could express neither when they disagreed.

Parameters:
  • name (str)

  • host_path (str | None)

name: str
host_path: Optional[str]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.ScenarioRunnerPin(**data)

Bases: _Strict

Where the ScenarioRunner tree is, and which tree it must be.

source_digest pins the tree by file contents, not by a commit id. The copies in play are the same files in different repositories - a working tree with its own upstream history and a local snapshot repository that tracks the same files - so their commit ids differ by design and a hash pin could never hold for both. See cadet.sim.versions.

Parameters:
  • path (str)

  • source_digest (str | None)

  • commit (str | None)

  • image (str | None)

path: str
source_digest: Optional[str]
commit: Optional[str]
image: Optional[str]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.CarlaSettings(**data)

Bases: _Strict

How a run reaches CARLA, and - when it launches one - how it starts it.

host, port and timeout are what every role uses to reach the simulator, and they are what ScenarioRunner is told as well, so the scenario and the client cannot end up on different servers. That was two fields once - the client’s connect port and the launch’s own port, with nothing tying them - and a config could launch a server on one port while the client dialled another, which fails as an ego-attach timeout rather than as a connection error.

port defaults to CARLA’s own 2000, which is the original’s: its client opened carla.Client('localhost', 2000) and run_scenario.sh passed no --port, taking ScenarioRunner’s default of 2000. A run that must not collide with a hand-started server sets another port; preflight already refuses a port held by a process that is not ours, and names the holder.

image is what makes this a launch rather than an attach: with it set the orchestrator starts the server, and without it the simulator is somebody else’s to run.

Parameters:
  • host (str)

  • port (int)

  • timeout (int)

  • image (str | None)

  • gpu_index (int | None)

  • quality (Literal['Low', 'Epic'])

  • offscreen (bool)

  • per_run (bool)

  • client_egg (CarlaClientEgg | None)

host: str
port: int
timeout: int
image: Optional[str]
gpu_index: Optional[int]
quality: Literal['Low', 'Epic']
offscreen: bool
per_run: bool
client_egg: Optional[CarlaClientEgg]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.Scenario(**data)

Bases: _Strict

Scenario geometry and lifetime (fields optional; apps use a subset).

Parameters:
  • map (str | None)

  • ego_vehicle (str | None)

  • target_object (str | None)

  • ego_speed (str | None)

  • ego_spawn (Spawn | None)

  • occluder (Occluder | None)

  • pedestrian (Pedestrian | None)

  • timeout_s (float | None)

  • ego_role_name (str | None)

  • ego_attach_timeout_s (float)

  • runner (ScenarioRunnerPin | None)

  • name (str | None)

  • definition (str | None)

  • config_file (str | None)

map: Optional[str]
ego_vehicle: Optional[str]
target_object: Optional[str]
ego_speed: Optional[str]
ego_spawn: Optional[Spawn]
occluder: Optional[Occluder]
pedestrian: Optional[Pedestrian]
timeout_s: Optional[float]
ego_role_name: Optional[str]
ego_attach_timeout_s: float
runner: Optional[ScenarioRunnerPin]
name: Optional[str]
definition: Optional[str]
config_file: Optional[str]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.CarlaSource(**data)

Bases: _Strict

Input from a running CARLA simulator (the only live backend today).

Parameters:
  • kind (Literal['carla'])

  • carla (CarlaSettings)

  • fps (int)

  • sync_mode (bool)

  • camera (Camera)

  • scenario (Scenario)

  • weather (Literal['clear', 'light', 'high'] | None)

kind: Literal['carla']
carla: CarlaSettings
fps: int
sync_mode: bool
camera: Camera
scenario: Scenario
weather: Optional[Literal['clear', 'light', 'high']]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.ReplaySource(**data)

Bases: _Strict

Deterministic replay from a folder of images or a video file.

Parameters:
  • kind (Literal['replay'])

  • path (str)

  • fps (float)

  • loop (bool)

  • limit (int | None)

kind: Literal['replay']
path: str
fps: float
loop: bool
limit: Optional[int]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.SyntheticSource(**data)

Bases: _Strict

Generated frames for tests (no files, no hardware).

Parameters:
  • kind (Literal['synthetic'])

  • count (int)

  • width (int)

  • height (int)

  • fps (float)

kind: Literal['synthetic']
count: int
width: int
height: int
fps: float
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.LiveSource(**data)

Bases: _Strict

Live capture: a camera device index or a network stream URL.

The replay path pointed at something arriving in real time rather than at a directory (see cadet.sources.live.LiveSource). Exactly one of device and url names where frames come from; OpenCV takes either directly. loop is absent on purpose: a camera has no beginning to seek back to and a stream is not seekable.

Parameters:
  • kind (Literal['live'])

  • device (int | None)

  • url (str | None)

  • fps (float)

  • limit (int | None)

kind: Literal['live']
device: Optional[int]
url: Optional[str]
fps: float
limit: Optional[int]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.DatasetSource(**data)

Bases: _Strict

Deterministic dataset replay for model evaluation (the “Dataset Mode”).

Yields one sample per frame, carrying both the input image and the sample’s ground truth in the frame metadata, so a consumer can score a model’s answer against it. Two tasks are supported: vqa (image + question + answers) and detection (image + ground-truth boxes).

With path unset the source generates a small, deterministic, built-in sample set in process: no file, no download and no network, which is what the stub/quick config and the unit tests run on. With path set it reads a manifest (a JSON list of samples) and the images it names from that folder; the example’s fetch_dataset.py writes one from public data.

Parameters:
  • kind (Literal['dataset'])

  • task (Literal['vqa', 'detection'])

  • path (str | None)

  • manifest (str | None)

  • fps (float)

  • limit (int | None)

  • count (int)

kind: Literal['dataset']
task: Literal['vqa', 'detection']
path: Optional[str]
manifest: Optional[str]
fps: float
limit: Optional[int]
count: int
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.ModelEntry(**data)

Bases: _Strict

A logical model mapped to a concrete artifact per device type.

Only the artifact mapping lives here; decision thresholds (conf_thresh, …) belong to the app params so each value has a single source of truth.

Parameters:

per_device (Dict[str, str])

per_device: Dict[str, str]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.Models(**data)

Bases: _Strict

Pipeline component choices plus the logical-name -> artifact registry.

There is no device field: the device type a model runs on is derived from the node that hosts it (the server/sim node’s device), so device lives in one place.

Parameters:
  • detector (str)

  • tracker (str)

  • predictor (str)

  • model (str | None)

  • warmup (bool)

  • registry (Dict[str, ModelEntry])

detector: str
tracker: str
predictor: str
model: Optional[str]
warmup: bool
registry: Dict[str, ModelEntry]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.TransportTuning(**data)

Bases: _Strict

TCP stack settings for one node, applied only in that node’s namespace.

Packet-level backends (netem, netwaggle) let the transport react to the emulated link, and for small paced request/response messages that reaction is large: measured on a 60 ms forward link, the same traffic took 141 ms with kernel defaults and 110 ms with Nagle off. These knobs make that policy explicit instead of inherited.

Every field defaults to None, meaning “leave the kernel’s default alone”. tcp_nodelay is a socket option and works anywhere; tcp_slow_start_after_idle is a per-namespace sysctl and initcwnd a route attribute, so both require the node to own a network namespace (a container or an emulated host) and are refused for a local node, where they would change the host.

Parameters:
  • tcp_nodelay (bool | None)

  • tcp_slow_start_after_idle (bool | None)

  • initcwnd (int | None)

tcp_nodelay: Optional[bool]
tcp_slow_start_after_idle: Optional[bool]
initcwnd: Optional[int]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.Node(**data)

Bases: _Strict

A compute node that hosts a role (client/server/sim).

launcher and the optional container/venv/user/ssh_port fields capture how the node is reached; they generalise the constants in the external orchestrator (ssh-into-docker, ssh+docker, ssh+venv tiers).

Parameters:
  • name (str)

  • host (str)

  • port (int | None)

  • launcher (Literal['local', 'docker', 'ssh_docker', 'ssh_venv'])

  • role (Literal['client', 'server', 'sim', 'leader', 'load', 'waypoint'])

  • device (str)

  • gpu_index (int | None)

  • scheduler (Literal['fifo', 'round_robin'] | None)

  • extra_processing_ms (float | None)

  • server_delay_mode (Literal['blocking', 'link'])

  • enforce_queue_policy (bool)

  • inbound_block_at (int | None)

  • clients (int | None)

  • rate_hz (float | None)

  • arrival (Literal['constant', 'poisson'] | None)

  • frames (int | None)

  • transport_tuning (TransportTuning | None)

  • connector (str | None)

  • position (str | None)

  • container (str | None)

  • venv (str | None)

  • user (str | None)

  • ssh_port (int | None)

  • ssh_identity (str | None)

name: str
host: str
port: Optional[int]
launcher: Literal['local', 'docker', 'ssh_docker', 'ssh_venv']
role: Literal['client', 'server', 'sim', 'leader', 'load', 'waypoint']
device: str
gpu_index: Optional[int]
scheduler: Optional[Literal['fifo', 'round_robin']]
extra_processing_ms: Optional[float]
server_delay_mode: Literal['blocking', 'link']
enforce_queue_policy: bool
inbound_block_at: Optional[int]
clients: Optional[int]
rate_hz: Optional[float]
arrival: Optional[Literal['constant', 'poisson']]
frames: Optional[int]
transport_tuning: Optional[TransportTuning]
connector: Optional[str]
position: Optional[str]
container: Optional[str]
venv: Optional[str]
user: Optional[str]
ssh_port: Optional[int]
ssh_identity: Optional[str]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.Channel(**data)

Bases: _Strict

A direct data path between two nodes (no network emulation).

Parameters:
  • name (str)

  • from_ (str)

  • to (str)

  • stream_fps (int | None)

  • max_queue (int)

  • send_meta (bool)

  • stop_on_brake (bool)

  • device_id (str | None)

name: str
from_: str
to: str
stream_fps: Optional[int]
max_queue: int
send_meta: bool
stop_on_brake: bool
device_id: Optional[str]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.ConstantDist(**data)

Bases: _Strict

Fixed per-packet delay.

Parameters:
  • kind (Literal['constant'])

  • value_ms (float)

kind: Literal['constant']
value_ms: float
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.NormalDist(**data)

Bases: _Strict

Gaussian delay.

Parameters:
  • kind (Literal['normal'])

  • mean_ms (float)

  • std_ms (float)

kind: Literal['normal']
mean_ms: float
std_ms: float
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.LognormalDist(**data)

Bases: _Strict

Log-normal delay (long tail), stated as two percentiles.

A latency spec is normally given as percentiles, and these are them: p50_ms is the median (the distribution’s scale, e^mu) and p99_ms fixes the shape, sigma = ln(p99/p50) / 2.3263. Neither is the mean or the standard deviation of the random variable, which is why they are not called that: a log-normal’s mean sits above its median, so a field named mean holding the median is read wrong by everyone who has not read the code.

Parameters:
  • kind (Literal['lognormal'])

  • p50_ms (float)

  • p99_ms (float)

kind: Literal['lognormal']
p50_ms: float
p99_ms: float
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.TraceDist(**data)

Bases: _Strict

Replay delays from a recorded trace file.

Parameters:
  • kind (Literal['trace'])

  • path (str)

kind: Literal['trace']
path: str
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.WifiNodeSpec(**data)

Bases: _Strict

One endpoint’s radio role and position on a wireless link.

position is "x,y,z" in metres. It is what the propagation model acts on, so leaving it unset on a link whose model depends on distance makes the link’s behaviour arbitrary.

Parameters:
  • role (Literal['ap', 'station'])

  • position (str | None)

role: Literal['ap', 'station']
position: Optional[str]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.WifiMedium(**data)

Bases: _Strict

Radio parameters of one wireless medium, with no endpoints in them.

The propagation model is the point of the wireless medium: it derives signal strength, and therefore association and loss, from the distance between positions. mobility_trace names a file of timed positions for a node that moves during the run.

These are properties of the medium, not of whoever is on it, which is why they are separated from the endpoints: a point-to-point wireless link states them alongside its two radio roles (WifiConfig), and an access-point connector states them for the whole cell (Connector).

Parameters:
  • ssid (str)

  • mode (Literal['a', 'b', 'g', 'n', 'ac'])

  • channel (int)

  • propagation_model (Literal['logDistance', 'friis', 'twoRayGround', 'logNormalShadowing', 'ITU'])

  • propagation_exp (float)

  • propagation_params (Dict[str, float])

  • mobility_trace (str | None)

ssid: str
mode: Literal['a', 'b', 'g', 'n', 'ac']
channel: int
propagation_model: Literal['logDistance', 'friis', 'twoRayGround', 'logNormalShadowing', 'ITU']
propagation_exp: float
propagation_params: Dict[str, float]
mobility_trace: Optional[str]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.WifiConfig(**data)

Bases: WifiMedium

A point-to-point wireless link’s medium plus the radio role of each end.

This is the spelling for a link whose two endpoints are the whole cell. A cell with several stations on one access point is not point to point and is declared as a connectors entry instead; see Connector.

Parameters:
  • ssid (str)

  • mode (Literal['a', 'b', 'g', 'n', 'ac'])

  • channel (int)

  • propagation_model (Literal['logDistance', 'friis', 'twoRayGround', 'logNormalShadowing', 'ITU'])

  • propagation_exp (float)

  • propagation_params (Dict[str, float])

  • mobility_trace (str | None)

  • nodes (Dict[str, WifiNodeSpec])

nodes: Dict[str, WifiNodeSpec]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.Connector(**data)

Bases: _Strict

A shared medium that nodes attach to, and that runs nothing itself.

A links entry is point to point: one from, one to, and its own qdiscs. A Wi-Fi cell is not that shape. Five stations associating with one access point share one medium, sit in one subnet, and reach each other over the air with no L3 hop and no route between them, which two point-to-point links in series cannot express.

So a connector is infrastructure, deliberately not a nodes entry: there is no role to dispatch on it and nothing binds an address on it. In Mininet-WiFi an access point is a switch in the root namespace with no address of its own, so a role process placed on one has nothing to bind and dies with Cannot assign requested address; keeping the two namespaces apart is what prevents that config from being expressible at all.

type

ap is an access point: the nodes on it are stations, associating over a radio whose wifi parameters govern the whole cell, and each one’s position is what the propagation model acts on. switch is the same idea without radios - a wired shared segment - and goes through the same code rather than a special case.

Shaping is the medium’s own, not a per-link qdisc: a cell’s loss and delay come from the propagation model and the distances, which is why the distances are the axis such an experiment varies. A connector therefore has no distribution, loss or bandwidth_mbps; a path that needs those is a links entry.

Parameters:
  • name (str)

  • type (Literal['ap', 'switch'])

  • position (str | None)

  • wifi (WifiMedium | None)

name: str
type: Literal['ap', 'switch']
position: Optional[str]
wifi: Optional[WifiMedium]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.NetworkModel(**data)

Bases: _Strict

Emulated-network behaviour applied to a link’s traffic.

mode selects the backend: none (no emulation), delay (an in-process delay line in the transport), netem (tc inside the sending node’s own container, filtered to this link’s flow) or netwaggle (a real emulated network built with Mininet-WiFi). medium applies to netwaggle only and chooses a wired or a wireless link.

Parameters:
  • mode (Literal['none', 'delay', 'netem', 'netwaggle'])

  • medium (Literal['wired', 'wifi'])

  • distribution (Annotated[ConstantDist | NormalDist | LognormalDist | TraceDist, FieldInfo(annotation=NoneType, required=True, discriminator='kind')])

  • loss (float)

  • bandwidth_mbps (float | None)

  • wifi (WifiConfig | None)

mode: Literal['none', 'delay', 'netem', 'netwaggle']
medium: Literal['wired', 'wifi']
distribution: Annotated[Union[ConstantDist, NormalDist, LognormalDist, TraceDist]]
loss: float
bandwidth_mbps: Optional[float]
wifi: Optional[WifiConfig]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Bases: _Strict

A network-emulated data path between two nodes.

direction picks which path is delayed: forward (requests, from->to; the default, matching the originals which delayed only requests), reverse (replies, to->from), or both.

Parameters:
  • name (str)

  • from_ (str)

  • to (str)

  • direction (Literal['forward', 'reverse', 'both'])

  • network (NetworkModel)

name: str
from_: str
to: str
direction: Literal['forward', 'reverse', 'both']
network: NetworkModel
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.Route(**data)

Bases: _Strict

A path from one node to another across several links, in order.

hops names existing links entries, so a hop is a link and a route is an ordering over links: everything that already reads links - the netem rules, the emulated topology, the link report, the feature gate - keeps working on the hops without knowing a route exists.

realise says what a multi-hop path is, which is not something that can be inferred:

compose

One end-to-end connection whose behaviour is the composition of the hops. Nothing runs on the waypoints; they name where the path goes. A composed path cannot queue, cannot drop on a full buffer and cannot be where computation happens.

relay

Each waypoint runs a forwarding stage that receives a message and sends it on, so a hop is a real store-and-forward step with its own queue and its own failure mode. This is what an experiment about the waypoint needs.

via is optional and redundant: when given it must name exactly the waypoints the hops already imply, which makes a route readable without re-deriving it and is checked rather than trusted.

Parameters:
  • name (str)

  • from_ (str)

  • to (str)

  • hops (List[str])

  • realise (Literal['compose', 'relay'])

  • via (List[str] | None)

name: str
from_: str
to: str
hops: List[str]
realise: Literal['compose', 'relay']
via: Optional[List[str]]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.TransportConfig(**data)

Bases: _Strict

Wire transport for node-to-node traffic.

protocol selects the carrier: tcp is a plain socket, websocket wraps the same framing in RFC 6455 binary frames over one HTTP upgrade. mode selects framing: frame sends one length-prefixed message per payload, stream drops the transport’s prefix and lets the receiver find each record’s end in the encoding itself (so it needs encoding: safe).

encoding selects the wire format of a payload. safe is a self-describing record - a JSON header plus the raw image bytes - that executes nothing it decodes. pickle is the original scripts’ format (zlib.compress(pickle.dumps(...))); it is what the originals put on the wire, and it means the receiver runs code chosen by whoever can connect to the port, so it is an explicit opt-in rather than a default.

Parameters:
  • protocol (Literal['tcp', 'websocket'])

  • mode (Literal['frame', 'stream'])

  • encoding (Literal['safe', 'pickle'])

protocol: Literal['tcp', 'websocket']
mode: Literal['frame', 'stream']
encoding: Literal['safe', 'pickle']
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.GpuMetrics(**data)

Bases: _Strict

Options for the gpu collector (utilization, memory, power).

interval_ms defaults to the original’s: its power log came from nvidia-smi ... -lms 10. source pins the reader - auto prefers NVML and falls back to the nvidia-smi stream the original used, and every row records which one produced it. devices selects device indices; unset means every visible device.

Parameters:
  • interval_ms (int)

  • source (Literal['auto', 'nvml', 'nvidia-smi'])

  • devices (List[int] | None)

interval_ms: int
source: Literal['auto', 'nvml', 'nvidia-smi']
devices: Optional[List[int]]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.CpuMetrics(**data)

Bases: _Strict

Options for the cpu collector (host and per-process CPU and memory).

interval_ms is 100 ms rather than the GPU default: a CPU percentage is time divided by a window, so too short a window measures the sampling jitter. per_process records this role’s own share beside the host’s; set it false for the host scope only.

Parameters:
  • interval_ms (int)

  • per_process (bool)

interval_ms: int
per_process: bool
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.EnergyMetrics(**data)

Bases: _Strict

Options for the energy collector (power over the run, per inference).

interval_ms unset takes the chosen source’s own original cadence: 10 ms for the GPU and Jetson readers, which is what every one of those originals sampled at, and 100 ms for rpi_proxy, which is what its original used. Setting it pins one value for whatever source is chosen.

source pins the power source; auto tries NVML, the nvidia-smi stream, tegrastats, the Jetson INA channels in sysfs, then x86 RAPL, and refuses if none can be read.

The two Jetson sources are ports of the project’s own tegrastats_logger.py and jetson_power_logger.py - rails, units, cadence and failure behaviour taken from those scripts - but they are verified on hardware: no: no Jetson is reachable from this environment. They also meter different rail sets (tegrastats reads the GPU and CPU rails; sysfs reads GPU, CPU and SOC), so they are not interchangeable.

rpi_proxy is a port of the method in rpi_yolo.py and is not a power measurement: it is a weighted sum of a CPU percentage, a memory percentage and an undifferenced cumulative disk-byte counter. It is recorded in its own activity_index column and never as watts or joules, and auto will not choose it.

tegrastats_sudo keeps the sudo the original ran tegrastats under; set it false where the role is already root or there is no sudo.

Parameters:
  • interval_ms (int | None)

  • source (Literal['auto', 'nvml', 'nvidia-smi', 'tegrastats', 'tegra_sysfs', 'rapl', 'rpi_proxy'])

  • devices (List[int] | None)

  • tegrastats_sudo (bool)

interval_ms: Optional[int]
source: Literal['auto', 'nvml', 'nvidia-smi', 'tegrastats', 'tegra_sysfs', 'rapl', 'rpi_proxy']
devices: Optional[List[int]]
tegrastats_sudo: bool
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.BandwidthMetrics(**data)

Bases: _Strict

Options for the bandwidth collector (bytes per link and direction).

interval_ms is 100 ms for the same reason as the CPU collector: a byte counter only becomes a rate over a window.

Parameters:

interval_ms (int)

interval_ms: int
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.ClockOffsetMetrics(**data)

Bases: _Strict

Options for the clock_offset collector (per-node clock difference).

Unlike the sampling collectors this one is measured by the orchestrator, once per run per node, and recorded in run.json rather than in a CSV: it describes the run’s timestamps rather than being one of them.

method is auto by default, which estimates the offset from round trips the orchestrator makes itself and records each machine’s own time daemon beside it as an independent cross-check. round_trip records only the former; time_service uses the daemons as the estimate and refuses the run if either machine runs none, rather than falling back to a different method than the one that was asked for.

Parameters:
  • method (Literal['auto', 'round_trip', 'time_service'])

  • probes (int)

  • timeout_s (float)

method: Literal['auto', 'round_trip', 'time_service']
probes: int
timeout_s: float
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.MetricsConfig(**data)

Bases: _Strict

Optional measurement collectors to run during an experiment.

Per-frame latency (model-level) and per-request server queue metrics are always recorded. The collectors list enables additional system/task collectors, each of which runs on the node it measures and writes <collector>_<node>.csv into the run directory.

clock_offset is the one exception to that shape: a clock difference is a property of a pair of machines rather than of a node, so the orchestrator measures it and writes it, with its uncertainty, into the clock_offset block of run.json. It corrects nothing - see cadet.metrics.clock_offset.

The default is an empty list, so an unconfigured run starts no sampling threads, opens no readers and writes no extra files - it behaves exactly as it did before the collectors existed. That default is pinned in tests/unit/test_collectors.py.

Parameters:
collectors: List[Literal['gpu', 'cpu', 'bandwidth', 'queue', 'energy', 'clock_offset']]
gpu: GpuMetrics
cpu: CpuMetrics
energy: EnergyMetrics
bandwidth: BandwidthMetrics
clock_offset: ClockOffsetMetrics
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.DeadlineSpec(**data)

Bases: _Strict

A per-stage time-to-decision budget (ported deadline-enforcement semantics).

none runs the stage at full fidelity; static hands it a fixed budget_ms every frame; dynamic hands it the time remaining until the end-to-end budget_ms. A stage reads the budget only if it adapts its work.

Parameters:
  • policy (Literal['none', 'static', 'dynamic'])

  • budget_ms (float | None)

policy: Literal['none', 'static', 'dynamic']
budget_ms: Optional[float]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.StageSpec(**data)

Bases: _Strict

One placed stage: an impl from the registry assigned to a node.

Parameters:
  • name (str)

  • impl (str)

  • node (str)

  • params (Dict[str, Any])

  • queue_policy (Literal['latest_only', 'fifo'])

  • deadline (DeadlineSpec | None)

name: str
impl: str
node: str
params: Dict[str, Any]
queue_policy: Literal['latest_only', 'fifo']
deadline: Optional[DeadlineSpec]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.PipelineConfig(**data)

Bases: _Strict

The ordered list of stages that make up a staged application.

Parameters:

stages (List[StageSpec])

stages: List[StageSpec]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.Sweep(**data)

Bases: _Strict

Cartesian sweep over dotted config paths -> list of values.

Parameters:

axes (Dict[str, List[Any]])

axes: Dict[str, List[Any]]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.Outputs(**data)

Bases: _Strict

Where run artifacts go. By policy, results/weights are never committed.

Parameters:
  • root (str)

  • naming (str)

  • save (List[str])

root: str
naming: str
save: List[str]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.AnalysisConfig(**data)

Bases: _Strict

Where cadet summarize / cadet ask send a run’s reduced record.

The analysis layer ends in files; this section says what may read them back and answer questions about them. It configures no part of a run: nothing in the orchestrator, the roles or the transport reads it, and a run never calls a model.

backend: none is the default, so an unconfigured CADET has no backend configured and both subcommands refuse with a message naming what to set. openai_chat is any OpenAI-compatible /chat/completions endpoint, or a local model served behind the same route shape; the call is one HTTP POST, so it adds no dependency.

There is no field for an API key, and there will not be one. api_key_env names an environment variable, and the key is read from the environment at the moment of a request. A key in a config would be copied into every run directory’s resolved config.yaml, which is the one place it must never be. Set it empty for an endpoint that takes no key, such as a model served on the machine the command runs on.

Parameters:
  • backend (Literal['none', 'openai_chat'])

  • endpoint (str | None)

  • model (str | None)

  • api_key_env (str)

  • timeout_s (float)

  • max_context_bytes (int)

  • temperature (float)

backend: Literal['none', 'openai_chat']
endpoint: Optional[str]
model: Optional[str]
api_key_env: str
timeout_s: float
max_context_bytes: int
temperature: float
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.App(**data)

Bases: _Strict

App selector + its raw parameters.

The framework is app-agnostic: params is a free mapping here and is validated against the registered plugin’s typed model separately (see cadet.config.loader.resolve_app_params()), so cadet/ never imports app-specific param models.

Parameters:
  • plugin (str)

  • params (Dict[str, Any])

plugin: str
params: Dict[str, Any]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class cadet.config.schema.Config(**data)

Bases: _Strict

A complete CADET experiment configuration.

Parameters:
experiment: Experiment
source: Annotated[Union[CarlaSource, ReplaySource, SyntheticSource, LiveSource, DatasetSource]]
models: Models
nodes: List[Node]
channels: List[Channel]
connectors: List[Connector]
routes: List[Route]
transport: TransportConfig
metrics: MetricsConfig
app: App
pipeline: Optional[PipelineConfig]
sweep: Sweep
outputs: Outputs
analysis: AnalysisConfig
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Loading, overriding, sweeping and identifying CADET configs.

What this is for:

Turns a YAML file into validated Config objects. Applies --set key=value command-line overrides, expands a sweep into one concrete config per parameter combination, and derives a stable run_id and per-repetition seed.

What it contains:
How it fits into CADET:

cadet validate (cadet.cli) and, later, the runner/orchestrator call these helpers. Overrides and sweeps are applied to the raw mapping before validation, so every produced config is typed and checked.

How to configure it:

Overrides are dotted.path=yaml_value (list indices allowed, e.g. nodes[1].host=localhost). Sweep axes are the same dotted paths mapped to value lists under sweep.axes.

exception cadet.config.loader.ConfigError

Bases: Exception

Raised for unreadable/undecodable configs or bad override strings.

cadet.config.loader.load_yaml(path)

Parse a YAML file into a mapping (raises ConfigError).

Return type:

Dict[str, Any]

Parameters:

path (str)

cadet.config.loader.load_config_data(path, _seen=())

Load a YAML config, resolving any extends: base(s) by deep-merge.

extends may be a single path or a list of paths, each relative to the config file that declares it. Bases are merged left-to-right, then the current file is merged on top (so the child always wins). Supports nested extends and detects cycles.

Return type:

Dict[str, Any]

Parameters:
  • path (str)

  • _seen (Tuple[str, ...])

cadet.config.loader.set_by_path(data, path, value)

Set value at path inside the nested data (mutates in place).

Intermediate dict keys are created if missing; list indices must already exist (we never guess list length). A list may also be subscripted by an element’s name - nodes[server].host and nodes['server'].host both mean the node named server - which is how a node is identified everywhere else in a config, and which survives a node being inserted above it.

Return type:

None

Parameters:
  • data (Dict[str, Any])

  • path (str)

  • value (Any)

cadet.config.loader.apply_overrides(data, overrides)

Apply key=value overrides to a copy of data and return it.

The value is parsed as a YAML scalar, so 5, true and [a, b] get their natural types.

Return type:

Dict[str, Any]

Parameters:
  • data (Dict[str, Any])

  • overrides (List[str])

cadet.config.loader.reject_moved_keys(data)

Raise ConfigError naming the replacement for each moved key.

Return type:

None

Parameters:

data (Dict[str, Any])

cadet.config.loader.build_config(data)

Validate a mapping into a Config (raises ValidationError).

Return type:

Config

Parameters:

data (Dict[str, Any])

cadet.config.loader.resolve_app_params(config)

Validate config.app.params against the registered plugin’s model.

The app plugin (registered via cadet.core.apps, typically by importing an examples/* module) declares params_model. This validates the raw params against it and returns the typed instance. Raises ConfigError if the plugin is not registered, or ValidationError if params are invalid.

Parameters:

config (Config)

cadet.config.loader.expand_sweep(data)

Expand sweep.axes into the cartesian product of concrete configs.

Each produced config has its swept paths set and an empty sweep. With no axes, this returns a single config. Validation happens per combination.

Return type:

List[Config]

Parameters:

data (Dict[str, Any])

cadet.config.loader.config_hash(config)

Short, stable digest of a resolved config, excluding IDENTITY_EXCLUDES.

Keys are sorted so the digest is order-independent.

Return type:

str

Parameters:

config (Config)

cadet.config.loader.run_id(config, rep)

Identifier for one repetition: <config-hash>-r<rep>.

Return type:

str

Parameters:
cadet.config.loader.seed_for_rep(config, rep)

Per-repetition seed: experiment.seed + rep (or None if unset).

Return type:

Any

Parameters:
cadet.config.loader.format_validation_error(exc)

Render a pydantic ValidationError as readable loc: message lines.

Return type:

str

Parameters:

exc (ValidationError)

cadet.config.loader.load_run_configs(path, overrides)

Load, override and expand a config file into concrete run configs.

Returns (run_configs, base_config) where base_config is the single pre-expansion config (useful for reporting).

Return type:

Tuple[List[Config], Config]

Parameters:
  • path (str)

  • overrides (List[str])

Implemented-feature gate: which declared options actually work yet.

The schema (cadet.config.schema) deliberately declares the full planned config surface, including options not implemented yet, so configs are forward-compatible and self-documenting. This module is the single place that says which of those options are wired up, so an experiment that asks for an unbuilt feature fails loudly (“not implemented yet: X, planned”) instead of being silently ignored.

Contains IMPLEMENTED (option path to set of built and verified values), EXPERIMENTAL (implemented but unverified; refused by default), and the gate functions unimplemented_features(), experimental_features(), and allow_experimental().

cadet validate and preflight (so cadet run / sweep / emulate) call unimplemented_features() after schema validation and refuse to proceed if it is non-empty. Three tiers exist because two were not enough: a feature that is written but unproven should be refusable by default yet exercisable with an explicit opt-in that is recorded in the run record. A planned option stays refused regardless of the opt-in: there is nothing behind it to run. The opt-in is experiment.allow_experimental in the config, or --allow-experimental on run / sweep / emulate.

cadet.config.implemented.tier(path, value)

Return "implemented", "experimental" or "planned" for a value.

Return type:

str

Parameters:

path (str)

cadet.config.implemented.allow_experimental(config, flag=None)

Resolve the experimental opt-in from the command line and the config.

The flag wins when it is given, so --allow-experimental can enable a config that does not ask for it; otherwise experiment.allow_experimental decides, which is what lets cadet validate check a config that carries its own opt-in.

Return type:

bool

Parameters:
  • config (Config)

  • flag (bool | None)

cadet.config.implemented.experimental_features(config)

Return the experimental options this config asks for, opted into or not.

Return type:

List[str]

Parameters:

config (Config)

cadet.config.implemented.unimplemented_features(config, allow_experimental=False)

Return the requested features this codebase will not run.

Each string is a human-readable “<path>=<value>” plus the tier that refused it, so the reader can tell “there is no code for this” from “there is code but you did not opt in”.

allow_experimental accepts the experimental tier. It never accepts the planned tier: there is nothing behind a planned option, so allowing it could only replace a clear refusal with a crash.

Return type:

List[str]

Parameters:
  • config (Config)

  • allow_experimental (bool)