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.
Status: version 0.1.2, beta, available on PyPI. 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 on the docs site and in the docs folder.
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
A0108anda0108. - Field mismatches on matched records, with equivalents, so
TRUEcan count asactive. - 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 one runtime dependency, faithful-core, the shared foundation library of the Faithful Oversight tools. The installer fetches it for you.
pipx install faithful-pakad
pipx ensurepath
pipx ensurepath puts pipx's tool folder on your PATH; run it once and open a new terminal. With pip, use pip install faithful-pakad. For a fixed version, use faithful-pakad==0.1.2.
To try the development version from GitHub, run pipx install git+https://github.com/faithful-oversight/faithful-pakad. 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
- Export the expected population and the collected evidence as CSV or JSON.
- 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. - Check it with
pakad check-profile profile.toml. - Run
pakad reconcileand 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
- Quickstart
- Command reference
- Profile reference
- Reports and findings
- Guide for assessors
- Limitations
- Architecture and threat model
- Releasing and decision records
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.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| faithful_pakad-0.1.3.tar.gz | 340.8 kB | With provenance | Details for faithful_pakad-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| faithful_pakad-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for faithful_pakad-0.1.3-py3-none-any.whl |
Total release size: 390.1 kB
Release files / faithful_pakad-0.1.3.tar.gz
| Download URL | faithful_pakad-0.1.3.tar.gz |
|---|---|
| Size | 340.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fbce97a5ad036eb470b5d34d5f052930393a6c8c552f7a7e152ca084f867cd8
|
|
BLAKE2b-256 checksum How to use checksums |
dd060d3c391af8f559ddb6e85ad81803e81a7820dd3063d086d7c40a3bf6900b
|
| 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 22, 2026.
Transparency logRelease files / faithful_pakad-0.1.3-py3-none-any.whl
| Download URL | faithful_pakad-0.1.3-py3-none-any.whl |
|---|---|
| Size | 49.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da9f7a478a197f3a3a99d490840a0dd67bf9bfca5792c8a00154b2bb682e91a7
|
|
BLAKE2b-256 checksum How to use checksums |
7a67eb18b26c8d9f12f02112eb5e4ca1aae8f1aaf11fca4d9b81ae7dc284be32
|
| 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 22, 2026.
Transparency logSecurity for faithful-pakad 0.1.3
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.
Attestation for faithful_pakad-0.1.3.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 22, 2026.
Transparency logA 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.