agentleFS
reaatechreaatech/mcp-gateway/skills/audit-trail/skill.md

audit-trail

Skill0 starsChanged 7 months agoMITView on GitHub

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. microsoft/aibast-agents-library★ 8same name
    2. SynapticSage/claude-skillz★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository8 other files it gives its agents.

The file

We found no rules to list in this file: it reads as prose or reference rather than instructions.

Files
skill.md

Audit Trail

Capability

Compliance audit logging with structured JSON output, multiple storage backends, tamper-evident chaining, and query API.

Package

@reaatech/mcp-gateway-audit — packages/audit/src/

Components

ComponentPurpose
audit-logger.tsCore logging: ConsoleAuditLogger, FileAuditLogger, CompositeAuditLogger, TamperEvidentLogger
audit-storage.tsMemoryAuditStorage and FileAuditStorage backends
audit-query.tsQuery API with filtering by tenant, event type, date range, limit
event-types.tsEvent type configurations and severity mappings
types.tsAuditEvent, AuditEventType, AuditSeverity, AuditQueryParams

Audit Event Types

EventTriggered When
auth.successAuthentication succeeds
auth.failureAuthentication fails
rate_limit.exceededRate limit exceeded
allowlist.deniedTool access denied
tool.executedTool execution completes
cache.hitCache hit
cache.missCache miss
upstream.errorUpstream server error

Audit Event Format

{
  "id": "evt-abc123",
  "timestamp": "2026-04-15T23:00:00Z",
  "eventType": "tool.executed",
  "severity": "low",
  "tenantId": "acme-corp",
  "userId": "user-123",
  "requestId": "req-xyz789",
  "tool": "glean_search",
  "success": true,
  "durationMs": 234,
  "cacheHit": false,
  "upstream": "primary"
}

Storage Backends

BackendUse Case
Console (ConsoleAuditLogger)Development, stdout
File (FileAuditLogger)Production, JSONL format, append-only
Memory (MemoryAuditStorage)Queryable, for API access
Composite (CompositeAuditLogger)Fan-out to multiple backends
Tamper-Evident (TamperEvidentLogger)SHA-256 chain integrity verification

Error Handling

  • Audit failures never block request processing (fire-and-forget)
  • Failed audit writes logged at WARN level
  • Integrity verification via computeEventHash and verifyAuditChain

Security Considerations

  • PII automatically redacted (tokens, IPs masked)
  • Audit logs immutable (append-only)
  • Tamper detection via hash chaining
  • Audit log queries gated behind admin-scoped auth

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.