audit-emit

Community

Centralize immutable audit emissions.

AuthorCleanExpo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It prevents audit logging drift and missing state transitions by funneling all cross-tool workflow events into a single, schema-enforced append-only emitter.

Core Features & Use Cases

  • Centralized append-only audit boundary: All Dispatcher steps, Scribe sends, and CoS routing decisions emit through a single function that writes to .harness/swarm/swarm.jsonl.
  • Schema enforcement with strict type validation: Unknown event types are rejected at the boundary to avoid silent data corruption and schema drift.
  • PII redaction guardrails: String fields beyond a configured length are redacted before writing to the audit log.
  • Optional external observability sink: When Langfuse environment variables are set, the emitter also forwards rows asynchronously while keeping the local jsonl write as the source of truth.

Quick Start

In your workflow code, replace any direct .harness/swarm/swarm.jsonl writes with calls to audit_emit.row(type, actor_role, ...) so every transition is consistently captured with validated schema and redaction.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: audit-emit
Download link: https://github.com/CleanExpo/Pi-Dev-Ops/archive/main.zip#audit-emit

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.