Moved audit forward somewhat

This commit is contained in:
2026-07-04 00:39:03 +02:00
parent e8c300d265
commit 07f6046c4c
7 changed files with 487 additions and 17 deletions

View File

@@ -4,11 +4,11 @@ type: workplan
title: "Pluggable audit backend contract"
domain: infotech
repo: audit-core
status: ready
status: finished
owner: codex
topic_slug: custodian
created: "2026-06-22"
updated: "2026-06-22"
updated: "2026-06-24"
state_hub_workstream_id: "14725dbf-16ae-43e5-bf52-3f93238cf264"
---
@@ -20,9 +20,12 @@ Define the replaceable audit backend interface beyond the mock JSONL writer and
```task
id: AUDIT-WP-0002-T01
status: todo
status: done
priority: high
state_hub_task_id: "588ac6fa-eb41-49ce-8a1c-850d5791de0b"
```
Result 2026-06-24: Added `docs/audit-backend-contract.md`; expanded `AuditBackend`
with `RetentionPolicy`, `validate_event()`, and module docstrings; 13 tests pass.
Document `AuditBackend` protocol, event schema, retention policy, and migration path from the mock file backend in `docs/` or module docstrings.