generated from coulomb/repo-seed
32 lines
896 B
Markdown
32 lines
896 B
Markdown
---
|
|
id: AUDIT-WP-0002
|
|
type: workplan
|
|
title: "Pluggable audit backend contract"
|
|
domain: infotech
|
|
repo: audit-core
|
|
status: finished
|
|
owner: codex
|
|
topic_slug: custodian
|
|
created: "2026-06-22"
|
|
updated: "2026-06-24"
|
|
state_hub_workstream_id: "14725dbf-16ae-43e5-bf52-3f93238cf264"
|
|
---
|
|
|
|
# Pluggable audit backend contract
|
|
|
|
Define the replaceable audit backend interface beyond the mock JSONL writer and document retention guarantees.
|
|
|
|
## Author backend interface contract
|
|
|
|
```task
|
|
id: AUDIT-WP-0002-T01
|
|
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.
|