| 1 | namespace CascadeIDE.Models.AgentChat; |
| 2 | |
| 3 | /// <summary>Типы событий append-only истории чата (ADR 0045).</summary> |
| 4 | public static class ChatHistoryEventKind |
| 5 | { |
| 6 | public const string MessageAdded = "message_added"; |
| 7 | public const string MessageStreamDelta = "message_stream_delta"; |
| 8 | public const string MessageCompleted = "message_completed"; |
| 9 | /// <summary>Компенсирующее событие: новый текст для существующего message_id (append-only, без перезаписи строк NDJSON).</summary> |
| 10 | public const string MessageEdited = "message_edited"; |
| 11 | public const string ClarificationBatchOpened = "clarification_batch_opened"; |
| 12 | public const string ClarificationAnswerSubmitted = "clarification_answer_submitted"; |
| 13 | |
| 14 | /// <summary>Новая ветка: payload — new_thread_id, previous_thread_id, optional parent_message_id.</summary> |
| 15 | public const string ThreadForked = "thread_forked"; |
| 16 | |
| 17 | /// <summary>Явная связь диапазона gutter-сообщений с кодом (ADR 0137): payload — <see cref="ChatHistoryMessageRangeRelatedPayload"/>.</summary> |
| 18 | public const string MessageRangeRelated = "message_range_related"; |
| 19 | |
| 20 | /// <summary>T2 context card materialized (ADR 0174 §3.1, unified model §10).</summary> |
| 21 | public const string ContextCardMaterialized = "context_card_materialized"; |
| 22 | |
| 23 | /// <summary>T1 intent card recorded by operator (ADR 0173).</summary> |
| 24 | public const string IntentCardRecorded = "intent_card_recorded"; |
| 25 | |
| 26 | /// <summary>Agent decision trail after investigation (ADR 0173 §8, unified model §12).</summary> |
| 27 | public const string DecisionRecorded = "decision_recorded"; |
| 28 | |
| 29 | /// <summary>Decision no longer trustworthy — code drift (ADR 0173 §8).</summary> |
| 30 | public const string DecisionMarkedStale = "decision_marked_stale"; |
| 31 | |
| 32 | /// <summary>Decision replaced by a newer record (ADR 0173 §8).</summary> |
| 33 | public const string DecisionSuperseded = "decision_superseded"; |
| 34 | } |
| 35 | |