Privacy Corrections
This page describes how NEMAR (Neuroelectromagnetic Data Archive and Tools Resource) carries out the corrections that the Data Contributor Terms and the Takedown Procedure reserve. It adds no new right and no new warranty; it says what happens and what record is left.
What a privacy correction is
Section titled “What a privacy correction is”A privacy correction removes identifying information from a dataset that is already on NEMAR, in every version NEMAR serves, instead of issuing a new version. It is the default remedy when an identifier is found inside the data, for example a name in a recording header. NEMAR may make it in any version, without a new version number or a new Digital Object Identifier (DOI).
A correction changes only what is needed:
- Recording headers. In European Data Format (EDF) and BioSemi Data Format (BDF) files, only the patient identification and the recording identification fields change, and only when the scanner flags what is in them as identifying: for example a name or name-like code, free text, a birth date finer than the year, an age over 89, a record number, an operator name or non-ASCII text. The start date and time, the record count and every byte after the 256-byte header stay identical, and the tool checks that byte for byte before it keeps its result.
- Text values. Identifying values under identifying keys in JSON files are blanked, and the other bytes of the file stay.
- Files that cannot be corrected are removed from the dataset.
- Copies NEMAR derives from the data. The Zarr serving copy drops the subject-level members it copied from a header, manifests are regenerated, and the downloadable archive is rebuilt from the corrected files.
Version numbers and DOIs are kept. A citing analysis still reproduces, because the signal bytes are identical. Withdrawal, with the data removed, is reserved for a dataset that cannot be corrected: a license that forbids modified copies, an identifier carried in the signal itself or too widespread to remove, or an extent that cannot be bounded. A tombstone on its own is never the remedy, because it hides bytes and deletes none.
The original bytes are then deleted, including the earlier stored versions of the corrected objects. NEMAR lifts Object Lock for that purpose only, and the deletion is checked by listing every version and deletion marker that remains.
A dataset mirrored from another archive then differs from its source, and NEMAR notifies the source archive.
Where the dataset carries a sourcedata provenance file, that file records that its checksums describe the original upstream files, not the corrected copies.
NEMAR’s importer applies the same header correction to the data it brings in, and it does not copy back an object that a correction replaced.
What a correction cannot reach
Section titled “What a correction cannot reach”NEMAR corrects the copies it controls, as a best effort. It cannot correct copies that were already downloaded, forks, other archives, or published records held by other services such as Zenodo. GitHub can keep cached views and pull-request references of old content that NEMAR cannot delete. If you hold a copy of an affected version, please delete the identifying fields from it and do not redistribute them.
The correction ledger
Section titled “The correction ledger”NEMAR keeps the history of its corrective actions, because a correction changes the bytes behind a version and a DOI and the only thing that keeps that honest is a record. The ledger is append-only, made of counts and fixed words only, and readable by anyone wherever the dataset itself is public. It lives where a rewrite of the repository’s history cannot erase it:
- in the dataset repository, as
.nemar/corrections.jsonlonmain, committed after the history was rewritten (for a public dataset,https://raw.githubusercontent.com/nemarDatasets/<dataset-id>/main/.nemar/corrections.jsonl); - in NEMAR’s storage bucket, as
<dataset-id>/corrections/ledger.jsonl, next to the dataset’s other files, and readable like them.
A dataset has a ledger only if NEMAR corrected it or scrubbed it on import. The repository file is written for both; the bucket object is written for corrections made to data that was already stored. Each line is a JSON object with these fields:
| Field | What it holds |
|---|---|
version |
The ledger line format, currently 1. |
at |
When the line was written. |
dataset |
The dataset identifier. |
action |
One of the action names below. |
versions |
The version tags the action affected. |
counts |
Named numbers, such as how many objects, headers, commits or versions. |
scanner |
The revision of the identifier scanner’s rules the action ran under, as identifier-scan@ and a code revision. |
verification |
A phrase from a closed list that says how strong the check behind the line was, for example scanner-clean or authoritative-listing-empty. |
actor |
The GitHub handle of the operator who ran the step. |
The action names are a closed list:
| Action | What it records |
|---|---|
plan |
The read-only plan of what needed correction was made. |
headers-scrubbed |
Identification fields in recording headers were replaced, and the replacement objects were checked. |
files-removed |
Files were removed, or identifying values in text files were blanked. |
history-rewritten |
The dataset repository’s history was rewritten so that every branch and tag names the corrected files. |
locks-applied |
Object Lock was applied to the replacement objects. |
manifests-regenerated |
Each version’s manifest was regenerated after the tags moved. |
old-versions-deleted |
The original object versions were deleted, and a final listing showed none left. |
published-again |
The dataset was made public again after the correction. |
import-scrubbed |
An import corrected the tree before its first push, so no version existed yet and versions is empty. Only the importer writes it. |
Each corrected version’s change log also carries one sentence, in the form <date>: privacy correction. Identification fields in recording file headers were removed in place from <versions>. Version numbers and DOIs are unchanged. See .nemar/corrections.jsonl.
What the ledger does not say
Section titled “What the ledger does not say”The ledger holds no value, no file name, no path, no per-file list and no free text. A line cannot carry a participant’s name, a date taken from the data, or free text, and the tools that write it refuse anything else, so the ledger can be public without repeating what it records. Its only dates and names are the time a step was written and the GitHub handle of the operator who ran it. It does not say who authorized a step, and it does not say what was found beyond counts and kinds.
It is a record of what NEMAR did, not a certificate.
It does not show that no identifier remains: the scanner field says which rules a step ran under, and identifier screening is a best effort with stated limits.
Reporting a concern
Section titled “Reporting a concern”To report identifying information in a dataset, follow the Takedown Procedure: email privacy@nemar.org, describe the kind of field and where it sits, and do not quote the value or post it in a public issue.