Skip to content

Commit 2c6b76c

Browse files
committed
test(skill): track dual-op-table contract from 7d0436b restructure
Same repair as main's 8533244, isolated from the identity changes so the v4.0.0 tag tests green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent b41aa2a commit 2c6b76c

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

tests/plugin/test_skill_files.py

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,24 @@ def test_setup_skill_frames_taskmaster_install_as_backend_unlock():
8080

8181
def test_orchestrator_skill_defines_normative_backend_operations():
8282
content = (REPO_ROOT / "SKILL.md").read_text()
83-
assert "## Backend operations" in content
83+
assert "## Engine operations" in content
8484
assert "This table is normative — instruction sites reference operations by name." in content
85-
assert "| Operation | Command (both backends) | Notes |" in content
86-
for operation, command in (
87-
("init", "script.py init-project"),
88-
("parse-prd", "script.py parse-prd"),
89-
("rate", "script.py rate"),
90-
("expand", "script.py expand"),
91-
("next", "script.py next-task"),
92-
("set-status", "script.py set-status"),
85+
assert "| Operation | MCP tool (MCP-mode) | script.py (CLI-mode / fallback) |" in content
86+
for operation, mcp_tool, script_cmd in (
87+
("init", "init_project", "init-project"),
88+
("parse-prd", "parse_prd", "parse-prd"),
89+
("rate", "rate_tasks", "rate"),
90+
("expand", "expand_tasks", "expand"),
91+
("next", "next_task", "next-task"),
92+
("set-status", "set_task_status", "set-status"),
9393
):
94-
assert f"| `{operation}` | `{command}" in content, f"missing backend op row: {operation}"
95-
assert "next/set-status are engine-native under every backend" in content
94+
assert f"| `{operation}` | `{mcp_tool}` | `{script_cmd}" in content, (
95+
f"missing engine op row: {operation}"
96+
)
97+
# normalize hard wraps — the sentence spans a line break in the doc
98+
flat = " ".join(content.split())
99+
assert "`next`/`set-status` are engine-native under every backend" in flat
100+
assert "## Script/agent-only operations" in content
96101

97102

98103
def test_orchestrator_skill_documents_feedback_debrief():

0 commit comments

Comments
 (0)