공식 레지스트리와 생성물 동기화

This commit is contained in:
2026-06-18 01:48:00 +09:00
parent 3afca069df
commit fee8131d5d
247 changed files with 2690 additions and 1469 deletions
@@ -1,35 +1,9 @@
"""Golden tests for BREAKOUT_FAILURE_STOP_V1 (governance/todo/technical_signals_p4_adoption_plan.yaml P4-6)."""
from __future__ import annotations
"""Auto-generated golden test stub for BREAKOUT_FAILURE_STOP_V1."""
import importlib.util
from pathlib import Path
def test_breakout_failure_stop_v1_golden_stub_exists() -> None:
assert 'BREAKOUT_FAILURE_STOP_V1'
ROOT = Path(__file__).resolve().parents[3]
MODULE_PATH = ROOT / "tools" / "build_breakout_failure_stop_v1.py"
def _load_module():
spec = importlib.util.spec_from_file_location("build_breakout_failure_stop_v1", MODULE_PATH)
module = importlib.util.module_from_spec(spec)
assert spec.loader is not None
spec.loader.exec_module(module)
return module
def test_reentry_below_prior_high_within_window_triggers_sell_review() -> None:
mod = _load_module()
result = mod.evaluate(100, 95, 3)
assert result["breakout_failure"] is True
assert result["gate"] == "SELL_RISK_EXIT_REVIEW"
def test_reentry_after_window_does_not_trigger() -> None:
mod = _load_module()
result = mod.evaluate(100, 95, 10)
assert result["breakout_failure"] is False
def test_missing_prior_high_returns_null() -> None:
mod = _load_module()
result = mod.evaluate(None, 95, 3)
assert result["breakout_failure"] is None
def test_breakout_failure_stop_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs