Skip to content

Schema: harness_observation_payload

Typed payload for the six HarnessObservation kinds. Envelope conventions (validated by ``spec_kitty_events.strict``, documented here per draft §3.3): ``event_type="HarnessObservation"``, ``aggregate_id="session/<session_id>"``, ``schema_version="3.0.0"``, ``timestamp`` = producer occurrence time (R-T-01); ``lamport_clock`` = the journal clock value at offer time for ``lane_signal`` and the client's local clock otherwise; ``correlation_id`` = the journal event's ``event_id`` for ``lane_signal``. No time field in the payload (R-T-02); no TTL/expiry field (server receipt clock/TTL is Z3/F3 policy); no user/team identity (server-derived, Z2a/Z7).

Payload schema for HarnessObservation events.

Generated from src/spec_kitty_events/schemas/harness_observation_payload.schema.json by scripts/schema_pages.py; never hand-edit (C-001).

Family

Part of the Runtime Observation Events event family.

Diagram

HarnessObservationPayloadStructure of the JSON Schema HarnessObservationPayload.$defs   $idspec-kitty-events/harness_observation_payload$schemahttps://json-schema.org/draft/2020-12/schemaadditionalProperties☐ falsedescriptionTyped payload for the six HarnessObservation kinds. Envelope conventions (validated by ``spec_kitty_events.strict``, documented here per draft §3.3): ``event_type="HarnessObservatio n"``, ``aggregate_id="session/<session_id>"``, ``schema_version="3.0.0"``, ``timestamp`` = producer occurrence time (R-T-01); ``lamport_clock`` = the journal clock value at offer time for ``lane_signal`` and the client's local clock otherwise; ``correlation_id`` = the journal event's ``event_id`` for ``lane_signal``. No time field in the payload (R-T-02); no TTL/expiry field (server receipt clock/TTL is Z3/F3 policy); no user/team identity (server-derived, Z2a/Z7).properties   required   titleHarnessObservationPayloadtypeobjectLane   ObservationKind   descriptionWork-package lifecycle lanes. ``GENESIS`` is the non-display, pre-finalize origin lane: a work-package with no recorded lane events derives as ``genesis`` until ``finalize-tasks`` seeds it to ``planned``. It is a producer-side state only — it is never a display/summary lane and the only legal edges out of it are ``genesis -> planned`` (the seed) and ``genesis -> canceled``.enum   titleLanetypestringgenesisplannedclaimedin_progressfor_reviewin_reviewapproveddoneblockedcanceleddescriptionClosed set of harness-observation kinds. Exactly six members. Structure over names: if PR #51's exact bytes name these differently, only the string values move — the six-kind structure and the per-kind field matrix below stay (F1 draft §6.1).enum   titleObservationKindtypestringpresencelane_signalfocus_startedfocus_heartbeatfocus_pausedfocus_endedactivity   agent_id   ended_reason   harness   kind   lane   mission_slug   path   pause_reason   repo   session_id   wp_id   anyOf   default␀titleActivity      enum   typestringfile_editcommandtypenullanyOf   default␀titleAgent Id      maxLength64pattern^[A-Za-z0-9][A-Za-z0-9._@+-]{0,63}$typestringtypenullanyOf   default␀titleEnded Reason      enum   typestringusertimeouttypenulldescriptionHarness identity, e.g. 'claude', 'codex'.maxLength32pattern^[A-Za-z0-9][A-Za-z0-9._@+-]{0,63}$titleHarnesstypestring$ref#/$defs/ObservationKindanyOf   default␀      $ref#/$defs/LanetypenullanyOf   default␀titleMission Slug      maxLength120minLength1pattern^[A-Za-z0-9][A-Za-z0-9._@+/-]{0,239}$typestringtypenullanyOf   default␀titlePath      maxLength240pattern^[A-Za-z0-9][A-Za-z0-9._@+/-]{0,239}$typestringtypenullanyOf   default␀titlePause Reason      enum   typestringuserdndtypenullanyOf   default␀descriptionTyped repo-identity slot; derivation is owned by Z6.titleRepo      maxLength120pattern^[A-Za-z0-9][A-Za-z0-9._@+/-]{0,239}$typestringtypenullmaxLength128pattern^[A-Za-z0-9][A-Za-z0-9._@+-]{0,63}$titleSession IdtypestringanyOf   default␀titleWp Id      maxLength32minLength1pattern^[A-Za-z0-9][A-Za-z0-9._@+-]{0,63}$typestringtypenullkindharnesssession_id
Structure of the JSON Schema HarnessObservationPayload.

Properties

  • activity (enum: file_edit, command | null)
  • agent_id (string | null)
  • ended_reason (enum: user, timeout | null)
  • harness (string, required): Harness identity, e.g. 'claude', 'codex'.
  • kind (enum: presence, lane_signal, focus_started, focus_heartbeat, focus_paused, focus_ended, required): Closed set of harness-observation kinds. Exactly six members. Structure over names: if PR #51's exact bytes name these differently, only the string values move — the six-kind structure and the per-kind field matrix below stay (F1 draft §6.1).
  • lane (enum: genesis, planned, claimed, in_progress, for_review, in_review, approved, done, blocked, canceled | null)
  • mission_slug (string | null)
  • path (string | null)
  • pause_reason (enum: user, dnd | null)
  • repo (string | null): Typed repo-identity slot; derivation is owned by Z6.
  • session_id (string, required)
  • wp_id (string | null)

Source

Schema file: schemas/harness_observation_payload.schema.json