Merge results into meta.json and write atomically.
Merge options.
The updated MetaJson.
If validation fails (malformed output).
Merge results into meta.json and write atomically.