Skip to content

Schema: test_action

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).

Family

Listed on the Shared event-model types hub.

Diagram

TestActionStructure of the JSON Schema TestAction.$defs   $idspec-kitty-events/test_action$schemahttps://json-schema.org/draft/2020-12/schemaadditionalProperties☐ falsedescriptionA test execution at any lifecycle state: selector plus explicit counts (carried only once the run concludes, ``state='result'``). Never raw output.properties   required   titleTestActiontypeobjectActionOutcome   ActionState   descriptionExplicit outcome for every concluded action — failure and skip are first-class observations, never laundered into success or silence (LW-03/LW-10). Only carried once the action has actually concluded (``state='result'``): an observation emitted while a tool/test is still running must not be forced to invent one.enum   titleActionOutcometypestringsuccessfailureskippeddescriptionLifecycle 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).enum   titleActionStatetypestringstartedrunningresultcancelledfailed   outcome   passed   selector   skipped   state   anyOf   default␀titleFailed      minimum0typeintegertypenullanyOf   default␀      $ref#/$defs/ActionOutcometypenullanyOf   default␀titlePassed      minimum0typeintegertypenullmaxLength240minLength1pattern^[A-Za-z0-9][A-Za-z0-9._@+/-]{0,239}$titleSelectortypestringanyOf   default␀titleSkipped      minimum0typeintegertypenull$ref#/$defs/ActionStateselectorstate
Structure of the JSON Schema TestAction.

Properties

  • failed (integer | null)
  • outcome (enum: success, failure, skipped | null)
  • passed (integer | null)
  • selector (string, required)
  • skipped (integer | null)
  • 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).

Source

Schema file: schemas/test_action.schema.json