exception.raised
Something someone has to look at in a person’s time: a missing punch, a value not allowed, or what a policy step names (late, a no-show). Sent when it first appears in the person’s ledger, and again if it is reopened after being excused, or comes back after it was fixed; working the ledger out again while it stays sends nothing. exception.resolved follows when it goes or is excused. Kept in Time and Attendance’s own event log (apart from Connect’s) and delivered to its sinks: the tenant’s (/api/attendance/tenants/{tenant}/sinks) and the install’s (/api/attendance/sinks). The envelope’s endpoint is “attendance”, its package “houradvantage-attend”, and its device the person’s id. The same event sent again has the same id.
Schema id: urn:houradvantage:events:3:exception.raised
Fields
| Field | Type | Required | Description |
|---|---|---|---|
tenant | string | yes | The tenant it is about. |
person | string | yes | The person’s id in the attendance engine (an employee’s id, or an unlinked person’s, ” |
id | string | yes | The exception’s id: the same each time the ledger is worked out. Follow it up by this id. pattern ^[0-9a-f]{16}$ |
exception | string | yes | What it is: an exception the engine finds (missing_out, missing_in, missing_lunch_start, missing_lunch_end, missing_break_start, missing_break_end, correction_target_missing, context_missing, context_not_allowed, context_conflict, assignment_inactive, assignment_ambiguous, rate_missing, rate_ambiguous, late_change_refused, measure_unknown, clock_behind, unknown_direction), or the name a policy step gave it (late, rest_too_short…). The list is open. |
at | string (date-time) | yes | When the thing it is about happened (the punch, the segment’s start), RFC 3339 UTC. |
about | string | yes | What it is about: the id of a punch, correction or labor entry, or a segment’s. |
detail | string | yes | What exactly, in words: the dimension, the value, the rule. "" when there is nothing more to say. |
reason | object | The same, as a stable key and the values that fill it in, so an app can word it in any language: a policy step’s rule (“standard/late.late”, its values those its words name; a value shown as a duration is milliseconds), or the engine’s own exception (its kind, with the values of what it is about). Absent where there is nothing more to say, or a step gave its own words. | |
reason.key | string | yes | |
reason.values | object | ||
because | array of object | What marked the person for this recalculation, as the store knew it, in the order made: a setup item put (kind “setup”, its item kind and id, when it was stored, by whom and reason) a correction made (kind “correction”, its id), punches that arrived (kind “punches”: one, however many, with no id), or an operator asking for the person to be worked out again keeping nothing (kind “redo”, by whom and reason). Absent where nothing is known of what it was (a load, a policy, a punch). | |
because[].kind | "setup" \ | "correction" \ | "punches" \ |
because[].id | string | ||
because[].item | string | For setup, the kind of the item (holiday, rate…). | |
because[].stored | string (date-time) | ||
because[].by | string | ||
because[].reason | string |
Example
{ "tenant": "acme", "person": "4471", "id": "3f9a0c21d4e8b765", "exception": "missing_out", "at": "2026-10-05T13:00:00Z", "about": "4471/2026-10-05T13:00:00Z", "detail": ""}JSON Schema
exception.raised.json
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "urn:houradvantage:events:3:exception.raised", "title": "exception.raised: data", "description": "Something someone has to look at in a person's time: a missing punch, a value not allowed, or what a policy step names (late, a no-show). Sent when it first appears in the person's ledger, and again if it is reopened after being excused, or comes back after it was fixed; working the ledger out again while it stays sends nothing. exception.resolved follows when it goes or is excused. Kept in Time and Attendance's own event log (apart from Connect's) and delivered to its sinks: the tenant's (/api/attendance/tenants/{tenant}/sinks) and the install's (/api/attendance/sinks). The envelope's endpoint is \"attendance\", its package \"houradvantage-attend\", and its device the person's id. The same event sent again has the same id.", "type": "object", "properties": { "tenant": { "type": "string", "description": "The tenant it is about." }, "person": { "type": "string", "description": "The person's id in the attendance engine (an employee's id, or an unlinked person's, \"<group>~<person>\")." }, "id": { "type": "string", "description": "The exception's id: the same each time the ledger is worked out. Follow it up by this id.", "pattern": "^[0-9a-f]{16}$" }, "exception": { "type": "string", "description": "What it is: an exception the engine finds (missing_out, missing_in, missing_lunch_start, missing_lunch_end, missing_break_start, missing_break_end, correction_target_missing, context_missing, context_not_allowed, context_conflict, assignment_inactive, assignment_ambiguous, rate_missing, rate_ambiguous, late_change_refused, measure_unknown, clock_behind, unknown_direction), or the name a policy step gave it (late, rest_too_short...). The list is open." }, "at": { "type": "string", "format": "date-time", "description": "When the thing it is about happened (the punch, the segment's start), RFC 3339 UTC." }, "about": { "type": "string", "description": "What it is about: the id of a punch, correction or labor entry, or a segment's." }, "detail": { "type": "string", "description": "What exactly, in words: the dimension, the value, the rule. \"\" when there is nothing more to say." }, "reason": { "type": "object", "description": "The same, as a stable key and the values that fill it in, so an app can word it in any language: a policy step's rule (\"standard/late.late\", its values those its words name; a value shown as a duration is milliseconds), or the engine's own exception (its kind, with the values of what it is about). Absent where there is nothing more to say, or a step gave its own words.", "properties": { "key": { "type": "string" }, "values": { "type": "object", "additionalProperties": { "type": "string" } } }, "required": [ "key" ] }, "because": { "type": "array", "description": "What marked the person for this recalculation, as the store knew it, in the order made: a setup item put (`kind` \"setup\", its `item` kind and `id`, when it was `stored`, `by` whom and `reason`) a correction made (`kind` \"correction\", its `id`), punches that arrived (`kind` \"punches\": one, however many, with no id), or an operator asking for the person to be worked out again keeping nothing (`kind` \"redo\", `by` whom and `reason`). Absent where nothing is known of what it was (a load, a policy, a punch).", "items": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "setup", "correction", "punches", "redo" ] }, "id": { "type": "string" }, "item": { "type": "string", "description": "For setup, the kind of the item (holiday, rate...)." }, "stored": { "type": "string", "format": "date-time" }, "by": { "type": "string" }, "reason": { "type": "string" } }, "required": [ "kind" ] } } }, "required": [ "tenant", "person", "id", "exception", "at", "about", "detail" ], "examples": [ { "tenant": "acme", "person": "4471", "id": "3f9a0c21d4e8b765", "exception": "missing_out", "at": "2026-10-05T13:00:00Z", "about": "4471/2026-10-05T13:00:00Z", "detail": "" } ]}