Enforce declared human controls at approval binding

Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
This commit is contained in:
tegwick 2026-09-10 19:26:12 +02:00
parent a3c94fb241
commit be1a388a84
17 changed files with 441 additions and 40 deletions

View file

@ -96,3 +96,12 @@ def test_pdp_path_examples_always_carry_a_digest(path):
binding = json.loads(path.read_text())["binding"]
if binding["pdp_path"]:
assert binding["pdp_digest"] is not None
def test_valid_examples_distinguish_declared_human_control_from_ordinary_approval():
controls = {
c["binding"]["human_control"]
for c in (json.loads(p.read_text()) for p in EXAMPLES)
if c["valid_now"]
}
assert controls == {True, False}