| from __future__ import annotations | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parents[1] | |
| def main() -> None: | |
| ui_source = (ROOT / "ui_gradio.py").read_text(encoding="utf-8") | |
| admin_source = (ROOT / "admin_panel.py").read_text(encoding="utf-8") | |
| config_source = (ROOT / "config.py").read_text(encoding="utf-8") | |
| forbidden_ui_symbols = ( | |
| 'gr.Tab("Decision Runtime")', | |
| "decision_type_choices", | |
| "render_decision_runtime_dashboard", | |
| "run_decision_runtime_ui", | |
| ) | |
| for symbol in forbidden_ui_symbols: | |
| assert symbol not in ui_source, f"Removed Decision Runtime UI reference returned: {symbol}" | |
| assert symbol not in admin_source, f"Removed Decision Runtime admin reference returned: {symbol}" | |
| assert 'gr.Tab("Kurumsal Onboarding")' in ui_source | |
| assert "Knowledge Assistant + Decision Runtime" not in config_source | |
| print("Admin UI checks passed: Decision Runtime tab absent; onboarding retained.") | |
| if __name__ == "__main__": | |
| main() | |