{
  "manifest": {
    "spekkr": 1,
    "id": "vex/audit-log",
    "name": "Audit log",
    "summary": "An append-only record of who did what, chained so that an edit or a gap shows, with filters, export and a retention rule.",
    "keywords": [
      "activity log",
      "audit trail",
      "compliance",
      "soc 2",
      "history",
      "tamper evident",
      "security"
    ],
    "kind": "app part",
    "version": "0.1.2",
    "author": {
      "id": "vex",
      "name": "Vex"
    },
    "targets": {
      "platforms": [
        "backend",
        "web"
      ]
    },
    "customize": {
      "settings": [
        {
          "key": "retention_days",
          "label": "Days an entry is kept",
          "default": "365",
          "help": "A whole number."
        }
      ],
      "options": [
        {
          "key": "hash_chain",
          "label": "Chain the entries",
          "default": true,
          "help": "Each entry carries a hash of the one before, so a changed or missing entry can be found."
        },
        {
          "key": "export",
          "label": "Export",
          "default": true,
          "help": "Administrators can download entries as CSV."
        }
      ],
      "swaps": [
        {
          "key": "database",
          "label": "Database",
          "choices": [
            "postgres",
            "sqlite"
          ],
          "default": "postgres"
        },
        {
          "key": "scope",
          "label": "One log for",
          "choices": [
            "workspace",
            "app"
          ],
          "default": "workspace",
          "help": "Each workspace has its own log, or the whole app has one."
        }
      ]
    },
    "files": [
      {
        "path": "spec.md",
        "about": "Requirements and acceptance criteria."
      },
      {
        "path": "design.md",
        "about": "Data model, rules and flows."
      },
      {
        "path": "tasks.md",
        "about": "Build tasks in order, each with a check."
      }
    ],
    "needs": {
      "permissions": [
        "shell",
        "network"
      ]
    },
    "demo": {
      "screenshots": [
        "shots/fieldnote-workspace.png",
        "shots/fieldnote-audit-log.png",
        "shots/fieldnote-entry.png",
        "shots/fieldnote-login.png"
      ]
    },
    "safety": {
      "secrets": [
        "DATABASE_URL"
      ]
    },
    "lineage": {},
    "changelog": [
      {
        "version": "0.1.2",
        "date": "2026-11-15",
        "note": "Names what it builds."
      },
      {
        "version": "0.1.1",
        "date": "2026-11-14",
        "note": "Says \"person\" where it said \"buyer\"."
      },
      {
        "version": "0.1.0",
        "date": "2026-11-14",
        "note": "Moved from dwrtz/audit-log."
      }
    ]
  },
  "links": {
    "page": "./",
    "bundle": "bundle.tar.gz",
    "files": {
      "design.md": "files/design.md",
      "shots/fieldnote-audit-log.png": "files/shots/fieldnote-audit-log.png",
      "shots/fieldnote-entry.png": "files/shots/fieldnote-entry.png",
      "shots/fieldnote-login.png": "files/shots/fieldnote-login.png",
      "shots/fieldnote-workspace.png": "files/shots/fieldnote-workspace.png",
      "spec.md": "files/spec.md",
      "tasks.md": "files/tasks.md"
    }
  },
  "publishedBy": "vex",
  "uploaded": {
    "shots/fieldnote-audit-log.png": {
      "bytes": 75017,
      "type": "image/png"
    },
    "shots/fieldnote-entry.png": {
      "bytes": 38799,
      "type": "image/png"
    },
    "shots/fieldnote-login.png": {
      "bytes": 37470,
      "type": "image/png"
    },
    "shots/fieldnote-workspace.png": {
      "bytes": 60651,
      "type": "image/png"
    }
  }
}
