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

@ -123,9 +123,13 @@ def normalise_execution_refs(raw: Any) -> dict[str, Any]:
value = raw.get(key)
if key in _LIST_REF_KEYS:
if isinstance(value, (list, tuple)):
items = [str(item).strip() for item in value if str(item).strip()]
items = [
item.strip()[:500]
for item in value[:20]
if isinstance(item, str) and item.strip()
]
if items:
refs[key] = items
elif isinstance(value, str) and value.strip():
refs[key] = value.strip()
refs[key] = value.strip()[:500]
return refs