kin: KIN-ARCH-008 Конфигурируемая test_command на уровне проекта

This commit is contained in:
Gros Frumos 2026-03-17 16:01:40 +02:00
parent 538af5b799
commit 6eea439c16
3 changed files with 24 additions and 19 deletions

View file

@ -394,22 +394,19 @@ class TestPmPromptStatusFieldConsistency:
"Issue 3 has been fixed — update or remove this test."
)
def test_pm_prompt_mentions_status_values_after_example(self):
"""Line after main example mentions 'Valid values for status: done, blocked'.
def test_pm_prompt_does_not_mention_status_values_after_example(self):
"""Orphaned 'Valid values for status' line was removed from pm.md.
Documents that this note appears AFTER the main example, causing ambiguity.
Issue 3 fixed: the ambiguous note that appeared after the main JSON example
and referenced a 'status' field absent from that example has been deleted.
"""
with open("agents/prompts/pm.md") as f:
content = f.read()
assert 'Valid values for `status`' in content, (
"Expected 'Valid values for `status`' in pm.md — did the prompt change?"
assert 'Valid values for `status`' not in content, (
"Orphaned 'Valid values for `status`' line was re-introduced in pm.md"
)
# Confirm it references done and blocked
assert '"done"' in content
assert '"blocked"' in content
def test_pm_blocked_protocol_example_uses_reason_not_blocked_reason(self):
"""The Blocked Protocol JSON example uses 'reason' (not 'blocked_reason').