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

@ -36,7 +36,8 @@ def _payload(sinks: list[dict[str, Any]]) -> dict[str, Any]:
"prompt_hash": "abc123",
"model": "test-model",
"output_validated": True,
"review_required": False,
"review_advisory": False,
"review_gate_applied": False,
"validation_error": None,
"llm_response_metadata": {
"finish_reason": "stop",
@ -66,7 +67,9 @@ def test_working_memory_sink_writes_idempotently(tmp_path) -> None:
text = note.read_text(encoding="utf-8")
assert "activity_core_run_id: 12345678-aaaa-bbbb-cccc-123456789abc" in text
assert "output_validated: true" in text
assert "review_required: false" in text
assert "review_advisory: false" in text
assert "review_gate_applied: false" in text
assert "review_required:" not in text
assert "model: test-model" in text
assert "LLM response metadata:" in text
assert '"finish_reason": "stop"' in text
@ -121,7 +124,8 @@ def test_state_hub_progress_sink_posts(monkeypatch) -> None:
assert "workstream_id" not in posts[0]["json"]
assert posts[0]["json"]["detail"]["activity_core_run_id"] == payload_run_id()
assert posts[0]["json"]["detail"]["output_validated"] is True
assert posts[0]["json"]["detail"]["review_required"] is False
assert posts[0]["json"]["detail"]["review_advisory"] is False
assert posts[0]["json"]["detail"]["review_gate_applied"] is False
assert posts[0]["json"]["detail"]["llm_response_metadata"] == {
"finish_reason": "stop",
"usage": {"output_tokens": 50},