Skip to content

Verify and purge the report archive

eaxScadaHow-to guideProEnterpriseView as Markdown

Show that the report files in the archive are exactly the ones that were written, and remove old unsigned reports once their retention has passed, with a record of who removed what.

You need reports_view to verify the runs you may open, and reports_admin to see the archive’s use and to purge. A purge also needs your password (an e-signature) and is done by a person in the Studio or over a browser session, never with an API token, never by the AI co-pilot and never through eaxCloud remote access.

Open Analytics and Reports > Archive. It lists the archived runs you may open: yours, those whose tags you may all read, and, for a reports administrator, every run. Filter by Template, Retention class, Archived from (UTC) and Archived until (UTC) (UTC days), or with the column filters. Each row shows when it was archived, who ran it, the period of its data, its retention class and Kept until date, its signature state and its integrity. The dates are in UTC, whatever your browser’s zone: Archived (UTC), Data from (UTC), Data to (UTC), Kept until (UTC), also in Export CSV and the column filters.

The Archive tab for a Process_Supervisor: filters Template, Retention, Archived from and Archived until, and two archived runs of the Daily production report run as runner, archived 2026-11-05, data from 2026-11-04. The first is Standard, unsigned and waiting; the second is Signed, Approved, with Open, Verify, PDF and Signed copy 2 buttons. The Archive tab for an Administrator: the same two runs, and at the top right the chip “Archive 111 KiB of 64.0 MiB (0.2 %)” and the rose Purge… button.

The Archive tab. The administrator sees the archive's use of its quota and Purge....
  1. Click Verify on the run’s row (in Archive, or in the run’s dialog in Runs).
  2. Read the result. Each line is one file: Run record (sidecar), Original PDF and Original XLSX, and for a signed run each signature’s link record and Signed rendition n, with the recorded SHA-256 and the SHA-256 now.

The dialog “Verify run run_20261105T160208Z_8c55eb81b308”: the green line “Every hash matches: the original, its run record and each signed copy are as archived.” and a grid of 6 checks (Run record (sidecar), Original PDF, two link records and Signed renditions 1 and 2), each Hash OK, with the recorded SHA-256 and the SHA-256 now. The dialog “Verify run run_20261105T160208Z_8c55eb81b308”: the green line “Every hash matches: the original, its run record and each signed copy are as archived.” and a grid of 6 checks (Run record (sidecar), Original PDF, two link records and Signed renditions 1 and 2), each Hash OK, with the recorded SHA-256 and the SHA-256 now.

Every hash matches. Export CSV keeps the result with your own records.
Integrity Means Do
Verified Every hash matches. Nothing.
Hash mismatch A file, the run record or a link record is not what was written, or a signed copy does not follow the one before. Treat it as a finding: do not edit, move or replace the files; keep them for the investigation. The changed file is not downloaded or signed any more.
File missing A recorded file is not on disk. Restore the archive folder from a backup, then verify again.
Broken chain A file cannot be read, or the folder holds a signed copy or link record that is not part of the chain. As for a mismatch.
Not verified yet No verification is recorded for the run. Run Verify.

Verify changes and repairs nothing. Each verification is in the audit trail (archive.verify).

The archived PDFs and their signed copies are PDF/A-3b (with reports.archive.pdfa on, the default), validated with an independent PDF/A validator, PDF/A-3B profile: you can hand them to a long-term archive that checks PDF/A (PDF/A with the data inside).

When the licence no longer includes Analytics and Reports, the archive stays readable: the Archive and Runs tabs remain, read-only, with the chip “Read-only: the licence in force does not include Analytics and Reports; archived reports stay readable”. Open, Verify and the downloads (the original and each signed copy) still work; the purge, signing and the settings are refused (403 EDITION).

The Archive tab on a Starter licence: only the Runs and Archive tabs, the chip “Read-only: the licence in force does not include Analytics and Reports; archived reports stay readable”, the filters, and two archived runs of the Daily production report, Standard, kept until 2029-11-04, No signature, each with Open, Verify and PDF. The Archive tab on a Starter licence: only the Runs and Archive tabs, the chip “Read-only: the licence in force does not include Analytics and Reports; archived reports stay readable”, the filters, and two archived runs of the Daily production report, Standard, kept until 2029-11-04, No signature, each with Open, Verify and PDF.

After a downgrade: Verify and the downloads stay; there is no Purge.

The standby keeps a copy of the archive: it pulls each archived file and signed copy from the primary, checks it against its hash and writes it once, within its own quota and disk floor. After a failover the new primary serves, verifies and signs the same runs. System Health > Analytics and Reports shows how far the standby is behind (“archive replication behind by N files”), the last pass and the files it refused; ALM-SYS-REPORTS is active when a standby has not confirmed an archived file for more than an hour or refused one (High availability: run records and the archive). A purge on the primary removes the same files on the standby, each with its own archive.purge record.

The archive has a quota and a disk floor (Quota and disk floor):

  • reports.archive.quota (default 20GiB): at 80 % the alarm ALM-SYS-REPORTS is active and the Archive tab warns; a run that would pass the quota fails and is not archived;
  • reports.archive.min_free (default 2GiB) and the historian’s historian.disk.critical_free: the larger of the two is always left free on the archive’s disk; a run that would go under it fails the same way.

Nothing is deleted to make room. Purge old runs (below), raise the quota, or free space on the disk. These settings are read at start-up: change them in config.yaml and restart. The Settings tab shows the values in force.

A standard run (one without a signature) may be purged once it is older than reports.archive.retention.standard (default 3y) and past the Kept until date it was given when archived. A signed run is never purged, nor a run whose signature plan still waits for a step.

  1. In Archive, click Purge… (reports administrators only). The server computes a dry run: nothing is deleted yet.

  2. Read it:

    • Would be deleted: the runs, their files and sizes;
    • Kept, and why: the runs past their retention that stay (signed, waiting for a signature, a file missing or changed, kept for Verify);
    • Plan SHA-256: the fingerprint of exactly this list.

    “Dry run: no archived run is past its retention” means there is nothing to do.

  3. Click Sign and purge…, type your password (your e-signature covers exactly this plan) and confirm Delete N archived run(s)? with Purge. A wrong password purges nothing: the dialog stays open with an empty password field, and you stay signed in. The fifth wrong password locks your account for 15 minutes.

  4. The server computes the plan again. If the archive changed since the dry run you saw, the purge is refused: “The archive changed since the dry run you saw: check the new plan and sign again.” Otherwise each file is deleted after its own audit record (archive.purge), and the dialog says Purged: N run(s), N file(s), size.

The dialog “Purge the report archive”: “Dry run: no archived run is past its retention. Nothing would be deleted.”, an empty grid “Would be deleted” (Run ID, Files, What, Size) showing “Nothing.”, an empty grid “Kept, and why” showing “No run is held back.”, and the Plan SHA-256 at the bottom. The dialog “Purge the report archive”: “Dry run: no archived run is past its retention. Nothing would be deleted.”, an empty grid “Would be deleted” (Run ID, Files, What, Size) showing “Nothing.”, an empty grid “Kept, and why” showing “No run is held back.”, and the Plan SHA-256 at the bottom.

A dry run with nothing past its retention.

A purged run keeps its record in Runs, marked as purged, and the audit trail keeps every run and every deleted file. A signature for a purge can only execute that purge; a report review, a deploy or any other e-signature can never execute one.

  • GET /api/reports/archive lists the archived runs you may open, with their retention, integrity and signature status. Filters: template, run_as, class (standard, signed), from, to (RFC 3339), limit. A reports administrator also gets the archive’s use and faults.

  • POST /api/reports/runs/<run id>/verify returns the result: status (ok, mismatch, missing, broken) and one check per item (kind, path, expected, actual, ok, problem).

  • The purge, as a person in a browser session with reports_admin:

    1. POST /api/reports/archive/purge/plan: the dry run (runs, files, skipped, bytes, sha256);
    2. POST /api/reports/archive/purge/ticket with {"password", "plan_sha256"}: the e-signature over that plan;
    3. POST /api/reports/archive/purge with {"plan_sha256", "signature_ticket"}: the purge.

    The plan answer of step 1 holds plan, object_ref, decision (report_purge) and meaning. A plan that changed answers 409 REPORTS_PURGE_PLAN_CHANGED at step 2 or 3, with the new plan; a plan with nothing to purge answers 409; a ticket that does not match the plan or the caller answers 403. At step 2 a wrong password answers 403 with "status": "signature_refused", a locked account 429; 401 only means you are not signed in.