Coverage for src/lilbee/providers/reload_keys.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-11-06 08:17 +0000

1"""Config keys whose change makes the fleet owner rebuild.""" 

2 

3from __future__ import annotations 

4 

5from lilbee.core.config.keys import LOAD_AFFECTING_KEYS 

6from lilbee.providers.roles import ROLE_GATE_FIELD_TO_ROLE 

7 

8FLEET_RELOAD_KEYS: frozenset[str] = LOAD_AFFECTING_KEYS | frozenset(ROLE_GATE_FIELD_TO_ROLE) 

9"""Settings whose change on a config reload makes the fleet owner rebuild. 

10 

11A peer's plan view holds exactly these keys, so it waits only for a rebuild that comes. 

12This module sits above ``roles`` because ``roles`` must not import the config package, 

13which imports ``roles`` back through the model-reference chain. 

14"""