chore(spec): deprecate redundant schema-model generation layer

schemas/generated/(174) + src/quant_engine/models/generated/(347) duplicated
the existing runtime/python/core/formulas/generated/ formula-stub system with
a generic metadata wrapper carrying no real computation, validated only by a
file-count gate (validate_schema_model_generation_v1.py). Remove the
generator scripts, generated files, and CI/DAG wiring; keep
schemas/generated/gas_adapter_contract.schema.json, which serves an
unrelated GAS-adapter contract check.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-12 21:07:20 +09:00
parent 2a46dd5503
commit f9a0ba3690
524 changed files with 0 additions and 20457 deletions
-16
View File
@@ -1,16 +0,0 @@
#!/usr/bin/env python3
from __future__ import annotations
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parent.parent
if str(ROOT) not in sys.path:
sys.path.insert(0, str(ROOT))
from src.quant_engine.generate_models_from_schema import * # noqa: F401,F403
if __name__ == "__main__":
raise SystemExit(main())
@@ -1,34 +0,0 @@
"""Generate deterministic evidence for schema/model parity."""
from __future__ import annotations
import json
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
SCHEMA_DIR = ROOT / "schemas" / "generated"
OUT_DIR = ROOT / "src" / "quant_engine" / "models" / "generated"
REPORT = ROOT / "Temp" / "schema_model_generation_v1.json"
def main() -> int:
schema_count = len(list(SCHEMA_DIR.glob("*.schema.json")))
module_count = len(list(OUT_DIR.glob("*.py")))
payload = {
"formula_id": "SCHEMA_MODEL_GENERATION_V1",
"status": "OK" if module_count == schema_count + 1 else "FAIL",
"schema_count": schema_count,
"generated_module_count": schema_count,
"module_count": module_count,
"evidence": {
"schema_dir": str(SCHEMA_DIR.relative_to(ROOT)),
"model_dir": str(OUT_DIR.relative_to(ROOT)),
},
}
REPORT.parent.mkdir(parents=True, exist_ok=True)
REPORT.write_text(json.dumps(payload, ensure_ascii=False, indent=2), encoding="utf-8")
print(json.dumps(payload, ensure_ascii=False, indent=2))
return 0 if payload["status"] == "OK" else 1
if __name__ == "__main__":
raise SystemExit(main())
@@ -1,43 +0,0 @@
"""validate_schema_model_generation_v1.py — schema model generation validator"""
from __future__ import annotations
import json
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
SCHEMA_DIR = ROOT / "schemas" / "generated"
OUT_DIR = ROOT / "src" / "quant_engine" / "models" / "generated"
REPORT = ROOT / "Temp" / "schema_model_generation_v1.json"
def main() -> int:
schema_count = len(list(SCHEMA_DIR.glob("*.schema.json")))
module_count = len(list(OUT_DIR.glob("*.py")))
if not REPORT.exists():
print("SCHEMA_MODEL_GENERATION_FAIL: missing report")
return 1
try:
report = json.loads(REPORT.read_text(encoding="utf-8"))
except Exception as exc:
print(f"SCHEMA_MODEL_GENERATION_FAIL: invalid report ({exc})")
return 1
ok = (
report.get("status") == "OK"
and int(report.get("schema_count") or 0) == schema_count
and int(report.get("generated_module_count") or 0) == schema_count
and module_count == schema_count + 1 # generated modules + package __init__
)
if ok:
print("SCHEMA_MODEL_GENERATION_OK")
print(f"schema_count={schema_count} module_count={module_count}")
return 0
print("SCHEMA_MODEL_GENERATION_FAIL")
print(f"schema_count={schema_count} report={report} module_count={module_count}")
return 1
if __name__ == "__main__":
raise SystemExit(main())