You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
device leases: expose holder attribution and structured contention details #634
Refs #592.\n\n## Context\n\nThe #592 rollout calls for build device list --leases / device status --json to answer who currently holds a board, and for exclusive lease contention to fail with structured holder details instead of an opaque string. The daemon already has an in-memory DeviceManager, but the public API currently exposes only exclusive_holder and monitor_count, while device list omits leases entirely.\n\n## Acceptance\n\n- GET /api/devices/{port}/status returns full lease attribution for the exclusive lease and monitor leases, including lease id, lease type, client id, description, and acquired timestamp.\n- POST /api/devices/{port}/lease returns a structured conflict payload when an exclusive lease is already held.\n- POST /api/devices/list includes lease summary fields so the CLI can show holder/lease columns.\n- build device list and build device status render useful holder details for humans while remaining backward-compatible for callers that only read the existing fields.\n- Tests cover successful status/list attribution and exclusive contention details.\n\nThis is the #592 rollout item for lease-attribution columns plus structured contention errors.
Activity
fix(device): expose lease attribution (#635)