01 · Overview
A cleaning plan is a tree of tasks.
Every .cleanops file is plain JSON-LD. It can be opened in a text editor, validated against the public vocabulary, rendered into a phone checklist, synchronized to a PMS, or printed as a zone QR sheet without converting the underlying plan.
JSON-LD · 16 lines{
"@context": "https://cleanopsopenspec.org/context.jsonld",
"@type": "CleaningPlan",
"plan_id": "property-01",
"version": "2.5",
"zone": { "path": "building.floor_3.primary_bath", "zone_type": "restroom", "surface": "marble" },
"tasks": [{
"task_id": "tsk_01HZX9Q2",
"label": "Disinfect vanity",
"order_rank": 30,
"task_class": "disinfect",
"duration_sec": 60,
"chemicals": [{ "dwell_sec": 300, "dwell_mode": "background" }],
"proof_required": false
}]
}Core schema
Fields shared by every conformant plan.
@contextstringRequiredJSON-LD context URL for the vocabulary.
@typestringRequiredAlways CleaningPlan for a top-level document.
plan_idstringRequiredStable identifier for the plan.
task_idstringRequiredIdentifier that persists across versions.
zone.pathstringRequiredDot-separated address through the hierarchy.
zone.zone_typestringOptionalrestroom, food_prep, clinical, iso_lab, office, exterior, mechanical, or general — v2.5, see Chapter 02 + 05.
zone.surfacestringOptionalDominant material, e.g. marble, terrazzo, rubber — v2.5, see Chapter 02 + 04.
qr_code_urlstringOptionalStable scan link that resolves to the zone's current version.
qr_codesarrayOptionalCodes bound to the zone, each with scope, audience, opens, and placement.
order_rankintegerRequiredPosition within the zone sequence.
duration_secintegerOptionalEstimated hands-on labor time, separate from chemical dwell_sec — v2.5, see Chapter 03 + 05.
task_classstringOptionalgeneral, high_surface, floor, ppe_change, disinfect, restock, safety_check, or reset — v2.5, see Chapter 03 + 05.
surface_tagsarrayOptionalOverrides zone.surface for this one task — v2.5, see Chapter 03.
chemicalsarrayConditionalPPE, product, dilution, dwell time, and dwell_mode. A single object is accepted for one product.
chemicals[].dwell_modestringOptionaladvisory (default), blocking, or background — v2.4, see Chapter 04 + 05.
after_dwell_ofstringOptionaltask_id of the apply step this task returns to; locked until that dwell elapses — v2.4.
proof_requiredbooleanRequiredWhether evidence blocks completion.
versionstringRequiredSemantic version of the definition.
Full specification
9 chapters, each with rules and examples.
01OverviewEvery .cleanops document is plain JSON-LD. It describes where work happens, what must be done, the order it must happen in, and what proves completion.02HierarchyA dot-separated zone.path addresses the same structure from a single suite to a multi-building campus: site, level, zone, room, fixture, and task.03Task ObjectThe task object binds human instructions to machine-enforceable controls. IDs survive edits; labels and instructions may evolve with semantic versions.04Chemicals & SafetyProduct, dilution, wet-contact time, PPE, hazards, and lockout instructions live beside the work they constrain.05Sequencing & ExceptionsConformant software executes tasks in ascending order. Skips require an exception with a reason, actor, and timestamp that remains in the audit history. A background dwell (v2.4) is the one case where working ahead is not a skip.06VersioningPlan versions describe the document release. Task versions describe definition changes. Execution records point to both so history remains reconstructable.07Import & ExportA .cleanops file has no proprietary wrapper. Scheduling tools, inspection apps, portals, and spreadsheets may import it directly or produce a conformant export.08Photo ProofWhen proof_required is true, the task cannot complete without evidence captured at or after execution. Multi-photo proof may describe wide or segmented zones.09QR LookupA QR code is a door into the plan, and different applications need different doors. A guest suite wants one hidden code for the whole turnover; a tower wants one per zone plus a public spill-report code in the lobby; a job site wants a code per build phase; a mechanical room wants a code on the furnace itself. qr_codes is a list, and each code declares what it covers, who scans it, and what it opens.