amanah-audit

Implement append-oriented Amanah audit events, restricted access logging, search, retention, and tamper resistance.

SKILL.md

GitHub

Purpose

Create accountable histories without duplicating sensitive content.

Scope

User, debt, payment, evidence, trusted, legacy, admin, security, role, and configuration events.

Rules

Record event_id, actor_id, actor_role, action, resource_type/id, timestamp, appropriate device/IP metadata, and required reason.

Required patterns

Append events in the same transaction/outbox as mutations; protect integrity; restrict audit access; log every restricted-data view and admin override.

Forbidden patterns

Never edit events in place, store evidence/debt descriptions unnecessarily, omit denied sensitive attempts, or allow actors to delete their history.

Relevant modules

All mutation services, auth, admin, exports, monitoring.

Testing

Test event completeness, ordering, transaction rollback, redaction, permissions, search, retention, and tamper detection.

Definition of done

Every significant action is attributable, minimally described, queryable, and append-oriented.