Document status:active A test execution at any lifecycle state: selector plus explicit counts (carried only once the run concludes, ``state='result'``).
A test execution at any lifecycle state: selector plus explicit
counts (carried only once the run concludes, ``state='result'``).
Never raw output.
A shared building block of the event model.
Generated from src/spec_kitty_events/schemas/test_action.schema.json by scripts/schema_pages.py; never hand-edit (C-001).
state (enum: started, running, result, cancelled, required): Lifecycle state of an observed tool/test activity (LW-04/LW-09: the
live dashboard shows work *while it happens*, then correlates the
conclusion to that same activity).
``STARTED``/``RUNNING`` are the pre-result states — no outcome, no test
counts (nothing has concluded yet; forcing one would launder a live
activity into a completed-work feed). ``RESULT`` is the terminal state
that carries the :class:`ActionOutcome` (and test counts). ``CANCELLED``
records the abandonment of a previously started activity — an honest
terminal observation in its own right, never a missing result.
Start→result/cancel correlation is the observation *pair* sharing one
``activity`` (:class:`ActivityRef`): the start observation and the
terminal observation name the same ``activity_id`` (the terminal one
may also ``reply_to`` the start observation's event ID).