Keep source, config, and deploy files. Leave runtime data, uploads, and logs out of git. Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
845 B
Python
31 lines
845 B
Python
"""Skill orchestration norms for report mode (loaded without tools/__init__.py)."""
|
|
|
|
import importlib.util
|
|
from pathlib import Path
|
|
|
|
_SKILL_RUNTIME_PATH = (
|
|
Path(__file__).resolve().parents[2]
|
|
/ "kamidso"
|
|
/ "engine"
|
|
/ "app"
|
|
/ "openapi"
|
|
/ "api_v1"
|
|
/ "tools"
|
|
/ "skill_runtime.py"
|
|
)
|
|
|
|
|
|
def test_report_mode_skill_is_an_explicit_todowrite_step():
|
|
spec = importlib.util.spec_from_file_location(
|
|
"kamidso_skill_runtime_isolated", _SKILL_RUNTIME_PATH
|
|
)
|
|
mod = importlib.util.module_from_spec(spec)
|
|
assert spec.loader is not None
|
|
spec.loader.exec_module(mod)
|
|
norms = mod.SKILL_ORCHESTRATION_NORMS
|
|
assert "When Report mode is ON" in norms
|
|
assert "todowrite" in norms
|
|
assert "root-cause-investigator" in norms
|
|
assert "html_interpreter" in norms
|
|
assert "terminate" in norms
|