refactor(agent): gate sustained goals behind explicit /goal

Replace the legacy long-goal skill contract with command-scoped goal tools and runtime guidance. Keep goal state durable across continuations while restricting create and replace mutations to explicit user /goal turns.
This commit is contained in:
chengyongru
2026-07-12 00:35:17 +08:00
committed by Xubin Ren
parent edf78e7054
commit 7f8c3453e1
24 changed files with 1131 additions and 375 deletions
+2 -2
View File
@@ -79,10 +79,10 @@ class TestReadFileTool:
@pytest.mark.asyncio
async def test_workspace_relative_builtin_skill_read_falls_back_to_packaged_skill(self, tool):
result = await tool.execute(path="skills/long-goal/SKILL.md", limit=5)
result = await tool.execute(path="skills/cron/SKILL.md", limit=5)
assert "Error" not in result
assert "long-goal" in result.lower()
assert "cron" in result.lower()
@pytest.mark.asyncio
async def test_missing_path_returns_clear_error(self, tool):