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
//! Owner — optional attribution attached to Intent records.
//!
//! An owner can reference a Claude Code subagent (via `.claude/agents/<name>.md`),
//! a human team label, and/or a contact channel (email, Slack, etc.). All
//! three fields are optional; an Owner with all-`None` fields is still valid
//! (it functions as a placeholder for future attribution).
use ;
/// Optional attribution for an intent or capability.
///
/// # Examples
///
/// ```
/// use g8_core::Owner;
///
/// let owner = Owner {
/// agent: Some("scorer-specialist".into()),
/// team: Some("core-ranker".into()),
/// contact: Some("#checkout-api-core".into()),
/// };
/// assert_eq!(owner.agent.as_deref(), Some("scorer-specialist"));
/// ```