Skip to content

device leases: expose holder attribution and structured contention details #634

Closed

Description

@zackees

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

  1. added a commit that references this issue on Jun 18, 2026
    56fdf72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions