Skip to main content

Module intent_event

Module intent_event 

Source
Expand description

Intent lifecycle event.

IntentEvent records append-only lifecycle facts for an Intent.

§How to use this object

  • Append an event when an intent is analyzed, completed, or cancelled.
  • Include result_commit only when the lifecycle transition produced a repository commit.
  • Include next_intent_id on a completed event when completion recommends that Libra continue with a follow-up Intent.
  • Keep the Intent snapshot immutable; lifecycle belongs here.

§How it works with other objects

  • IntentEvent.intent_id attaches the event to an Intent.
  • IntentEvent.next_intent_id can point at a recommended follow-up Intent, but it does not replace Intent.parents revision history.
  • Decision and final repository actions may feed data such as result_commit.

§How Libra should call it

Libra should derive the current intent lifecycle state from the most recent relevant IntentEvent, not by mutating the Intent object.

Structs§

IntentEvent
Append-only lifecycle fact for one Intent.

Enums§

IntentEventKind