punch.unrouted
The gateway’s own event: a punch of a person of a group that keeps people goes nowhere until it is routed (the site’s /docs/policy/ page, Routes). The punch itself was stored as a punch event as any punch is, without a route: a sink that names no system is sent it, a sink that speaks for a system is not. It is kept aside until it is routed through the API (POST /api/tenants/{tenant}/sync/{group}/unrouted/{id}/route, or a route added to the person), when it is sent again with the same id and its route. Told once per punch and reason. The envelope’s endpoint and device are the punch’s.
Schema id: urn:houradvantage:events:3:punch.unrouted
Fields
| Field | Type | Required | Description |
|---|---|---|---|
punch | string | yes | The punch event’s id. |
user_id | string | yes | The person’s user id, as the group knows them. |
reason | "no_route" \ | "unknown_person" \ | "ambiguous" \ |
candidates | array of object | yes | Its candidates: the routes it could go. |
candidates[].system | string | yes | The receiving system, as a sink names the system it speaks for. |
candidates[].tenant | string | yes | The tenant in that system the punch goes to. |
candidates[].person_id | string | The person’s id in that system: their own route’s, or their external id there. Absent when they have none. | |
candidates[].codes | object | Codes for the receiver, as the route carries them. | |
time | string or null | yes | The punch’s time (its data’s time). |
Example
{ "punch": "0f3c2a9b8d7e6f5a4b3c2d1e0f9a8b7c", "user_id": "1001", "reason": "ambiguous", "candidates": [ { "system": "attendance", "tenant": "agency-a", "person_id": "11" }, { "system": "attendance", "tenant": "agency-b", "person_id": "22" } ], "time": "2026-10-07T13:00:00Z"}JSON Schema
punch.unrouted.json
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "urn:houradvantage:events:3:punch.unrouted", "title": "punch.unrouted: data", "description": "The gateway's own event: a punch of a person of a group that keeps people goes nowhere until it is routed (the site's /docs/policy/ page, Routes). The punch itself was stored as a punch event as any punch is, without a route: a sink that names no system is sent it, a sink that speaks for a system is not. It is kept aside until it is routed through the API (POST /api/tenants/{tenant}/sync/{group}/unrouted/{id}/route, or a route added to the person), when it is sent again with the same id and its route. Told once per punch and reason. The envelope's endpoint and device are the punch's.", "type": "object", "properties": { "punch": { "type": "string", "description": "The punch event's id." }, "user_id": { "type": "string", "description": "The person's user id, as the group knows them." }, "reason": { "description": "Why: no_route (routing is in use for the endpoint and the person has no route), unknown_person (the group does not have whoever punched), ambiguous (several routes, and the endpoint has no policy to decide), policy (the policy's route hook left it unrouted), policy_failed (the hook failed).", "enum": [ "no_route", "unknown_person", "ambiguous", "policy", "policy_failed" ] }, "candidates": { "type": "array", "items": { "type": "object", "properties": { "system": { "type": "string", "description": "The receiving system, as a sink names the system it speaks for." }, "tenant": { "type": "string", "description": "The tenant in that system the punch goes to." }, "person_id": { "type": "string", "description": "The person's id in that system: their own route's, or their external id there. Absent when they have none." }, "codes": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Codes for the receiver, as the route carries them." } }, "required": [ "system", "tenant" ] }, "description": "Its candidates: the routes it could go." }, "time": { "type": [ "string", "null" ], "description": "The punch's time (its data's time)." } }, "required": [ "punch", "user_id", "reason", "candidates", "time" ], "examples": [ { "punch": "0f3c2a9b8d7e6f5a4b3c2d1e0f9a8b7c", "user_id": "1001", "reason": "ambiguous", "candidates": [ { "system": "attendance", "tenant": "agency-a", "person_id": "11" }, { "system": "attendance", "tenant": "agency-b", "person_id": "22" } ], "time": "2026-10-07T13:00:00Z" } ]}