Report a Job result #146

Open
opened 2026-11-27 16:44:02 -05:00 by bobby · 0 comments
Owner

Part of #73 (spec: #72)

What to build

POST /v1/smart_home/jobs/{id}/result with {status, error?, response?} is the single way to finish a pending Job, leased or not. It's accepted from any member or any Bot with smart_home:write. The first result wins, later ones get 409, and finished Jobs are immutable. A query Job's response carries state back from HA.

Acceptance criteria

  • The first result finishes the Job, with Recorded by showing who
  • Later results get 409
  • response is returned on GET
Part of #73 (spec: #72) ## What to build `POST /v1/smart_home/jobs/{id}/result` with `{status, error?, response?}` is the single way to finish a pending Job, leased or not. It's accepted from any member or any Bot with `smart_home:write`. The first result wins, later ones get `409`, and finished Jobs are immutable. A query Job's `response` carries state back from HA. ## Acceptance criteria - [ ] The first result finishes the Job, with Recorded by showing who - [ ] Later results get `409` - [ ] `response` is returned on GET
bobby added the ready-for-agent label 2026-11-27 16:44:02 -05:00
bobby added a new dependency 2026-11-27 16:44:03 -05:00
bobby added a new dependency 2026-11-27 16:44:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: bobby/hapi#146