Buckets:
| from __future__ import annotations | |
| import importlib.util | |
| import json | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parents[1] | |
| SPEC = importlib.util.spec_from_file_location("loss_aware_validate", ROOT / "scripts" / "validate_preparation.py") | |
| MODULE = importlib.util.module_from_spec(SPEC) | |
| assert SPEC.loader is not None | |
| SPEC.loader.exec_module(MODULE) | |
| def test_preparation_scaffold_is_valid_hold() -> None: | |
| assert MODULE.validate(ROOT) == [] | |
| def test_contract_never_authorizes_execution() -> None: | |
| contract = json.loads((ROOT / "PREPARATION_CONTRACT.json").read_text(encoding="utf-8")) | |
| assert contract["decision"] == "ADMIT" | |
| assert contract["stage"] == "PREPARATION_HOLD" | |
| assert contract["blockers"] | |
| assert all(value is False for value in contract["authority"].values()) | |
Xet Storage Details
- Size:
- 836 Bytes
- Xet hash:
- dc2c4449c5763aedb8c05b17604551586745116d38f2443572800d7a08067eaa
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.