03 · Task Object
The task is the durable unit of work.
The task object binds human instructions to machine-enforceable controls. IDs survive edits; labels and instructions may evolve with semantic versions.
Conformance requirements
01task_id is required and immutable.02label must be readable without inspecting parent objects.03order_rank is an integer within the zone.04recurrence distinguishes routine, turnover, and deep-clean work.05after_dwell_of (v2.4) marks a task as the return step for another task's background dwell, and stays locked until that dwell elapses — see Chapter 05.06duration_sec (v2.5) estimates hands-on labor time, in seconds, separate from any chemical's dwell_sec — the basis for a true minimum-turnover calculation (see Chapter 05).07task_class (v2.5) tags a task's role in the sequence — general, high_surface, floor, ppe_change, disinfect, restock, safety_check, or reset — so ordering and cross-contamination rules can be checked without parsing the label text.08surface_tags (v2.5) overrides the zone's surface for this one task, when it touches a different material than the zone's default.
Canonical example
JSON-LD{
"task_id": "tsk_01HZX9Q3",
"label": "Wipe disinfected surfaces once dwell is complete",
"order_rank": 40,
"after_dwell_of": "tsk_01HZX9Q2",
"proof_required": true,
"task_class": "general",
"duration_sec": 90,
"version": "1.0.0"
}Implementation notes
iTask revisions increment version without replacing task_id.
iInstructions should be imperative and observable.
iSplitting one task into an apply step and a return step is a definition change: the apply step keeps its task_id with a major task-version bump, and the return step gets a new task_id.
iduration_sec and task_class are optional metadata — a plan without them is still valid; a validator that uses them just has more to check.