Create and view Jobs #141

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

Part of #73 (spec: #72)

What to build

A member, or a Bot with smart_home:write, creates a one-shot Job naming a hapi_* HA script (matching hapi_[a-z0-9_]+) plus variables (≤16 KB JSON), with optional not_before and expires_at (default not_before or creation + 1 h). Jobs are Household data. Members list them newest first and get one by id. There's no PATCH. The module exposes an internal create_job service function.

Acceptance criteria

  • Invalid script names and oversized variables are rejected
  • The default expires_at is computed as specified
  • A Bot needs smart_home:read to read Jobs
  • A non-member gets 403 or 404
Part of #73 (spec: #72) ## What to build A member, or a Bot with `smart_home:write`, creates a one-shot Job naming a `hapi_*` HA script (matching `hapi_[a-z0-9_]+`) plus variables (≤16 KB JSON), with optional `not_before` and `expires_at` (default `not_before` or creation + 1 h). Jobs are Household data. Members list them newest first and get one by id. There's no PATCH. The module exposes an internal `create_job` service function. ## Acceptance criteria - [ ] Invalid script names and oversized variables are rejected - [ ] The default `expires_at` is computed as specified - [ ] A Bot needs `smart_home:read` to read Jobs - [ ] A non-member gets `403` or `404`
bobby added the ready-for-agent label 2026-11-27 16:43:58 -05:00
bobby added a new dependency 2026-11-27 16:43:58 -05:00
bobby added a new dependency 2026-11-27 16:43:59 -05:00
bobby added a new dependency 2026-11-27 16:43:59 -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#141