General integrity checks #100

Open
opened 2026-11-10 19:34:04 +00:00 by scossu · 0 comments
Owner

Implement a function and CLI endpoint to check the overall integrity of the archive.

In detail, it should:

  1. Scan all URIs in the DRes database with a par: namespace that are in the o position;
  2. Verify that each of the URIs belongs to a resource (par:[…] a pas:Resource .) (referential integrity);
  3. If the resource is a file:
    a. Verify that the location pointed to by the resource is an actual file;
    b. Verify the file checksum (see #99).

#4.a and #4.b should be made independently optional (of course, running 4.b implies running 4.a).

This issue should be resolved and the function wired to run after the backup and restore commands before that functionality can be deemed as reliable.

Implement a function and CLI endpoint to check the overall integrity of the archive. In detail, it should: 1. Scan all URIs in the DRes database with a `par:` namespace that are in the `o` position; 2. Verify that each of the URIs belongs to a resource (`par:[…] a pas:Resource .`) (referential integrity); 3. If the resource is a file: a. Verify that the location pointed to by the resource is an actual file; b. Verify the file checksum (see #99). #4.a and #4.b should be made independently optional (of course, running 4.b implies running 4.a). This issue should be resolved and the function wired to run after the backup and restore commands before that functionality can be deemed as reliable.
scossu changed title from Referential integrity checks to General integrity checks 2026-11-10 19:35:45 +00:00
scossu added this to the v1.3.0 milestone 2026-11-10 19:37:36 +00:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ktx/pocket_archive#100
No description provided.