Skip to main content

pakad

Evidence Population Reconciler. Reconcile an expected population against a collected evidence export. See exactly what is missing, extra, duplicated, ambiguous, or stale, with every finding traced back to its source row.

CI License: Apache-2.0

Status: version 0.1.2, beta. The tests use synthetic data only, and run in continuous integration on Linux (Python 3.11 to 3.14), Windows, and macOS. No claim is made that it has been validated against real exports from production systems, so check its first reports against your own data. See Limitations. Documentation is in the docs folder.

A pakad HTML report showing summary cards and findings grouped by kind

Why pakad

Audit evidence often starts with two lists: who should be there, such as an HR roster or an approved access list, and what a system export says is there. Comparing them by hand in a spreadsheet is slow, easy to get wrong, and hard to defend. Leading zeros vanish, duplicates hide, a paged export silently stops at 1,000 rows, and nobody can say afterward which files the conclusion came from.

pakad does the comparison the same way every time and writes a report an assessor can rely on:

  • Missing and unexpected records, matched on the key columns you choose.
  • Duplicate and ambiguous keys, including values that only collide after normalization, such as A0108 and a0108.
  • Field mismatches on matched records, with equivalents, so TRUE can count as active.
  • Collection problems: expected sources with no records, stale capture times, and counts that suggest a paged export stopped early.
  • What it could not verify, stated in every report rather than left out.
  • Evidence details, including SHA-256 hashes of every input and the profile, the rules applied, the reference time, and the tool version.

How it differs from existing tools

Spreadsheet formulas, ad-hoc scripts, and generic data-comparison tools can all compare two lists, but they can decide quietly: convert types, hide duplicates, and say nothing about checks that did not run. General-purpose governance, risk, and compliance products track controls and evidence, and are a different kind of tool. pakad does one narrow job. It matches two exports on keys you choose, by exact text and the normalization steps you list, and it treats duplicates, ambiguity, and unchecked checks as findings. Every report names the files by SHA-256 hash and lists the rules applied. It runs offline and never connects to a system.

A look at the output

Real output from the synthetic example, which exits with code 1 because it has findings:

pakad 0.1.2: HR roster vs directory export
  expected         9 records  expected.csv
  collected       12 records  collected.csv
  matched          8 keys

7 errors and 2 warnings need review.
  Missing from the collected export            1  (missing)
  Not in the expected population               1  (unexpected)
  Duplicate keys                               1  (duplicate-key)
  Keys that collide after normalization        1  (ambiguous-key)
  Records without a usable key                 1  (blank-key)
  Field values that disagree                   1  (field-mismatch)
  Expected sources with no records             1  (missing-source)
  Stale records                                1  (stale-record)
  Unusable capture times                       1  (invalid-timestamp)
1 check not verified; see the report.

The full sample reports are committed, in all four formats.

About the name

pakad (pah-KAHD). Hebrew paqad: to number, to muster, to account for, and to notice who is missing.

Install

pakad needs Python 3.11 or newer and has no runtime dependencies.

pipx install git+https://github.com/faithful-oversight/faithful-pakad

For a fixed version, add a tag, for example ...faithful-pakad@v0.1.2. If pakad is not found afterward, run pipx ensurepath once and open a new terminal.

PyPI publishing is being set up. Until a PyPI release exists, install from GitHub as shown. To work from a clone, run pipx install . in the repository.

Try it in one minute

pakad example ./pakad-demo
pakad reconcile -p ./pakad-demo/profile.toml -e ./pakad-demo/expected.csv \
  -c ./pakad-demo/collected.csv -o ./pakad-demo/report --as-of 2026-11-07T12:00:00Z

Open ./pakad-demo/report/pakad-report.html in any browser. The example data is synthetic and shows every kind of finding. The same reports are committed in examples/roster-vs-directory/sample-report.

Use it on your own data

  1. Export the expected population and the collected evidence as CSV or JSON.
  2. Write a profile that names the key columns and the checks you want. Start from pakad example-profile > profile.toml, then see the profile reference.
  3. Check it with pakad check-profile profile.toml.
  4. Run pakad reconcile and open the HTML report.

Outputs

File For
pakad-report.html People. One self-contained page that works offline in any browser, in light or dark mode, and prints cleanly.
pakad-report.json Automation. Follows a published, versioned JSON Schema.
pakad-findings.csv Spreadsheets and ticketing. Protected against formula injection.
pakad-report.md Pull requests, tickets, and change records.
pakad-manifest.json Evidence handling. The run ID and the SHA-256 of every other report file, written last.

Exit codes make pakad easy to use in pipelines: 0 no findings, 1 findings, 2 usage error, 3 input or output error, and 4 an internal error, so a crash is never mistaken for findings. Use --fail-on error to pass when there are only warnings.

Design principles

  • Read-only and offline. pakad reads files you give it and writes reports. It never connects to a network or changes a system.
  • Text, not guesses. Every value stays text, so identifiers keep their leading zeros and formatting.
  • Explicit rules. Normalization and comparisons happen only as the profile says, and each report lists the rules applied.
  • Explicit unknowns. A check that did not run is reported as not verified, never as passed.
  • Safe output. Reports escape every input value, and the HTML page cannot run scripts or load anything.

Documentation

Security

Please do not report security problems in public issues. See SECURITY.md.

Not affiliated

pakad is not affiliated with, endorsed by, or sponsored by Microsoft. Product names in the documentation, such as Microsoft Graph and PowerShell, appear only to describe the file formats pakad can read.

Contributing

Contributions are welcome. Read CONTRIBUTING.md and the code of conduct first.

License

Copyright 2026 Faithful Oversight, LLC. Licensed under the Apache License, Version 2.0.

Metadata

Release files for faithful-pakad 0.1.2

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

Source distribution (sdist)

Source distribution for faithful-pakad 0.1.2
File Size Uploaded Provenance Actions
faithful_pakad-0.1.2.tar.gz 347.5 kB With provenance Details for faithful_pakad-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for faithful-pakad 0.1.2
File Interpreter ABI Platform Actions
faithful_pakad-0.1.2-py3-none-any.whl Python 3 none any Details for faithful_pakad-0.1.2-py3-none-any.whl

Total release size: 402.9 kB

Release files / faithful_pakad-0.1.2.tar.gz

Download URL faithful_pakad-0.1.2.tar.gz
Size 347.5 kB
Tags Source
SHA-256 checksum
How to use checksums
52422b828dfbce9e59952c462e3d59667c30699732772f35aaee14e2e2da4465
BLAKE2b-256 checksum
How to use checksums
d8f78f32f7c7ae4ad190cc19b0def56f1ff4679f6362bf1e906ad653ff63450f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Release files / faithful_pakad-0.1.2-py3-none-any.whl

Download URL faithful_pakad-0.1.2-py3-none-any.whl
Size 55.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3beaae0cbb50e23804bdca949ac28dc135973730b5ce78b36f2d5fcc818a716
BLAKE2b-256 checksum
How to use checksums
4478e30c83b16e1d5a768d85ddadbaeb6ad0d3ed52006de689589cc4e25f2864
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Security for faithful-pakad 0.1.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for faithful_pakad-0.1.2.tar.gz

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 Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files Full provenance

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