#!/usr/bin/env python3 """Thin entry point. The implementation is `llm_ingestion_okf.contract_check`. It moved into the package on 2026-09-08 (O5): the generated consumption skill's check step named this file by absolute path into a checkout, so the one command that tells a reader whether their payload conforms was unreachable from an install. The command is now `okf check`, on PATH. This file stays because the published reproduction blocks name it, and a measurement whose command no longer runs is a measurement nobody can repeat. No logic here, deliberately: a second copy of a contract rule is a second thing that can pass while the shipped one fails. """ from __future__ import annotations import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "src")) from llm_ingestion_okf import contract_check as _impl # noqa: E402 if __name__ == "__main__": raise SystemExit(_impl.main()) # ALIASED, not re-exported. `import okf_contract_check` must hand back the packaged module # ITSELF: a re-export binds copies of the names into a second module object, so # a caller patching one of them patches a binding the implementation never # reads. Measured on the move: two tests that monkeypatch `okf_contract_check` went green # again only under the alias. Guarded by the `__main__` branch above, because # aliasing `sys.modules["__main__"]` would replace the running script. sys.modules[__name__] = _impl