Normalize Glas execution evidence
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Build and Publish Container Image / build-and-push (push) Successful in 20s

Assistant: codex
Assistant-Model: gpt-5.6-sol
Assistant-Session: 01a028de-e2c8-7732-8521-46a7fc5db82f
This commit is contained in:
tegwick 2026-08-22 23:11:52 +02:00
parent b933cf52c8
commit 7e81545b24
13 changed files with 528 additions and 33 deletions

View file

@ -148,6 +148,13 @@ class TestExecutionRefs:
assert refs == {"resource_envelope_refs": ["ok"]}
def test_drops_non_string_items_in_reference_lists(self) -> None:
refs = normalise_execution_refs(
{"goal_refs": ["goal:1@1", {"credential": "must-drop"}, 17]}
)
assert refs == {"goal_refs": ["goal:1@1"]}
@pytest.mark.parametrize("bad", [None, "refs", ["a"], 5])
def test_non_dict_becomes_empty(self, bad) -> None:
assert normalise_execution_refs(bad) == {}