# The compact file kept two labels but left out a revision record

Two people look at the same item. One chooses label A and the other chooses B. Their final answers show that they disagree. But if you want to know whether someone revised a judgment, the last answer alone won’t tell you.

For a fictional item, we gave Label Studio, a tool for collecting labels, two conflicting answers and a record of a change to one of them. Then we asked it to write the data in two formats. The compact file kept both final answers and who gave them. Only the full file kept the change record we supplied.

An annotation is a record of someone’s judgment about an item. The item has an ID so you can bring its labels together. Each annotation has an ID of its own so you can trace a change to a particular judgment. The user ID identifies the person recorded as making it.

## What we put into the two files

For item `7` we supplied four annotation records. User `11` chose A in annotation `101`. User `12` chose B in annotation `102`. Annotation `103` was marked canceled and annotation `104` skipped. We also put a history entry under `101`.

We passed that same fictional task to two file writers from one fixed version of the Label Studio software development kit (SDK). One wrote raw JSON. The other wrote its compact form, `JSON_MIN`. [How the SDK selects judgments](https://github.com/HumanSignal/label-studio-sdk/blob/9c4849589314c7288665cc48d83f9a5124eda65c/src/label_studio_sdk/converter/converter.py#L512-L594) · [Raw and compact file writers](https://github.com/HumanSignal/label-studio-sdk/blob/9c4849589314c7288665cc48d83f9a5124eda65c/src/label_studio_sdk/converter/converter.py#L599-L651)

**What the full and compact writers kept from the same four records**

| What we checked | Raw JSON writer | Compact writer |
| --- | --- | --- |
| Disagreement on task `7` | Copied the input file exactly | User `12` chose `B` in annotation `102`. User `11` chose `A` in annotation `101`. |
| Canceled annotation `103` and skipped annotation `104` | Kept both | Left out both |
| History supplied with annotation `101` | Kept it | Left it out |

## What a colleague could reconstruct

Open the compact file and you can put B from user `12` next to A from user `11` and trace both back to item `7`. Look for the earlier history under annotation `101`, though, and it’s gone. So are the canceled and skipped entries.

To check a delivery, choose an item with a disagreement you already know. Find both judgments in the exported file and match them to the item, the people and the annotation IDs. If you need the history, check for a change you know was recorded. If you need independent judgments, also ask how the reviewers worked. Two different user IDs can’t tell you whether one person saw the other’s answer.

The full writer copied exactly the input we gave it. Our comparison used the SDK’s path for writing one task. A different export route needs to be checked with its own delivered file.

An export can also leave individual judgments in a separate file. Take CVAT, a video-labeling tool. Two people can label the same frames in separate jobs, called replicas. Merging their work saves the combined labels to a parent job. A task export leaves the replicas out.

To compare the original labels in a 2D task, ask someone with export access for the annotations from each replica job. Keep the parent job ID and the frame range the replicas share so you can line up the two sets of labels. [How CVAT merges labels](https://github.com/cvat-ai/cvat/blob/b976874b367cd1b35cfa4c7da0dea293a4d28523/site/content/en/docs/qa-analytics/consensus.md#L108-L115) · [How to export a replica job](https://github.com/cvat-ai/cvat/blob/b976874b367cd1b35cfa4c7da0dea293a4d28523/site/content/en/docs/workspace/jobs-page.md#L71-L88)

## Related research

- [Why did one picture get two image IDs?](https://sapien1.com/research/annotation-export-yolo-coco)
- [How a reviewer could check 20 labels and miss all six mistakes](https://sapien1.com/research/plan-a-label-review-sample)

[Choosing and checking data](https://sapien1.com/research#quality)
