the-custodian/canon/standards/schemas/work-records/engagement.schema.json
codex f4101cdd9a
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 3s
CUST-WP-0060 T01-T03: canon ratified active, terminology v0.2, schemas + validator
- work-record-types_v0.1.md + autonomy-lanes_v0.1.md: status active
  (founder ratification 2026-07-20, hub decision f4640f9e); registry
  grandfathers legacy task-id variants (-T1, -LEGACY-Txx)
- workplan-terminology-fleet: v0.2 addendum — work-record umbrella,
  kind vocabulary, suggestion as legacy bridge name (T02)
- canon/standards/schemas/work-records/: spine + intake/decision/
  engagement JSON schemas (T03); conditional spine requirements,
  historical grace for terminal records
- tools/validate_work_records.py: registry+schema validator for CI
  (T04); jsonschema with inlined spine refs, fallback checks without;
  proof runs clean: the-custodian 384 records, binky-control 45

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-20 02:07:36 +02:00

29 lines
1.4 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://canon.coulomb.social/schemas/work-records/engagement.schema.json",
"title": "Engagement",
"description": "Authored YAML block for kind=engagement (scheduled external interaction). Id: {PREFIX}-ENG-YYYY-NNN; legacy OH-YYYY-NNN grandfathered. Lifecycle: queued -> prepared -> done.",
"type": "object",
"required": ["id", "title", "status"],
"properties": {
"id": { "type": "string", "pattern": "^([A-Z]+-ENG-[0-9]{4}-[0-9]{3}|OH-[0-9]{4}-[0-9]{3})$" },
"kind": { "const": "engagement" },
"title": { "type": "string", "minLength": 5 },
"status": { "enum": ["queued", "prepared", "done"] },
"counterparty": { "type": "string" },
"lane": { "$ref": "spine.schema.json#/$defs/lane", "description": "Defaults to orange for engagements; explicit value wins." },
"owner": { "$ref": "spine.schema.json#/$defs/owner" },
"tags": { "$ref": "spine.schema.json#/$defs/tags" },
"prepared_material": { "type": "array" },
"deadline_pressure": { "type": "string" },
"origin": { "type": "string" },
"state_hub_engagement_id": { "$ref": "spine.schema.json#/$defs/uuid" }
},
"allOf": [
{
"if": { "properties": { "status": { "const": "prepared" } }, "required": ["status"] },
"then": { "required": ["prepared_material", "counterparty"] }
}
],
"additionalProperties": true
}