Goal Alignment
engine GoalProvider (topic_alignment)
Normalizes the goal and plan (stopword removal, light suffix stripping) and scores overlap as salient-token recall with fuzzy alias matching - bag-of-words topical similarity, blended 60/40 across plan and execution narrative. Explicit shift language ("rather than", "instead of", "pivot") overrides toward low. The same goal expressed in different words still scores high.
original_goal (string), current_plan (string), optional execution_context (string)
score 0–100 · confidence 0–1 · short rationale