Run Results and Data Safety
How to read run results, continue a stopped job, avoid the three things that cause permanent data loss, and update or remove TBT.
Reading Run Results
Each run gets its own folder inside the results folder (or wherever --results points), named from the job name, time, and mapping file fingerprint.
| File | Content |
|---|---|
summary.json, report.html | Run result figures and the actions to take next |
mapping.yaml | The mapping file that was actually run |
failures.jsonl | List of refused records, recorded by row key, never by data content; read by retry. Always created even if empty |
checkpoint.json | Point for continuing the run; written after the row group it records has finished being saved |
tweaks.jsonl | Only exists if there is a column with tweak_type: generated. Must be kept |
- The result folder is safe to keep around: no file contains original data, and everything in it is readable only by its owner.
retryre-reads values straight from the database rather than from these files, since that's the only safe way to do it.
Every value TBT processes ends up in one of three statuses:
| Status | Meaning |
|---|---|
changed | Changed |
skipped | Skipped because its value is empty (NULL) |
refused | Refused (recorded in failures.jsonl) |
A value that doesn't land in one of those three statuses gets reported as unaccounted, and the report says do not sign off, as nobody can be sure what happened to it. Don't approve that run's results. Contact the support team instead.
If a Job Stops Midway
Jobs stop for all sorts of reasons: a lost connection, a slow service, an operator hitting stop. As long as the run folder has checkpoint.json, you can pick up from the last point instead of starting over:
./run.sh resume --run results/<run-folder> \
--mapping m.yaml
resumerefuses if the mapping file differs from the one used by that run (fingerprint does not match).- For
copy, continuing a run is always safe because rows that already exist in the destination table are skipped. - For
in_place, TBT first checks the last boundary of the run with three possible results:Landed,NotLanded, orUndecidable(see below). - To reprocess only refused records, use the
retrycommand:
./run.sh retry --run results/<run-folder> \
--mapping m.yaml
The report from a stopped run usually already gives you the right resume command at the end.
Three Things That Can Cause Data Loss
Don't skip these.
1. Generated tweak: do not lose tweaks.jsonl
- If a column has
tweak_type: generated, TBT writes atweaks.jsonlfile in the run folder. Lose this file and that column can never be opened again. Keep it, and back it up. - This file only shows up when a column actually has a generated tweak. No file means no column needs one.
2. Key columns may only be changed with strategy: copy
in_placecan't touch key columns (see Two Working Modes), andcopyrefuses a generated tweak on one.- Confirm the destination table's data stays unique before you run
copy. Two source values that land on the same token get skipped as duplicates, and that row is lost, not refused.
3. Tokenization results cannot be distinguished from original values
- FF1/FF3-1 tokenization can produce results that look just like the original data, so there's no way to tell if a value has already been processed. Process the same value twice and its original is gone for good.
- That's why resuming an
in_placerun always checks its last boundary first. Copy mode doesn't need this check.
| Check Result | Meaning |
|---|---|
Landed | The last boundary is proven to have been written |
NotLanded | The last boundary is proven not to have been written |
Undecidable | Cannot be proven; the run is stopped and TBT does not guess |
If a run comes back Undecidable, don't force it to continue. Contact the support team.
Updating and Removing TBT
TBT isn't installed as a service, so updating it is just replacing the package folder's contents with the new release and granting run permission again (see Step 3). Check the version with:
./run.sh version
To remove TBT, delete the package folder from the server. Before you do, make sure:
- The results folder, especially
tweaks.jsonl, is copied somewhere safe. - The
.envfile with access data is deleted or stored securely. - No run still needs
resumeorretry.
Working with an unusual database? Check Supported Databases for notes specific to your type. Hitting a problem? See Troubleshooting.