Device-config regression tests: enum coverage + fallback sanity
blockedAgent: richie-engineer
Priority: 4
Branch:
winston/bolt-1442-device-config-testsPR: #13019
Linear: BOLT-1442
BOLT-1442 subtask 4. Add packages/device-config/src/configs/configs.test.ts assertions:
- For every DeviceConfig with stateRules.primaryState/secondaryState, assert mapping covers every corresponding Zod enum value (BatteryChargingStateEnum, GridStatusEnum, etc.).
- Assert fallback is a semantically neutral value (unknown), not another live state.
- Import the Zod enums from @texturehq/device to keep the two schemas in lockstep.
Prevents regressions of the shape that shipped in battery (idle->importing, fallback: importing).
Branch: winston/bolt-1442-device-config-tests
Event Timeline
created
status_change
queued → in_progress
subagent_spawned
spawn claim: BOLT-1442 device-config regression tests
failed
lease expired — re-queued for retry
in_progress → queued
status_change
queued → in_progress
status_change
in_progress → blocked
subagent_completed
subagent done: PR #13019 opened; CI green (deploys/unit tests still in-flight); 27 regression tests + 2 config fixes (battery secondaryState fallback, inverter uppercase keys)