Module Trading_engine.Artifact_writer

Exclusive staged-file writer with a typed internal lifecycle.

type t
type durability =
  1. | Buffered
  2. | Durable
val create : ?effects:Boundary_effects.t -> ?durability:durability -> label:string -> string -> (t, Diagnostic.t) Stdlib.result
val append : t -> string -> (unit, Diagnostic.t) Stdlib.result
val close_preserving_partial : t -> unit
val commit : t list -> (unit, Diagnostic.t) Stdlib.result

Close, publish, and clean up every staged writer as one operation.