Skip to content

Compliance reports

How af report turns the forge's receipts into an auditor's evidence - the five controls every framework names, what the forge examined for each, and every record that falls short, as OSCAL and as a page to read.

An auditor asks the same questions of every system that holds code: who did what, on whose authority, whether each change was checked and approved before it shipped, and whether the record of all that can be trusted. af report answers them for a period, from the forge’s receipts: the signed records in its logs, not the forge’s own tables. Anyone with a copy of the logs builds the same report.

Five controls, five frameworks

SOC 2, ISO/IEC 27001, PCI DSS, HIPAA and NIST SP 800-53 word their controls differently, but for a forge they ask about the same five things. A report has a finding for each control the framework names, and a framework that names none for a control has no finding for it:

Control What the forge shows What falls short SOC 2 ISO 27001 PCI DSS HIPAA NIST 800-53
Identity: every actor unique, authenticated and accountable to a person Sign-ins, with or without a second factor; agents born and stopped, each line ending at a person A sign-in without a second factor A.5.15, A.8.5 Req. 8 164.312(a), (d) IA-2
Least privilege: restricted ability to change the system Every change of a role, a restricted folder or a purge, on what authority, and who holds what now, the access review A change approved by no one else: an administrator’s own word CC6 A.8.4 AC-6, CM-5
Change management: every change authorized, tested and approved Every landing, with its checks and the approvals of the exact commit that landed A landing no check gated CC8.1 A.8.32 6.2.3, 6.5 CM-3
Separation of duties: no one approves their own change The approvals that counted A change approved by no one else; an approval, a clearance or a release approved from its own line; a request approved from its asker’s own line CC8.1 A.5.3 AC-5
Audit trail: a protected, retained record Each log’s signed checkpoint and its cosignatures; every read, recorded and anchored Entries not yet in a checkpoint, and a checkpoint no witness cosigned A.8.15 Req. 10 164.312(b) AU-9, AU-11

A control is satisfied when nothing falls short in the period. An exception is never hidden to make one pass: each names the log entry it comes from, so an auditor can read the record behind it.

A report, made and read

Start a development forge, land a change, and restrict a folder, on your own word as an administrator:

$ af-server --dev
...
$ source ~/af-dev/dev/env
$ af workspace add ~/svc
Workspace at /home/you/svc
Paths: **
main has no landing yet
$ cd ~/svc
$ af new -m "Add the service"
Working on change suonotkxzppvowksvnprrvpkqwwwvovo at commit 8ed7b223398ac776047b047bf2089d6a95c8a94beef506421a1a25f439118b4c
$ printf 'print("hello")\n' > app.py
$ af submit
Submitted commit b584636a9b430d1ddcf5a6e2fb89a600cc7a1aa2f54376745d02496c87b2d90f, 1 edit in its last snapshot
$ af status
Change suonotkxzppvowksvnprrvpkqwwwvovo (landed) at commit b584636a9b430d1ddcf5a6e2fb89a600cc7a1aa2f54376745d02496c87b2d90f
$ af folder restrict secrets --team security --reason "keys live here"
done: it took effect at once, on your word as an administrator

Report on the period, for NIST SP 800-53. The report is two files, and a receipt of its own:

$ af report nist-800-53 --from 2026-01-01T00:00:00Z --to 2100-01-01T00:00:00Z --out ~/reports
wrote /home/you/reports/nist-800-53-report.json and /home/you/reports/nist-800-53-report.html; the report's receipt is entry 5 of the log

The HTML is for people. A small script reads it as text, a line for each observation and each exception, so the lab can show a section; a browser shows the same page:

$ cat > ~/read-report <<'END'
> #!/bin/bash
> sed 's/<\/t[dh]>/ · /g; s/<\/\(li\|h2\|p\|tr\)>/&\n/g; s/<[^>]*>//g; s/&quot;/"/g; s/&middot;/·/g' "$1" | sed 's/^ *//; s/ *·* *$//' | grep -v '^$'
> END
$ chmod +x ~/read-report
$ ~/read-report ~/reports/nist-800-53-report.html | sed -n '/^Least privilege/,/^Every change/p'
Least privilege; restricted ability to change the system
not satisfied · ac-6, cm-5
1 change of roles, 1 of restricted folders and 0 purges in the period, each a request and an approval in the log, an administrator's own word, or the first administrator named by the server.
Now: dev@localhost (5fad8da4a06edc6b6e55642b04a5e97684867eef6675640272eb87db5d6a51b1) holds reader, writer, administrator.
Now: "secrets" is restricted (reads and writes) to team security.
Log entry · When · Exception
organization 4 · 2026-11-25T16:58:41.969Z · "secrets" restricted (reads and writes) to team security: approved by no one else, an administrator's own word
Every change authorized, tested and approved before production

The finding names its controls, AC-6 and CM-5, and what it examined: the one change of roles, the first administrator named by the server, and the one folder restricted, then who holds what now. The restriction is its exception: approved by no one but the administrator who asked. A forge that requires a second administrator (af-server --two-administrators) holds each such request for another’s approval, and only its only administrator’s own word is then an exception. The exception names its entry, organization 4, in the organization’s log.

The document an auditor’s tools read

The JSON is OSCAL Assessment Results, NIST’s format for assessments, valid against NIST’s own schema, which the forge’s tests check every report against. A tool that reads OSCAL takes it as it is: a finding for each control, with its state, its observations and its exceptions. Each finding’s state comes before the control it is for:

$ grep -o '"target-id" *: *"[a-z0-9._-]*"\|"state" *: *"[a-z-]*"' ~/reports/nist-800-53-report.json
"state": "not-satisfied"
"target-id": "ia-2_obj"
"state": "not-satisfied"
"target-id": "ac-6_obj"
"state": "not-satisfied"
"target-id": "cm-5_obj"
"state": "not-satisfied"
"target-id": "cm-3_obj"
"state": "not-satisfied"
"target-id": "ac-5_obj"
"state": "not-satisfied"
"target-id": "au-9_obj"
"state": "not-satisfied"
"target-id": "au-11_obj"

Every control is unsatisfied here, and correctly: a development forge’s developer signs in without an identity provider, no check gates its landings, and no witness cosigns its logs yet. A report from a development forge is never evidence.

A report is a record too

Each report is itself a receipt in the organization’s log, naming the SHA-256 of its document, so a report cannot be altered after it is given without the log showing it. The report above is entry 5 of that log.

What a report cannot say yet

  • Witnesses. The audit trail is unsatisfied on every forge for now: no witness cosigns the logs’ checkpoints, as the witness protocol is not built (FORGE.md §8.6).
  • Verifying a receipt yourself. A report is built from receipts anyone can check, but af has no command yet that fetches one with its proof. Security lesson 3 waits on it.

Learn more

Type to search…

↑↓ navigate↵ selectEsc close