Source:
Local role: Container for one goal hierarchy rooted at a single goal id.
Big-picture role: Deterministic structure for intermediate-objective decomposition and hierarchy validation.
Inheritance:
- dataclass
Fields:
- root_goal_id: str
- goals: dict[str, Goal]
Methods:
add_goal(goal) -> Noneget_goal(goal_id) -> Optional[Goal]children_of(goal_id) -> list[Goal]parent_of(goal_id) -> Optional[Goal]validate_tree() -> Noneto_dict() -> dictfrom_dict(data) -> GoalDecompositionTree
See also:
