Why the original is never touched
A media library is years of work. The worst thing a converter can do is replace a good file with a bad one. Allspark is built around not doing that.
The order of operations
Section titled “The order of operations”Every rule compiles to the same chain, and the irreversible step is last:
- localize. Copy the source to the worker’s local scratch disk. From here on the worker reads its own copy; the original is only read, never opened for writing.
- transcode. Run ffmpeg into a temporary file in scratch.
- verify. Probe the result and compare it with what was expected: the duration within tolerance, the number and kind of video, audio and subtitle tracks, the codecs asked for, and the stereo AAC track in last place. A mismatch fails the run here. Nothing has been written near the original.
- place. Write the result into the destination through a
.partfile and an atomic rename. A crash during the copy leaves a.partfile that the next start sweeps away, never a half-written file with a finished file’s name. - preview (optional). Hold for a person to review. Rejecting removes the placed file and ends the run.
- finalize. Apply the original policy: keep, or move to the trash with a retention date.
Only step 6 changes the original, and it runs only after steps 3 and 4 have succeeded.
Failures
Section titled “Failures”- A worker that vanishes during
localizeis replaced, up to three times, then the run fails. - A failure in
transcodeorverifyfails the run with the ffmpeg log attached. The original is untouched. - Cancelling any step cancels the run and enqueues a restore for any staged output. The worker learns of it at its next progress report and stops ffmpeg.
- Scratch lives only under the worker’s work directory and is swept at every start.
Trash, not delete
Section titled “Trash, not delete”When the original policy is anything but keep, the original is moved aside, not deleted, and a retention date is recorded. Until it passes, a restore is one click. When it passes, a purge task removes the backup. The same applies when you delete a file from Naelox: it goes to .naelox-trash in the library and can be restored for thirty days.
Why there is no graph
Section titled “Why there is no graph”Earlier versions let you wire steps together freely. That made it possible to put finalize before verify, or to forget place. The fixed chain removed that whole class of mistake. What a rule can change is what to match, how to encode, what to do with the original, whether to review, and where the file goes. The order is not yours to get wrong.