From ea10f2cca1ad2660b03155f4ee62d5f260b24217 Mon Sep 17 00:00:00 2001 From: idan Date: Sun, 26 Jul 2026 02:35:46 +0800 Subject: [PATCH 1/2] fix: keep plan-go display name --- .agents/skills/plan-go/SKILL.md | 2 +- .agents/skills/plan-go/agents/openai.yaml | 3 +-- .agents/skills/plan-go/scripts/loop_spec.sh | 2 +- .agents/skills/plan-go/tests/test_plan_go.py | 6 +++++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.agents/skills/plan-go/SKILL.md b/.agents/skills/plan-go/SKILL.md index bb4b355..443cf73 100644 --- a/.agents/skills/plan-go/SKILL.md +++ b/.agents/skills/plan-go/SKILL.md @@ -3,7 +3,7 @@ name: plan-go description: "Execute a registered aligned task plan through an independent executor/evaluator feedback loop and finish with reproducible evidence." --- -# Go! +# plan-go ## Overview diff --git a/.agents/skills/plan-go/agents/openai.yaml b/.agents/skills/plan-go/agents/openai.yaml index 87a3288..7d5dff5 100644 --- a/.agents/skills/plan-go/agents/openai.yaml +++ b/.agents/skills/plan-go/agents/openai.yaml @@ -1,5 +1,4 @@ interface: - display_name: "Go!" + display_name: "plan-go" short_description: "按 aligned plan 执行 executor/evaluator 闭环并留证" default_prompt: "Use $plan-go to execute the registered aligned plan through an independent executor/evaluator fix loop and finish with reproducible evidence." - diff --git a/.agents/skills/plan-go/scripts/loop_spec.sh b/.agents/skills/plan-go/scripts/loop_spec.sh index 45f9d80..62682aa 100755 --- a/.agents/skills/plan-go/scripts/loop_spec.sh +++ b/.agents/skills/plan-go/scripts/loop_spec.sh @@ -16,7 +16,7 @@ if ! [[ "$rounds" =~ ^[1-9][0-9]*$ ]]; then fi cat < Date: Sun, 26 Jul 2026 02:42:08 +0800 Subject: [PATCH 2/2] test: avoid asserting display copy --- .agents/skills/plan-go/tests/test_plan_go.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.agents/skills/plan-go/tests/test_plan_go.py b/.agents/skills/plan-go/tests/test_plan_go.py index 8024e43..f9b5b66 100644 --- a/.agents/skills/plan-go/tests/test_plan_go.py +++ b/.agents/skills/plan-go/tests/test_plan_go.py @@ -11,7 +11,6 @@ CLI = ROOT / "scripts" / "loop-evidence" SPEC = ROOT / "scripts" / "loop_spec.sh" SKILL = ROOT / "SKILL.md" -OPENAI_YAML = ROOT / "agents" / "openai.yaml" LICENSE = ROOT / "LICENSE" TASK_ID = "example.plan-go-validation" PLAN_PATH = "docs/exec-plans/active/example.plan-go-validation.md" @@ -188,9 +187,8 @@ def complete_evidence(): class PlanGoContractTests(unittest.TestCase): - def test_skill_contract_and_ui_metadata(self): + def test_skill_execution_contract(self): skill = SKILL.read_text(encoding="utf-8") - metadata = OPENAI_YAML.read_text(encoding="utf-8") self.assertIn("name: plan-go", skill) self.assertIn("aligned", skill.lower()) self.assertIn("registered", skill.lower()) @@ -201,12 +199,6 @@ def test_skill_contract_and_ui_metadata(self): self.assertIn("out-of-scope findings as follow-up work", skill.lower()) self.assertIn("once the registered acceptance conditions are satisfied, stop", skill.lower()) self.assertNotIn("explicitly accepted", skill.lower()) - self.assertIn("# plan-go", skill) - self.assertIn('display_name: "plan-go"', metadata) - self.assertNotIn("Go!", skill) - self.assertNotIn("Go!", metadata) - self.assertNotIn("Go!", SPEC.read_text(encoding="utf-8")) - self.assertIn("$plan-go", metadata) def test_adapted_source_retains_mit_notice(self): notice = LICENSE.read_text(encoding="utf-8")