Enforce bounded operation guardrails
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 21s

Assistant: codex
Assistant-Model: gpt-5.6-sol
Assistant-Session: 01a028de-e2c8-7732-8521-46a7fc5db82f
This commit is contained in:
tegwick 2026-08-23 12:31:13 +02:00
parent c384f60530
commit 26934e25b9
51 changed files with 1843 additions and 472 deletions

View file

@ -11,6 +11,7 @@ from activity_core.run_artifacts import (
artifacts_from_ops_result,
build_forgejo_blob_url,
match_ops_runs_to_activity_run,
public_context_keys,
)
@ -39,6 +40,17 @@ def test_build_forgejo_blob_url_rejects_traversal() -> None:
)
def test_public_context_keys_hide_credential_and_raw_payload_names() -> None:
assert public_context_keys(
{
"safe_summary": {},
"credential": "must-drop",
"tool_output": "must-drop",
"provider_response": {},
}
) == ["safe_summary"]
def test_artifacts_from_ops_result() -> None:
arts = artifacts_from_ops_result(
{