Audit Trail Management
Overview
This skill defines how to create and maintain audit trails - chronological records of who did what, when, and why. Audit trails are essential for compliance, investigation, accountability, and understanding system behavior. Every significant action should leave a traceable record.
When to Use
- When making changes to production systems, configurations, or data
- When making decisions that affect project direction or resource allocation
- When approving, rejecting, or modifying deliverables
- When accessing sensitive systems or data
- When resolving incidents, disputes, or escalations
- Don't use when: Recording trivial routine actions that add no compliance or investigative value
Core Procedures
Step 1: Identify Recordable Events
Record these event types:
- Access Events: Who accessed what system/data and when
- Change Events: What was changed, by whom, when, and why
- Decision Events: What decision was made, by whom, when, and rationale
- Approval Events: What was approved/rejected, by whom, when
- Incident Events: What incident occurred, when detected, when resolved
- Communication Events: Significant directives or decisions communicated
Step 2: Structure Audit Entries
Each audit entry must include:
AUDIT ENTRY
===========
Timestamp: [ISO 8601 date-time]
Actor: [agent name, company, role]
Event Type: [access/change/decision/approval/incident/communication]
Action: [what was done - specific and objective]
Target: [what system, data, or process was affected]
Reason: [why the action was taken]
Result: [outcome - success, failure, partial]
Reference: [ticket ID, task ID, or related entry]
Step 3: Storage Requirements
- Store entries in tamper-evident storage
- Entries must be immutable once written (append-only)
- Entries must be searchable by timestamp, actor, event type, and target
- Retention period: minimum 1 year, or as required by compliance
- Cross-reference related entries for investigation trails
Step 4: Audit Trail Review
Periodic review (monthly or per compliance requirement):
- Check for completeness: are all required events being recorded?
- Check for anomalies: unexpected patterns, unauthorized access
- Check for gaps: time periods with no entries (should not happen)
- Check for stale entries: old unresolved incidents or decisions
- Generate summary report for governance review
Step 5: Investigation Support
When audit trails are needed for investigation:
- Define scope: what time range, actors, and systems?
- Extract relevant entries in chronological order
- Correlate entries across systems to build complete timeline
- Identify gaps or anomalies in the timeline
- Present findings with evidence trail
Quality Checklist
Error Handling
- Error: Audit trail storage unavailable
Response: Queue entries locally, retry storage, escalate to infrastructure if persistent
- Error: Missing entries discovered (gap in trail)
Response: Document the gap, investigate cause, recreate entries if possible with note about reconstruction
- Error: Audit trail shows unauthorized activity
Response: Do NOT modify or delete the entry, immediately notify security agent (Guardian/Sentinel)
- Error: Audit trail entries exceed retention period
Response: Archive per retention policy, delete only after confirmed no active investigations
Cross-Team Integration
Related Skills: secrets-handling, data-privacy-check, incident-response, risk-assessment
Used By: Compliance agents (Compliance, Auditor, Integrity), security agents (Guardian, Sentinel), ALL agents for significant actions
1---2name: audit-trail-management3description: Use when creating, maintaining, or reviewing records of actions, decisions, changes, and events for compliance, accountability, and investigation purposes. This skill provides procedures for managing audit trails across all agent activities.4---56# Audit Trail Management78## Overview9This skill defines how to create and maintain audit trails - chronological records of who did what, when, and why. Audit trails are essential for compliance, investigation, accountability, and understanding system behavior. Every significant action should leave a traceable record.1011## When to Use12- When making changes to production systems, configurations, or data13- When making decisions that affect project direction or resource allocation14- When approving, rejecting, or modifying deliverables15- When accessing sensitive systems or data16- When resolving incidents, disputes, or escalations17- **Don't use when:** Recording trivial routine actions that add no compliance or investigative value1819## Core Procedures2021### Step 1: Identify Recordable Events22Record these event types:23- **Access Events:** Who accessed what system/data and when24- **Change Events:** What was changed, by whom, when, and why25- **Decision Events:** What decision was made, by whom, when, and rationale26- **Approval Events:** What was approved/rejected, by whom, when27- **Incident Events:** What incident occurred, when detected, when resolved28- **Communication Events:** Significant directives or decisions communicated2930### Step 2: Structure Audit Entries31Each audit entry must include:32```33AUDIT ENTRY34===========35Timestamp: [ISO 8601 date-time]36Actor: [agent name, company, role]37Event Type: [access/change/decision/approval/incident/communication]38Action: [what was done - specific and objective]39Target: [what system, data, or process was affected]40Reason: [why the action was taken]41Result: [outcome - success, failure, partial]42Reference: [ticket ID, task ID, or related entry]43```4445### Step 3: Storage Requirements46- Store entries in tamper-evident storage47- Entries must be immutable once written (append-only)48- Entries must be searchable by timestamp, actor, event type, and target49- Retention period: minimum 1 year, or as required by compliance50- Cross-reference related entries for investigation trails5152### Step 4: Audit Trail Review53Periodic review (monthly or per compliance requirement):541. Check for completeness: are all required events being recorded?552. Check for anomalies: unexpected patterns, unauthorized access563. Check for gaps: time periods with no entries (should not happen)574. Check for stale entries: old unresolved incidents or decisions585. Generate summary report for governance review5960### Step 5: Investigation Support61When audit trails are needed for investigation:621. Define scope: what time range, actors, and systems?632. Extract relevant entries in chronological order643. Correlate entries across systems to build complete timeline654. Identify gaps or anomalies in the timeline665. Present findings with evidence trail6768## Quality Checklist69- [ ] All significant events are being recorded70- [ ] Entries follow standardized format71- [ ] Entries are stored in tamper-evident, append-only storage72- [ ] Retention policy defined and enforced73- [ ] Entries are searchable and retrievable74- [ ] Periodic review schedule is maintained7576## Error Handling77- **Error:** Audit trail storage unavailable78 **Response:** Queue entries locally, retry storage, escalate to infrastructure if persistent79- **Error:** Missing entries discovered (gap in trail)80 **Response:** Document the gap, investigate cause, recreate entries if possible with note about reconstruction81- **Error:** Audit trail shows unauthorized activity82 **Response:** Do NOT modify or delete the entry, immediately notify security agent (Guardian/Sentinel)83- **Error:** Audit trail entries exceed retention period84 **Response:** Archive per retention policy, delete only after confirmed no active investigations8586## Cross-Team Integration87**Related Skills:** secrets-handling, data-privacy-check, incident-response, risk-assessment88**Used By:** Compliance agents (Compliance, Auditor, Integrity), security agents (Guardian, Sentinel), ALL agents for significant actions