audit-core/tests
tegwick 948e8a3e8f AUDIT-WP-0009-T08 — assert the approval-validity prohibition by test
§9.4 forbids audit-core answering whether an approval is still valid: a
consumer branching on such an answer would route an authorization decision
through the audit fabric. The prohibition was honoured by absence, which is
not the estate's idiom — §6.4 obligation 3 requires a published stance to
equal shipped behaviour asserted by test.

Written against shapes rather than today's route list, so adding a validity
surface later fails here rather than passing quietly. Plausible verdict paths
must 404 rather than 403: a distinguishable forbidden would imply a surface
exists behind auth. No backend class, Postgres included, may carry a
verdict-shaped method name. The declaration must stay in layer.yaml,
INTENT.md and SCOPE.md.

The last test guards the opposite error — an approval-shaped event class is
still ingestible, because the prohibition bounds the verdict, not the record.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185wifnLzCxjEY2MT1XbK7L

Assistant: claude-code
Assistant-Model: opus
Assistant-Process: 713962@bnt-lap001
Assistant-Session: 2718d99d-d3ff-478f-83a2-3a30f01a02fc
2026-09-06 20:35:41 +02:00
..
test_approval_validity_prohibition.py AUDIT-WP-0009-T08 — assert the approval-validity prohibition by test 2026-09-06 20:35:41 +02:00
test_backend_conformance.py Implement AUDIT-WP-0007 hash-chain integrity. 2026-08-16 01:18:30 +02:00
test_capability_case.py Close AUDIT-WP-0007 after live chain attestation. 2026-08-16 01:23:54 +02:00
test_cli.py Implement AUDIT-WP-0007 hash-chain integrity. 2026-08-16 01:18:30 +02:00
test_credentials.py Read mounted DB credentials from a Kubernetes snapshot 2026-08-13 12:25:32 +02:00
test_ingestion.py feat(AUDIT-WP-0008): enforce temporary sender expiry 2026-08-22 11:59:26 +02:00
test_integrity.py AUDIT-WP-0009-T01 — derive tamper_evidence from live attestation state 2026-09-06 20:34:22 +02:00
test_interface.py Implement AUDIT-WP-0006 honest operational custody. 2026-08-16 00:24:33 +02:00
test_migrate_store.py Establish pre-production record disposition and add the migration tool 2026-08-10 17:31:18 +02:00
test_mock_file_backend.py Add mock file audit backend 2026-06-01 23:44:03 +02:00
test_networkpolicies.py feat(AUDIT-WP-0008): admit governed E2 probe ingress 2026-08-22 09:37:30 +02:00
test_senders.py feat(AUDIT-WP-0008): enforce temporary sender expiry 2026-08-22 11:59:26 +02:00
test_t02_synthetic_load_driver.py test(AUDIT-WP-0008): exercise T02 driver over HTTP 2026-08-22 16:55:37 +02:00