File writing and metadata update pipeline stage.
All functions accept explicit options/path arguments rather than reading module-level state, so they are trivial to test in isolation.
Description
File writing and metadata update pipeline stage.
All functions accept explicit options/path arguments rather than reading module-level state, so they are trivial to test in isolation.