# audit-trail

Hash-chained JSONL audit trail for signing (created, sent, viewed, signed, completed) with document hashes and a verifier.

- **Space:** e-signing-public (https://github.com/Tech-Realm/space-e-signing-public/tree/main/audit-trail)
- **Level:** L1 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** local-pypdf, self-hosted-esign, docusign; checks: 4
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use e-signing-public/audit-trail` or MCP `get_pack e-signing-public/audit-trail`
- **Files:** CHANGELOG.md, code/audit.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

Evidence of who did what and when, where any edited or deleted entry, or a swapped final PDF, is detected.

## Steps

1. `python3 code/audit.py log trail.jsonl created sender@example.com --doc draft.pdf`.
2. Log sent / viewed / signed (with `--doc` after each change to the PDF) / completed.
3. `python3 code/audit.py verify trail.jsonl --doc final.pdf` before sending the completed copy.
4. Attach the trail (or a rendered certificate of completion) to the final PDF package.

## Edge cases

- Clock skew between machines: use UTC timestamps from one server.
- The chain proves integrity, not identity; identity comes from the login/email step.

## Don'ts

- Don't store signer IDs, IPs or documents of real clients in this repo.
- Don't call a typed/drawn stamp a 'digital signature'; it is an electronic signature mark.
- Don't rewrite a trail to fix a typo; append a correction event.



---

Canonical URL: https://logicpacks.io/packs/e-signing-public/audit-trail

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
