Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/validate-package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from __future__ import annotations

import importlib
import sys
from pathlib import Path

Expand All @@ -28,6 +29,8 @@ def main() -> int:
from agent_machine.digest import stable_digest, stable_text_digest
from agent_machine.paths import default_evidence_path, default_model_cache_path, repo_root_from_file

registry_module = importlib.import_module("agent_machine.agent_registry")

root = repo_root_from_file(__file__)
if contracts_dir(root) != REPO_ROOT / "contracts":
raise AssertionError("contracts_dir(root) did not resolve to repository contracts/")
Expand Down Expand Up @@ -57,6 +60,8 @@ def main() -> int:
raise AssertionError("unexpected release_bundle default repository")
if agent_machine.policy_fabric.DEFAULT_DECIDED_AT != "1970-01-01T00:00:00Z":
raise AssertionError("unexpected policy_fabric default decided_at")
if getattr(registry_module, "DEFAULT_ISSUED_AT") != "1970-01-01T00:00:00Z":
raise AssertionError("unexpected registry default issued_at")
if str(default_model_cache_path()) != "/var/lib/agent-machine/models":
raise AssertionError("unexpected default model cache path")
if str(default_evidence_path()) != "/var/lib/agent-machine/evidence":
Expand Down
Loading