Skip to content

M2: Device register + list (pairings) #29

Open

Description

@charlesgreen

Context

PRD: docs/PRD.md §§5, 6.1, 8. Devices/pairings sit under each project; remote control needs a registered worker device.

Goal

Register and list devices so a CLI worker (or other client) can identify itself before attach / job claim.

Out of scope

  • Push notifications / MDM
  • Hardware attestation
  • Full pairing UX (QR, etc.)

API (sketch — implementer may refine)

Method Path Behavior
PUT /v1/orgs/{org}/projects/{project}/devices/{device_id} Upsert device JSON + CAS
GET /v1/orgs/{org}/projects/{project}/devices/{device_id} Fetch + ETag
GET /v1/orgs/{org}/projects/{project}/devices List devices for project (stable order)

Fields: id, org_id, project_id, label, worker_kind (e.g. cli), last_seen_at, timestamps.

Acceptance criteria

  • Upsert + get + list against memory Store
  • Tenant isolation via keys + auth
  • make check green

Dependencies

Auth on serve path; key helpers already have device keys.

How to hand to Aixgo Code

Apply ax:go after M1 wiring + desired-state (or parallel with attach if coordinated).

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions