Complete AI Training
Sign inGet my AI kit

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

AI agent for librarians

Digital Preservation File Check Agent

Every digital file passes its checksum check, or the librarian has a list of files that need decisions.

Digital Preservation File Check Agent: what goes in, what the agent does and what you get

What it does

Files in digital collections can silently change or corrupt, and nobody notices until a patron cannot open an archive. The agent reads the stored checksum for every file, recalculates it on a schedule and finds mismatches. For each mismatch it finds a good copy in backup storage, restores the file, and rechecks the checksum after restoring. If the backup copy also fails, it tries another copy or marks the file as unrecoverable. It reports files it cannot repair, with the date they last passed. The librarian approves any replacement or deletion. Edge case: a file edited on purpose, where a changed checksum is expected and the log shows a recorded edit.

How it works

Follow the arrows from top to bottom. The orange dashed arrow is the loop: when a check fails, the agent goes back and tries again.

Start and resultWhat it doesA check on its own workWaits for your OKGoes back and retries
Yes, continueYes, continueApprovedNoNo 1 STARTS WHEN Scheduled integrity check 2 USES A TOOL Recalculate checksums for the files in scope 3 USES A TOOL Compare with stored checksums and the edit log 4 DOES List mismatches that have no logged edit 5 USES A TOOL Find a good copy in backup storage 6 DOES Restore the file to its place 7 CHECKS THE RESULT Does the restored file match the stored checksum? If not: Try the next backup copy, and if none matchesmark the file unrecoverable. Back to step 5. 8 DOES Rerun the check for the restored file and neighbors 9 CHECKS THE RESULT Are all mismatches repaired or listed? If not: Return to the unresolved files and repeat. Backto step 3. 10 YOU APPROVE Librarian approves any replacement or deletion 11 RESULT Integrity report
Read the steps as a list
  1. Scheduled integrity check
  2. Recalculate checksums for the files in scope
  3. Compare with stored checksums and the edit log
  4. List mismatches that have no logged edit
  5. Find a good copy in backup storage
  6. Restore the file to its place
  7. Does the restored file match the stored checksum?If not: Try the next backup copy, and if none matches mark the file unrecoverable. Back to step 5.
  8. Rerun the check for the restored file and neighbors
  9. Are all mismatches repaired or listed?If not: Return to the unresolved files and repeat. Back to step 3.
  10. Librarian approves any replacement or deletionThe agent waits here for your OK.
  11. Integrity report

How it decides

It treats a changed checksum without a logged edit as corruption, and counts a file as fixed only after the restored copy matches the stored value.

  • A mismatch with no logged edit is corruption
  • Restore only from a copy that passes its own checksum
  • Keep the corrupt file in a quarantine folder
  • Report unrecoverable files the same day

Make it yours

Every agent is a starting point. You choose these settings for your own situation.

  • Collections in scope
  • Check frequency
  • Backup locations in order
  • Checksum type used

What keeps you in control

It always asks you first

  • Librarian approves any replacement of a file
  • Librarian approves any deletion

Hard limits

  • Never delete or overwrite a file without a quarantine copy
  • Never touch files outside the collection scope

It stops when

  • Done: all files verified or listed as unrecoverable
  • Stop: backup storage is unavailable

Set it up

We guide you through the set-up, step by step

Members get the full set-up guide for this agent. No technical skills needed: you copy, paste and upload.

10 minto set it up in your AI
5 AIsChatGPT, Claude, Copilot, Gemini, Grok
  • One set of instructions to paste into your AI, with the clicks for ChatGPT, Claude, Microsoft 365 Copilot, Gemini and Grok
  • The agent then walks you through connecting your own data, one source at a time
  • A downloadable copy with the flow chart, the rules and the full guide
Get access to this agent

An example run

What happensThe monthly check covers 18,400 files and finds 7 mismatches. For 5 files the backup copy restores and matches. For one, the first backup also fails but the second matches. One scan has no good copy anywhere, so it goes on the list. The librarian approves replacing it from the original paper source.

More agents for librarians