test_approval_for_different_request_rejected (test_harness.T10_GatewayBypassG32.test_approval_for_different_request_rejected) ... ok
test_consumption_is_atomic_under_concurrency (test_harness.T10_GatewayBypassG32.test_consumption_is_atomic_under_concurrency) ... ok
test_direct_call_without_gateway_credential_rejected (test_harness.T10_GatewayBypassG32.test_direct_call_without_gateway_credential_rejected) ... ok
test_expired_or_wrong_audience_credential_rejected (test_harness.T10_GatewayBypassG32.test_expired_or_wrong_audience_credential_rejected) ... ok
test_forged_gateway_credential_rejected (test_harness.T10_GatewayBypassG32.test_forged_gateway_credential_rejected) ... ok
test_invalid_approver_or_expired_approval_rejected_at_sink (test_harness.T10_GatewayBypassG32.test_invalid_approver_or_expired_approval_rejected_at_sink) ... ok
test_legitimate_path_still_works_and_is_logged (test_harness.T10_GatewayBypassG32.test_legitimate_path_still_works_and_is_logged) ... ok
test_replay_after_consumption_rejected (test_harness.T10_GatewayBypassG32.test_replay_after_consumption_rejected) ... ok
test_reused_gateway_assertion_rejected (test_harness.T10_GatewayBypassG32.test_reused_gateway_assertion_rejected) ... ok
test_sink_denial_via_gateway_is_audited_as_mcp_server (test_harness.T10_GatewayBypassG32.test_sink_denial_via_gateway_is_audited_as_mcp_server) ... ok
test_valid_gateway_credential_without_approval_rejected (test_harness.T10_GatewayBypassG32.test_valid_gateway_credential_without_approval_rejected)
Simulates a gateway bug or compromised gateway signing a write that has no valid approval: the sink re-checks. ... ok
test_gateway_holds_write_with_no_approval_id (test_harness.T1_PreApprovalExecutionBlocked.test_gateway_holds_write_with_no_approval_id) ... ok
test_harness_blocks_execute_before_approval (test_harness.T1_PreApprovalExecutionBlocked.test_harness_blocks_execute_before_approval) ... ok
test_expired_approval (test_harness.T2_ForgedWriteBlocked.test_expired_approval) ... ok
test_forged_approval_id (test_harness.T2_ForgedWriteBlocked.test_forged_approval_id) ... ok
test_rejected_approval_cannot_write (test_harness.T2_ForgedWriteBlocked.test_rejected_approval_cannot_write) ... ok
test_replay_of_used_approval (test_harness.T2_ForgedWriteBlocked.test_replay_of_used_approval) ... ok
test_self_approval_and_agent_approval_denied (test_harness.T2_ForgedWriteBlocked.test_self_approval_and_agent_approval_denied) ... ok
test_tampered_args_after_approval (test_harness.T2_ForgedWriteBlocked.test_tampered_args_after_approval) ... ok
test_classification_above_ceiling_never_reaches_model (test_harness.T3_PoisonedDocToolRequestBlocked.test_classification_above_ceiling_never_reaches_model) ... ok
test_gateway_denies_injected_tool_even_if_harness_forwards_it (test_harness.T3_PoisonedDocToolRequestBlocked.test_gateway_denies_injected_tool_even_if_harness_forwards_it) ... ok
test_injected_tools_stripped_and_audited (test_harness.T3_PoisonedDocToolRequestBlocked.test_injected_tools_stripped_and_audited) ... /workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d46711a80>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d46711b70>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d45a2f970>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d45927f10>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c8040>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c8130>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c8220>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c84f0>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c86d0>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c8400>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c8b80>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c8310>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d467117b0>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c8a90>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c85e0>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c8c70>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c89a0>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c8f40>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c88b0>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c8d60>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c8e50>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c87c0>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c9030>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/jsonschema/_keywords.py:285: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459c9210>
  if not any(validator.is_type(instance, type) for type in types):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_read_token_cannot_write (test_harness.T3_PoisonedDocToolRequestBlocked.test_read_token_cannot_write) ... ok
test_digest_mismatch (test_harness.T4_UnregisteredOrUnpinnedServerRejected.test_digest_mismatch) ... ok
test_inactive_or_unhealthy_server (test_harness.T4_UnregisteredOrUnpinnedServerRejected.test_inactive_or_unhealthy_server) ... ok
test_unpinned_version_on_write_blocked (test_harness.T4_UnregisteredOrUnpinnedServerRejected.test_unpinned_version_on_write_blocked)
Write path: approval is bound to server_version via request_sha256, so a version swap dies at step 4 ... ok
test_unpinned_versions_rejected_at_registry (test_harness.T4_UnregisteredOrUnpinnedServerRejected.test_unpinned_versions_rejected_at_registry)
Read path (no approval involved): Registry step 5 must reject every non-exact pin. ... ok
test_unregistered_server (test_harness.T4_UnregisteredOrUnpinnedServerRejected.test_unregistered_server) ... ok
test_expired_human_session_rejected_at_authorize (test_harness.T5_ExpiredCredentialRejected.test_expired_human_session_rejected_at_authorize) ... ok
test_expired_obo_token_at_gateway (test_harness.T5_ExpiredCredentialRejected.test_expired_obo_token_at_gateway) ... ok
test_happy_path (test_harness.T6_ApprovedWriteAllowedAndLogged.test_happy_path) ... ok
test_contract_and_registry_agree (test_harness.T7_ContractMatchesHarnessRegistry.test_contract_and_registry_agree) ... /workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d45a2f970>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d45a2fd30>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d45a2ff10>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d45927f10>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d45926980>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d45926a70>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d45926b60>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d45926c50>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d45926d40>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d45926e30>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459273d0>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459274c0>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459272e0>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d459275b0>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d45927970>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d45927880>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/workspace/.venv-airight/lib/python3.13/site-packages/yaml/error.py:6: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f2d45927b50>
  def __init__(self, name, index, line, column, buffer, pointer):
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_authorize_precedes_choose_brain (test_harness.T8_LifecycleOrderG16.test_authorize_precedes_choose_brain) ... ok
test_draft_server_cannot_serve_before_go_live (test_harness.T9_GoLiveGateG29.test_draft_server_cannot_serve_before_go_live) ... ok
test_ed_oz_agent_or_pam_cannot_sign (test_harness.T9_GoLiveGateG29.test_ed_oz_agent_or_pam_cannot_sign) ... ok
test_jon_signs_pam_witnesses_goes_active (test_harness.T9_GoLiveGateG29.test_jon_signs_pam_witnesses_goes_active) ... ok
test_optional_scout_review (test_harness.T9_GoLiveGateG29.test_optional_scout_review) ... ok
test_witness_must_be_pam_and_evidence_logged (test_harness.T9_GoLiveGateG29.test_witness_must_be_pam_and_evidence_logged) ... ok

----------------------------------------------------------------------
Ran 38 tests in 0.141s

OK
