Skip to content

Audit Trail System (SEC-001) #20

Closed
10 of 10 issues completed
Closed

Description

@vybe

Comprehensive audit logging for user/agent actions with full actor attribution. Append-only audit_log table, MCP tool call tracking, hash chain for tamper evidence.

Status: Docs complete, partial PE integration exists.

Spec: docs/requirements/AUDIT_TRAIL_ARCHITECTURE.md

Sub-issues

Sub-issues

10 of 10 Issues completed
Loading 10 sub-issues

Activity

  1. added
    priority-p0
    type-feature
    status-in-progress
    on Feb 24, 2026
  2. added
    priority-p1
    and removed
    priority-p0
    on Mar 10, 2026
  3. vybe commented on Mar 30, 2026

    @vybe
    ContributorAuthor

    Actualization (2026-03-30)

    Current state: Labeled status-in-progress but no core audit trail infrastructure has been merged.

    What exists today (partial):

    • routers/audit.py exists (audit-related endpoints)
    • Execution origin tracking columns in schedule_executions (source_user_id, source_agent_name, etc.)
    • Vector log aggregation captures structured logs
    • Process Engine has its own event audit trail
    • Security events logged via structured logging

    What's missing (the core of this issue):

    • No dedicated audit_log table with append-only immutability
    • No centralized audit service capturing all event categories
    • No hash chain for tamper evidence
    • No query API with filters and export (CSV/JSON)
    • No MCP tool call audit integration

    Spec: docs/requirements/AUDIT_TRAIL_ARCHITECTURE.md is complete.

    Recommendation: Remove status-in-progress label — this is still status-ready (design complete, implementation not started). The spec and architecture doc are done; the implementation work remains.

  4. added and removed
    status-in-progress
    on Mar 30, 2026
  5. added
    status-in-progress
    on Apr 14, 2026
  6. dolho commented on Apr 14, 2026

    @dolho
    Contributor

    Picking this up — scoping to Phase 1 only for this PR per the spec's phasing.

    Phase 1 deliverables (docs/requirements/AUDIT_TRAIL_ARCHITECTURE.md § Implementation Plan):

    • audit_log table with schema, indexes, and immutability triggers
    • AuditService class
    • db/audit.py database operations
    • DatabaseManager wiring
    • /api/audit router with basic query endpoints
    • Unit tests

    Phases 2–4 (backend integration, MCP integration, hash chain/export/retention) will land as follow-up PRs. This issue stays open until all phases ship; PR description will note partial scope.

  7. 58 remaining items

  8. removed
    status-in-progress
    on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity-mediumpriority-p1theme-securitytype-epictype-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions