1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! Goal provenance categories.
//!
//! This module defines the trust category attached to a session goal when it is
//! written to the append-only task log. The category records where the goal came
//! from, allowing recovery, governance, and debugging code to distinguish goals
//! grounded in raw transcript evidence from goals inferred through weaker or
//! lossy sources.
//!
//! The enum is serialized as `snake_case` so goal provenance remains stable and
//! readable in persisted JSONL task logs.
use ;
/// Provenance category for a declared session goal.
///
/// `GoalSourceKind` describes the evidence source used to create a session
/// objective. Consumers should treat variants as a rough trust hierarchy:
/// direct raw-turn or user-provided goals are stronger than summarized recall,
/// memory-derived, or inferred goals.
///
/// The default is [`GoalSourceKind::Inferred`], which is intentionally the
/// weakest category. This keeps older log entries and omitted provenance fields
/// safe by marking them as unverified rather than pretending they came from a
/// canonical user turn.