femic.pipeline.diagnostics

Shared diagnostics formatting helpers for legacy pipeline/runtime errors.

Functions

build_contextual_error_message(*, prefix, ...)

Build a human-readable diagnostic message with optional key/value context.

build_timestamped_event(*, event[, status, ...])

Build a timestamped structured event payload with optional context.

format_context_kv(*, context[, skip_none])

Format context mapping as stable key=value pairs for error diagnostics.