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
//! # Terraphim Goal Alignment System
//!
//! Knowledge graph-based goal alignment system for multi-level goal management and conflict resolution.
//!
//! This crate provides intelligent goal management that leverages Terraphim's knowledge graph
//! infrastructure to ensure goal hierarchy consistency, detect conflicts, and propagate goals
//! through role hierarchies. It integrates with the agent registry and role graph systems
//! to provide context-aware goal alignment.
//!
//! ## Core Features
//!
//! - **Multi-level Goal Management**: Global, high-level, and local goal alignment
//! - **Knowledge Graph Integration**: Uses existing `extract_paragraphs_from_automata` and
//! `is_all_terms_connected_by_path` for intelligent goal analysis
//! - **Conflict Detection**: Semantic conflict detection using knowledge graph analysis
//! - **Goal Propagation**: Intelligent goal distribution through role hierarchies
//! - **Dynamic Alignment**: Real-time goal alignment as system state changes
//! - **Performance Optimization**: Efficient caching and incremental updates
// Removed unused imports
// Re-export core types
pub use ;
// Define GenAgentResult locally since we removed gen_agent dependency
pub type GenAgentResult<T> = ;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
// Removed unused re-export
/// Result type for goal alignment operations
pub type GoalAlignmentResult<T> = ;