Skip to main content

Artifact Audit

Tests

Artifact Audit is a lightweight command-line tool for generating deterministic SHA-256 file manifests and verifying artifact integrity.

It is designed for automated workflows, review pipelines, reproducible research, and any process where unexpected file changes need to be detected reliably.

Features

  • Generate deterministic SHA-256 manifests
  • Record file paths, hashes, and sizes
  • Verify files against an existing manifest
  • Detect modified files
  • Detect missing files
  • Detect unexpected files
  • CI-friendly exit codes
  • Machine-readable JSON manifests
  • No runtime dependencies

Requirements

Python 3.10 or newer.

Installation

Clone the repository:

git clone https://github.com/xocnarfnal/artifact-audit.git
cd artifact-audit

Install the package:

python -m pip install .

Confirm the CLI is available:

artifact-audit --help
Generate a Manifest

Generate a manifest for a directory:

artifact-audit generate ./data

By default, the manifest is written to:

artifact-manifest.json

Specify another output path:

artifact-audit generate ./data --output my-manifest.json

Example manifest:

{
  "algorithm": "sha256",
  "files": [
    {
      "path": "example.txt",
      "sha256": "a1b2c3...",
      "size": 128
    }
  ],
  "manifest_version": 1
}
Verify Artifacts

Verify a directory against a manifest:

artifact-audit verify ./data --manifest artifact-manifest.json

If every artifact matches:

Verification passed: all artifacts match the manifest.

If something changed, Artifact Audit reports the affected files:

Verification failed.
Modified:
  - example.txt

It separately identifies:

missing files
modified files
unexpected files
Exit Codes
Exit code	Meaning
0	Verification passed
1	Verification failed

This makes Artifact Audit suitable for CI pipelines and automated review workflows.

Deterministic Output

Artifact Audit intentionally excludes timestamps and sorts file paths before generating a manifest.

For unchanged input files, repeated manifest generation produces identical output.

Development

Run the test suite with:

python -m unittest discover -s tests -v

Tests also run automatically through GitHub Actions on every push and pull request to main.

Project Status

Alpha.

The core manifest generation and verification workflow is implemented and tested. Additional reporting and packaging improvements are planned.

License

MIT License.


### Commit

Commit message:

```text
Document installation and usage

Release files for artifact-audit 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for artifact-audit 0.1.0
File Size Uploaded
artifact_audit-0.1.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for artifact-audit 0.1.0
File Interpreter ABI Platform
artifact_audit-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 kB

Release files / artifact_audit-0.1.0.tar.gz

Download URL artifact_audit-0.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
15360b8616d6cc8d9fe1481f462dc9e744817403eb331a40b8ba15f3848936af
BLAKE2b-256 checksum
How to use checksums
7f6eb9a12bce579d3dc0d7202d2256b3fe1a6b454eed1013f7eaf4cee4de832f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release files / artifact_audit-0.1.0-py3-none-any.whl

Download URL artifact_audit-0.1.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e1f6be684512bd4d4b3c8be2914f7cfedbe8cc54ff8aefcc7e09bcceadb6f12
BLAKE2b-256 checksum
How to use checksums
28981699b43b01af0e29c1d1e0c7957f8d20eee02c3ec01eb8ae44fe9ad1f794
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page