Implement approved-file import and integrity verification #11
Labels
No labels
area/deployment
area/governance
area/metadata
area/pipeline
area/search
type/data
type/design
type/implementation
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
Arkive/arkive#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Resolve and validate paths without following inputs outside approved repository boundaries.
Reject absolute paths, traversal attempts, broken links, missing files, and unexpected file types where appropriate.
Calculate file byte size and SHA-256 deterministically.
Verify existing document integrity metadata or produce a deterministic proposed metadata result as defined by the processing contract.
Return clear machine-readable or structured errors for missing and mismatched files.
Avoid modifying committed source files.
Add tests using the approved pilot corpus and focused negative fixtures.
Text normalization or chunking.
Automatic network downloads.
License review automation.
Index generation.
#9 — Align metadata schemas and validation with the intake and processing contracts
#10 — Select and approve the five-document pilot corpus
A byte-size mismatch and SHA-256 mismatch are both detected.
Missing files and unsafe paths fail clearly.
Paths outside the approved repository boundary cannot be imported.
Repeated verification of unchanged files produces identical results.
No input file is modified.
Positive and negative tests pass.
Exercise all five approved files.
Exercise fixtures for missing files, checksum mismatches, size mismatches, absolute paths, traversal, and out-of-bound paths.
Repeat a successful verification and compare results.
Issue completed by merged PR #55.
Implemented:
document_id;Verified:
python -m pip checkreports no broken requirements.Scope remained limited to the approved-file integrity operation and its tests. No schemas, policies, source records, committed originals, dependencies, extraction behavior, qpdf, or Poppler tooling were changed.
Issue #11 is complete. Issues #12 and #16 may now proceed using the verified approved-file boundary.