save_execution_alignment
Preview or apply an execution-plan alignment: validates roadmap phases, changes, and evidence, then requires explicit user confirmation before updating the career profile.
Instructions
预览或应用执行方案校准(用户确认是硬门禁)。
何时调用:完成 plan_execution_alignment 后,LLM 设计了执行版路线图与变更清单。
校验纪律(代码执行,LLM 不可绕过):
requirement_profile_id 必须存在,且与当前档案需求链路一致;
roadmap.phases 非空,每个 phase 有 name/goal,milestones/tasks 结构合法;
每条 change 的 type 合法且 evidence_ids 非空——没有证据的变更不允许落库;
diff_summary 必填。
Args: alignment_json: 校准方案 JSON 字符串,Schema: { "requirement_profile_id": "rp_...", "strategy_summary": "执行版整体策略", "roadmap": { "strategy_summary": "与顶层一致", "phases": [ { "type": "learn/project/intern/research", "name": "阶段名", "goal": "阶段目标", "kpi": {"metric": "", "target": "", "evidence": ""}, "milestones": [ { "name": "里程碑", "done_criteria": "", "tasks": [{"name": "", "description": "", "priority": "high"}] } ] } ] }, "changes": [ { "type": "add_task/modify_task/remove_task/reorder_tasks/" "modify_phase/add_phase/remove_phase/reorder_phases", "phase_id": "", "task_id": "", "details": {"name": ""}, "reason": "", "evidence_ids": ["JD001"] } ], "diff_summary": "本次校准的差异摘要" } confirmed: 用户是否已确认应用。false 只保存预览 artifact,返回 diff 与 确认提示,不修改档案;true 才替换 profile.plan、维护 plan_history / adjustments / core_state 并刷新职业地图。
返回 JSON(字符串): - confirmed=false: status=needs_confirmation,含 baseline/proposed 概览、 changes、保留/移除任务清单与确认提示; - confirmed=true: status=ok,含应用摘要、execution_plan_id、map_path、 next_steps(get_next_tasks / generate_tasks)。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"alignment_json": "<alignment_json>"
},
"name": "save_execution_alignment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed | No | ||
| alignment_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |