Skip to main content

Appendix: Run Each Step Separately

Run the Audit runs all commands of the audit with audit-tally. This appendix runs the same commands one at a time, for one scope: one election, one area and one contest of the tally.

Use this appendix to do these tasks:

  • Build the tools and restore the copies without the audit image.
  • Repeat a step that did not pass, after you correct its cause.
  • Examine the files of one step.
  • Look up the receipt of a voter. See Audit the Bundle.

Do the procedures in this order. Check the Cast-Vote History is optional when you do only one scope.

StepProcedureResult
Without the Audit ImageOnly if you do not use the audit image: the tools and the copies.
1Get the Scope and the PinsA pinned scope.json file.
2Export the EvidenceThe evidence files and their digests.
3Prepare the Audit BundleAn audit bundle.
4Audit the BundleAn audit report.
5Verify the Bulletin BoardA Braid result for each batch.
6Check the Cast-Vote HistoryA history report.

Use the procedures with the audit image​

The procedures give the commands without the audit image. With the image, open a shell in a container that has the copies, and type the commands there:

docker run --rm -it --network none \
-v ~/audit/backups:/backups:ro -v ~/audit/output:/output "$AUDIT_IMAGE" shell

The output directory must be empty. The shell starts in /output, which is ~/audit/output. The copies stop when you leave the shell. Change the commands as this table shows:

In the procedureIn the shell of the audit image
cd ~/auditThe shell is in /output. Write scope.json there.
connections.json/var/lib/ballot-audit/private/connections.json
docker exec -it audit-hasura-db psql -U audit_reader -d hasura_copypsql hasura_copy. Use keycloak_copy or b3_copy for the other copies. The session is read only.
--server-url http://127.0.0.1:43322 (ImmuDB)--server-url http://127.0.0.1:3322
--username "$IMMUDB_READ_ONLY_USER" and the ImmuDB password--username ballot_audit_reader. The shell sets the password.
--b3-blob-root <path>--b3-blob-root /var/lib/ballot-audit/b3-blobs
note

audit-tally writes the files of each scope in output/scopes/<NNN>/. To examine one step of a run, use the command line of the step in output/audit-record.json. To repeat it, use a new, empty output directory.

After the last procedure, do Report and Remove the Copies.