Reports and findings

Every run produces one report document, and every output format is rendered from it, so the formats always agree.

Report sections

Section

What it holds

Summary

Record counts, matched keys, and the number of errors and warnings. A result with no findings still says how many checks did not run, so it is never read as a full pass.

Not verified

Checks that did not run, and why.

Findings

Each discrepancy, grouped by kind, with a plain-language explanation and a next step.

Evidence

The SHA-256 hash of each input and of the profile, the rules applied, and how to verify the hashes.

The report also records the reference time used for freshness checks, the time it was generated, and the pakad version. Both times are written in UTC as RFC 3339 text ending in Z, for example 2026-11-07T12:00:00Z, whatever form --as-of was given in (an offset such as +05:30 or +00:00:30 is converted, and a fraction of a second is kept). The same form is used for the capture time shown in a stale record’s details.

Finding kinds

Kind

Severity

Meaning

missing

error

An expected record has no match in the collected export.

unexpected

error

A collected record matches nothing in the expected population.

duplicate-key

error

The same key appears in more than one record of one input.

ambiguous-key

error

Different raw keys become identical after normalization.

blank-key

error

A record’s key is absent or empty, so it cannot be matched.

field-mismatch

error

A matched pair has different values in a compared field.

missing-source

error

An expected source contributed no collected records.

incomplete-export

error

A JSON export says it is one page of a larger result (a non-empty @odata.nextLink), so the population it holds is incomplete.

nothing-reconciled

error

Both inputs have no records, so nothing was compared.

stale-record

warning

A capture time is older than the profile allows.

invalid-timestamp

warning

A capture time is absent, unusable, or more than five minutes after the reference time.

possible-truncation

warning

A record count is an exact multiple of a common page size, or a JSON file states a total (@odata.count or count) that differs from the records it holds.

empty-input

warning

One input has a header but no records, or is a JSON export with no records ([] or {"value": []}), which would otherwise look like a clean result. When both inputs are empty, the finding is nothing-reconciled instead.

A finding is a fact about the inputs, not a judgment. For example, unexpected means the record is unmatched, not that the access is unauthorized.

Source references

Each finding points to the records that show it:

  • CSV: the physical line where the record starts, counting the header as line 1. A record with a quoted line break starts on the line shown.

  • JSON: the record’s position in the array, starting at 1.

In people-facing reports, each reference starts with its input, for example collected: users.csv line 7, so inputs with the same filename stay distinct.

Keys in findings are shown after normalization, which is the form pakad matched on. Missing and unexpected findings also show the raw_key as written in the file, and duplicate and ambiguous findings list every raw value.

JSON report

pakad-report.json follows a published JSON Schema. pakad schema prints the schema for the installed version, with no network access. The schema’s identifier, https://faithful-oversight.github.io/faithful-pakad/schema/report-v1.schema.json, is also where the documentation site serves it once the project is public.

{
  "schema_version": "1.1",
  "tool": {"name": "pakad", "version": "0.1.2"},
  "summary": {"expected_records": 9, "collected_records": 12, "matched_keys": 8,
              "errors": 7, "warnings": 2, "findings_by_kind": {"missing": 1, "...": 0}},
  "findings": [
    {
      "id": "F00001",
      "kind": "missing",
      "severity": "error",
      "message": "Expected record has no match in the collected export.",
      "key": ["000106"],
      "refs": [{"input": "expected", "file": "expected.csv", "row": 7, "unit": "line"}],
      "details": {"key_columns": "employee_id"}
    }
  ]
}

Compatibility promise:

  • Schema 1.1 added the incomplete-export and nothing-reconciled finding kinds. Their counts in findings_by_kind are optional in the schema, so a 1.0 report still validates against it.

  • Within major version 1, a release may add optional properties or new finding kinds. Each such change raises the minor schema_version, for example from 1.0 to 1.1, and ships the matching schema.

  • Existing properties and finding kinds are never removed or renamed within a major version. A breaking change gets a new major schema version and a new major pakad release.

  • The schema is strict, so a 1.0 validator rejects a 1.1 report’s new fields. Validate each report with the schema for its schema_version, which pakad schema from the same pakad version prints. Consumers that read reports without validating should ignore properties and finding kinds they do not know.

The report records the profile’s SHA-256 and lists its rules, including equivalent values. The hash identifies the profile; it does not contain it. Keep the profile with the inputs if the report may need to be reproduced.

Every report also has a run_id, shared by all files from the same run, including the run manifest.

Run manifest

Every run also writes pakad-manifest.json, after every other file. It records the run ID and lists each report file from the run with its size in bytes and SHA-256. This manifest is from a clean run with --format csv:

{
  "$schema": "https://faithful-oversight.github.io/faithful-pakad/schema/manifest-v1.schema.json",
  "schema_version": "1.0",
  "tool": {"name": "pakad", "version": "0.1.2"},
  "run_id": "4f3c1e0a9b7d4c2e8f6a5b3c1d0e9f8a",
  "generated_at": "2026-11-07T12:00:00Z",
  "files": [
    {
      "name": "pakad-findings.csv",
      "bytes": 52,
      "sha256": "3a43cf9006b00982bd9485a6238a7eb573d5663eacb1b6f34f994a43c3e9417a"
    }
  ]
}

The manifest ties every file to its run, including a findings CSV with no rows, which has a header and nothing to carry a run ID. It also makes a set of files checkable as a whole:

  • If the manifest is missing, the run did not finish writing.

  • If a file’s size or SHA-256 differs from the manifest, the file is partial, edited, or from another run.

  • If a file the manifest lists is missing, the set is incomplete.

The manifest covers only the files from its own run. A report file it does not list, for example one left from an earlier run with other --format choices, belongs to another run.

pakad schema manifest prints the manifest schema offline. It follows the same compatibility promise as the report schema.

Invisible characters

Input values can contain characters that change how text looks rather than what it says, such as terminal escape sequences or right-to-left override marks that make exe.txt display as txt.exe. The HTML, Markdown, and CSV reports and the terminal show these as visible escapes. That covers control characters, zero-width and other format characters, line and paragraph separators, bidirectional marks, characters that draw nothing, tag characters, and variation selectors. A character in the Basic Multilingual Plane shows as \u202e; any other shows with eight digits, such as \U000e0041. Tabs and line breaks are kept in the files, and the terminal shows a carriage return and a tab as \r and \t so they cannot move the cursor. In the terminal summary, error messages, and printed paths, a line feed inside a name (a profile name, a file name, a column header) is also shown as \n, so a name always stays on its own line and cannot add a line of its own. The JSON report keeps the exact values.

Input filenames are treated the same way. A byte in a filename that is not valid UTF-8, such as 0xff, is recorded in the reports and the manifest as \xff, and the run still completes.

Composite keys and display

People-facing reports join composite keys with |. A key value that itself contains | can look like two values there. The JSON report keeps each part separately and is the authoritative form.

Large reports

The HTML and Markdown reports show at most 500 findings of each kind, and say how many more there are. The JSON and CSV outputs always hold every finding. The CSV, HTML, and Markdown reports list at most 20 source references for one finding, followed by a count of the rest, so one key repeated thousands of times cannot fill a spreadsheet cell past its limit of 32,767 characters. The JSON report always lists every reference.

CSV findings

pakad-findings.csv has one row per finding, with the columns id, kind, severity, key, source, message, details, and run_id. A clean run writes the header row only; the run manifest records which run it came from. Any cell that starts with a character a spreadsheet could treat as a formula gets a leading apostrophe, so opening the file cannot run anything.

HTML report

pakad-report.html is a single file with no external resources. It works offline, follows the system’s light or dark setting, and prints cleanly to paper or PDF. Its content security policy blocks scripts, network requests, and form submission, and every value from the inputs is escaped.

Markdown report

pakad-report.md holds the same content in GitHub-flavored Markdown, ready to paste into a pull request, ticket, or change record. Input values are escaped so they cannot break the table layout or inject HTML.