exception.resolved
An exception exception.raised told of no longer needs looking at: it is gone (a correction, a punch that arrived, or a change of setup put it right), or someone excused it (it stands, accepted as it is). Its other fields are those exception.raised gave. 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.resolved
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 | ||
how | "fixed" \ | "excused" | yes |
by | string | Who excused it. Only when how is “excused”. | |
comment | string | Why, as they wrote it ("" when they wrote nothing). Only when how is “excused”. | |
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 |
Examples
{ "tenant": "acme", "person": "4471", "id": "3f9a0c21d4e8b765", "exception": "missing_out", "at": "2026-10-05T13:00:00Z", "about": "4471/2026-10-05T13:00:00Z", "detail": "", "how": "fixed"}{ "tenant": "acme", "person": "4471", "id": "a17b44e09c3d5f28", "exception": "late", "at": "2026-10-06T13:12:00Z", "about": "4471/2026-10-06T13:12:00Z", "detail": "12 minutes after the shift's start", "how": "excused", "by": "pat", "comment": "doctor's appointment, agreed"}JSON Schema
exception.resolved.json
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "urn:houradvantage:events:3:exception.resolved", "title": "exception.resolved: data", "description": "An exception exception.raised told of no longer needs looking at: it is gone (a correction, a punch that arrived, or a change of setup put it right), or someone excused it (it stands, accepted as it is). Its other fields are those exception.raised gave. 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" ] }, "how": { "enum": [ "fixed", "excused" ], "description": "\"fixed\": it is gone from the ledger. \"excused\": it stands, and someone accepted it as it is (by and comment say who and why)." }, "by": { "type": "string", "description": "Who excused it. Only when how is \"excused\"." }, "comment": { "type": "string", "description": "Why, as they wrote it (\"\" when they wrote nothing). Only when how is \"excused\"." }, "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", "how" ], "examples": [ { "tenant": "acme", "person": "4471", "id": "3f9a0c21d4e8b765", "exception": "missing_out", "at": "2026-10-05T13:00:00Z", "about": "4471/2026-10-05T13:00:00Z", "detail": "", "how": "fixed" }, { "tenant": "acme", "person": "4471", "id": "a17b44e09c3d5f28", "exception": "late", "at": "2026-10-06T13:12:00Z", "about": "4471/2026-10-06T13:12:00Z", "detail": "12 minutes after the shift's start", "how": "excused", "by": "pat", "comment": "doctor's appointment, agreed" } ]}