audit

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package audit provides audit event schemas for OpenBotStack.

All significant actions in the control plane must emit audit events for traceability, compliance, and debugging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditEmitter

type AuditEmitter interface {
	// Emit publishes an audit event.
	Emit(ctx context.Context, event AuditEvent) error
}

AuditEmitter publishes audit events. Full definition deferred to future implementation.

type AuditEvent

type AuditEvent struct {
	// ID is a unique identifier for this event.
	ID string

	// Type categorizes the event (e.g., "state_transition", "skill_invocation").
	Type string

	// Timestamp is when the event occurred.
	Timestamp time.Time

	// ActorID identifies who/what triggered the event.
	ActorID string

	// Payload contains event-specific data.
	Payload map[string]any

	// RequestID links the event to a specific request.
	RequestID string
}

AuditEvent represents a single auditable action.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL