% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pipeline.R
\name{wf_audit_export}
\alias{wf_audit_export}
\title{Export a self-contained WFC audit file}
\usage{
wf_audit_export(x, file, inputs = NULL, extra = NULL)
}
\arguments{
\item{x}{A WFC result, safe workflow, plan, approval, locked weights, verified
target, design-data object, or post-lock impact object.}

\item{file}{Output JSON file path.}

\item{inputs}{Optional named list of input objects whose hashes should be
recorded.}

\item{extra}{Optional additional metadata to include in the audit record.}
}
\value{
Invisibly returns \code{file}.
}
\description{
Writes a JSON audit record containing result provenance, pipeline metadata,
optional guided-workflow decision ledger, input hashes, and user-supplied
extra metadata. The writer is dependency-free and intended for machine
archiving, not human formatting.
}
