kin: KIN-DOCS-002-backend_dev
This commit is contained in:
parent
9d85f2f84b
commit
dc47d313a9
2 changed files with 5 additions and 5 deletions
|
|
@ -83,7 +83,7 @@ You receive:
|
||||||
- `relevant_decisions` IDs are correct and relevant to the specialist's work
|
- `relevant_decisions` IDs are correct and relevant to the specialist's work
|
||||||
- Department heads are used only for genuinely cross-domain complex tasks
|
- Department heads are used only for genuinely cross-domain complex tasks
|
||||||
|
|
||||||
## Output format
|
## Return Format
|
||||||
|
|
||||||
Return ONLY valid JSON (no markdown, no explanation):
|
Return ONLY valid JSON (no markdown, no explanation):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -332,10 +332,10 @@ class TestPmPromptStatusFieldConsistency:
|
||||||
content = f.read()
|
content = f.read()
|
||||||
|
|
||||||
# Find the main output example block
|
# Find the main output example block
|
||||||
# It starts after '## Output format' and ends before '## Blocked Protocol'
|
# It starts after '## Return Format' and ends before '## Blocked Protocol'
|
||||||
output_section_start = content.find("## Output format")
|
output_section_start = content.find("## Return Format")
|
||||||
blocked_section_start = content.find("## Blocked Protocol")
|
blocked_section_start = content.find("## Blocked Protocol")
|
||||||
assert output_section_start != -1, "Section '## Output format' not found in pm.md"
|
assert output_section_start != -1, "Section '## Return Format' not found in pm.md"
|
||||||
assert blocked_section_start != -1, "Section '## Blocked Protocol' not found in pm.md"
|
assert blocked_section_start != -1, "Section '## Blocked Protocol' not found in pm.md"
|
||||||
|
|
||||||
output_section = content[output_section_start:blocked_section_start]
|
output_section = content[output_section_start:blocked_section_start]
|
||||||
|
|
@ -343,7 +343,7 @@ class TestPmPromptStatusFieldConsistency:
|
||||||
# The main example JSON block (the first ```json...``` block in this section)
|
# The main example JSON block (the first ```json...``` block in this section)
|
||||||
import re
|
import re
|
||||||
json_blocks = re.findall(r"```json\s*(.*?)```", output_section, re.DOTALL)
|
json_blocks = re.findall(r"```json\s*(.*?)```", output_section, re.DOTALL)
|
||||||
assert len(json_blocks) >= 1, "No JSON example found in ## Output format section"
|
assert len(json_blocks) >= 1, "No JSON example found in ## Return Format section"
|
||||||
|
|
||||||
main_example_json_text = json_blocks[0].strip()
|
main_example_json_text = json_blocks[0].strip()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue