Skip to content

Feature [Needs Review]: Append-only EPOS audit event log foundation (main/core/audit.ts) #287

Description

@khaira777

Important

Status: Needs Feature Review
This issue outlines a proposed operational feature. It requires product/security review and approval before deciding whether to implement or adopt.

Extracted from fork richanonymous22/FloCafe (branch: claude/plemmo-epos-audit-fro8v9):

Overview

Add a structured, append-only audit event logging subsystem (main/core/audit.ts) to maintain an immutable record of sensitive POS actions for anti-fraud and EPOS regulatory compliance.

Key Features & Technical Details

  1. Immutable Audit Event Table:
    • Stores actor_id, action, resource_type, resource_id, payload_json, and ISO UTC timestamps.
  2. Tracked Sensitive Operations:
    • ORDER_VOID, PRICE_OVERRIDE, DISCOUNT_APPLIED, REFUND_ISSUED, REGISTER_DRAWER_OPEN, SHIFT_START, SHIFT_END.
  3. Reference Implementation:
    • main/core/audit.ts & tests/plemmo-audit.test.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:backendBackend (Express/SQLite)enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions